@commercetools/history-sdk 3.2.0 → 3.3.0
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 +252 -0
- package/dist/commercetools-history-sdk.browser.cjs.js +28 -2
- package/dist/commercetools-history-sdk.browser.esm.js +27 -1
- package/dist/commercetools-history-sdk.cjs.dev.js +28 -2
- package/dist/commercetools-history-sdk.cjs.prod.js +28 -2
- package/dist/commercetools-history-sdk.esm.js +27 -1
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/models/change.d.ts +38 -2
- package/dist/declarations/src/generated/models/common.d.ts +8 -0
- package/package.json +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,257 @@
|
|
|
1
1
|
# @commercetools/history-sdk
|
|
2
2
|
|
|
3
|
+
## 3.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#465](https://github.com/commercetools/commercetools-sdk-typescript/pull/465) [`efa9194`](https://github.com/commercetools/commercetools-sdk-typescript/commit/efa9194bd092bbb653b6d44e76fb90f563f41d53) Thanks [@github-actions](https://github.com/apps/github-actions)! - ## Update generated SDKs
|
|
8
|
+
|
|
9
|
+
**Api changes**
|
|
10
|
+
|
|
11
|
+
<details>
|
|
12
|
+
<summary>Changed Type(s)</summary>
|
|
13
|
+
|
|
14
|
+
- :warning: changed type `AssociateRole` from type `string` to `BaseResource`
|
|
15
|
+
</details>
|
|
16
|
+
|
|
17
|
+
<details>
|
|
18
|
+
<summary>Added Type(s)</summary>
|
|
19
|
+
|
|
20
|
+
- added type `AssociateRoleDraft`
|
|
21
|
+
- added type `AssociateRoleKeyReference`
|
|
22
|
+
- added type `AssociateRolePagedQueryResponse`
|
|
23
|
+
- added type `AssociateRoleReference`
|
|
24
|
+
- added type `AssociateRoleResourceIdentifier`
|
|
25
|
+
- added type `AssociateRoleUpdate`
|
|
26
|
+
- added type `AssociateRoleUpdateAction`
|
|
27
|
+
- added type `Permission`
|
|
28
|
+
- added type `AssociateRoleAddPermissionAction`
|
|
29
|
+
- added type `AssociateRoleChangeBuyerAssignableAction`
|
|
30
|
+
- added type `AssociateRoleRemovePermissionAction`
|
|
31
|
+
- added type `AssociateRoleSetCustomFieldAction`
|
|
32
|
+
- added type `AssociateRoleSetCustomTypeAction`
|
|
33
|
+
- added type `AssociateRoleSetNameAction`
|
|
34
|
+
- added type `AssociateRoleSetPermissionsAction`
|
|
35
|
+
- added type `AssociateRoleAssignment`
|
|
36
|
+
- added type `AssociateRoleAssignmentDraft`
|
|
37
|
+
- added type `AssociateRoleDeprecated`
|
|
38
|
+
- added type `AssociateRoleInheritanceMode`
|
|
39
|
+
- added type `BusinessUnitAssociateMode`
|
|
40
|
+
- added type `InheritedAssociate`
|
|
41
|
+
- added type `InheritedAssociateRoleAssignment`
|
|
42
|
+
- added type `BusinessUnitChangeAssociateModeAction`
|
|
43
|
+
- added type `AssociateMissingPermissionError`
|
|
44
|
+
- added type `GraphQLAssociateMissingPermissionError`
|
|
45
|
+
- added type `AssociateRoleBuyerAssignableChangedMessage`
|
|
46
|
+
- added type `AssociateRoleCreatedMessage`
|
|
47
|
+
- added type `AssociateRoleDeletedMessage`
|
|
48
|
+
- added type `AssociateRoleNameChangedMessage`
|
|
49
|
+
- added type `AssociateRolePermissionAddedMessage`
|
|
50
|
+
- added type `AssociateRolePermissionRemovedMessage`
|
|
51
|
+
- added type `AssociateRolePermissionsSetMessage`
|
|
52
|
+
- added type `BusinessUnitAssociateModeChangedMessage`
|
|
53
|
+
- added type `AssociateRoleBuyerAssignableChangedMessagePayload`
|
|
54
|
+
- added type `AssociateRoleCreatedMessagePayload`
|
|
55
|
+
- added type `AssociateRoleDeletedMessagePayload`
|
|
56
|
+
- added type `AssociateRoleNameChangedMessagePayload`
|
|
57
|
+
- added type `AssociateRolePermissionAddedMessagePayload`
|
|
58
|
+
- added type `AssociateRolePermissionRemovedMessagePayload`
|
|
59
|
+
- added type `AssociateRolePermissionsSetMessagePayload`
|
|
60
|
+
- added type `BusinessUnitAssociateModeChangedMessagePayload`
|
|
61
|
+
- added type `ProjectSetBusinessUnitAssociateRoleOnCreationAction`
|
|
62
|
+
</details>
|
|
63
|
+
|
|
64
|
+
<details>
|
|
65
|
+
<summary>Added Enum(s)</summary>
|
|
66
|
+
|
|
67
|
+
- added enum `associate-role` to type `ReferenceTypeId`
|
|
68
|
+
- added enum `associate-role` to type `MessageSubscriptionResourceTypeId`
|
|
69
|
+
- added enum `associate-role` to type `ResourceTypeId`
|
|
70
|
+
</details>
|
|
71
|
+
|
|
72
|
+
<details>
|
|
73
|
+
<summary>Added Property(s)</summary>
|
|
74
|
+
|
|
75
|
+
- added property `associateRoleAssignments` to type `Associate`
|
|
76
|
+
- added property `associateRoleAssignments` to type `AssociateDraft`
|
|
77
|
+
- added property `associateMode` to type `BusinessUnit`
|
|
78
|
+
- added property `inheritedAssociates` to type `BusinessUnit`
|
|
79
|
+
- added property `associateMode` to type `BusinessUnitDraft`
|
|
80
|
+
- added property `associateMode` to type `Company`
|
|
81
|
+
- added property `inheritedAssociates` to type `Company`
|
|
82
|
+
- added property `associateMode` to type `CompanyDraft`
|
|
83
|
+
- added property `associateMode` to type `Division`
|
|
84
|
+
- added property `inheritedAssociates` to type `Division`
|
|
85
|
+
- added property `associateMode` to type `DivisionDraft`
|
|
86
|
+
- added property `myBusinessUnitAssociateRoleOnCreation` to type `BusinessUnitConfiguration`
|
|
87
|
+
</details>
|
|
88
|
+
|
|
89
|
+
<details>
|
|
90
|
+
<summary>Changed Property(s)</summary>
|
|
91
|
+
|
|
92
|
+
- :warning: changed property `roles` of type `Associate` from type `AssociateRole[]` to `AssociateRoleDeprecated[]`
|
|
93
|
+
- :warning: changed property `roles` of type `AssociateDraft` from type `AssociateRole[]` to `AssociateRoleDeprecated[]`
|
|
94
|
+
</details>
|
|
95
|
+
|
|
96
|
+
<details>
|
|
97
|
+
<summary>MarkDeprecated Property(s)</summary>
|
|
98
|
+
|
|
99
|
+
- marked property `Associate::roles` as deprecated
|
|
100
|
+
- marked property `AssociateDraft::roles` as deprecated
|
|
101
|
+
</details>
|
|
102
|
+
|
|
103
|
+
<details>
|
|
104
|
+
<summary>Added Resource(s)</summary>
|
|
105
|
+
|
|
106
|
+
- added resource `/{projectKey}/as-associate`
|
|
107
|
+
- added resource `/{projectKey}/associate-roles`
|
|
108
|
+
- added resource `/{projectKey}/as-associate/{associateId}`
|
|
109
|
+
- added resource `/{projectKey}/as-associate/{associateId}/business-units`
|
|
110
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}`
|
|
111
|
+
- added resource `/{projectKey}/as-associate/{associateId}/business-units/key={key}`
|
|
112
|
+
- added resource `/{projectKey}/as-associate/{associateId}/business-units/{ID}`
|
|
113
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/carts`
|
|
114
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/orders`
|
|
115
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/quotes`
|
|
116
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/quote-requests`
|
|
117
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/carts/key={key}`
|
|
118
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/carts/{ID}`
|
|
119
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/orders/quotes`
|
|
120
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/orders/order-number={orderNumber}`
|
|
121
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/orders/{ID}`
|
|
122
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/quotes/key={key}`
|
|
123
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/quotes/{ID}`
|
|
124
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/quote-requests/key={key}`
|
|
125
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/quote-requests/{ID}`
|
|
126
|
+
- added resource `/{projectKey}/associate-roles/key={key}`
|
|
127
|
+
- added resource `/{projectKey}/associate-roles/{ID}`
|
|
128
|
+
</details>
|
|
129
|
+
|
|
130
|
+
<details>
|
|
131
|
+
<summary>Added Method(s)</summary>
|
|
132
|
+
|
|
133
|
+
- added method `apiRoot.withProjectKey().associateRoles().get()`
|
|
134
|
+
- added method `apiRoot.withProjectKey().associateRoles().post()`
|
|
135
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().get()`
|
|
136
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().post()`
|
|
137
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withKey().get()`
|
|
138
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withKey().post()`
|
|
139
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withId().get()`
|
|
140
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withId().post()`
|
|
141
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().get()`
|
|
142
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().post()`
|
|
143
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().get()`
|
|
144
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().post()`
|
|
145
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().get()`
|
|
146
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().get()`
|
|
147
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().post()`
|
|
148
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withKey().get()`
|
|
149
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withKey().post()`
|
|
150
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withKey().delete()`
|
|
151
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withId().get()`
|
|
152
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withId().post()`
|
|
153
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withId().delete()`
|
|
154
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().orderQuote().post()`
|
|
155
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withOrderNumber().get()`
|
|
156
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withOrderNumber().post()`
|
|
157
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withId().get()`
|
|
158
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withId().post()`
|
|
159
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withKey().get()`
|
|
160
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withKey().post()`
|
|
161
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withId().get()`
|
|
162
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withId().post()`
|
|
163
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withKey().get()`
|
|
164
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withKey().post()`
|
|
165
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withId().get()`
|
|
166
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withId().post()`
|
|
167
|
+
- added method `apiRoot.withProjectKey().associateRoles().withKey().get()`
|
|
168
|
+
- added method `apiRoot.withProjectKey().associateRoles().withKey().post()`
|
|
169
|
+
- added method `apiRoot.withProjectKey().associateRoles().withKey().delete()`
|
|
170
|
+
- added method `apiRoot.withProjectKey().associateRoles().withId().get()`
|
|
171
|
+
- added method `apiRoot.withProjectKey().associateRoles().withId().post()`
|
|
172
|
+
- added method `apiRoot.withProjectKey().associateRoles().withId().delete()`
|
|
173
|
+
</details>
|
|
174
|
+
|
|
175
|
+
**Import changes**
|
|
176
|
+
|
|
177
|
+
<details>
|
|
178
|
+
<summary>Added Enum(s)</summary>
|
|
179
|
+
|
|
180
|
+
- added enum `type` to type `ImportResourceType`
|
|
181
|
+
</details>
|
|
182
|
+
|
|
183
|
+
<details>
|
|
184
|
+
<summary>Added Resource(s)</summary>
|
|
185
|
+
|
|
186
|
+
- added resource `/{projectKey}/types`
|
|
187
|
+
- added resource `/{projectKey}/types/import-containers`
|
|
188
|
+
- added resource `/{projectKey}/types/import-containers/{importContainerKey}`
|
|
189
|
+
</details>
|
|
190
|
+
|
|
191
|
+
<details>
|
|
192
|
+
<summary>Added Method(s)</summary>
|
|
193
|
+
|
|
194
|
+
- added method `apiRoot.withProjectKeyValue().types().importContainers().withImportContainerKeyValue().post()`
|
|
195
|
+
</details>
|
|
196
|
+
|
|
197
|
+
<details>
|
|
198
|
+
<summary>Added Type(s)</summary>
|
|
199
|
+
|
|
200
|
+
- added type `TypeImportRequest`
|
|
201
|
+
- added type `TypeTextInputHint`
|
|
202
|
+
- added type `ResourceTypeId`
|
|
203
|
+
- added type `FieldType`
|
|
204
|
+
- added type `CustomFieldBooleanType`
|
|
205
|
+
- added type `CustomFieldDateTimeType`
|
|
206
|
+
- added type `CustomFieldDateType`
|
|
207
|
+
- added type `CustomFieldEnumType`
|
|
208
|
+
- added type `CustomFieldEnumValue`
|
|
209
|
+
- added type `CustomFieldLocalizedEnumType`
|
|
210
|
+
- added type `CustomFieldLocalizedEnumValue`
|
|
211
|
+
- added type `CustomFieldLocalizedStringType`
|
|
212
|
+
- added type `CustomFieldMoneyType`
|
|
213
|
+
- added type `CustomFieldNumberType`
|
|
214
|
+
- added type `CustomFieldReferenceType`
|
|
215
|
+
- added type `CustomFieldReferenceValue`
|
|
216
|
+
- added type `CustomFieldSetType`
|
|
217
|
+
- added type `CustomFieldStringType`
|
|
218
|
+
- added type `CustomFieldTimeType`
|
|
219
|
+
- added type `FieldDefinition`
|
|
220
|
+
- added type `TypeImport`
|
|
221
|
+
</details>
|
|
222
|
+
|
|
223
|
+
**History changes**
|
|
224
|
+
|
|
225
|
+
<details>
|
|
226
|
+
<summary>Added QueryParameter(s)</summary>
|
|
227
|
+
|
|
228
|
+
- added query parameter `resourceTypes` to method `get /{projectKey}`
|
|
229
|
+
</details>
|
|
230
|
+
|
|
231
|
+
<details>
|
|
232
|
+
<summary>Removed QueryParameter(s)</summary>
|
|
233
|
+
|
|
234
|
+
- :warning: removed query parameter `resourceType` from method `get /{projectKey}`
|
|
235
|
+
</details>
|
|
236
|
+
|
|
237
|
+
<details>
|
|
238
|
+
<summary>Added Type(s)</summary>
|
|
239
|
+
|
|
240
|
+
- added type `SetCountriesChange`
|
|
241
|
+
- added type `SetPurchaseOrderNumberChange`
|
|
242
|
+
- added type `StoreCountry`
|
|
243
|
+
</details>
|
|
244
|
+
|
|
245
|
+
## 3.2.1
|
|
246
|
+
|
|
247
|
+
### Patch Changes
|
|
248
|
+
|
|
249
|
+
- [#453](https://github.com/commercetools/commercetools-sdk-typescript/pull/453) [`a83e653`](https://github.com/commercetools/commercetools-sdk-typescript/commit/a83e653c986e50f31f71546edc721263d29990b5) Thanks [@ajimae](https://github.com/ajimae)! - - Remove all `querystring` dependency
|
|
250
|
+
- Add qs dependency to requiring package
|
|
251
|
+
- Refactor code to accommodate new implementation
|
|
252
|
+
- Updated dependencies [[`a83e653`](https://github.com/commercetools/commercetools-sdk-typescript/commit/a83e653c986e50f31f71546edc721263d29990b5)]:
|
|
253
|
+
- @commercetools/sdk-client-v2@2.1.6
|
|
254
|
+
|
|
3
255
|
## 3.2.0
|
|
4
256
|
|
|
5
257
|
### Minor Changes
|
|
@@ -2,9 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
function _toPrimitive(input, hint) {
|
|
6
|
+
if (typeof input !== "object" || input === null) return input;
|
|
7
|
+
var prim = input[Symbol.toPrimitive];
|
|
8
|
+
if (prim !== undefined) {
|
|
9
|
+
var res = prim.call(input, hint || "default");
|
|
10
|
+
if (typeof res !== "object") return res;
|
|
11
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
12
|
+
}
|
|
13
|
+
return (hint === "string" ? String : Number)(input);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function _toPropertyKey(arg) {
|
|
17
|
+
var key = _toPrimitive(arg, "string");
|
|
18
|
+
return typeof key === "symbol" ? key : String(key);
|
|
19
|
+
}
|
|
6
20
|
|
|
7
21
|
function _defineProperty(obj, key, value) {
|
|
22
|
+
key = _toPropertyKey(key);
|
|
8
23
|
if (key in obj) {
|
|
9
24
|
Object.defineProperty(obj, key, {
|
|
10
25
|
value: value,
|
|
@@ -23,9 +38,20 @@ function _defineProperty(obj, key, value) {
|
|
|
23
38
|
* Please don't change this file manually but run `rmf-codegen generate <raml_file_path> -o <output_path> -t typescript_client` to update it.
|
|
24
39
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
25
40
|
*/
|
|
41
|
+
|
|
26
42
|
function isDefined(value) {
|
|
27
43
|
return typeof value !== 'undefined' && value !== null;
|
|
28
44
|
}
|
|
45
|
+
function stringify(object) {
|
|
46
|
+
const params = new URLSearchParams(object);
|
|
47
|
+
for (const [key, value] of Object.entries(object)) {
|
|
48
|
+
if (Array.isArray(value)) {
|
|
49
|
+
params.delete(key);
|
|
50
|
+
value.filter(Boolean).forEach(v => params.append(key, v));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return params.toString();
|
|
54
|
+
}
|
|
29
55
|
function cleanObject(obj) {
|
|
30
56
|
return Object.keys(obj).reduce((result, key) => {
|
|
31
57
|
const value = obj[key];
|
|
@@ -50,7 +76,7 @@ function cleanObject(obj) {
|
|
|
50
76
|
}
|
|
51
77
|
function formatQueryString(variableMap) {
|
|
52
78
|
const map = cleanObject(variableMap);
|
|
53
|
-
const result =
|
|
79
|
+
const result = stringify(map);
|
|
54
80
|
if (result === '') {
|
|
55
81
|
return '';
|
|
56
82
|
}
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
function _toPrimitive(input, hint) {
|
|
2
|
+
if (typeof input !== "object" || input === null) return input;
|
|
3
|
+
var prim = input[Symbol.toPrimitive];
|
|
4
|
+
if (prim !== undefined) {
|
|
5
|
+
var res = prim.call(input, hint || "default");
|
|
6
|
+
if (typeof res !== "object") return res;
|
|
7
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8
|
+
}
|
|
9
|
+
return (hint === "string" ? String : Number)(input);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function _toPropertyKey(arg) {
|
|
13
|
+
var key = _toPrimitive(arg, "string");
|
|
14
|
+
return typeof key === "symbol" ? key : String(key);
|
|
15
|
+
}
|
|
2
16
|
|
|
3
17
|
function _defineProperty(obj, key, value) {
|
|
18
|
+
key = _toPropertyKey(key);
|
|
4
19
|
if (key in obj) {
|
|
5
20
|
Object.defineProperty(obj, key, {
|
|
6
21
|
value: value,
|
|
@@ -19,9 +34,20 @@ function _defineProperty(obj, key, value) {
|
|
|
19
34
|
* Please don't change this file manually but run `rmf-codegen generate <raml_file_path> -o <output_path> -t typescript_client` to update it.
|
|
20
35
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
21
36
|
*/
|
|
37
|
+
|
|
22
38
|
function isDefined(value) {
|
|
23
39
|
return typeof value !== 'undefined' && value !== null;
|
|
24
40
|
}
|
|
41
|
+
function stringify(object) {
|
|
42
|
+
const params = new URLSearchParams(object);
|
|
43
|
+
for (const [key, value] of Object.entries(object)) {
|
|
44
|
+
if (Array.isArray(value)) {
|
|
45
|
+
params.delete(key);
|
|
46
|
+
value.filter(Boolean).forEach(v => params.append(key, v));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return params.toString();
|
|
50
|
+
}
|
|
25
51
|
function cleanObject(obj) {
|
|
26
52
|
return Object.keys(obj).reduce((result, key) => {
|
|
27
53
|
const value = obj[key];
|
|
@@ -2,9 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
function _toPrimitive(input, hint) {
|
|
6
|
+
if (typeof input !== "object" || input === null) return input;
|
|
7
|
+
var prim = input[Symbol.toPrimitive];
|
|
8
|
+
if (prim !== undefined) {
|
|
9
|
+
var res = prim.call(input, hint || "default");
|
|
10
|
+
if (typeof res !== "object") return res;
|
|
11
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
12
|
+
}
|
|
13
|
+
return (hint === "string" ? String : Number)(input);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function _toPropertyKey(arg) {
|
|
17
|
+
var key = _toPrimitive(arg, "string");
|
|
18
|
+
return typeof key === "symbol" ? key : String(key);
|
|
19
|
+
}
|
|
6
20
|
|
|
7
21
|
function _defineProperty(obj, key, value) {
|
|
22
|
+
key = _toPropertyKey(key);
|
|
8
23
|
if (key in obj) {
|
|
9
24
|
Object.defineProperty(obj, key, {
|
|
10
25
|
value: value,
|
|
@@ -23,9 +38,20 @@ function _defineProperty(obj, key, value) {
|
|
|
23
38
|
* Please don't change this file manually but run `rmf-codegen generate <raml_file_path> -o <output_path> -t typescript_client` to update it.
|
|
24
39
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
25
40
|
*/
|
|
41
|
+
|
|
26
42
|
function isDefined(value) {
|
|
27
43
|
return typeof value !== 'undefined' && value !== null;
|
|
28
44
|
}
|
|
45
|
+
function stringify(object) {
|
|
46
|
+
const params = new URLSearchParams(object);
|
|
47
|
+
for (const [key, value] of Object.entries(object)) {
|
|
48
|
+
if (Array.isArray(value)) {
|
|
49
|
+
params.delete(key);
|
|
50
|
+
value.filter(Boolean).forEach(v => params.append(key, v));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return params.toString();
|
|
54
|
+
}
|
|
29
55
|
function cleanObject(obj) {
|
|
30
56
|
return Object.keys(obj).reduce((result, key) => {
|
|
31
57
|
const value = obj[key];
|
|
@@ -50,7 +76,7 @@ function cleanObject(obj) {
|
|
|
50
76
|
}
|
|
51
77
|
function formatQueryString(variableMap) {
|
|
52
78
|
const map = cleanObject(variableMap);
|
|
53
|
-
const result =
|
|
79
|
+
const result = stringify(map);
|
|
54
80
|
if (result === '') {
|
|
55
81
|
return '';
|
|
56
82
|
}
|
|
@@ -2,9 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
function _toPrimitive(input, hint) {
|
|
6
|
+
if (typeof input !== "object" || input === null) return input;
|
|
7
|
+
var prim = input[Symbol.toPrimitive];
|
|
8
|
+
if (prim !== undefined) {
|
|
9
|
+
var res = prim.call(input, hint || "default");
|
|
10
|
+
if (typeof res !== "object") return res;
|
|
11
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
12
|
+
}
|
|
13
|
+
return (hint === "string" ? String : Number)(input);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function _toPropertyKey(arg) {
|
|
17
|
+
var key = _toPrimitive(arg, "string");
|
|
18
|
+
return typeof key === "symbol" ? key : String(key);
|
|
19
|
+
}
|
|
6
20
|
|
|
7
21
|
function _defineProperty(obj, key, value) {
|
|
22
|
+
key = _toPropertyKey(key);
|
|
8
23
|
if (key in obj) {
|
|
9
24
|
Object.defineProperty(obj, key, {
|
|
10
25
|
value: value,
|
|
@@ -23,9 +38,20 @@ function _defineProperty(obj, key, value) {
|
|
|
23
38
|
* Please don't change this file manually but run `rmf-codegen generate <raml_file_path> -o <output_path> -t typescript_client` to update it.
|
|
24
39
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
25
40
|
*/
|
|
41
|
+
|
|
26
42
|
function isDefined(value) {
|
|
27
43
|
return typeof value !== 'undefined' && value !== null;
|
|
28
44
|
}
|
|
45
|
+
function stringify(object) {
|
|
46
|
+
const params = new URLSearchParams(object);
|
|
47
|
+
for (const [key, value] of Object.entries(object)) {
|
|
48
|
+
if (Array.isArray(value)) {
|
|
49
|
+
params.delete(key);
|
|
50
|
+
value.filter(Boolean).forEach(v => params.append(key, v));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return params.toString();
|
|
54
|
+
}
|
|
29
55
|
function cleanObject(obj) {
|
|
30
56
|
return Object.keys(obj).reduce((result, key) => {
|
|
31
57
|
const value = obj[key];
|
|
@@ -50,7 +76,7 @@ function cleanObject(obj) {
|
|
|
50
76
|
}
|
|
51
77
|
function formatQueryString(variableMap) {
|
|
52
78
|
const map = cleanObject(variableMap);
|
|
53
|
-
const result =
|
|
79
|
+
const result = stringify(map);
|
|
54
80
|
if (result === '') {
|
|
55
81
|
return '';
|
|
56
82
|
}
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
function _toPrimitive(input, hint) {
|
|
2
|
+
if (typeof input !== "object" || input === null) return input;
|
|
3
|
+
var prim = input[Symbol.toPrimitive];
|
|
4
|
+
if (prim !== undefined) {
|
|
5
|
+
var res = prim.call(input, hint || "default");
|
|
6
|
+
if (typeof res !== "object") return res;
|
|
7
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8
|
+
}
|
|
9
|
+
return (hint === "string" ? String : Number)(input);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function _toPropertyKey(arg) {
|
|
13
|
+
var key = _toPrimitive(arg, "string");
|
|
14
|
+
return typeof key === "symbol" ? key : String(key);
|
|
15
|
+
}
|
|
2
16
|
|
|
3
17
|
function _defineProperty(obj, key, value) {
|
|
18
|
+
key = _toPropertyKey(key);
|
|
4
19
|
if (key in obj) {
|
|
5
20
|
Object.defineProperty(obj, key, {
|
|
6
21
|
value: value,
|
|
@@ -19,9 +34,20 @@ function _defineProperty(obj, key, value) {
|
|
|
19
34
|
* Please don't change this file manually but run `rmf-codegen generate <raml_file_path> -o <output_path> -t typescript_client` to update it.
|
|
20
35
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
21
36
|
*/
|
|
37
|
+
|
|
22
38
|
function isDefined(value) {
|
|
23
39
|
return typeof value !== 'undefined' && value !== null;
|
|
24
40
|
}
|
|
41
|
+
function stringify(object) {
|
|
42
|
+
const params = new URLSearchParams(object);
|
|
43
|
+
for (const [key, value] of Object.entries(object)) {
|
|
44
|
+
if (Array.isArray(value)) {
|
|
45
|
+
params.delete(key);
|
|
46
|
+
value.filter(Boolean).forEach(v => params.append(key, v));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return params.toString();
|
|
50
|
+
}
|
|
25
51
|
function cleanObject(obj) {
|
|
26
52
|
return Object.keys(obj).reduce((result, key) => {
|
|
27
53
|
const value = obj[key];
|
|
@@ -29,7 +29,7 @@ export declare class ByProjectKeyRequestBuilder {
|
|
|
29
29
|
}): ByProjectKeyByResourceTypeRequestBuilder;
|
|
30
30
|
get(methodArgs?: {
|
|
31
31
|
queryArgs?: {
|
|
32
|
-
|
|
32
|
+
resourceTypes?: ChangeHistoryResourceType | ChangeHistoryResourceType[];
|
|
33
33
|
'date.from'?: any;
|
|
34
34
|
'date.to'?: any;
|
|
35
35
|
limit?: number;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
6
|
import { AssetChangeValue, AttributeValue, ChangeTargetChangeValue, ChangeValueChangeValue, CustomFieldExpandedValue, CustomShippingMethodChangeValue, DeliveryChangeValue, EnumValue, FieldDefinitionOrderValue, InventoryQuantityValue, LocalizedEnumValue, ParcelChangeValue, SetCartClassificationShippingRateInputValue, SetCartScoreShippingRateInputValue, ShippingMethodChangeValue, ShippingMethodTaxAmountChangeValue, ShoppingListLineItemValue, TextLineItemValue, TransactionChangeValue, ValidFromAndUntilValue } from './change-value';
|
|
7
|
-
import { Address, Asset, AssetSource, AttributeConstraintEnum, AttributeDefinition, AuthenticationMode, CategoryOrderHints, ChannelRole, CustomFields, CustomLineItem, Delivery, DeliveryItem, DiscountCodeInfo, DiscountedLineItemPrice, DiscountedLineItemPriceForQuantity, FieldDefinition, GeoLocation, Image, ItemShippingDetails, ItemState, LineItem, LocalizedString, Location, Money, OrderState, Parcel, ParcelMeasurements, PaymentInfo, PaymentState, Price, ProductSelectionSetting, ProductVariantAvailability, QuoteRequestState, QuoteState, Reference, Reservation, ReturnInfo, ReturnPaymentState, ReturnShipmentState, ReviewRatingStatistics, RoundingMode, SearchKeywords, ShipmentState, StackingMode, StagedQuoteState, StateRole, StateType, SyncInfo, TaxCalculationMode, TaxedItemPrice, TaxedPrice, TaxMode, TaxRate, TextInputHint, TextLineItem, TrackingData, Transaction, TransactionState, Variant } from './common';
|
|
8
|
-
export type Change = AddAddressChange | AddAssetChange | AddAttributeDefinitionChange | AddBillingAddressIdChange | AddChannelRolesChange | AddCustomLineItemChange | AddDeliveryChange | AddDiscountCodeChange | AddEnumValueChange | AddExternalImageChange | AddFieldDefinitionChange | AddInterfaceInteractionChange | AddItemShippingAddressesChange | AddLocalizedEnumValueChange | AddLocationChange | AddOrderLineItemChange | AddParcelToDeliveryChange | AddPaymentChange | AddPlainEnumValueChange | AddPriceChange | AddProductChange | AddPropertyChange | AddReturnInfoChange | AddShippingAddressIdChange | AddShoppingListLineItemChange | AddStateRolesChange | AddTaxRateChange | AddTextLineItemChange | AddToCategoryChange | AddTransactionChange | AddVariantChange | ChangeAddressChange | ChangeAmountAuthorizedChange | ChangeAmountPlannedChange | ChangeAssetNameChange | ChangeAssetOrderChange | ChangeAttributeConstraintChange | ChangeAttributeOrderByNameChange | ChangeCartDiscountsChange | ChangeCartPredicateChange | ChangeCustomLineItemQuantityChange | ChangeDescriptionChange | ChangeEmailChange | ChangeEnumValueLabelChange | ChangeEnumValueOrderChange | ChangeFieldDefinitionOrderChange | ChangeGroupsChange | ChangeInitialChange | ChangeInputHintChange | ChangeIsActiveChange | ChangeIsSearchableChange | ChangeKeyChange | ChangeLabelChange | ChangeLineItemQuantityChange | ChangeLocalizedDescriptionChange | ChangeLocalizedEnumValueLabelChange | ChangeLocalizedEnumValueOrderChange | ChangeLocalizedNameChange | ChangeMasterVariantChange | ChangeNameChange | ChangeOrderHintChange | ChangeOrderStateChange | ChangeParentChange | ChangePaymentStateChange | ChangePlainEnumValueLabelChange | ChangePlainEnumValueOrderChange | ChangePredicateChange | ChangePriceChange | ChangeQuantityChange | ChangeQuoteRequestStateChange | ChangeQuoteStateChange | ChangeRequiresDiscountCodeChange | ChangeReviewRatingStatisticsChange | ChangeShipmentStateChange | ChangeShoppingListLineItemQuantityChange | ChangeShoppingListLineItemsOrderChange | ChangeSlugChange | ChangeSortOrderChange | ChangeStackingModeChange | ChangeStagedQuoteStateChange | ChangeStateTypeChange | ChangeTargetChange | ChangeTaxCalculationModeChange | ChangeTaxModeChange | ChangeTaxRoundingModeChange | ChangeTextLineItemNameChange | ChangeTextLineItemQuantityChange | ChangeTextLineItemsOrderChange | ChangeTransactionInteractionIdChange | ChangeTransactionStateChange | ChangeTransactionTimestampChange | ChangeValueChange | MoveImageToPositionChange | PublishChange | RemoveAddressChange | RemoveAssetChange | RemoveAttributeDefinitionChange | RemoveBillingAddressIdChange | RemoveChannelRolesChange | RemoveCustomLineItemChange | RemoveDeliveryItemsChange | RemoveDiscountCodeChange | RemoveEnumValuesChange | RemoveFieldDefinitionChange | RemoveFromCategoryChange | RemoveImageChange | RemoveItemShippingAddressesChange | RemoveLocalizedEnumValuesChange | RemoveLocationChange | RemoveOrderLineItemChange | RemoveParcelFromDeliveryChange | RemovePaymentChange | RemovePriceChange | RemoveProductChange | RemovePropertyChange | RemoveShippingAddressIdChange | RemoveShoppingListLineItemChange | RemoveStateRolesChange | RemoveTaxRateChange | RemoveTextLineItemChange | RemoveVariantChange | SetAddressChange | SetAnonymousIdChange | SetApplicationVersionChange | SetAssetCustomFieldChange | SetAssetCustomTypeChange | SetAssetDescriptionChange | SetAssetKeyChange | SetAssetSourcesChange | SetAssetTagsChange | SetAttributeChange | SetAuthenticationModeChange | SetAuthorNameChange | SetBillingAddressChange | SetCartPredicateChange | SetCategoryOrderHintChange | SetChannelRolesChange | SetCompanyNameChange | SetCountryChange | SetCustomFieldChange | SetCustomLineItemCustomFieldChange | SetCustomLineItemCustomTypeChange | SetCustomLineItemMoneyChange | SetCustomLineItemShippingDetailsChange | SetCustomLineItemTaxAmountChange | SetCustomLineItemTaxCategoryChange | SetCustomLineItemTaxRateChange | SetCustomLineItemTaxedPriceChange | SetCustomLineItemTotalPriceChange | SetCustomShippingMethodChange | SetCustomTypeChange | SetCustomerChange | SetCustomerEmailChange | SetCustomerGroupChange | SetCustomerIdChange | SetCustomerNumberChange | SetDateOfBirthChange | SetDefaultBillingAddressChange | SetDefaultShippingAddressChange | SetDeleteDaysAfterLastModificationChange | SetDeliveryAddressChange | SetDeliveryItemsChange | SetDescriptionChange | SetDiscountedPriceChange | SetDistributionChannelsChange | SetExpectedDeliveryChange | SetExternalIdChange | SetFirstNameChange | SetGeoLocationChange | SetImageLabelChange | SetInputTipChange | SetInterfaceIdChange | SetIsValidChange | SetKeyChange | SetLanguagesChange | SetLastNameChange | SetLineItemDeactivatedAtChange | SetLineItemDiscountedPriceChange | SetLineItemDiscountedPricePerQuantityChange | SetLineItemDistributionChannelChange | SetLineItemPriceChange | SetLineItemProductKeyChange | SetLineItemProductSlugChange | SetLineItemShippingDetailsChange | SetLineItemTaxAmountChange | SetLineItemTaxRateChange | SetLineItemTaxedPriceChange | SetLineItemTotalPriceChange | SetLocaleChange | SetLocalizedDescriptionChange | SetMaxApplicationsChange | SetMaxApplicationsPerCustomerChange | SetMetaDescriptionChange | SetMetaKeywordsChange | SetMetaTitleChange | SetMethodInfoInterfaceChange | SetMethodInfoMethodChange | SetMethodInfoNameChange | SetMiddleNameChange | SetNameChange | SetOrderLineItemCustomFieldChange | SetOrderLineItemCustomTypeChange | SetOrderNumberChange | SetOrderTaxedPriceChange | SetOrderTotalPriceChange | SetOrderTotalTaxChange | SetParcelItemsChange | SetParcelMeasurementsChange | SetParcelTrackingDataChange | SetPricesChange | SetProductCountChange | SetProductPriceCustomFieldChange | SetProductPriceCustomTypeChange | SetProductSelectionsChange | SetProductVariantKeyChange | SetPropertyChange | SetRatingChange | SetReservationsChange | SetRestockableInDaysChange | SetReturnPaymentStateChange | SetReturnShipmentStateChange | SetSalutationChange | SetSearchKeywordsChange | SetSellerCommentChange | SetShippingAddressChange | SetShippingInfoPriceChange | SetShippingInfoTaxedPriceChange | SetShippingMethodChange | SetShippingMethodTaxAmountChange | SetShippingMethodTaxRateChange | SetShippingRateChange | SetShippingRateInputChange | SetShoppingListLineItemCustomFieldChange | SetShoppingListLineItemCustomTypeChange | SetSkuChange | SetSlugChange | SetStateRolesChange | SetStatusInterfaceCodeChange | SetStatusInterfaceTextChange | SetStoreChange | SetStoresChange | SetSupplyChannelChange | SetSupplyChannelsChange | SetTargetChange | SetTaxCategoryChange | SetTextChange | SetTextLineItemCustomFieldChange | SetTextLineItemCustomTypeChange | SetTextLineItemDescriptionChange | SetTitleChange | SetTransitionsChange | SetValidFromAndUntilChange | SetValidFromChange | SetValidToChange | SetValidUntilChange | SetValueChange | SetVariantAvailabilityChange | SetVatIdChange | TransitionCustomLineItemStateChange | TransitionLineItemStateChange | TransitionStateChange | UnknownChange | UnpublishChange | UpdateSyncInfoChange | VerifyEmailChange;
|
|
7
|
+
import { Address, Asset, AssetSource, AttributeConstraintEnum, AttributeDefinition, AuthenticationMode, CategoryOrderHints, ChannelRole, CustomFields, CustomLineItem, Delivery, DeliveryItem, DiscountCodeInfo, DiscountedLineItemPrice, DiscountedLineItemPriceForQuantity, FieldDefinition, GeoLocation, Image, ItemShippingDetails, ItemState, LineItem, LocalizedString, Location, Money, OrderState, Parcel, ParcelMeasurements, PaymentInfo, PaymentState, Price, ProductSelectionSetting, ProductVariantAvailability, QuoteRequestState, QuoteState, Reference, Reservation, ReturnInfo, ReturnPaymentState, ReturnShipmentState, ReviewRatingStatistics, RoundingMode, SearchKeywords, ShipmentState, StackingMode, StagedQuoteState, StateRole, StateType, StoreCountry, SyncInfo, TaxCalculationMode, TaxedItemPrice, TaxedPrice, TaxMode, TaxRate, TextInputHint, TextLineItem, TrackingData, Transaction, TransactionState, Variant } from './common';
|
|
8
|
+
export type Change = AddAddressChange | AddAssetChange | AddAttributeDefinitionChange | AddBillingAddressIdChange | AddChannelRolesChange | AddCustomLineItemChange | AddDeliveryChange | AddDiscountCodeChange | AddEnumValueChange | AddExternalImageChange | AddFieldDefinitionChange | AddInterfaceInteractionChange | AddItemShippingAddressesChange | AddLocalizedEnumValueChange | AddLocationChange | AddOrderLineItemChange | AddParcelToDeliveryChange | AddPaymentChange | AddPlainEnumValueChange | AddPriceChange | AddProductChange | AddPropertyChange | AddReturnInfoChange | AddShippingAddressIdChange | AddShoppingListLineItemChange | AddStateRolesChange | AddTaxRateChange | AddTextLineItemChange | AddToCategoryChange | AddTransactionChange | AddVariantChange | ChangeAddressChange | ChangeAmountAuthorizedChange | ChangeAmountPlannedChange | ChangeAssetNameChange | ChangeAssetOrderChange | ChangeAttributeConstraintChange | ChangeAttributeOrderByNameChange | ChangeCartDiscountsChange | ChangeCartPredicateChange | ChangeCustomLineItemQuantityChange | ChangeDescriptionChange | ChangeEmailChange | ChangeEnumValueLabelChange | ChangeEnumValueOrderChange | ChangeFieldDefinitionOrderChange | ChangeGroupsChange | ChangeInitialChange | ChangeInputHintChange | ChangeIsActiveChange | ChangeIsSearchableChange | ChangeKeyChange | ChangeLabelChange | ChangeLineItemQuantityChange | ChangeLocalizedDescriptionChange | ChangeLocalizedEnumValueLabelChange | ChangeLocalizedEnumValueOrderChange | ChangeLocalizedNameChange | ChangeMasterVariantChange | ChangeNameChange | ChangeOrderHintChange | ChangeOrderStateChange | ChangeParentChange | ChangePaymentStateChange | ChangePlainEnumValueLabelChange | ChangePlainEnumValueOrderChange | ChangePredicateChange | ChangePriceChange | ChangeQuantityChange | ChangeQuoteRequestStateChange | ChangeQuoteStateChange | ChangeRequiresDiscountCodeChange | ChangeReviewRatingStatisticsChange | ChangeShipmentStateChange | ChangeShoppingListLineItemQuantityChange | ChangeShoppingListLineItemsOrderChange | ChangeSlugChange | ChangeSortOrderChange | ChangeStackingModeChange | ChangeStagedQuoteStateChange | ChangeStateTypeChange | ChangeTargetChange | ChangeTaxCalculationModeChange | ChangeTaxModeChange | ChangeTaxRoundingModeChange | ChangeTextLineItemNameChange | ChangeTextLineItemQuantityChange | ChangeTextLineItemsOrderChange | ChangeTransactionInteractionIdChange | ChangeTransactionStateChange | ChangeTransactionTimestampChange | ChangeValueChange | MoveImageToPositionChange | PublishChange | RemoveAddressChange | RemoveAssetChange | RemoveAttributeDefinitionChange | RemoveBillingAddressIdChange | RemoveChannelRolesChange | RemoveCustomLineItemChange | RemoveDeliveryItemsChange | RemoveDiscountCodeChange | RemoveEnumValuesChange | RemoveFieldDefinitionChange | RemoveFromCategoryChange | RemoveImageChange | RemoveItemShippingAddressesChange | RemoveLocalizedEnumValuesChange | RemoveLocationChange | RemoveOrderLineItemChange | RemoveParcelFromDeliveryChange | RemovePaymentChange | RemovePriceChange | RemoveProductChange | RemovePropertyChange | RemoveShippingAddressIdChange | RemoveShoppingListLineItemChange | RemoveStateRolesChange | RemoveTaxRateChange | RemoveTextLineItemChange | RemoveVariantChange | SetAddressChange | SetAnonymousIdChange | SetApplicationVersionChange | SetAssetCustomFieldChange | SetAssetCustomTypeChange | SetAssetDescriptionChange | SetAssetKeyChange | SetAssetSourcesChange | SetAssetTagsChange | SetAttributeChange | SetAuthenticationModeChange | SetAuthorNameChange | SetBillingAddressChange | SetCartPredicateChange | SetCategoryOrderHintChange | SetChannelRolesChange | SetCompanyNameChange | SetCountriesChange | SetCountryChange | SetCustomFieldChange | SetCustomLineItemCustomFieldChange | SetCustomLineItemCustomTypeChange | SetCustomLineItemMoneyChange | SetCustomLineItemShippingDetailsChange | SetCustomLineItemTaxAmountChange | SetCustomLineItemTaxCategoryChange | SetCustomLineItemTaxRateChange | SetCustomLineItemTaxedPriceChange | SetCustomLineItemTotalPriceChange | SetCustomShippingMethodChange | SetCustomTypeChange | SetCustomerChange | SetCustomerEmailChange | SetCustomerGroupChange | SetCustomerIdChange | SetCustomerNumberChange | SetDateOfBirthChange | SetDefaultBillingAddressChange | SetDefaultShippingAddressChange | SetDeleteDaysAfterLastModificationChange | SetDeliveryAddressChange | SetDeliveryItemsChange | SetDescriptionChange | SetDiscountedPriceChange | SetDistributionChannelsChange | SetExpectedDeliveryChange | SetExternalIdChange | SetFirstNameChange | SetGeoLocationChange | SetImageLabelChange | SetInputTipChange | SetInterfaceIdChange | SetIsValidChange | SetKeyChange | SetLanguagesChange | SetLastNameChange | SetLineItemDeactivatedAtChange | SetLineItemDiscountedPriceChange | SetLineItemDiscountedPricePerQuantityChange | SetLineItemDistributionChannelChange | SetLineItemPriceChange | SetLineItemProductKeyChange | SetLineItemProductSlugChange | SetLineItemShippingDetailsChange | SetLineItemTaxAmountChange | SetLineItemTaxRateChange | SetLineItemTaxedPriceChange | SetLineItemTotalPriceChange | SetLocaleChange | SetLocalizedDescriptionChange | SetMaxApplicationsChange | SetMaxApplicationsPerCustomerChange | SetMetaDescriptionChange | SetMetaKeywordsChange | SetMetaTitleChange | SetMethodInfoInterfaceChange | SetMethodInfoMethodChange | SetMethodInfoNameChange | SetMiddleNameChange | SetNameChange | SetOrderLineItemCustomFieldChange | SetOrderLineItemCustomTypeChange | SetOrderNumberChange | SetOrderTaxedPriceChange | SetOrderTotalPriceChange | SetOrderTotalTaxChange | SetParcelItemsChange | SetParcelMeasurementsChange | SetParcelTrackingDataChange | SetPricesChange | SetProductCountChange | SetProductPriceCustomFieldChange | SetProductPriceCustomTypeChange | SetProductSelectionsChange | SetProductVariantKeyChange | SetPropertyChange | SetPurchaseOrderNumberChange | SetRatingChange | SetReservationsChange | SetRestockableInDaysChange | SetReturnPaymentStateChange | SetReturnShipmentStateChange | SetSalutationChange | SetSearchKeywordsChange | SetSellerCommentChange | SetShippingAddressChange | SetShippingInfoPriceChange | SetShippingInfoTaxedPriceChange | SetShippingMethodChange | SetShippingMethodTaxAmountChange | SetShippingMethodTaxRateChange | SetShippingRateChange | SetShippingRateInputChange | SetShoppingListLineItemCustomFieldChange | SetShoppingListLineItemCustomTypeChange | SetSkuChange | SetSlugChange | SetStateRolesChange | SetStatusInterfaceCodeChange | SetStatusInterfaceTextChange | SetStoreChange | SetStoresChange | SetSupplyChannelChange | SetSupplyChannelsChange | SetTargetChange | SetTaxCategoryChange | SetTextChange | SetTextLineItemCustomFieldChange | SetTextLineItemCustomTypeChange | SetTextLineItemDescriptionChange | SetTitleChange | SetTransitionsChange | SetValidFromAndUntilChange | SetValidFromChange | SetValidToChange | SetValidUntilChange | SetValueChange | SetVariantAvailabilityChange | SetVatIdChange | TransitionCustomLineItemStateChange | TransitionLineItemStateChange | TransitionStateChange | UnknownChange | UnpublishChange | UpdateSyncInfoChange | VerifyEmailChange;
|
|
9
9
|
export interface AddAddressChange {
|
|
10
10
|
readonly type: 'AddAddressChange';
|
|
11
11
|
/**
|
|
@@ -2414,6 +2414,24 @@ export interface SetCountryChange {
|
|
|
2414
2414
|
*/
|
|
2415
2415
|
readonly nextValue: string;
|
|
2416
2416
|
}
|
|
2417
|
+
export interface SetCountriesChange {
|
|
2418
|
+
readonly type: 'SetCountriesChange';
|
|
2419
|
+
/**
|
|
2420
|
+
* Update action for `setCountries`.
|
|
2421
|
+
*
|
|
2422
|
+
*/
|
|
2423
|
+
readonly change: string;
|
|
2424
|
+
/**
|
|
2425
|
+
* Countries defined for the Store prior to the update action.
|
|
2426
|
+
*
|
|
2427
|
+
*/
|
|
2428
|
+
readonly previousValue: StoreCountry[];
|
|
2429
|
+
/**
|
|
2430
|
+
* Countries defined for the Store after the update action.
|
|
2431
|
+
*
|
|
2432
|
+
*/
|
|
2433
|
+
readonly nextValue: StoreCountry[];
|
|
2434
|
+
}
|
|
2417
2435
|
export interface SetCustomFieldChange {
|
|
2418
2436
|
readonly type: 'SetCustomFieldChange';
|
|
2419
2437
|
/**
|
|
@@ -3798,6 +3816,24 @@ export interface SetParcelTrackingDataChange {
|
|
|
3798
3816
|
*/
|
|
3799
3817
|
readonly previousValue: TrackingData;
|
|
3800
3818
|
}
|
|
3819
|
+
export interface SetPurchaseOrderNumberChange {
|
|
3820
|
+
readonly type: 'SetPurchaseOrderNumberChange';
|
|
3821
|
+
/**
|
|
3822
|
+
* Update action for `setPurchaseOrderNumber`.
|
|
3823
|
+
*
|
|
3824
|
+
*/
|
|
3825
|
+
readonly change: string;
|
|
3826
|
+
/**
|
|
3827
|
+
* Purchase Order number prior to the update action.
|
|
3828
|
+
*
|
|
3829
|
+
*/
|
|
3830
|
+
readonly previousValue: string;
|
|
3831
|
+
/**
|
|
3832
|
+
* Purchase Order number after the update action.
|
|
3833
|
+
*
|
|
3834
|
+
*/
|
|
3835
|
+
readonly nextValue: string;
|
|
3836
|
+
}
|
|
3801
3837
|
export interface SetPricesChange {
|
|
3802
3838
|
readonly type: 'SetPricesChange';
|
|
3803
3839
|
/**
|
|
@@ -770,6 +770,14 @@ export type StackingMode = 'Stacking' | 'StopAfterThisDiscount' | string;
|
|
|
770
770
|
export type StagedQuoteState = 'Closed' | 'InProgress' | 'Sent' | string;
|
|
771
771
|
export type StateRole = 'Return' | 'ReviewIncludedInStatistics' | string;
|
|
772
772
|
export type StateType = 'LineItemState' | 'OrderState' | 'PaymentState' | 'ProductState' | 'ReviewState' | string;
|
|
773
|
+
export interface StoreCountry {
|
|
774
|
+
/**
|
|
775
|
+
* Two-digit country code as per [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
|
|
776
|
+
*
|
|
777
|
+
*
|
|
778
|
+
*/
|
|
779
|
+
readonly code: string;
|
|
780
|
+
}
|
|
773
781
|
export interface SubRate {
|
|
774
782
|
/**
|
|
775
783
|
*
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"name": "@commercetools/history-sdk",
|
|
7
|
-
"version": "3.
|
|
7
|
+
"version": "3.3.0",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": ">=14"
|
|
10
10
|
},
|
|
@@ -32,17 +32,16 @@
|
|
|
32
32
|
"./dist/commercetools-history-sdk.esm.js": "./dist/commercetools-history-sdk.browser.esm.js"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@commercetools/sdk-client-v2": "^2.1.
|
|
35
|
+
"@commercetools/sdk-client-v2": "^2.1.6",
|
|
36
36
|
"@commercetools/sdk-middleware-auth": "^7.0.0",
|
|
37
37
|
"@commercetools/sdk-middleware-http": "^7.0.0",
|
|
38
|
-
"@commercetools/sdk-middleware-logger": "^3.0.0"
|
|
39
|
-
"querystring": "^0.2.1"
|
|
38
|
+
"@commercetools/sdk-middleware-logger": "^3.0.0"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
|
-
"@commercetools/platform-sdk": "4.
|
|
43
|
-
"@types/uuid": "9.0.
|
|
41
|
+
"@commercetools/platform-sdk": "4.8.0",
|
|
42
|
+
"@types/uuid": "9.0.1",
|
|
44
43
|
"organize-imports-cli": "0.10.0",
|
|
45
|
-
"tsconfig-replace-paths": "0.0.
|
|
44
|
+
"tsconfig-replace-paths": "0.0.13",
|
|
46
45
|
"uuid": "9.0.0"
|
|
47
46
|
},
|
|
48
47
|
"scripts": {
|