@commercetools/importapi-sdk 4.4.1 → 4.6.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 +248 -0
- package/dist/commercetools-importapi-sdk.browser.cjs.js +98 -3
- package/dist/commercetools-importapi-sdk.browser.esm.js +98 -3
- package/dist/commercetools-importapi-sdk.cjs.dev.js +98 -3
- package/dist/commercetools-importapi-sdk.cjs.prod.js +98 -3
- package/dist/commercetools-importapi-sdk.esm.js +98 -3
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +2 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-types-import-containers-by-import-container-key-request-builder.d.ts +37 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-types-import-containers-request-builder.d.ts +28 -0
- package/dist/declarations/src/generated/client/types/by-project-key-types-request-builder.d.ts +26 -0
- package/dist/declarations/src/generated/index.d.ts +1 -0
- package/dist/declarations/src/generated/models/common.d.ts +4 -3
- package/dist/declarations/src/generated/models/customers.d.ts +1 -1
- package/dist/declarations/src/generated/models/importrequests.d.ts +15 -1
- package/dist/declarations/src/generated/models/types.d.ts +212 -0
- package/dist/declarations/src/generated/shared/utils/uri-utils.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,253 @@
|
|
|
1
1
|
# @commercetools/importapi-sdk
|
|
2
2
|
|
|
3
|
+
## 4.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#478](https://github.com/commercetools/commercetools-sdk-typescript/pull/478) [`98c6bac`](https://github.com/commercetools/commercetools-sdk-typescript/commit/98c6bace1608889c16373e1a83451cf5d7a7d140) Thanks [@ajimae](https://github.com/ajimae)! - remove all remaining `querystring` package instances.
|
|
8
|
+
|
|
9
|
+
## 4.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#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
|
|
14
|
+
|
|
15
|
+
**Api changes**
|
|
16
|
+
|
|
17
|
+
<details>
|
|
18
|
+
<summary>Changed Type(s)</summary>
|
|
19
|
+
|
|
20
|
+
- :warning: changed type `AssociateRole` from type `string` to `BaseResource`
|
|
21
|
+
</details>
|
|
22
|
+
|
|
23
|
+
<details>
|
|
24
|
+
<summary>Added Type(s)</summary>
|
|
25
|
+
|
|
26
|
+
- added type `AssociateRoleDraft`
|
|
27
|
+
- added type `AssociateRoleKeyReference`
|
|
28
|
+
- added type `AssociateRolePagedQueryResponse`
|
|
29
|
+
- added type `AssociateRoleReference`
|
|
30
|
+
- added type `AssociateRoleResourceIdentifier`
|
|
31
|
+
- added type `AssociateRoleUpdate`
|
|
32
|
+
- added type `AssociateRoleUpdateAction`
|
|
33
|
+
- added type `Permission`
|
|
34
|
+
- added type `AssociateRoleAddPermissionAction`
|
|
35
|
+
- added type `AssociateRoleChangeBuyerAssignableAction`
|
|
36
|
+
- added type `AssociateRoleRemovePermissionAction`
|
|
37
|
+
- added type `AssociateRoleSetCustomFieldAction`
|
|
38
|
+
- added type `AssociateRoleSetCustomTypeAction`
|
|
39
|
+
- added type `AssociateRoleSetNameAction`
|
|
40
|
+
- added type `AssociateRoleSetPermissionsAction`
|
|
41
|
+
- added type `AssociateRoleAssignment`
|
|
42
|
+
- added type `AssociateRoleAssignmentDraft`
|
|
43
|
+
- added type `AssociateRoleDeprecated`
|
|
44
|
+
- added type `AssociateRoleInheritanceMode`
|
|
45
|
+
- added type `BusinessUnitAssociateMode`
|
|
46
|
+
- added type `InheritedAssociate`
|
|
47
|
+
- added type `InheritedAssociateRoleAssignment`
|
|
48
|
+
- added type `BusinessUnitChangeAssociateModeAction`
|
|
49
|
+
- added type `AssociateMissingPermissionError`
|
|
50
|
+
- added type `GraphQLAssociateMissingPermissionError`
|
|
51
|
+
- added type `AssociateRoleBuyerAssignableChangedMessage`
|
|
52
|
+
- added type `AssociateRoleCreatedMessage`
|
|
53
|
+
- added type `AssociateRoleDeletedMessage`
|
|
54
|
+
- added type `AssociateRoleNameChangedMessage`
|
|
55
|
+
- added type `AssociateRolePermissionAddedMessage`
|
|
56
|
+
- added type `AssociateRolePermissionRemovedMessage`
|
|
57
|
+
- added type `AssociateRolePermissionsSetMessage`
|
|
58
|
+
- added type `BusinessUnitAssociateModeChangedMessage`
|
|
59
|
+
- added type `AssociateRoleBuyerAssignableChangedMessagePayload`
|
|
60
|
+
- added type `AssociateRoleCreatedMessagePayload`
|
|
61
|
+
- added type `AssociateRoleDeletedMessagePayload`
|
|
62
|
+
- added type `AssociateRoleNameChangedMessagePayload`
|
|
63
|
+
- added type `AssociateRolePermissionAddedMessagePayload`
|
|
64
|
+
- added type `AssociateRolePermissionRemovedMessagePayload`
|
|
65
|
+
- added type `AssociateRolePermissionsSetMessagePayload`
|
|
66
|
+
- added type `BusinessUnitAssociateModeChangedMessagePayload`
|
|
67
|
+
- added type `ProjectSetBusinessUnitAssociateRoleOnCreationAction`
|
|
68
|
+
</details>
|
|
69
|
+
|
|
70
|
+
<details>
|
|
71
|
+
<summary>Added Enum(s)</summary>
|
|
72
|
+
|
|
73
|
+
- added enum `associate-role` to type `ReferenceTypeId`
|
|
74
|
+
- added enum `associate-role` to type `MessageSubscriptionResourceTypeId`
|
|
75
|
+
- added enum `associate-role` to type `ResourceTypeId`
|
|
76
|
+
</details>
|
|
77
|
+
|
|
78
|
+
<details>
|
|
79
|
+
<summary>Added Property(s)</summary>
|
|
80
|
+
|
|
81
|
+
- added property `associateRoleAssignments` to type `Associate`
|
|
82
|
+
- added property `associateRoleAssignments` to type `AssociateDraft`
|
|
83
|
+
- added property `associateMode` to type `BusinessUnit`
|
|
84
|
+
- added property `inheritedAssociates` to type `BusinessUnit`
|
|
85
|
+
- added property `associateMode` to type `BusinessUnitDraft`
|
|
86
|
+
- added property `associateMode` to type `Company`
|
|
87
|
+
- added property `inheritedAssociates` to type `Company`
|
|
88
|
+
- added property `associateMode` to type `CompanyDraft`
|
|
89
|
+
- added property `associateMode` to type `Division`
|
|
90
|
+
- added property `inheritedAssociates` to type `Division`
|
|
91
|
+
- added property `associateMode` to type `DivisionDraft`
|
|
92
|
+
- added property `myBusinessUnitAssociateRoleOnCreation` to type `BusinessUnitConfiguration`
|
|
93
|
+
</details>
|
|
94
|
+
|
|
95
|
+
<details>
|
|
96
|
+
<summary>Changed Property(s)</summary>
|
|
97
|
+
|
|
98
|
+
- :warning: changed property `roles` of type `Associate` from type `AssociateRole[]` to `AssociateRoleDeprecated[]`
|
|
99
|
+
- :warning: changed property `roles` of type `AssociateDraft` from type `AssociateRole[]` to `AssociateRoleDeprecated[]`
|
|
100
|
+
</details>
|
|
101
|
+
|
|
102
|
+
<details>
|
|
103
|
+
<summary>MarkDeprecated Property(s)</summary>
|
|
104
|
+
|
|
105
|
+
- marked property `Associate::roles` as deprecated
|
|
106
|
+
- marked property `AssociateDraft::roles` as deprecated
|
|
107
|
+
</details>
|
|
108
|
+
|
|
109
|
+
<details>
|
|
110
|
+
<summary>Added Resource(s)</summary>
|
|
111
|
+
|
|
112
|
+
- added resource `/{projectKey}/as-associate`
|
|
113
|
+
- added resource `/{projectKey}/associate-roles`
|
|
114
|
+
- added resource `/{projectKey}/as-associate/{associateId}`
|
|
115
|
+
- added resource `/{projectKey}/as-associate/{associateId}/business-units`
|
|
116
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}`
|
|
117
|
+
- added resource `/{projectKey}/as-associate/{associateId}/business-units/key={key}`
|
|
118
|
+
- added resource `/{projectKey}/as-associate/{associateId}/business-units/{ID}`
|
|
119
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/carts`
|
|
120
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/orders`
|
|
121
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/quotes`
|
|
122
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/quote-requests`
|
|
123
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/carts/key={key}`
|
|
124
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/carts/{ID}`
|
|
125
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/orders/quotes`
|
|
126
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/orders/order-number={orderNumber}`
|
|
127
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/orders/{ID}`
|
|
128
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/quotes/key={key}`
|
|
129
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/quotes/{ID}`
|
|
130
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/quote-requests/key={key}`
|
|
131
|
+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/quote-requests/{ID}`
|
|
132
|
+
- added resource `/{projectKey}/associate-roles/key={key}`
|
|
133
|
+
- added resource `/{projectKey}/associate-roles/{ID}`
|
|
134
|
+
</details>
|
|
135
|
+
|
|
136
|
+
<details>
|
|
137
|
+
<summary>Added Method(s)</summary>
|
|
138
|
+
|
|
139
|
+
- added method `apiRoot.withProjectKey().associateRoles().get()`
|
|
140
|
+
- added method `apiRoot.withProjectKey().associateRoles().post()`
|
|
141
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().get()`
|
|
142
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().post()`
|
|
143
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withKey().get()`
|
|
144
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withKey().post()`
|
|
145
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withId().get()`
|
|
146
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withId().post()`
|
|
147
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().get()`
|
|
148
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().post()`
|
|
149
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().get()`
|
|
150
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().post()`
|
|
151
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().get()`
|
|
152
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().get()`
|
|
153
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().post()`
|
|
154
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withKey().get()`
|
|
155
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withKey().post()`
|
|
156
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withKey().delete()`
|
|
157
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withId().get()`
|
|
158
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withId().post()`
|
|
159
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withId().delete()`
|
|
160
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().orderQuote().post()`
|
|
161
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withOrderNumber().get()`
|
|
162
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withOrderNumber().post()`
|
|
163
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withId().get()`
|
|
164
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withId().post()`
|
|
165
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withKey().get()`
|
|
166
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withKey().post()`
|
|
167
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withId().get()`
|
|
168
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withId().post()`
|
|
169
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withKey().get()`
|
|
170
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withKey().post()`
|
|
171
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withId().get()`
|
|
172
|
+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withId().post()`
|
|
173
|
+
- added method `apiRoot.withProjectKey().associateRoles().withKey().get()`
|
|
174
|
+
- added method `apiRoot.withProjectKey().associateRoles().withKey().post()`
|
|
175
|
+
- added method `apiRoot.withProjectKey().associateRoles().withKey().delete()`
|
|
176
|
+
- added method `apiRoot.withProjectKey().associateRoles().withId().get()`
|
|
177
|
+
- added method `apiRoot.withProjectKey().associateRoles().withId().post()`
|
|
178
|
+
- added method `apiRoot.withProjectKey().associateRoles().withId().delete()`
|
|
179
|
+
</details>
|
|
180
|
+
|
|
181
|
+
**Import changes**
|
|
182
|
+
|
|
183
|
+
<details>
|
|
184
|
+
<summary>Added Enum(s)</summary>
|
|
185
|
+
|
|
186
|
+
- added enum `type` to type `ImportResourceType`
|
|
187
|
+
</details>
|
|
188
|
+
|
|
189
|
+
<details>
|
|
190
|
+
<summary>Added Resource(s)</summary>
|
|
191
|
+
|
|
192
|
+
- added resource `/{projectKey}/types`
|
|
193
|
+
- added resource `/{projectKey}/types/import-containers`
|
|
194
|
+
- added resource `/{projectKey}/types/import-containers/{importContainerKey}`
|
|
195
|
+
</details>
|
|
196
|
+
|
|
197
|
+
<details>
|
|
198
|
+
<summary>Added Method(s)</summary>
|
|
199
|
+
|
|
200
|
+
- added method `apiRoot.withProjectKeyValue().types().importContainers().withImportContainerKeyValue().post()`
|
|
201
|
+
</details>
|
|
202
|
+
|
|
203
|
+
<details>
|
|
204
|
+
<summary>Added Type(s)</summary>
|
|
205
|
+
|
|
206
|
+
- added type `TypeImportRequest`
|
|
207
|
+
- added type `TypeTextInputHint`
|
|
208
|
+
- added type `ResourceTypeId`
|
|
209
|
+
- added type `FieldType`
|
|
210
|
+
- added type `CustomFieldBooleanType`
|
|
211
|
+
- added type `CustomFieldDateTimeType`
|
|
212
|
+
- added type `CustomFieldDateType`
|
|
213
|
+
- added type `CustomFieldEnumType`
|
|
214
|
+
- added type `CustomFieldEnumValue`
|
|
215
|
+
- added type `CustomFieldLocalizedEnumType`
|
|
216
|
+
- added type `CustomFieldLocalizedEnumValue`
|
|
217
|
+
- added type `CustomFieldLocalizedStringType`
|
|
218
|
+
- added type `CustomFieldMoneyType`
|
|
219
|
+
- added type `CustomFieldNumberType`
|
|
220
|
+
- added type `CustomFieldReferenceType`
|
|
221
|
+
- added type `CustomFieldReferenceValue`
|
|
222
|
+
- added type `CustomFieldSetType`
|
|
223
|
+
- added type `CustomFieldStringType`
|
|
224
|
+
- added type `CustomFieldTimeType`
|
|
225
|
+
- added type `FieldDefinition`
|
|
226
|
+
- added type `TypeImport`
|
|
227
|
+
</details>
|
|
228
|
+
|
|
229
|
+
**History changes**
|
|
230
|
+
|
|
231
|
+
<details>
|
|
232
|
+
<summary>Added QueryParameter(s)</summary>
|
|
233
|
+
|
|
234
|
+
- added query parameter `resourceTypes` to method `get /{projectKey}`
|
|
235
|
+
</details>
|
|
236
|
+
|
|
237
|
+
<details>
|
|
238
|
+
<summary>Removed QueryParameter(s)</summary>
|
|
239
|
+
|
|
240
|
+
- :warning: removed query parameter `resourceType` from method `get /{projectKey}`
|
|
241
|
+
</details>
|
|
242
|
+
|
|
243
|
+
<details>
|
|
244
|
+
<summary>Added Type(s)</summary>
|
|
245
|
+
|
|
246
|
+
- added type `SetCountriesChange`
|
|
247
|
+
- added type `SetPurchaseOrderNumberChange`
|
|
248
|
+
- added type `StoreCountry`
|
|
249
|
+
</details>
|
|
250
|
+
|
|
3
251
|
## 4.4.1
|
|
4
252
|
|
|
5
253
|
### Patch Changes
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var querystring = require('querystring');
|
|
6
|
-
|
|
7
5
|
function _toPrimitive(input, hint) {
|
|
8
6
|
if (typeof input !== "object" || input === null) return input;
|
|
9
7
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -40,6 +38,20 @@ function _defineProperty(obj, key, value) {
|
|
|
40
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.
|
|
41
39
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
42
40
|
*/
|
|
41
|
+
|
|
42
|
+
function urlStringifier(object) {
|
|
43
|
+
const params = new URLSearchParams(object);
|
|
44
|
+
for (const [key, value] of Object.entries(object)) {
|
|
45
|
+
if (Array.isArray(value)) {
|
|
46
|
+
params.delete(key);
|
|
47
|
+
value.filter(Boolean).forEach(v => params.append(key, v));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return params.toString();
|
|
51
|
+
}
|
|
52
|
+
function stringifyURLString(object, stringifier = urlStringifier) {
|
|
53
|
+
return urlStringifier(object);
|
|
54
|
+
}
|
|
43
55
|
function isDefined(value) {
|
|
44
56
|
return typeof value !== 'undefined' && value !== null;
|
|
45
57
|
}
|
|
@@ -67,7 +79,7 @@ function cleanObject(obj) {
|
|
|
67
79
|
}
|
|
68
80
|
function formatQueryString(variableMap) {
|
|
69
81
|
const map = cleanObject(variableMap);
|
|
70
|
-
const result =
|
|
82
|
+
const result = stringifyURLString(map);
|
|
71
83
|
if (result === '') {
|
|
72
84
|
return '';
|
|
73
85
|
}
|
|
@@ -1228,6 +1240,80 @@ class ByProjectKeyStandalonePricesRequestBuilder {
|
|
|
1228
1240
|
}
|
|
1229
1241
|
}
|
|
1230
1242
|
|
|
1243
|
+
/**
|
|
1244
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1245
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1246
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1247
|
+
*/
|
|
1248
|
+
/**
|
|
1249
|
+
**/
|
|
1250
|
+
class ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder {
|
|
1251
|
+
constructor(args) {
|
|
1252
|
+
this.args = args;
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* Creates a request for creating new Type or updating existing ones.
|
|
1256
|
+
*/
|
|
1257
|
+
post(methodArgs) {
|
|
1258
|
+
return new ApiRequest({
|
|
1259
|
+
baseUri: this.args.baseUri,
|
|
1260
|
+
method: 'POST',
|
|
1261
|
+
uriTemplate: '/{projectKey}/types/import-containers/{importContainerKey}',
|
|
1262
|
+
pathVariables: this.args.pathArgs,
|
|
1263
|
+
headers: {
|
|
1264
|
+
'Content-Type': 'application/json',
|
|
1265
|
+
...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
|
|
1266
|
+
},
|
|
1267
|
+
body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
|
|
1268
|
+
}, this.args.executeRequest);
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1274
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1275
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1276
|
+
*/
|
|
1277
|
+
/**
|
|
1278
|
+
**/
|
|
1279
|
+
class ByProjectKeyTypesImportContainersRequestBuilder {
|
|
1280
|
+
constructor(args) {
|
|
1281
|
+
this.args = args;
|
|
1282
|
+
}
|
|
1283
|
+
withImportContainerKeyValue(childPathArgs) {
|
|
1284
|
+
return new ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder({
|
|
1285
|
+
pathArgs: {
|
|
1286
|
+
...this.args.pathArgs,
|
|
1287
|
+
...childPathArgs
|
|
1288
|
+
},
|
|
1289
|
+
executeRequest: this.args.executeRequest,
|
|
1290
|
+
baseUri: this.args.baseUri
|
|
1291
|
+
});
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1297
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1298
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1299
|
+
*/
|
|
1300
|
+
/**
|
|
1301
|
+
**/
|
|
1302
|
+
class ByProjectKeyTypesRequestBuilder {
|
|
1303
|
+
constructor(args) {
|
|
1304
|
+
this.args = args;
|
|
1305
|
+
}
|
|
1306
|
+
importContainers() {
|
|
1307
|
+
return new ByProjectKeyTypesImportContainersRequestBuilder({
|
|
1308
|
+
pathArgs: {
|
|
1309
|
+
...this.args.pathArgs
|
|
1310
|
+
},
|
|
1311
|
+
executeRequest: this.args.executeRequest,
|
|
1312
|
+
baseUri: this.args.baseUri
|
|
1313
|
+
});
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1231
1317
|
/**
|
|
1232
1318
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1233
1319
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -1365,6 +1451,15 @@ class ByProjectKeyRequestBuilder {
|
|
|
1365
1451
|
baseUri: this.args.baseUri
|
|
1366
1452
|
});
|
|
1367
1453
|
}
|
|
1454
|
+
types() {
|
|
1455
|
+
return new ByProjectKeyTypesRequestBuilder({
|
|
1456
|
+
pathArgs: {
|
|
1457
|
+
...this.args.pathArgs
|
|
1458
|
+
},
|
|
1459
|
+
executeRequest: this.args.executeRequest,
|
|
1460
|
+
baseUri: this.args.baseUri
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1368
1463
|
}
|
|
1369
1464
|
|
|
1370
1465
|
class ApiRoot {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { stringify } from 'querystring';
|
|
2
|
-
|
|
3
1
|
function _toPrimitive(input, hint) {
|
|
4
2
|
if (typeof input !== "object" || input === null) return input;
|
|
5
3
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -36,6 +34,20 @@ function _defineProperty(obj, key, value) {
|
|
|
36
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.
|
|
37
35
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
38
36
|
*/
|
|
37
|
+
|
|
38
|
+
function urlStringifier(object) {
|
|
39
|
+
const params = new URLSearchParams(object);
|
|
40
|
+
for (const [key, value] of Object.entries(object)) {
|
|
41
|
+
if (Array.isArray(value)) {
|
|
42
|
+
params.delete(key);
|
|
43
|
+
value.filter(Boolean).forEach(v => params.append(key, v));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return params.toString();
|
|
47
|
+
}
|
|
48
|
+
function stringifyURLString(object, stringifier = urlStringifier) {
|
|
49
|
+
return urlStringifier(object);
|
|
50
|
+
}
|
|
39
51
|
function isDefined(value) {
|
|
40
52
|
return typeof value !== 'undefined' && value !== null;
|
|
41
53
|
}
|
|
@@ -63,7 +75,7 @@ function cleanObject(obj) {
|
|
|
63
75
|
}
|
|
64
76
|
function formatQueryString(variableMap) {
|
|
65
77
|
const map = cleanObject(variableMap);
|
|
66
|
-
const result =
|
|
78
|
+
const result = stringifyURLString(map);
|
|
67
79
|
if (result === '') {
|
|
68
80
|
return '';
|
|
69
81
|
}
|
|
@@ -1224,6 +1236,80 @@ class ByProjectKeyStandalonePricesRequestBuilder {
|
|
|
1224
1236
|
}
|
|
1225
1237
|
}
|
|
1226
1238
|
|
|
1239
|
+
/**
|
|
1240
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1241
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1242
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1243
|
+
*/
|
|
1244
|
+
/**
|
|
1245
|
+
**/
|
|
1246
|
+
class ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder {
|
|
1247
|
+
constructor(args) {
|
|
1248
|
+
this.args = args;
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Creates a request for creating new Type or updating existing ones.
|
|
1252
|
+
*/
|
|
1253
|
+
post(methodArgs) {
|
|
1254
|
+
return new ApiRequest({
|
|
1255
|
+
baseUri: this.args.baseUri,
|
|
1256
|
+
method: 'POST',
|
|
1257
|
+
uriTemplate: '/{projectKey}/types/import-containers/{importContainerKey}',
|
|
1258
|
+
pathVariables: this.args.pathArgs,
|
|
1259
|
+
headers: {
|
|
1260
|
+
'Content-Type': 'application/json',
|
|
1261
|
+
...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
|
|
1262
|
+
},
|
|
1263
|
+
body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
|
|
1264
|
+
}, this.args.executeRequest);
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1270
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1271
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1272
|
+
*/
|
|
1273
|
+
/**
|
|
1274
|
+
**/
|
|
1275
|
+
class ByProjectKeyTypesImportContainersRequestBuilder {
|
|
1276
|
+
constructor(args) {
|
|
1277
|
+
this.args = args;
|
|
1278
|
+
}
|
|
1279
|
+
withImportContainerKeyValue(childPathArgs) {
|
|
1280
|
+
return new ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder({
|
|
1281
|
+
pathArgs: {
|
|
1282
|
+
...this.args.pathArgs,
|
|
1283
|
+
...childPathArgs
|
|
1284
|
+
},
|
|
1285
|
+
executeRequest: this.args.executeRequest,
|
|
1286
|
+
baseUri: this.args.baseUri
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1293
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1294
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1295
|
+
*/
|
|
1296
|
+
/**
|
|
1297
|
+
**/
|
|
1298
|
+
class ByProjectKeyTypesRequestBuilder {
|
|
1299
|
+
constructor(args) {
|
|
1300
|
+
this.args = args;
|
|
1301
|
+
}
|
|
1302
|
+
importContainers() {
|
|
1303
|
+
return new ByProjectKeyTypesImportContainersRequestBuilder({
|
|
1304
|
+
pathArgs: {
|
|
1305
|
+
...this.args.pathArgs
|
|
1306
|
+
},
|
|
1307
|
+
executeRequest: this.args.executeRequest,
|
|
1308
|
+
baseUri: this.args.baseUri
|
|
1309
|
+
});
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1227
1313
|
/**
|
|
1228
1314
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1229
1315
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -1361,6 +1447,15 @@ class ByProjectKeyRequestBuilder {
|
|
|
1361
1447
|
baseUri: this.args.baseUri
|
|
1362
1448
|
});
|
|
1363
1449
|
}
|
|
1450
|
+
types() {
|
|
1451
|
+
return new ByProjectKeyTypesRequestBuilder({
|
|
1452
|
+
pathArgs: {
|
|
1453
|
+
...this.args.pathArgs
|
|
1454
|
+
},
|
|
1455
|
+
executeRequest: this.args.executeRequest,
|
|
1456
|
+
baseUri: this.args.baseUri
|
|
1457
|
+
});
|
|
1458
|
+
}
|
|
1364
1459
|
}
|
|
1365
1460
|
|
|
1366
1461
|
class ApiRoot {
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var querystring = require('querystring');
|
|
6
|
-
|
|
7
5
|
function _toPrimitive(input, hint) {
|
|
8
6
|
if (typeof input !== "object" || input === null) return input;
|
|
9
7
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -40,6 +38,20 @@ function _defineProperty(obj, key, value) {
|
|
|
40
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.
|
|
41
39
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
42
40
|
*/
|
|
41
|
+
|
|
42
|
+
function urlStringifier(object) {
|
|
43
|
+
const params = new URLSearchParams(object);
|
|
44
|
+
for (const [key, value] of Object.entries(object)) {
|
|
45
|
+
if (Array.isArray(value)) {
|
|
46
|
+
params.delete(key);
|
|
47
|
+
value.filter(Boolean).forEach(v => params.append(key, v));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return params.toString();
|
|
51
|
+
}
|
|
52
|
+
function stringifyURLString(object, stringifier = urlStringifier) {
|
|
53
|
+
return urlStringifier(object);
|
|
54
|
+
}
|
|
43
55
|
function isDefined(value) {
|
|
44
56
|
return typeof value !== 'undefined' && value !== null;
|
|
45
57
|
}
|
|
@@ -67,7 +79,7 @@ function cleanObject(obj) {
|
|
|
67
79
|
}
|
|
68
80
|
function formatQueryString(variableMap) {
|
|
69
81
|
const map = cleanObject(variableMap);
|
|
70
|
-
const result =
|
|
82
|
+
const result = stringifyURLString(map);
|
|
71
83
|
if (result === '') {
|
|
72
84
|
return '';
|
|
73
85
|
}
|
|
@@ -1228,6 +1240,80 @@ class ByProjectKeyStandalonePricesRequestBuilder {
|
|
|
1228
1240
|
}
|
|
1229
1241
|
}
|
|
1230
1242
|
|
|
1243
|
+
/**
|
|
1244
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1245
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1246
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1247
|
+
*/
|
|
1248
|
+
/**
|
|
1249
|
+
**/
|
|
1250
|
+
class ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder {
|
|
1251
|
+
constructor(args) {
|
|
1252
|
+
this.args = args;
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* Creates a request for creating new Type or updating existing ones.
|
|
1256
|
+
*/
|
|
1257
|
+
post(methodArgs) {
|
|
1258
|
+
return new ApiRequest({
|
|
1259
|
+
baseUri: this.args.baseUri,
|
|
1260
|
+
method: 'POST',
|
|
1261
|
+
uriTemplate: '/{projectKey}/types/import-containers/{importContainerKey}',
|
|
1262
|
+
pathVariables: this.args.pathArgs,
|
|
1263
|
+
headers: {
|
|
1264
|
+
'Content-Type': 'application/json',
|
|
1265
|
+
...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
|
|
1266
|
+
},
|
|
1267
|
+
body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
|
|
1268
|
+
}, this.args.executeRequest);
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1274
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1275
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1276
|
+
*/
|
|
1277
|
+
/**
|
|
1278
|
+
**/
|
|
1279
|
+
class ByProjectKeyTypesImportContainersRequestBuilder {
|
|
1280
|
+
constructor(args) {
|
|
1281
|
+
this.args = args;
|
|
1282
|
+
}
|
|
1283
|
+
withImportContainerKeyValue(childPathArgs) {
|
|
1284
|
+
return new ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder({
|
|
1285
|
+
pathArgs: {
|
|
1286
|
+
...this.args.pathArgs,
|
|
1287
|
+
...childPathArgs
|
|
1288
|
+
},
|
|
1289
|
+
executeRequest: this.args.executeRequest,
|
|
1290
|
+
baseUri: this.args.baseUri
|
|
1291
|
+
});
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1297
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1298
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1299
|
+
*/
|
|
1300
|
+
/**
|
|
1301
|
+
**/
|
|
1302
|
+
class ByProjectKeyTypesRequestBuilder {
|
|
1303
|
+
constructor(args) {
|
|
1304
|
+
this.args = args;
|
|
1305
|
+
}
|
|
1306
|
+
importContainers() {
|
|
1307
|
+
return new ByProjectKeyTypesImportContainersRequestBuilder({
|
|
1308
|
+
pathArgs: {
|
|
1309
|
+
...this.args.pathArgs
|
|
1310
|
+
},
|
|
1311
|
+
executeRequest: this.args.executeRequest,
|
|
1312
|
+
baseUri: this.args.baseUri
|
|
1313
|
+
});
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1231
1317
|
/**
|
|
1232
1318
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1233
1319
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -1365,6 +1451,15 @@ class ByProjectKeyRequestBuilder {
|
|
|
1365
1451
|
baseUri: this.args.baseUri
|
|
1366
1452
|
});
|
|
1367
1453
|
}
|
|
1454
|
+
types() {
|
|
1455
|
+
return new ByProjectKeyTypesRequestBuilder({
|
|
1456
|
+
pathArgs: {
|
|
1457
|
+
...this.args.pathArgs
|
|
1458
|
+
},
|
|
1459
|
+
executeRequest: this.args.executeRequest,
|
|
1460
|
+
baseUri: this.args.baseUri
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1368
1463
|
}
|
|
1369
1464
|
|
|
1370
1465
|
class ApiRoot {
|