@revenexx/sdk 0.0.2 → 0.0.5

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 (90) hide show
  1. package/dist/cjs/sdk.js +13496 -3442
  2. package/dist/cjs/sdk.js.map +1 -1
  3. package/dist/esm/sdk.js +13467 -3443
  4. package/dist/esm/sdk.js.map +1 -1
  5. package/dist/iife/sdk.js +13496 -3442
  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-payment-status.ts +9 -0
  24. package/src/enums/organization-status.ts +4 -0
  25. package/src/enums/page-status.ts +5 -0
  26. package/src/enums/payment-fee-type.ts +5 -0
  27. package/src/enums/payment-method-kind.ts +4 -0
  28. package/src/enums/price-entry-type.ts +4 -0
  29. package/src/enums/price-list-status.ts +4 -0
  30. package/src/enums/shipping-method-matrix-basis.ts +6 -0
  31. package/src/enums/shipping-method-pricing-type.ts +5 -0
  32. package/src/index.ts +30 -0
  33. package/src/models.ts +5628 -410
  34. package/src/services/apps.ts +154 -154
  35. package/src/services/avatars.ts +57 -57
  36. package/src/services/carts.ts +739 -104
  37. package/src/services/channels.ts +147 -19
  38. package/src/services/customers.ts +801 -69
  39. package/src/services/greetings.ts +18 -18
  40. package/src/services/inventories.ts +1278 -0
  41. package/src/services/locale.ts +16 -16
  42. package/src/services/markets.ts +373 -75
  43. package/src/services/messaging.ts +273 -273
  44. package/src/services/orders.ts +1648 -0
  45. package/src/services/pages.ts +2317 -0
  46. package/src/services/payments.ts +1334 -0
  47. package/src/services/prices.ts +1036 -0
  48. package/src/services/products.ts +1836 -272
  49. package/src/services/search.ts +24 -24
  50. package/src/services/shipping.ts +956 -0
  51. package/src/services/sites.ts +116 -116
  52. package/src/services/storage.ts +72 -72
  53. package/src/services/tokens.ts +14 -14
  54. package/types/enums/address-type.d.ts +4 -0
  55. package/types/enums/cart-export-format.d.ts +4 -0
  56. package/types/enums/cart-io-apply-mode.d.ts +5 -0
  57. package/types/enums/cart-io-direction.d.ts +4 -0
  58. package/types/enums/cart-io-entity.d.ts +4 -0
  59. package/types/enums/cart-io-format.d.ts +4 -0
  60. package/types/enums/cart-item-type.d.ts +5 -0
  61. package/types/enums/channel-status.d.ts +4 -0
  62. package/types/enums/channel-type.d.ts +7 -0
  63. package/types/enums/contact-role.d.ts +6 -0
  64. package/types/enums/contact-status.d.ts +5 -0
  65. package/types/enums/location-type.d.ts +6 -0
  66. package/types/enums/market-status.d.ts +4 -0
  67. package/types/enums/order-comment-visibility.d.ts +4 -0
  68. package/types/enums/order-item-type.d.ts +5 -0
  69. package/types/enums/order-payment-status.d.ts +9 -0
  70. package/types/enums/organization-status.d.ts +4 -0
  71. package/types/enums/page-status.d.ts +5 -0
  72. package/types/enums/payment-fee-type.d.ts +5 -0
  73. package/types/enums/payment-method-kind.d.ts +4 -0
  74. package/types/enums/price-entry-type.d.ts +4 -0
  75. package/types/enums/price-list-status.d.ts +4 -0
  76. package/types/enums/shipping-method-matrix-basis.d.ts +6 -0
  77. package/types/enums/shipping-method-pricing-type.d.ts +5 -0
  78. package/types/index.d.ts +30 -0
  79. package/types/models.d.ts +5470 -404
  80. package/types/services/carts.d.ts +271 -12
  81. package/types/services/channels.d.ts +54 -2
  82. package/types/services/customers.d.ts +295 -12
  83. package/types/services/inventories.d.ts +440 -0
  84. package/types/services/markets.d.ts +123 -6
  85. package/types/services/orders.d.ts +590 -0
  86. package/types/services/pages.d.ts +792 -0
  87. package/types/services/payments.d.ts +480 -0
  88. package/types/services/prices.d.ts +384 -0
  89. package/types/services/products.d.ts +646 -32
  90. package/types/services/shipping.d.ts +351 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@revenexx/sdk",
