@commercetools/history-sdk 3.4.0 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,338 @@
1
1
  # @commercetools/history-sdk
2
2
 
3
+ ## 3.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#487](https://github.com/commercetools/commercetools-sdk-typescript/pull/487) [`d22b639`](https://github.com/commercetools/commercetools-sdk-typescript/commit/d22b639e812f5b784842bd7d5ae94d7aa19d0ce6) Thanks [@github-actions](https://github.com/apps/github-actions)! - Update generated SDKs
8
+
9
+ # Api (Platform) changes
10
+
11
+ <details>
12
+ <summary>Added Property(s)</summary>
13
+
14
+ - added property `perMethodTaxRate` to type `CustomLineItem`
15
+ - added property `key` to type `LineItem`
16
+ - added property `key` to type `LineItemDraft`
17
+ - added property `key` to type `CartAddLineItemAction`
18
+ - added property `lineItemKey` to type `CartApplyDeltaToLineItemShippingDetailsTargetsAction`
19
+ - added property `lineItemKey` to type `CartChangeLineItemQuantityAction`
20
+ - added property `lineItemKey` to type `CartRemoveLineItemAction`
21
+ - added property `lineItemKey` to type `CartSetLineItemCustomFieldAction`
22
+ - added property `lineItemKey` to type `CartSetLineItemCustomTypeAction`
23
+ - added property `lineItemKey` to type `CartSetLineItemDistributionChannelAction`
24
+ - added property `lineItemKey` to type `CartSetLineItemInventoryModeAction`
25
+ - added property `lineItemKey` to type `CartSetLineItemPriceAction`
26
+ - added property `lineItemKey` to type `CartSetLineItemShippingDetailsAction`
27
+ - added property `lineItemKey` to type `CartSetLineItemSupplyChannelAction`
28
+ - added property `lineItemKey` to type `CartSetLineItemTaxAmountAction`
29
+ - added property `lineItemKey` to type `CartSetLineItemTaxRateAction`
30
+ - added property `lineItemKey` to type `CartSetLineItemTotalPriceAction`
31
+ - added property `key` to type `MyLineItemDraft`
32
+ - added property `key` to type `MyCartAddLineItemAction`
33
+ - added property `lineItemKey` to type `MyCartApplyDeltaToLineItemShippingDetailsTargetsAction`
34
+ - added property `lineItemKey` to type `MyCartChangeLineItemQuantityAction`
35
+ - added property `lineItemKey` to type `MyCartRemoveLineItemAction`
36
+ - added property `lineItemKey` to type `MyCartSetLineItemCustomFieldAction`
37
+ - added property `lineItemKey` to type `MyCartSetLineItemCustomTypeAction`
38
+ - added property `lineItemKey` to type `MyCartSetLineItemDistributionChannelAction`
39
+ - added property `lineItemKey` to type `MyCartSetLineItemShippingDetailsAction`
40
+ - added property `lineItemKey` to type `MyCartSetLineItemSupplyChannelAction`
41
+ - added property `lineItemKey` to type `MyShoppingListChangeLineItemQuantityAction`
42
+ - added property `sku` to type `StandalonePriceDeletedMessage`
43
+ - added property `sku` to type `StandalonePriceDeletedMessagePayload`
44
+ - added property `key` to type `StagedOrderAddLineItemAction`
45
+ - added property `parcelKey` to type `StagedOrderAddParcelToDeliveryAction`
46
+ - added property `lineItemKey` to type `StagedOrderChangeLineItemQuantityAction`
47
+ - added property `lineItemKey` to type `StagedOrderRemoveLineItemAction`
48
+ - added property `parcelKey` to type `StagedOrderRemoveParcelFromDeliveryAction`
49
+ - added property `lineItemKey` to type `StagedOrderSetLineItemCustomFieldAction`
50
+ - added property `lineItemKey` to type `StagedOrderSetLineItemCustomTypeAction`
51
+ - added property `lineItemKey` to type `StagedOrderSetLineItemDistributionChannelAction`
52
+ - added property `lineItemKey` to type `StagedOrderSetLineItemPriceAction`
53
+ - added property `lineItemKey` to type `StagedOrderSetLineItemShippingDetailsAction`
54
+ - added property `lineItemKey` to type `StagedOrderSetLineItemTaxAmountAction`
55
+ - added property `lineItemKey` to type `StagedOrderSetLineItemTaxRateAction`
56
+ - added property `lineItemKey` to type `StagedOrderSetLineItemTotalPriceAction`
57
+ - added property `parcelKey` to type `StagedOrderSetParcelCustomFieldAction`
58
+ - added property `parcelKey` to type `StagedOrderSetParcelCustomTypeAction`
59
+ - added property `parcelKey` to type `StagedOrderSetParcelItemsAction`
60
+ - added property `parcelKey` to type `StagedOrderSetParcelMeasurementsAction`
61
+ - added property `parcelKey` to type `StagedOrderSetParcelTrackingDataAction`
62
+ - added property `key` to type `Parcel`
63
+ - added property `key` to type `ParcelDraft`
64
+ - added property `parcelKey` to type `OrderAddParcelToDeliveryAction`
65
+ - added property `parcelKey` to type `OrderRemoveParcelFromDeliveryAction`
66
+ - added property `lineItemKey` to type `OrderSetLineItemCustomFieldAction`
67
+ - added property `lineItemKey` to type `OrderSetLineItemCustomTypeAction`
68
+ - added property `lineItemKey` to type `OrderSetLineItemShippingDetailsAction`
69
+ - added property `parcelKey` to type `OrderSetParcelCustomFieldAction`
70
+ - added property `parcelKey` to type `OrderSetParcelCustomTypeAction`
71
+ - added property `parcelKey` to type `OrderSetParcelItemsAction`
72
+ - added property `parcelKey` to type `OrderSetParcelMeasurementsAction`
73
+ - added property `parcelKey` to type `OrderSetParcelTrackingDataAction`
74
+ </details>
75
+
76
+ <details>
77
+ <summary>Required Property(s)</summary>
78
+
79
+ - changed property `lineItemId` of type `CartApplyDeltaToLineItemShippingDetailsTargetsAction` to be optional
80
+ - changed property `lineItemId` of type `CartChangeLineItemQuantityAction` to be optional
81
+ - changed property `lineItemId` of type `CartRemoveLineItemAction` to be optional
82
+ - changed property `lineItemId` of type `CartSetLineItemCustomFieldAction` to be optional
83
+ - changed property `lineItemId` of type `CartSetLineItemCustomTypeAction` to be optional
84
+ - changed property `lineItemId` of type `CartSetLineItemDistributionChannelAction` to be optional
85
+ - changed property `lineItemId` of type `CartSetLineItemInventoryModeAction` to be optional
86
+ - changed property `lineItemId` of type `CartSetLineItemPriceAction` to be optional
87
+ - changed property `lineItemId` of type `CartSetLineItemShippingDetailsAction` to be optional
88
+ - changed property `lineItemId` of type `CartSetLineItemSupplyChannelAction` to be optional
89
+ - changed property `lineItemId` of type `CartSetLineItemTaxAmountAction` to be optional
90
+ - changed property `lineItemId` of type `CartSetLineItemTaxRateAction` to be optional
91
+ - changed property `lineItemId` of type `CartSetLineItemTotalPriceAction` to be optional
92
+ - changed property `lineItemId` of type `MyCartApplyDeltaToLineItemShippingDetailsTargetsAction` to be optional
93
+ - changed property `lineItemId` of type `MyCartChangeLineItemQuantityAction` to be optional
94
+ - changed property `lineItemId` of type `MyCartRemoveLineItemAction` to be optional
95
+ - changed property `lineItemId` of type `MyCartSetLineItemCustomFieldAction` to be optional
96
+ - changed property `lineItemId` of type `MyCartSetLineItemCustomTypeAction` to be optional
97
+ - changed property `lineItemId` of type `MyCartSetLineItemDistributionChannelAction` to be optional
98
+ - changed property `lineItemId` of type `MyCartSetLineItemShippingDetailsAction` to be optional
99
+ - changed property `lineItemId` of type `MyCartSetLineItemSupplyChannelAction` to be optional
100
+ - changed property `lineItemId` of type `MyShoppingListChangeLineItemQuantityAction` to be optional
101
+ - changed property `lineItemId` of type `StagedOrderChangeLineItemQuantityAction` to be optional
102
+ - changed property `lineItemId` of type `StagedOrderRemoveLineItemAction` to be optional
103
+ - changed property `parcelId` of type `StagedOrderRemoveParcelFromDeliveryAction` to be optional
104
+ - changed property `lineItemId` of type `StagedOrderSetLineItemCustomFieldAction` to be optional
105
+ - changed property `lineItemId` of type `StagedOrderSetLineItemCustomTypeAction` to be optional
106
+ - changed property `lineItemId` of type `StagedOrderSetLineItemDistributionChannelAction` to be optional
107
+ - changed property `lineItemId` of type `StagedOrderSetLineItemPriceAction` to be optional
108
+ - changed property `lineItemId` of type `StagedOrderSetLineItemShippingDetailsAction` to be optional
109
+ - changed property `lineItemId` of type `StagedOrderSetLineItemTaxAmountAction` to be optional
110
+ - changed property `lineItemId` of type `StagedOrderSetLineItemTaxRateAction` to be optional
111
+ - changed property `lineItemId` of type `StagedOrderSetLineItemTotalPriceAction` to be optional
112
+ - changed property `parcelId` of type `StagedOrderSetParcelCustomFieldAction` to be optional
113
+ - changed property `parcelId` of type `StagedOrderSetParcelCustomTypeAction` to be optional
114
+ - changed property `parcelId` of type `StagedOrderSetParcelItemsAction` to be optional
115
+ - changed property `parcelId` of type `StagedOrderSetParcelMeasurementsAction` to be optional
116
+ - changed property `parcelId` of type `StagedOrderSetParcelTrackingDataAction` to be optional
117
+ - changed property `parcelId` of type `OrderRemoveParcelFromDeliveryAction` to be optional
118
+ - changed property `lineItemId` of type `OrderSetLineItemCustomFieldAction` to be optional
119
+ - changed property `lineItemId` of type `OrderSetLineItemCustomTypeAction` to be optional
120
+ - changed property `lineItemId` of type `OrderSetLineItemShippingDetailsAction` to be optional
121
+ - changed property `parcelId` of type `OrderSetParcelCustomFieldAction` to be optional
122
+ - changed property `parcelId` of type `OrderSetParcelCustomTypeAction` to be optional
123
+ - changed property `parcelId` of type `OrderSetParcelItemsAction` to be optional
124
+ - changed property `parcelId` of type `OrderSetParcelMeasurementsAction` to be optional
125
+ - changed property `parcelId` of type `OrderSetParcelTrackingDataAction` to be optional
126
+ </details>
127
+
128
+ <details>
129
+ <summary>Deprecated Property(s)</summary>
130
+
131
+ - property `MyCartChangeLineItemQuantityAction::externalPrice` is removed
132
+ - property `MyCartChangeLineItemQuantityAction::externalTotalPrice` is removed
133
+ </details>
134
+
135
+ <details>
136
+ <summary>Deprecated Type(s)</summary>
137
+
138
+ - type `ProductVariantSelectionExclusion` is removed
139
+ - type `ProductVariantSelectionInclusion` is removed
140
+ </details>
141
+
142
+ <details>
143
+ <summary>Removed Type(s)</summary>
144
+
145
+ - :warning: removed type `MyCartSetDirectDiscountsAction`
146
+ </details>
147
+
148
+ <details>
149
+ <summary>Added Type(s)</summary>
150
+
151
+ - added type `StandalonePriceTierAddedMessage`
152
+ - added type `StandalonePriceTierRemovedMessage`
153
+ - added type `StandalonePriceTiersSetMessage`
154
+ - added type `StandalonePriceValidFromAndUntilSetMessage`
155
+ - added type `StandalonePriceValidFromSetMessage`
156
+ - added type `StandalonePriceValidUntilSetMessage`
157
+ - added type `StandalonePriceTierAddedMessagePayload`
158
+ - added type `StandalonePriceTierRemovedMessagePayload`
159
+ - added type `StandalonePriceTiersSetMessagePayload`
160
+ - added type `StandalonePriceValidFromAndUntilSetMessagePayload`
161
+ - added type `StandalonePriceValidFromSetMessagePayload`
162
+ - added type `StandalonePriceValidUntilSetMessagePayload`
163
+ - added type `StandalonePriceAddPriceTierAction`
164
+ - added type `StandalonePriceRemovePriceTierAction`
165
+ - added type `StandalonePriceSetPriceTiersAction`
166
+ - added type `StandalonePriceSetValidFromAction`
167
+ - added type `StandalonePriceSetValidFromAndUntilAction`
168
+ - added type `StandalonePriceSetValidUntilAction`
169
+ - added type `ConfluentCloudDestination`
170
+ </details>
171
+
172
+ <details>
173
+ <summary>Added Enum(s)</summary>
174
+
175
+ - added enum `associate-role` to type `CustomFieldReferenceValue`
176
+ - added enum `business-unit` to type `CustomFieldReferenceValue`
177
+ </details>
178
+
179
+ # Import changes
180
+
181
+ <details>
182
+ <summary>Added Enum(s)</summary>
183
+
184
+ - added enum `associate-role` to type `CustomFieldReferenceValue`
185
+ - added enum `business-unit` to type `CustomFieldReferenceValue`
186
+ </details>
187
+
188
+ # History change
189
+
190
+ <details>
191
+ <summary>Added Property(s)</summary>
192
+
193
+ - added property `variantSelection` to type `AddProductChange`
194
+ </details>
195
+
196
+ <details>
197
+ <summary>Changed Property(s)</summary>
198
+
199
+ - :warning: changed property `resource` of type `Record` from type `Reference` to `ResourceIdentifier`
200
+ </details>
201
+
202
+ <details>
203
+ <summary>Added QueryParameter(s)</summary>
204
+
205
+ - added query parameter `resourceKey` to method `get /{projectKey}`
206
+ - added query parameter `resourceKey` to method `get /{projectKey}/{resourceType}`
207
+ </details>
208
+
209
+ <details>
210
+ <summary>Removed QueryParameter(s)</summary>
211
+
212
+ - :warning: removed query parameter `resourceId` from method `get /{projectKey}/{resourceType}`
213
+ </details>
214
+
215
+ <details>
216
+ <summary>Added Type(s)</summary>
217
+
218
+ - added type `AddAssociateChange`
219
+ - added type `AddProductSelectionChange`
220
+ - added type `Associate`
221
+ - added type `AssociateRoleAssignment`
222
+ - added type `AssociateRoleInheritanceMode`
223
+ - added type `BusinessUnitAssociateMode`
224
+ - added type `BusinessUnitLabel`
225
+ - added type `BusinessUnitStatus`
226
+ - added type `BusinessUnitStoreMode`
227
+ - added type `ChangeAssociateChange`
228
+ - added type `ChangeAssociateModeChange`
229
+ - added type `ChangeParentUnitChange`
230
+ - added type `ChangeProductSelectionActiveChange`
231
+ - added type `ChangeStatusChange`
232
+ - added type `ProductVariantSelection`
233
+ - added type `ProductVariantSelectionTypeEnum`
234
+ - added type `RemoveAssociateChange`
235
+ - added type `RemoveProductSelectionChange`
236
+ - added type `RequestQuoteRenegotiationChange`
237
+ - added type `ResourceIdentifier`
238
+ - added type `SetAddressCustomFieldChange`
239
+ - added type `SetAddressCustomTypeChange`
240
+ - added type `SetContactEmailChange`
241
+ - added type `SetStoreModeChange`
242
+ - added type `SetVariantSelectionChange`
243
+ </details>
244
+
245
+ <details>
246
+ <summary>Added Enum(s)</summary>
247
+
248
+ - added enum `business-unit` to type `ChangeHistoryResourceType`
249
+ - added enum `addAssociate` to type `UpdateType`
250
+ - added enum `addCustomLineItem` to type `UpdateType`
251
+ - added enum `addDiscountCode` to type `UpdateType`
252
+ - added enum `addProduct` to type `UpdateType`
253
+ - added enum `addProductSelection` to type `UpdateType`
254
+ - added enum `addProperty` to type `UpdateType`
255
+ - added enum `changeAmountAuthorized` to type `UpdateType`
256
+ - added enum `changeAssociate` to type `UpdateType`
257
+ - added enum `changeAssociateMode` to type `UpdateType`
258
+ - added enum `changeCustomLineItemQuantity` to type `UpdateType`
259
+ - added enum `changeLineItemName` to type `UpdateType`
260
+ - added enum `changeParentUnit` to type `UpdateType`
261
+ - added enum `changeProductSelectionActive` to type `UpdateType`
262
+ - added enum `changeQuoteRequestState` to type `UpdateType`
263
+ - added enum `changeQuoteState` to type `UpdateType`
264
+ - added enum `changeStagedQuoteState` to type `UpdateType`
265
+ - added enum `changeStatus` to type `UpdateType`
266
+ - added enum `changeTaxCalculationMode` to type `UpdateType`
267
+ - added enum `changeTaxMode` to type `UpdateType`
268
+ - added enum `changeTaxRoundingMode` to type `UpdateType`
269
+ - added enum `moveImageToPosition` to type `UpdateType`
270
+ - added enum `removeAssociate` to type `UpdateType`
271
+ - added enum `removeCustomLineItem` to type `UpdateType`
272
+ - added enum `removeDiscountCode` to type `UpdateType`
273
+ - added enum `removeProduct` to type `UpdateType`
274
+ - added enum `removeProductSelection` to type `UpdateType`
275
+ - added enum `removeProperty` to type `UpdateType`
276
+ - added enum `requestQuoteRenegotiation` to type `UpdateType`
277
+ - added enum `setAddressCustomField` to type `UpdateType`
278
+ - added enum `setAddressCustomType` to type `UpdateType`
279
+ - added enum `setApplicationVersion` to type `UpdateType`
280
+ - added enum `setAuthenticationMode` to type `UpdateType`
281
+ - added enum `setContactEmail` to type `UpdateType`
282
+ - added enum `setCountries` to type `UpdateType`
283
+ - added enum `setCountry` to type `UpdateType`
284
+ - added enum `setCustomLineItemMoney` to type `UpdateType`
285
+ - added enum `setCustomLineItemTaxAmount` to type `UpdateType`
286
+ - added enum `setCustomLineItemTaxCategory` to type `UpdateType`
287
+ - added enum `setCustomLineItemTaxRate` to type `UpdateType`
288
+ - added enum `setCustomLineItemTaxedPrice` to type `UpdateType`
289
+ - added enum `setCustomLineItemTotalPrice` to type `UpdateType`
290
+ - added enum `setCustomShippingMethod` to type `UpdateType`
291
+ - added enum `setIsValid` to type `UpdateType`
292
+ - added enum `setLineItemDeactivatedAt` to type `UpdateType`
293
+ - added enum `setLineItemDiscountedPrice` to type `UpdateType`
294
+ - added enum `setLineItemDiscountedPricePerQuantity` to type `UpdateType`
295
+ - added enum `setLineItemDistributionChannel` to type `UpdateType`
296
+ - added enum `setLineItemPrice` to type `UpdateType`
297
+ - added enum `setLineItemProductKey` to type `UpdateType`
298
+ - added enum `setLineItemProductSlug` to type `UpdateType`
299
+ - added enum `setLineItemTaxAmount` to type `UpdateType`
300
+ - added enum `setLineItemTaxRate` to type `UpdateType`
301
+ - added enum `setLineItemTaxedPrice` to type `UpdateType`
302
+ - added enum `setLineItemTotalPrice` to type `UpdateType`
303
+ - added enum `setOrderTaxedPrice` to type `UpdateType`
304
+ - added enum `setOrderTotalPrice` to type `UpdateType`
305
+ - added enum `setOrderTotalTax` to type `UpdateType`
306
+ - added enum `setPrices` to type `UpdateType`
307
+ - added enum `setProductCount` to type `UpdateType`
308
+ - added enum `setProductSelections` to type `UpdateType`
309
+ - added enum `setProperty` to type `UpdateType`
310
+ - added enum `setPurchaseOrderNumber` to type `UpdateType`
311
+ - added enum `setReservations` to type `UpdateType`
312
+ - added enum `setSellerComment` to type `UpdateType`
313
+ - added enum `setShippingInfoPrice` to type `UpdateType`
314
+ - added enum `setShippingInfoTaxedPrice` to type `UpdateType`
315
+ - added enum `setShippingMethod` to type `UpdateType`
316
+ - added enum `setShippingMethodTaxAmount` to type `UpdateType`
317
+ - added enum `setShippingMethodTaxRate` to type `UpdateType`
318
+ - added enum `setShippingRate` to type `UpdateType`
319
+ - added enum `setShippingRateInput` to type `UpdateType`
320
+ - added enum `setStoreMode` to type `UpdateType`
321
+ - added enum `setSupplyChannels` to type `UpdateType`
322
+ - added enum `setValidTo` to type `UpdateType`
323
+ - added enum `setValue` to type `UpdateType`
324
+ - added enum `setVariantSelection` to type `UpdateType`
325
+ - added enum `DeclinedForRenegotiation` to type `QuoteState`
326
+ - added enum `associate-role` to type `ReferenceTypeId`
327
+ - added enum `business-unit` to type `ReferenceTypeId`
328
+ </details>
329
+
330
+ ## 3.4.1
331
+
332
+ ### Patch Changes
333
+
334
+ - [#483](https://github.com/commercetools/commercetools-sdk-typescript/pull/483) [`c87f6bf`](https://github.com/commercetools/commercetools-sdk-typescript/commit/c87f6bf6efd3b7bd66027829378108b1f260a325) Thanks [@github-actions](https://github.com/apps/github-actions)! - Update generated SDKs
335
+
3
336
  ## 3.4.0
4
337
 
5
338
  ### Minor Changes
@@ -39,7 +39,10 @@ function _defineProperty(obj, key, value) {
39
39
  * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
40
40
  */
41
41
 
42
- function urlStringifier(object) {
42
+ function isDefined(value) {
43
+ return typeof value !== 'undefined' && value !== null;
44
+ }
45
+ function stringify(object) {
43
46
  const params = new URLSearchParams(object);
44
47
  for (const [key, value] of Object.entries(object)) {
45
48
  if (Array.isArray(value)) {
@@ -49,12 +52,6 @@ function urlStringifier(object) {
49
52
  }
50
53
  return params.toString();
51
54
  }
52
- function stringifyURLString(object, stringifier = urlStringifier) {
53
- return urlStringifier(object);
54
- }
55
- function isDefined(value) {
56
- return typeof value !== 'undefined' && value !== null;
57
- }
58
55
  function cleanObject(obj) {
59
56
  return Object.keys(obj).reduce((result, key) => {
60
57
  const value = obj[key];
@@ -79,7 +76,7 @@ function cleanObject(obj) {
79
76
  }
80
77
  function formatQueryString(variableMap) {
81
78
  const map = cleanObject(variableMap);
82
- const result = stringifyURLString(map);
79
+ const result = stringify(map);
83
80
  if (result === '') {
84
81
  return '';
85
82
  }
@@ -123,6 +120,9 @@ class ByProjectKeyByResourceTypeByIDRequestBuilder {
123
120
  constructor(args) {
124
121
  this.args = args;
125
122
  }
123
+ /**
124
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
125
+ */
126
126
  get(methodArgs) {
127
127
  return new ApiRequest({
128
128
  baseUri: this.args.baseUri,
@@ -158,6 +158,10 @@ class ByProjectKeyByResourceTypeRequestBuilder {
158
158
  baseUri: this.args.baseUri
159
159
  });
160
160
  }
161
+
162
+ /**
163
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
164
+ */
161
165
  get(methodArgs) {
162
166
  return new ApiRequest({
163
167
  baseUri: this.args.baseUri,
@@ -193,6 +197,10 @@ class ByProjectKeyRequestBuilder {
193
197
  baseUri: this.args.baseUri
194
198
  });
195
199
  }
200
+
201
+ /**
202
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
203
+ */
196
204
  get(methodArgs) {
197
205
  return new ApiRequest({
198
206
  baseUri: this.args.baseUri,
@@ -35,7 +35,10 @@ function _defineProperty(obj, key, value) {
35
35
  * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
36
36
  */
37
37
 
38
- function urlStringifier(object) {
38
+ function isDefined(value) {
39
+ return typeof value !== 'undefined' && value !== null;
40
+ }
41
+ function stringify(object) {
39
42
  const params = new URLSearchParams(object);
40
43
  for (const [key, value] of Object.entries(object)) {
41
44
  if (Array.isArray(value)) {
@@ -45,12 +48,6 @@ function urlStringifier(object) {
45
48
  }
46
49
  return params.toString();
47
50
  }
48
- function stringifyURLString(object, stringifier = urlStringifier) {
49
- return urlStringifier(object);
50
- }
51
- function isDefined(value) {
52
- return typeof value !== 'undefined' && value !== null;
53
- }
54
51
  function cleanObject(obj) {
55
52
  return Object.keys(obj).reduce((result, key) => {
56
53
  const value = obj[key];
@@ -75,7 +72,7 @@ function cleanObject(obj) {
75
72
  }
76
73
  function formatQueryString(variableMap) {
77
74
  const map = cleanObject(variableMap);
78
- const result = stringifyURLString(map);
75
+ const result = stringify(map);
79
76
  if (result === '') {
80
77
  return '';
81
78
  }
@@ -119,6 +116,9 @@ class ByProjectKeyByResourceTypeByIDRequestBuilder {
119
116
  constructor(args) {
120
117
  this.args = args;
121
118
  }
119
+ /**
120
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
121
+ */
122
122
  get(methodArgs) {
123
123
  return new ApiRequest({
124
124
  baseUri: this.args.baseUri,
@@ -154,6 +154,10 @@ class ByProjectKeyByResourceTypeRequestBuilder {
154
154
  baseUri: this.args.baseUri
155
155
  });
156
156
  }
157
+
158
+ /**
159
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
160
+ */
157
161
  get(methodArgs) {
158
162
  return new ApiRequest({
159
163
  baseUri: this.args.baseUri,
@@ -189,6 +193,10 @@ class ByProjectKeyRequestBuilder {
189
193
  baseUri: this.args.baseUri
190
194
  });
191
195
  }
196
+
197
+ /**
198
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
199
+ */
192
200
  get(methodArgs) {
193
201
  return new ApiRequest({
194
202
  baseUri: this.args.baseUri,
@@ -39,7 +39,10 @@ function _defineProperty(obj, key, value) {
39
39
  * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
40
40
  */
41
41
 
42
- function urlStringifier(object) {
42
+ function isDefined(value) {
43
+ return typeof value !== 'undefined' && value !== null;
44
+ }
45
+ function stringify(object) {
43
46
  const params = new URLSearchParams(object);
44
47
  for (const [key, value] of Object.entries(object)) {
45
48
  if (Array.isArray(value)) {
@@ -49,12 +52,6 @@ function urlStringifier(object) {
49
52
  }
50
53
  return params.toString();
51
54
  }
52
- function stringifyURLString(object, stringifier = urlStringifier) {
53
- return urlStringifier(object);
54
- }
55
- function isDefined(value) {
56
- return typeof value !== 'undefined' && value !== null;
57
- }
58
55
  function cleanObject(obj) {
59
56
  return Object.keys(obj).reduce((result, key) => {
60
57
  const value = obj[key];
@@ -79,7 +76,7 @@ function cleanObject(obj) {
79
76
  }
80
77
  function formatQueryString(variableMap) {
81
78
  const map = cleanObject(variableMap);
82
- const result = stringifyURLString(map);
79
+ const result = stringify(map);
83
80
  if (result === '') {
84
81
  return '';
85
82
  }
@@ -123,6 +120,9 @@ class ByProjectKeyByResourceTypeByIDRequestBuilder {
123
120
  constructor(args) {
124
121
  this.args = args;
125
122
  }
123
+ /**
124
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
125
+ */
126
126
  get(methodArgs) {
127
127
  return new ApiRequest({
128
128
  baseUri: this.args.baseUri,
@@ -158,6 +158,10 @@ class ByProjectKeyByResourceTypeRequestBuilder {
158
158
  baseUri: this.args.baseUri
159
159
  });
160
160
  }
161
+
162
+ /**
163
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
164
+ */
161
165
  get(methodArgs) {
162
166
  return new ApiRequest({
163
167
  baseUri: this.args.baseUri,
@@ -193,6 +197,10 @@ class ByProjectKeyRequestBuilder {
193
197
  baseUri: this.args.baseUri
194
198
  });
195
199
  }
200
+
201
+ /**
202
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
203
+ */
196
204
  get(methodArgs) {
197
205
  return new ApiRequest({
198
206
  baseUri: this.args.baseUri,
@@ -39,7 +39,10 @@ function _defineProperty(obj, key, value) {
39
39
  * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
40
40
  */
41
41
 
42
- function urlStringifier(object) {
42
+ function isDefined(value) {
43
+ return typeof value !== 'undefined' && value !== null;
44
+ }
45
+ function stringify(object) {
43
46
  const params = new URLSearchParams(object);
44
47
  for (const [key, value] of Object.entries(object)) {
45
48
  if (Array.isArray(value)) {
@@ -49,12 +52,6 @@ function urlStringifier(object) {
49
52
  }
50
53
  return params.toString();
51
54
  }
52
- function stringifyURLString(object, stringifier = urlStringifier) {
53
- return urlStringifier(object);
54
- }
55
- function isDefined(value) {
56
- return typeof value !== 'undefined' && value !== null;
57
- }
58
55
  function cleanObject(obj) {
59
56
  return Object.keys(obj).reduce((result, key) => {
60
57
  const value = obj[key];
@@ -79,7 +76,7 @@ function cleanObject(obj) {
79
76
  }
80
77
  function formatQueryString(variableMap) {
81
78
  const map = cleanObject(variableMap);
82
- const result = stringifyURLString(map);
79
+ const result = stringify(map);
83
80
  if (result === '') {
84
81
  return '';
85
82
  }
@@ -123,6 +120,9 @@ class ByProjectKeyByResourceTypeByIDRequestBuilder {
123
120
  constructor(args) {
124
121
  this.args = args;
125
122
  }
123
+ /**
124
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
125
+ */
126
126
  get(methodArgs) {
127
127
  return new ApiRequest({
128
128
  baseUri: this.args.baseUri,
@@ -158,6 +158,10 @@ class ByProjectKeyByResourceTypeRequestBuilder {
158
158
  baseUri: this.args.baseUri
159
159
  });
160
160
  }
161
+
162
+ /**
163
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
164
+ */
161
165
  get(methodArgs) {
162
166
  return new ApiRequest({
163
167
  baseUri: this.args.baseUri,
@@ -193,6 +197,10 @@ class ByProjectKeyRequestBuilder {
193
197
  baseUri: this.args.baseUri
194
198
  });
195
199
  }
200
+
201
+ /**
202
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
203
+ */
196
204
  get(methodArgs) {
197
205
  return new ApiRequest({
198
206
  baseUri: this.args.baseUri,
@@ -35,7 +35,10 @@ function _defineProperty(obj, key, value) {
35
35
  * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
36
36
  */
37
37
 
38
- function urlStringifier(object) {
38
+ function isDefined(value) {
39
+ return typeof value !== 'undefined' && value !== null;
40
+ }
41
+ function stringify(object) {
39
42
  const params = new URLSearchParams(object);
40
43
  for (const [key, value] of Object.entries(object)) {
41
44
  if (Array.isArray(value)) {
@@ -45,12 +48,6 @@ function urlStringifier(object) {
45
48
  }
46
49
  return params.toString();
47
50
  }
48
- function stringifyURLString(object, stringifier = urlStringifier) {
49
- return urlStringifier(object);
50
- }
51
- function isDefined(value) {
52
- return typeof value !== 'undefined' && value !== null;
53
- }
54
51
  function cleanObject(obj) {
55
52
  return Object.keys(obj).reduce((result, key) => {
56
53
  const value = obj[key];
@@ -75,7 +72,7 @@ function cleanObject(obj) {
75
72
  }
76
73
  function formatQueryString(variableMap) {
77
74
  const map = cleanObject(variableMap);
78
- const result = stringifyURLString(map);
75
+ const result = stringify(map);
79
76
  if (result === '') {
80
77
  return '';
81
78
  }
@@ -119,6 +116,9 @@ class ByProjectKeyByResourceTypeByIDRequestBuilder {
119
116
  constructor(args) {
120
117
  this.args = args;
121
118
  }
119
+ /**
120
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
121
+ */
122
122
  get(methodArgs) {
123
123
  return new ApiRequest({
124
124
  baseUri: this.args.baseUri,
@@ -154,6 +154,10 @@ class ByProjectKeyByResourceTypeRequestBuilder {
154
154
  baseUri: this.args.baseUri
155
155
  });
156
156
  }
157
+
158
+ /**
159
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
160
+ */
157
161
  get(methodArgs) {
158
162
  return new ApiRequest({
159
163
  baseUri: this.args.baseUri,
@@ -189,6 +193,10 @@ class ByProjectKeyRequestBuilder {
189
193
  baseUri: this.args.baseUri
190
194
  });
191
195
  }
196
+
197
+ /**
198
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
199
+ */
192
200
  get(methodArgs) {
193
201
  return new ApiRequest({
194
202
  baseUri: this.args.baseUri,
@@ -27,6 +27,9 @@ export declare class ByProjectKeyByResourceTypeByIDRequestBuilder {
27
27
  executeRequest: executeRequest;
28
28
  baseUri?: string;
29
29
  });
30
+ /**
31
+ * The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
32
+ */
30
33
  get(methodArgs?: {
31
34
  queryArgs?: {
32
35
  'date.from'?: any;