|
| 1 | +/** `GET /attributevalues` |
| 2 | + * @alias BrAPINode.prototype.attributevalues |
| 3 | + * @param {Object} params Parameters to provide to the call |
| 4 | + * @param {String} [behavior="fork"] Behavior of the node |
| 5 | + * @return {BrAPI_Behavior_Node} |
| 6 | + */ |
| 7 | +export function attributevalues (params,behavior){ |
| 8 | + var call = { |
| 9 | + 'defaultMethod': 'get', |
| 10 | + 'urlTemplate': '/attributevalues', |
| 11 | + 'params': params, |
| 12 | + 'behaviorOptions': ['fork','map'], |
| 13 | + 'behavior': behavior, |
| 14 | + } |
| 15 | + this.version.check(call.urlTemplate,{ |
| 16 | + introduced:"v2.0" |
| 17 | + }); |
| 18 | + return this.simple_brapi_call(call); |
| 19 | +} |
| 20 | + |
| 21 | +/** `POST /attributevalues` |
| 22 | +* @alias BrAPINode.prototype.attributevalues_store |
| 23 | +* @param {Object} params Parameters to provide to the call |
| 24 | +* @param {String} [behavior="fork"] Behavior of the node |
| 25 | +* @return {BrAPI_Behavior_Node} |
| 26 | +*/ |
| 27 | +export function attributevalues_store (params,behavior){ |
| 28 | + var call = { |
| 29 | + 'defaultMethod': 'post', |
| 30 | + 'urlTemplate': '/attributevalues', |
| 31 | + 'params': params, |
| 32 | + 'behaviorOptions': ['fork','map'], |
| 33 | + 'behavior': behavior, |
| 34 | + } |
| 35 | + this.version.check(call.urlTemplate,{ |
| 36 | + introduced:"v2.0" |
| 37 | + }); |
| 38 | + return this.simple_brapi_call(call); |
| 39 | +} |
| 40 | + |
| 41 | +/** `GET /attributevalues/{attributeValueDbId}` |
| 42 | + * @alias BrAPINode.prototype.attributevalues_detail |
| 43 | + * @param {Object} params Parameters to provide to the call |
| 44 | + * @param {String} params.attributeValueDbId attributeValueDbId |
| 45 | + * @return {BrAPI_Behavior_Node} |
| 46 | + */ |
| 47 | +export function attributevalues_detail (params){ |
| 48 | + var call = { |
| 49 | + 'defaultMethod': 'get', |
| 50 | + 'urlTemplate': '/attributevalues/{attributeValueDbId}', |
| 51 | + 'params': params, |
| 52 | + 'behavior': 'map', |
| 53 | + } |
| 54 | + this.version.check(call.urlTemplate,{ |
| 55 | + introduced:"v2.0" |
| 56 | + }); |
| 57 | + return this.simple_brapi_call(call); |
| 58 | +} |
| 59 | + |
| 60 | +/** `PUT /attributevalues/{attributeValueDbId}` |
| 61 | +* @alias BrAPINode.prototype.attributevalues_modify |
| 62 | +* @param {Object} params Parameters to provide to the call |
| 63 | +* @param {String} [behavior="fork"] Behavior of the node |
| 64 | +* @return {BrAPI_Behavior_Node} |
| 65 | +*/ |
| 66 | +export function attributevalues_modify (params,behavior){ |
| 67 | + var call = { |
| 68 | + 'defaultMethod': 'put', |
| 69 | + 'urlTemplate': '/attributevalues/{attributeValueDbId}', |
| 70 | + 'params': params, |
| 71 | + 'behaviorOptions': ['fork','map'], |
| 72 | + 'behavior': behavior, |
| 73 | + } |
| 74 | + this.version.check(call.urlTemplate,{ |
| 75 | + introduced:"v2.0" |
| 76 | + }); |
| 77 | + return this.simple_brapi_call(call); |
| 78 | +} |
| 79 | + |
| 80 | + |
| 81 | +/** `POST /search/attributevalues -> GET /search/attributevalues` |
| 82 | +* @alias BrAPINode.prototype.search_attributevalues |
| 83 | +* @param {Object} params Parameters to provide to the call |
| 84 | +* @param {String} [behavior="fork"] Behavior of the node |
| 85 | +* @return {BrAPI_Behavior_Node} |
| 86 | +*/ |
| 87 | +export function search_attributevalues(params,behavior){ |
| 88 | + this.version.check("POST /search/attributevalues -> GET /search/attributevalues",{ |
| 89 | + introduced:"v2.0" |
| 90 | + }); |
| 91 | + return this.search("attributevalues",params,behavior); |
| 92 | +}; |
0 commit comments