@revenexx/sdk 0.0.4 → 0.0.6
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/dist/cjs/sdk.js +13491 -6163
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +13464 -6162
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +13491 -6163
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/address-type.ts +4 -0
- package/src/enums/cart-export-format.ts +4 -0
- package/src/enums/cart-io-apply-mode.ts +5 -0
- package/src/enums/cart-io-direction.ts +4 -0
- package/src/enums/cart-io-entity.ts +4 -0
- package/src/enums/cart-io-format.ts +4 -0
- package/src/enums/cart-item-type.ts +5 -0
- package/src/enums/channel-status.ts +4 -0
- package/src/enums/channel-type.ts +7 -0
- package/src/enums/contact-role.ts +6 -0
- package/src/enums/contact-status.ts +5 -0
- package/src/enums/location-type.ts +6 -0
- package/src/enums/market-status.ts +4 -0
- package/src/enums/order-comment-visibility.ts +4 -0
- package/src/enums/order-item-type.ts +5 -0
- package/src/enums/order-list-kind.ts +4 -0
- package/src/enums/order-payment-status.ts +9 -0
- package/src/enums/organization-status.ts +4 -0
- package/src/enums/page-status.ts +5 -0
- package/src/enums/payment-fee-type.ts +5 -0
- package/src/enums/payment-method-kind.ts +4 -0
- package/src/enums/price-entry-type.ts +4 -0
- package/src/enums/price-list-status.ts +4 -0
- package/src/enums/shipping-method-matrix-basis.ts +6 -0
- package/src/enums/shipping-method-pricing-type.ts +5 -0
- package/src/enums/store-asset-request-visibility.ts +4 -0
- package/src/enums/visibility.ts +4 -0
- package/src/index.ts +28 -2
- package/src/models.ts +5309 -1009
- package/src/services/apps.ts +154 -154
- package/src/services/avatars.ts +57 -57
- package/src/services/carts.ts +739 -104
- package/src/services/channels.ts +147 -19
- package/src/services/customers.ts +809 -69
- package/src/services/greetings.ts +18 -18
- package/src/services/inventories.ts +620 -65
- package/src/services/locale.ts +16 -16
- package/src/services/markets.ts +690 -75
- package/src/services/messaging.ts +273 -273
- package/src/services/orderlists.ts +889 -0
- package/src/services/orders.ts +692 -137
- package/src/services/pages.ts +661 -155
- package/src/services/payments.ts +591 -64
- package/src/services/prices.ts +585 -59
- package/src/services/products.ts +1908 -272
- package/src/services/search.ts +24 -24
- package/src/services/shipping.ts +451 -59
- package/src/services/sites.ts +116 -116
- package/src/services/storage.ts +933 -599
- package/src/services/tokens.ts +14 -14
- package/types/enums/address-type.d.ts +4 -0
- package/types/enums/cart-export-format.d.ts +4 -0
- package/types/enums/cart-io-apply-mode.d.ts +5 -0
- package/types/enums/cart-io-direction.d.ts +4 -0
- package/types/enums/cart-io-entity.d.ts +4 -0
- package/types/enums/cart-io-format.d.ts +4 -0
- package/types/enums/cart-item-type.d.ts +5 -0
- package/types/enums/channel-status.d.ts +4 -0
- package/types/enums/channel-type.d.ts +7 -0
- package/types/enums/contact-role.d.ts +6 -0
- package/types/enums/contact-status.d.ts +5 -0
- package/types/enums/location-type.d.ts +6 -0
- package/types/enums/market-status.d.ts +4 -0
- package/types/enums/order-comment-visibility.d.ts +4 -0
- package/types/enums/order-item-type.d.ts +5 -0
- package/types/enums/order-list-kind.d.ts +4 -0
- package/types/enums/order-payment-status.d.ts +9 -0
- package/types/enums/organization-status.d.ts +4 -0
- package/types/enums/page-status.d.ts +5 -0
- package/types/enums/payment-fee-type.d.ts +5 -0
- package/types/enums/payment-method-kind.d.ts +4 -0
- package/types/enums/price-entry-type.d.ts +4 -0
- package/types/enums/price-list-status.d.ts +4 -0
- package/types/enums/shipping-method-matrix-basis.d.ts +6 -0
- package/types/enums/shipping-method-pricing-type.d.ts +5 -0
- package/types/enums/store-asset-request-visibility.d.ts +4 -0
- package/types/enums/visibility.d.ts +4 -0
- package/types/index.d.ts +28 -2
- package/types/models.d.ts +5170 -1010
- package/types/services/carts.d.ts +271 -12
- package/types/services/channels.d.ts +54 -2
- package/types/services/customers.d.ts +298 -12
- package/types/services/inventories.d.ts +225 -11
- package/types/services/markets.d.ts +235 -6
- package/types/services/orderlists.d.ts +324 -0
- package/types/services/orders.d.ts +238 -16
- package/types/services/pages.d.ts +190 -6
- package/types/services/payments.d.ts +221 -7
- package/types/services/prices.d.ts +218 -6
- package/types/services/products.d.ts +672 -32
- package/types/services/shipping.d.ts +168 -6
- package/types/services/storage.d.ts +353 -285
package/src/services/tokens.ts
CHANGED
|
@@ -63,12 +63,12 @@ export class Tokens {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
const apiPath = '/v1/tokens/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
|
66
|
-
const
|
|
66
|
+
const apiPayload: Payload = {};
|
|
67
67
|
if (typeof queries !== 'undefined') {
|
|
68
|
-
|
|
68
|
+
apiPayload['queries'] = queries;
|
|
69
69
|
}
|
|
70
70
|
if (typeof total !== 'undefined') {
|
|
71
|
-
|
|
71
|
+
apiPayload['total'] = total;
|
|
72
72
|
}
|
|
73
73
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
74
74
|
|
|
@@ -79,7 +79,7 @@ export class Tokens {
|
|
|
79
79
|
'get',
|
|
80
80
|
uri,
|
|
81
81
|
apiHeaders,
|
|
82
|
-
|
|
82
|
+
apiPayload
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -132,9 +132,9 @@ export class Tokens {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
const apiPath = '/v1/tokens/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
|
135
|
-
const
|
|
135
|
+
const apiPayload: Payload = {};
|
|
136
136
|
if (typeof expire !== 'undefined') {
|
|
137
|
-
|
|
137
|
+
apiPayload['expire'] = expire;
|
|
138
138
|
}
|
|
139
139
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
140
140
|
|
|
@@ -146,7 +146,7 @@ export class Tokens {
|
|
|
146
146
|
'post',
|
|
147
147
|
uri,
|
|
148
148
|
apiHeaders,
|
|
149
|
-
|
|
149
|
+
apiPayload
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -187,7 +187,7 @@ export class Tokens {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
const apiPath = '/v1/tokens/{tokenId}'.replace('{tokenId}', tokenId);
|
|
190
|
-
const
|
|
190
|
+
const apiPayload: Payload = {};
|
|
191
191
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
192
192
|
|
|
193
193
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -197,7 +197,7 @@ export class Tokens {
|
|
|
197
197
|
'delete',
|
|
198
198
|
uri,
|
|
199
199
|
apiHeaders,
|
|
200
|
-
|
|
200
|
+
apiPayload
|
|
201
201
|
);
|
|
202
202
|
}
|
|
203
203
|
|
|
@@ -238,7 +238,7 @@ export class Tokens {
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
const apiPath = '/v1/tokens/{tokenId}'.replace('{tokenId}', tokenId);
|
|
241
|
-
const
|
|
241
|
+
const apiPayload: Payload = {};
|
|
242
242
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
243
243
|
|
|
244
244
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -248,7 +248,7 @@ export class Tokens {
|
|
|
248
248
|
'get',
|
|
249
249
|
uri,
|
|
250
250
|
apiHeaders,
|
|
251
|
-
|
|
251
|
+
apiPayload
|
|
252
252
|
);
|
|
253
253
|
}
|
|
254
254
|
|
|
@@ -294,9 +294,9 @@ export class Tokens {
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
const apiPath = '/v1/tokens/{tokenId}'.replace('{tokenId}', tokenId);
|
|
297
|
-
const
|
|
297
|
+
const apiPayload: Payload = {};
|
|
298
298
|
if (typeof expire !== 'undefined') {
|
|
299
|
-
|
|
299
|
+
apiPayload['expire'] = expire;
|
|
300
300
|
}
|
|
301
301
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
302
302
|
|
|
@@ -308,7 +308,7 @@ export class Tokens {
|
|
|
308
308
|
'patch',
|
|
309
309
|
uri,
|
|
310
310
|
apiHeaders,
|
|
311
|
-
|
|
311
|
+
apiPayload
|
|
312
312
|
);
|
|
313
313
|
}
|
|
314
314
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { Inventories } from './services/inventories';
|
|
|
16
16
|
export { Locale } from './services/locale';
|
|
17
17
|
export { Markets } from './services/markets';
|
|
18
18
|
export { Messaging } from './services/messaging';
|
|
19
|
+
export { Orderlists } from './services/orderlists';
|
|
19
20
|
export { Orders } from './services/orders';
|
|
20
21
|
export { Pages } from './services/pages';
|
|
21
22
|
export { Payments } from './services/payments';
|
|
@@ -47,13 +48,38 @@ export { Theme } from './enums/theme';
|
|
|
47
48
|
export { Timezone } from './enums/timezone';
|
|
48
49
|
export { Permissions } from './enums/permissions';
|
|
49
50
|
export { Output } from './enums/output';
|
|
51
|
+
export { CartIoDirection } from './enums/cart-io-direction';
|
|
52
|
+
export { CartIoApplyMode } from './enums/cart-io-apply-mode';
|
|
53
|
+
export { CartIoEntity } from './enums/cart-io-entity';
|
|
54
|
+
export { CartIoFormat } from './enums/cart-io-format';
|
|
55
|
+
export { CartItemType } from './enums/cart-item-type';
|
|
56
|
+
export { CartExportFormat } from './enums/cart-export-format';
|
|
57
|
+
export { ChannelStatus } from './enums/channel-status';
|
|
58
|
+
export { ChannelType } from './enums/channel-type';
|
|
59
|
+
export { AddressType } from './enums/address-type';
|
|
60
|
+
export { ContactRole } from './enums/contact-role';
|
|
61
|
+
export { ContactStatus } from './enums/contact-status';
|
|
62
|
+
export { OrganizationStatus } from './enums/organization-status';
|
|
63
|
+
export { LocationType } from './enums/location-type';
|
|
64
|
+
export { MarketStatus } from './enums/market-status';
|
|
50
65
|
export { Priority } from './enums/priority';
|
|
66
|
+
export { OrderListKind } from './enums/order-list-kind';
|
|
67
|
+
export { OrderCommentVisibility } from './enums/order-comment-visibility';
|
|
68
|
+
export { OrderPaymentStatus } from './enums/order-payment-status';
|
|
69
|
+
export { PageStatus } from './enums/page-status';
|
|
70
|
+
export { PaymentFeeType } from './enums/payment-fee-type';
|
|
71
|
+
export { PaymentMethodKind } from './enums/payment-method-kind';
|
|
72
|
+
export { PriceListStatus } from './enums/price-list-status';
|
|
73
|
+
export { PriceEntryType } from './enums/price-entry-type';
|
|
51
74
|
export { Collection } from './enums/collection';
|
|
75
|
+
export { ShippingMethodMatrixBasis } from './enums/shipping-method-matrix-basis';
|
|
76
|
+
export { ShippingMethodPricingType } from './enums/shipping-method-pricing-type';
|
|
52
77
|
export { BuildRuntime } from './enums/build-runtime';
|
|
53
78
|
export { Framework } from './enums/framework';
|
|
54
79
|
export { Adapter } from './enums/adapter';
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
80
|
+
export { Visibility } from './enums/visibility';
|
|
81
|
+
export { OrderItemType } from './enums/order-item-type';
|
|
82
|
+
export { StoreAssetRequestVisibility } from './enums/store-asset-request-visibility';
|
|
57
83
|
export { AttributeBooleanStatus } from './enums/attribute-boolean-status';
|
|
58
84
|
export { AttributeDatetimeStatus } from './enums/attribute-datetime-status';
|
|
59
85
|
export { AttributeEmailStatus } from './enums/attribute-email-status';
|