3
3
  "homepage": "https://revenexx.com",
4
4
  "description": "Revenexx Web SDK for browsers and SSR frameworks.",
5
- "version": "0.0.2",
5
+ "version": "0.0.5",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "dist",
package/src/client.ts CHANGED
@@ -388,7 +388,7 @@ class Client {
388
388
  'x-sdk-name': 'Revenexx Web',
389
389
  'x-sdk-platform': '',
390
390
  'x-sdk-language': 'web',
391
- 'x-sdk-version': '0.0.1',
391
+ 'x-sdk-version': '0.0.5',
392
392
  };
393
393
 
394
394
  /**
@@ -0,0 +1,4 @@
1
+ export enum AddressType {
2
+ Billing = 'billing',
3
+ Shipping = 'shipping',
4
+ }
@@ -0,0 +1,4 @@
1
+ export enum CartExportFormat {
2
+ Json = 'json',
3
+ Csv = 'csv',
4
+ }
@@ -0,0 +1,5 @@
1
+ export enum CartIoApplyMode {
2
+ Insert = 'insert',
3
+ Append = 'append',
4
+ Replace = 'replace',
5
+ }
@@ -0,0 +1,4 @@
1
+ export enum CartIoDirection {
2
+ Import = 'import',
3
+ Export = 'export',
4
+ }
@@ -0,0 +1,4 @@
1
+ export enum CartIoEntity {
2
+ Carts = 'carts',
3
+ CartItems = 'cart_items',
4
+ }
@@ -0,0 +1,4 @@
1
+ export enum CartIoFormat {
2
+ Json = 'json',
3
+ Csv = 'csv',
4
+ }
@@ -0,0 +1,5 @@
1
+ export enum CartItemType {
2
+ Product = 'product',
3
+ Configuration = 'configuration',
4
+ Custom = 'custom',
5
+ }
@@ -0,0 +1,4 @@
1
+ export enum ChannelStatus {
2
+ Active = 'active',
3
+ Inactive = 'inactive',
4
+ }
@@ -0,0 +1,7 @@
1
+ export enum ChannelType {
2
+ Storefront = 'storefront',
3
+ Punchout = 'punchout',
4
+ Marketplace = 'marketplace',
5
+ Api = 'api',
6
+ Pos = 'pos',
7
+ }
@@ -0,0 +1,6 @@
1
+ export enum ContactRole {
2
+ Buyer = 'buyer',
3
+ Approver = 'approver',
4
+ Admin = 'admin',
5
+ Requester = 'requester',
6
+ }
@@ -0,0 +1,5 @@
1
+ export enum ContactStatus {
2
+ Invited = 'invited',
3
+ Active = 'active',
4
+ Blocked = 'blocked',
5
+ }
@@ -0,0 +1,6 @@
1
+ export enum LocationType {
2
+ Warehouse = 'warehouse',
3
+ Store = 'store',
4
+ Dropship = 'dropship',
5
+ Virtual = 'virtual',
6
+ }
@@ -0,0 +1,4 @@
1
+ export enum MarketStatus {
2
+ Active = 'active',
3
+ Inactive = 'inactive',
4
+ }
@@ -0,0 +1,4 @@
1
+ export enum OrderCommentVisibility {
2
+ Internal = 'internal',
3
+ Customer = 'customer',
4
+ }
@@ -0,0 +1,5 @@
1
+ export enum OrderItemType {
2
+ Product = 'product',
3
+ Configuration = 'configuration',
4
+ Custom = 'custom',
5
+ }
@@ -0,0 +1,9 @@
1
+ export 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 enum OrganizationStatus {
2
+ Active = 'active',
3
+ Blocked = 'blocked',
4
+ }
@@ -0,0 +1,5 @@
1
+ export enum PageStatus {
2
+ Draft = 'draft',
3
+ Published = 'published',
4
+ Archived = 'archived',
5
+ }
@@ -0,0 +1,5 @@
1
+ export enum PaymentFeeType {
2
+ None = 'none',
3
+ Fixed = 'fixed',
4
+ Percent = 'percent',
5
+ }
@@ -0,0 +1,4 @@
1
+ export enum PaymentMethodKind {
2
+ SelfManaged = 'self_managed',
3
+ Psp = 'psp',
4
+ }
@@ -0,0 +1,4 @@
1
+ export enum PriceEntryType {
2
+ Standard = 'standard',
3
+ OnRequest = 'on_request',
4
+ }
@@ -0,0 +1,4 @@
1
+ export enum PriceListStatus {
2
+ Active = 'active',
3
+ Inactive = 'inactive',
4
+ }
@@ -0,0 +1,6 @@
1
+ export enum ShippingMethodMatrixBasis {
2
+ Weight = 'weight',
3
+ Quantity = 'quantity',
4
+ OrderValue = 'order_value',
5
+ Attribute = 'attribute',
6
+ }
@@ -0,0 +1,5 @@
1
+ export enum ShippingMethodPricingType {
2
+ Fixed = 'fixed',
3
+ Free = 'free',
4
+ Matrix = 'matrix',
5
+ }
package/src/index.ts CHANGED
@@ -12,11 +12,17 @@ export { Carts } from './services/carts';
12
12
  export { Channels } from './services/channels';
13
13
  export { Customers } from './services/customers';
14
14
  export { Greetings } from './services/greetings';
15
+ export { Inventories } from './services/inventories';
15
16
  export { Locale } from './services/locale';
16
17
  export { Markets } from './services/markets';
17
18
  export { Messaging } from './services/messaging';
19
+ export { Orders } from './services/orders';
20
+ export { Pages } from './services/pages';
21
+ export { Payments } from './services/payments';
22
+ export { Prices } from './services/prices';
18
23
  export { Products } from './services/products';
19
24
  export { Search } from './services/search';
25
+ export { Shipping } from './services/shipping';
20
26
  export { Sites } from './services/sites';
21
27
  export { Storage } from './services/storage';
22
28
  export { Tokens } from './services/tokens';
@@ -41,13 +47,37 @@ export { Theme } from './enums/theme';
41
47
  export { Timezone } from './enums/timezone';
42
48
  export { Permissions } from './enums/permissions';
43
49
  export { Output } from './enums/output';
50
+ export { CartIoDirection } from './enums/cart-io-direction';
51
+ export { CartIoApplyMode } from './enums/cart-io-apply-mode';
52
+ export { CartIoEntity } from './enums/cart-io-entity';
53
+ export { CartIoFormat } from './enums/cart-io-format';
54
+ export { CartItemType } from './enums/cart-item-type';
55
+ export { CartExportFormat } from './enums/cart-export-format';
56
+ export { ChannelStatus } from './enums/channel-status';
57
+ export { ChannelType } from './enums/channel-type';
58
+ export { AddressType } from './enums/address-type';
59
+ export { ContactRole } from './enums/contact-role';
60
+ export { ContactStatus } from './enums/contact-status';
61
+ export { OrganizationStatus } from './enums/organization-status';
62
+ export { LocationType } from './enums/location-type';
63
+ export { MarketStatus } from './enums/market-status';
44
64
  export { Priority } from './enums/priority';
65
+ export { OrderCommentVisibility } from './enums/order-comment-visibility';
66
+ export { OrderPaymentStatus } from './enums/order-payment-status';
67
+ export { PageStatus } from './enums/page-status';
68
+ export { PaymentFeeType } from './enums/payment-fee-type';
69
+ export { PaymentMethodKind } from './enums/payment-method-kind';
70
+ export { PriceListStatus } from './enums/price-list-status';
71
+ export { PriceEntryType } from './enums/price-entry-type';
45
72
  export { Collection } from './enums/collection';
73
+ export { ShippingMethodMatrixBasis } from './enums/shipping-method-matrix-basis';
74
+ export { ShippingMethodPricingType } from './enums/shipping-method-pricing-type';
46
75
  export { BuildRuntime } from './enums/build-runtime';
47
76
  export { Framework } from './enums/framework';
48
77
  export { Adapter } from './enums/adapter';
49
78
  export { Compression } from './enums/compression';
50
79
  export { Gravity } from './enums/gravity';
80
+ export { OrderItemType } from './enums/order-item-type';
51
81
  export { AttributeBooleanStatus } from './enums/attribute-boolean-status';
52
82
  export { AttributeDatetimeStatus } from './enums/attribute-datetime-status';
53
83
  export { AttributeEmailStatus } from './enums/attribute-email-status';