@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.
Files changed (99) hide show
  1. package/dist/cjs/sdk.js +13491 -6163
  2. package/dist/cjs/sdk.js.map +1 -1
  3. package/dist/esm/sdk.js +13464 -6162
  4. package/dist/esm/sdk.js.map +1 -1
  5. package/dist/iife/sdk.js +13491 -6163
  6. package/package.json +1 -1
  7. package/src/client.ts +1 -1
  8. package/src/enums/address-type.ts +4 -0
  9. package/src/enums/cart-export-format.ts +4 -0
  10. package/src/enums/cart-io-apply-mode.ts +5 -0
  11. package/src/enums/cart-io-direction.ts +4 -0
  12. package/src/enums/cart-io-entity.ts +4 -0
  13. package/src/enums/cart-io-format.ts +4 -0
  14. package/src/enums/cart-item-type.ts +5 -0
  15. package/src/enums/channel-status.ts +4 -0
  16. package/src/enums/channel-type.ts +7 -0
  17. package/src/enums/contact-role.ts +6 -0
  18. package/src/enums/contact-status.ts +5 -0
  19. package/src/enums/location-type.ts +6 -0
  20. package/src/enums/market-status.ts +4 -0
  21. package/src/enums/order-comment-visibility.ts +4 -0
  22. package/src/enums/order-item-type.ts +5 -0
  23. package/src/enums/order-list-kind.ts +4 -0
  24. package/src/enums/order-payment-status.ts +9 -0
  25. package/src/enums/organization-status.ts +4 -0
  26. package/src/enums/page-status.ts +5 -0
  27. package/src/enums/payment-fee-type.ts +5 -0
  28. package/src/enums/payment-method-kind.ts +4 -0
  29. package/src/enums/price-entry-type.ts +4 -0
  30. package/src/enums/price-list-status.ts +4 -0
  31. package/src/enums/shipping-method-matrix-basis.ts +6 -0
  32. package/src/enums/shipping-method-pricing-type.ts +5 -0
  33. package/src/enums/store-asset-request-visibility.ts +4 -0
  34. package/src/enums/visibility.ts +4 -0
  35. package/src/index.ts +28 -2
  36. package/src/models.ts +5309 -1009
  37. package/src/services/apps.ts +154 -154
  38. package/src/services/avatars.ts +57 -57
  39. package/src/services/carts.ts +739 -104
  40. package/src/services/channels.ts +147 -19
  41. package/src/services/customers.ts +809 -69
  42. package/src/services/greetings.ts +18 -18
  43. package/src/services/inventories.ts +620 -65
  44. package/src/services/locale.ts +16 -16
  45. package/src/services/markets.ts +690 -75
  46. package/src/services/messaging.ts +273 -273
  47. package/src/services/orderlists.ts +889 -0
  48. package/src/services/orders.ts +692 -137
  49. package/src/services/pages.ts +661 -155
  50. package/src/services/payments.ts +591 -64
  51. package/src/services/prices.ts +585 -59
  52. package/src/services/products.ts +1908 -272
  53. package/src/services/search.ts +24 -24
  54. package/src/services/shipping.ts +451 -59
  55. package/src/services/sites.ts +116 -116
  56. package/src/services/storage.ts +933 -599
  57. package/src/services/tokens.ts +14 -14
  58. package/types/enums/address-type.d.ts +4 -0
  59. package/types/enums/cart-export-format.d.ts +4 -0
  60. package/types/enums/cart-io-apply-mode.d.ts +5 -0
  61. package/types/enums/cart-io-direction.d.ts +4 -0
  62. package/types/enums/cart-io-entity.d.ts +4 -0
  63. package/types/enums/cart-io-format.d.ts +4 -0
  64. package/types/enums/cart-item-type.d.ts +5 -0
  65. package/types/enums/channel-status.d.ts +4 -0
  66. package/types/enums/channel-type.d.ts +7 -0
  67. package/types/enums/contact-role.d.ts +6 -0
  68. package/types/enums/contact-status.d.ts +5 -0
  69. package/types/enums/location-type.d.ts +6 -0
  70. package/types/enums/market-status.d.ts +4 -0
  71. package/types/enums/order-comment-visibility.d.ts +4 -0
  72. package/types/enums/order-item-type.d.ts +5 -0
  73. package/types/enums/order-list-kind.d.ts +4 -0
  74. package/types/enums/order-payment-status.d.ts +9 -0
  75. package/types/enums/organization-status.d.ts +4 -0
  76. package/types/enums/page-status.d.ts +5 -0
  77. package/types/enums/payment-fee-type.d.ts +5 -0
  78. package/types/enums/payment-method-kind.d.ts +4 -0
  79. package/types/enums/price-entry-type.d.ts +4 -0
  80. package/types/enums/price-list-status.d.ts +4 -0
  81. package/types/enums/shipping-method-matrix-basis.d.ts +6 -0
  82. package/types/enums/shipping-method-pricing-type.d.ts +5 -0
  83. package/types/enums/store-asset-request-visibility.d.ts +4 -0
  84. package/types/enums/visibility.d.ts +4 -0
  85. package/types/index.d.ts +28 -2
  86. package/types/models.d.ts +5170 -1010
  87. package/types/services/carts.d.ts +271 -12
  88. package/types/services/channels.d.ts +54 -2
  89. package/types/services/customers.d.ts +298 -12
  90. package/types/services/inventories.d.ts +225 -11
  91. package/types/services/markets.d.ts +235 -6
  92. package/types/services/orderlists.d.ts +324 -0
  93. package/types/services/orders.d.ts +238 -16
  94. package/types/services/pages.d.ts +190 -6
  95. package/types/services/payments.d.ts +221 -7
  96. package/types/services/prices.d.ts +218 -6
  97. package/types/services/products.d.ts +672 -32
  98. package/types/services/shipping.d.ts +168 -6
  99. package/types/services/storage.d.ts +353 -285
@@ -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 payload: Payload = {};
66
+ const apiPayload: Payload = {};
67
67
  if (typeof queries !== 'undefined') {
68
- payload['queries'] = queries;
68
+ apiPayload['queries'] = queries;
69
69
  }
70
70
  if (typeof total !== 'undefined') {
71
- payload['total'] = total;
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
- payload
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 payload: Payload = {};
135
+ const apiPayload: Payload = {};
136
136
  if (typeof expire !== 'undefined') {
137
- payload['expire'] = expire;
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
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
- payload
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 payload: Payload = {};
297
+ const apiPayload: Payload = {};
298
298
  if (typeof expire !== 'undefined') {
299
- payload['expire'] = expire;
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
- payload
311
+ apiPayload
312
312
  );
313
313
  }
314
314
  }
@@ -0,0 +1,4 @@
1
+ export declare enum AddressType {
2
+ Billing = "billing",
3
+ Shipping = "shipping"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum CartExportFormat {
2
+ Json = "json",
3
+ Csv = "csv"
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum CartIoApplyMode {
2
+ Insert = "insert",
3
+ Append = "append",
4
+ Replace = "replace"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum CartIoDirection {
2
+ Import = "import",
3
+ Export = "export"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum CartIoEntity {
2
+ Carts = "carts",
3
+ CartItems = "cart_items"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum CartIoFormat {
2
+ Json = "json",
3
+ Csv = "csv"
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum CartItemType {
2
+ Product = "product",
3
+ Configuration = "configuration",
4
+ Custom = "custom"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum ChannelStatus {
2
+ Active = "active",
3
+ Inactive = "inactive"
4
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum ChannelType {
2
+ Storefront = "storefront",
3
+ Punchout = "punchout",
4
+ Marketplace = "marketplace",
5
+ Api = "api",
6
+ Pos = "pos"
7
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum ContactRole {
2
+ Buyer = "buyer",
3
+ Approver = "approver",
4
+ Admin = "admin",
5
+ Requester = "requester"
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum ContactStatus {
2
+ Invited = "invited",
3
+ Active = "active",
4
+ Blocked = "blocked"
5
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum LocationType {
2
+ Warehouse = "warehouse",
3
+ Store = "store",
4
+ Dropship = "dropship",
5
+ Virtual = "virtual"
6
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum MarketStatus {
2
+ Active = "active",
3
+ Inactive = "inactive"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum OrderCommentVisibility {
2
+ Internal = "internal",
3
+ Customer = "customer"
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum OrderItemType {
2
+ Product = "product",
3
+ Configuration = "configuration",
4
+ Custom = "custom"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum OrderListKind {
2
+ Shopping = "shopping",
3
+ Label = "label"
4
+ }
@@ -0,0 +1,9 @@
1
+ export declare enum OrderPaymentStatus {
2
+ Open = "open",
3
+ Pending = "pending",
4
+ Authorized = "authorized",
5
+ Paid = "paid",
6
+ PartiallyPaid = "partially_paid",
7
+ Refunded = "refunded",
8
+ Failed = "failed"
9
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum OrganizationStatus {
2
+ Active = "active",
3
+ Blocked = "blocked"
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum PageStatus {
2
+ Draft = "draft",
3
+ Published = "published",
4
+ Archived = "archived"
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum PaymentFeeType {
2
+ None = "none",
3
+ Fixed = "fixed",
4
+ Percent = "percent"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum PaymentMethodKind {
2
+ SelfManaged = "self_managed",
3
+ Psp = "psp"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum PriceEntryType {
2
+ Standard = "standard",
3
+ OnRequest = "on_request"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum PriceListStatus {
2
+ Active = "active",
3
+ Inactive = "inactive"
4
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum ShippingMethodMatrixBasis {
2
+ Weight = "weight",
3
+ Quantity = "quantity",
4
+ OrderValue = "order_value",
5
+ Attribute = "attribute"
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum ShippingMethodPricingType {
2
+ Fixed = "fixed",
3
+ Free = "free",
4
+ Matrix = "matrix"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum StoreAssetRequestVisibility {
2
+ Public = "public",
3
+ Private = "private"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum Visibility {
2
+ Public = "public",
3
+ Private = "private"
4
+ }
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 { Compression } from './enums/compression';
56
- export { Gravity } from './enums/gravity';
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';