@retaila/shared-types 1.0.7 → 1.1.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.
Files changed (141) hide show
  1. package/dist/account/types.d.ts +7 -1
  2. package/dist/account/types.d.ts.map +1 -1
  3. package/dist/account/types.js +8 -0
  4. package/dist/account/types.js.map +1 -1
  5. package/dist/accountBranch/index.d.ts +2 -0
  6. package/dist/accountBranch/index.d.ts.map +1 -0
  7. package/dist/accountBranch/index.js +20 -0
  8. package/dist/accountBranch/index.js.map +1 -0
  9. package/dist/accountBranch/types.d.ts +53 -0
  10. package/dist/accountBranch/types.d.ts.map +1 -0
  11. package/dist/accountBranch/types.js +24 -0
  12. package/dist/accountBranch/types.js.map +1 -0
  13. package/dist/accountDeliveryOption/index.d.ts +2 -0
  14. package/dist/accountDeliveryOption/index.d.ts.map +1 -0
  15. package/dist/accountDeliveryOption/index.js +20 -0
  16. package/dist/accountDeliveryOption/index.js.map +1 -0
  17. package/dist/accountDeliveryOption/types.d.ts +58 -0
  18. package/dist/accountDeliveryOption/types.d.ts.map +1 -0
  19. package/dist/accountDeliveryOption/types.js +19 -0
  20. package/dist/accountDeliveryOption/types.js.map +1 -0
  21. package/dist/accountDomain/index.d.ts +2 -0
  22. package/dist/accountDomain/index.d.ts.map +1 -0
  23. package/dist/accountDomain/index.js +20 -0
  24. package/dist/accountDomain/index.js.map +1 -0
  25. package/dist/accountDomain/types.d.ts +23 -0
  26. package/dist/accountDomain/types.d.ts.map +1 -0
  27. package/dist/accountDomain/types.js +15 -0
  28. package/dist/accountDomain/types.js.map +1 -0
  29. package/dist/accountIntegration/index.d.ts +2 -0
  30. package/dist/accountIntegration/index.d.ts.map +1 -0
  31. package/dist/accountIntegration/index.js +20 -0
  32. package/dist/accountIntegration/index.js.map +1 -0
  33. package/dist/accountIntegration/types.d.ts +28 -0
  34. package/dist/accountIntegration/types.d.ts.map +1 -0
  35. package/dist/accountIntegration/types.js +21 -0
  36. package/dist/accountIntegration/types.js.map +1 -0
  37. package/dist/cart/dto.d.ts +97 -0
  38. package/dist/cart/dto.d.ts.map +1 -0
  39. package/dist/cart/dto.js +16 -0
  40. package/dist/cart/dto.js.map +1 -0
  41. package/dist/cart/index.d.ts +3 -0
  42. package/dist/cart/index.d.ts.map +1 -0
  43. package/dist/cart/index.js +21 -0
  44. package/dist/cart/index.js.map +1 -0
  45. package/dist/cart/types.d.ts +64 -0
  46. package/dist/cart/types.d.ts.map +1 -0
  47. package/dist/cart/types.js +19 -0
  48. package/dist/cart/types.js.map +1 -0
  49. package/dist/common/Address.d.ts +13 -0
  50. package/dist/common/Address.d.ts.map +1 -0
  51. package/dist/common/Address.js +3 -0
  52. package/dist/common/Address.js.map +1 -0
  53. package/dist/common/Currency.d.ts +9 -0
  54. package/dist/common/Currency.d.ts.map +1 -0
  55. package/dist/common/Currency.js +23 -0
  56. package/dist/common/Currency.js.map +1 -0
  57. package/dist/common/Media.d.ts +28 -0
  58. package/dist/common/Media.d.ts.map +1 -0
  59. package/dist/common/Media.js +17 -0
  60. package/dist/common/Media.js.map +1 -0
  61. package/dist/common/Phone.d.ts +8 -0
  62. package/dist/common/Phone.d.ts.map +1 -0
  63. package/dist/common/Phone.js +3 -0
  64. package/dist/common/Phone.js.map +1 -0
  65. package/dist/common/index.d.ts +4 -0
  66. package/dist/common/index.d.ts.map +1 -1
  67. package/dist/common/index.js +4 -0
  68. package/dist/common/index.js.map +1 -1
  69. package/dist/index.d.ts +13 -0
  70. package/dist/index.d.ts.map +1 -1
  71. package/dist/index.js +13 -0
  72. package/dist/index.js.map +1 -1
  73. package/dist/integration/index.d.ts +2 -0
  74. package/dist/integration/index.d.ts.map +1 -0
  75. package/dist/integration/index.js +20 -0
  76. package/dist/integration/index.js.map +1 -0
  77. package/dist/integration/types.d.ts +36 -0
  78. package/dist/integration/types.d.ts.map +1 -0
  79. package/dist/integration/types.js +27 -0
  80. package/dist/integration/types.js.map +1 -0
  81. package/dist/order/dto.d.ts +9 -0
  82. package/dist/order/dto.d.ts.map +1 -0
  83. package/dist/order/dto.js +3 -0
  84. package/dist/order/dto.js.map +1 -0
  85. package/dist/order/index.d.ts +3 -0
  86. package/dist/order/index.d.ts.map +1 -0
  87. package/dist/order/index.js +21 -0
  88. package/dist/order/index.js.map +1 -0
  89. package/dist/order/types.d.ts +105 -0
  90. package/dist/order/types.d.ts.map +1 -0
  91. package/dist/order/types.js +40 -0
  92. package/dist/order/types.js.map +1 -0
  93. package/dist/product/index.d.ts +2 -0
  94. package/dist/product/index.d.ts.map +1 -0
  95. package/dist/product/index.js +20 -0
  96. package/dist/product/index.js.map +1 -0
  97. package/dist/product/types.d.ts +66 -0
  98. package/dist/product/types.d.ts.map +1 -0
  99. package/dist/product/types.js +18 -0
  100. package/dist/product/types.js.map +1 -0
  101. package/dist/productAttribute/index.d.ts +2 -0
  102. package/dist/productAttribute/index.d.ts.map +1 -0
  103. package/dist/productAttribute/index.js +20 -0
  104. package/dist/productAttribute/index.js.map +1 -0
  105. package/dist/productAttribute/types.d.ts +48 -0
  106. package/dist/productAttribute/types.d.ts.map +1 -0
  107. package/dist/productAttribute/types.js +22 -0
  108. package/dist/productAttribute/types.js.map +1 -0
  109. package/dist/productCategory/index.d.ts +2 -0
  110. package/dist/productCategory/index.d.ts.map +1 -0
  111. package/dist/productCategory/index.js +20 -0
  112. package/dist/productCategory/index.js.map +1 -0
  113. package/dist/productCategory/types.d.ts +31 -0
  114. package/dist/productCategory/types.d.ts.map +1 -0
  115. package/dist/productCategory/types.js +9 -0
  116. package/dist/productCategory/types.js.map +1 -0
  117. package/dist/standardCategory/index.d.ts +2 -0
  118. package/dist/standardCategory/index.d.ts.map +1 -0
  119. package/dist/standardCategory/index.js +20 -0
  120. package/dist/standardCategory/index.js.map +1 -0
  121. package/dist/standardCategory/types.d.ts +32 -0
  122. package/dist/standardCategory/types.d.ts.map +1 -0
  123. package/dist/standardCategory/types.js +14 -0
  124. package/dist/standardCategory/types.js.map +1 -0
  125. package/dist/storeBanner/index.d.ts +2 -0
  126. package/dist/storeBanner/index.d.ts.map +1 -0
  127. package/dist/storeBanner/index.js +20 -0
  128. package/dist/storeBanner/index.js.map +1 -0
  129. package/dist/storeBanner/types.d.ts +28 -0
  130. package/dist/storeBanner/types.d.ts.map +1 -0
  131. package/dist/storeBanner/types.js +13 -0
  132. package/dist/storeBanner/types.js.map +1 -0
  133. package/dist/storePage/index.d.ts +2 -0
  134. package/dist/storePage/index.d.ts.map +1 -0
  135. package/dist/storePage/index.js +20 -0
  136. package/dist/storePage/index.js.map +1 -0
  137. package/dist/storePage/types.d.ts +37 -0
  138. package/dist/storePage/types.d.ts.map +1 -0
  139. package/dist/storePage/types.js +27 -0
  140. package/dist/storePage/types.js.map +1 -0
  141. package/package.json +1 -1
@@ -0,0 +1,64 @@
1
+ import { CartItemValidation } from "./dto";
2
+ /**
3
+ * Entidad Cart
4
+ * Define el carrito de compras de un cliente en el sitio web.
5
+ */
6
+ export interface Cart {
7
+ id: string;
8
+ code: string;
9
+ customerId?: string;
10
+ sessionId?: string;
11
+ items: CartItem[];
12
+ subtotal: number;
13
+ total: number;
14
+ currency: string;
15
+ itemCount: number;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ status: CartStatus;
19
+ source: CartSource;
20
+ recoveryToken?: string;
21
+ userEmail?: string;
22
+ userId?: string;
23
+ customerNote?: string;
24
+ hasIssues: boolean;
25
+ issuesCount: number;
26
+ subtotalPrice?: number;
27
+ totalDiscounts?: number;
28
+ totalShippingPrice?: number;
29
+ totalTax?: number;
30
+ totalPrice?: number;
31
+ taxDetails?: any;
32
+ }
33
+ export interface CartItem {
34
+ id: string;
35
+ productId: string;
36
+ productVariantId: string;
37
+ name: string;
38
+ unitPrice: number;
39
+ quantity: number;
40
+ image?: string;
41
+ thumbnailUrl?: string;
42
+ sku?: string;
43
+ attributeDetails: CartItemAttributeDetail[];
44
+ validation?: CartItemValidation;
45
+ }
46
+ export interface CartItemAttributeDetail {
47
+ name: string;
48
+ value: string;
49
+ type?: string;
50
+ }
51
+ export declare enum CartStatus {
52
+ ACTIVE = "ACTIVE",
53
+ LOCKED = "LOCKED",
54
+ EXPIRED = "EXPIRED",
55
+ CONVERTED = "CONVERTED",
56
+ ABANDONED = "ABANDONED",
57
+ MERGED = "MERGED"
58
+ }
59
+ export declare enum CartSource {
60
+ WEB = "WEB",
61
+ POS = "POS",
62
+ API = "API"
63
+ }
64
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/cart/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE3C;;;GAGG;AAEH,MAAM,WAAW,IAAI;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,UAAU,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IAEpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,uBAAuB,EAAE,CAAC;IAE5C,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACnC;AAGD,MAAM,WAAW,uBAAuB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oBAAY,UAAU;IAClB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,MAAM,WAAW;CACpB;AAED,oBAAY,UAAU;IAClB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACd"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CartSource = exports.CartStatus = void 0;
4
+ var CartStatus;
5
+ (function (CartStatus) {
6
+ CartStatus["ACTIVE"] = "ACTIVE";
7
+ CartStatus["LOCKED"] = "LOCKED";
8
+ CartStatus["EXPIRED"] = "EXPIRED";
9
+ CartStatus["CONVERTED"] = "CONVERTED";
10
+ CartStatus["ABANDONED"] = "ABANDONED";
11
+ CartStatus["MERGED"] = "MERGED";
12
+ })(CartStatus || (exports.CartStatus = CartStatus = {}));
13
+ var CartSource;
14
+ (function (CartSource) {
15
+ CartSource["WEB"] = "WEB";
16
+ CartSource["POS"] = "POS";
17
+ CartSource["API"] = "API";
18
+ })(CartSource || (exports.CartSource = CartSource = {}));
19
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/cart/types.ts"],"names":[],"mappings":";;;AA0DA,IAAY,UAOX;AAPD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;IACvB,qCAAuB,CAAA;IACvB,+BAAiB,CAAA;AACrB,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IAClB,yBAAW,CAAA;IACX,yBAAW,CAAA;IACX,yBAAW,CAAA;AACf,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
@@ -0,0 +1,13 @@
1
+ export interface Address {
2
+ country: string;
3
+ department: string;
4
+ locality: string;
5
+ street: string;
6
+ number: string;
7
+ mapPosition?: MapPosition;
8
+ }
9
+ export interface MapPosition {
10
+ lat: number;
11
+ lng: number;
12
+ }
13
+ //# sourceMappingURL=Address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../src/common/Address.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Address.js","sourceRoot":"","sources":["../../src/common/Address.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export declare enum Currency {
2
+ USD = "USD",
3
+ EUR = "EUR",
4
+ UYU = "UYU",
5
+ ARS = "ARS",
6
+ BRL = "BRL"
7
+ }
8
+ export declare function getCurrencySymbol(currencyCode: Currency): string;
9
+ //# sourceMappingURL=Currency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../src/common/Currency.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,QAAQ,GAAG,MAAM,CAUhE"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Currency = void 0;
4
+ exports.getCurrencySymbol = getCurrencySymbol;
5
+ var Currency;
6
+ (function (Currency) {
7
+ Currency["USD"] = "USD";
8
+ Currency["EUR"] = "EUR";
9
+ Currency["UYU"] = "UYU";
10
+ Currency["ARS"] = "ARS";
11
+ Currency["BRL"] = "BRL";
12
+ })(Currency || (exports.Currency = Currency = {}));
13
+ function getCurrencySymbol(currencyCode) {
14
+ const currencySymbols = {
15
+ [Currency.USD]: 'U$S',
16
+ [Currency.EUR]: '€',
17
+ [Currency.UYU]: '$',
18
+ [Currency.ARS]: '$',
19
+ [Currency.BRL]: 'R$',
20
+ };
21
+ return currencySymbols[currencyCode] || currencyCode.toString();
22
+ }
23
+ //# sourceMappingURL=Currency.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../src/common/Currency.ts"],"names":[],"mappings":";;;AAQA,8CAUC;AAlBD,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;AACb,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB;AAED,SAAgB,iBAAiB,CAAC,YAAsB;IACtD,MAAM,eAAe,GAA8B;QAC/C,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK;QACrB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG;QACnB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG;QACnB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG;QACnB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,IAAI;KACvB,CAAC;IAEF,OAAO,eAAe,CAAC,YAAY,CAAC,IAAI,YAAY,CAAC,QAAQ,EAAE,CAAC;AAClE,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Entidad Media
3
+ * Se utiliza para almacenar y gestionar archivos y recursos multimedia.
4
+ */
5
+ export interface Media {
6
+ id: string;
7
+ accountId: string;
8
+ filename: string;
9
+ url: string;
10
+ thumbnailUrl: string;
11
+ mimeType: string;
12
+ extension: string;
13
+ size: number;
14
+ type: MediaType;
15
+ altText: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ deletedAt?: Date | null;
19
+ }
20
+ export declare enum MediaType {
21
+ IMAGE = "IMAGE",
22
+ VIDEO = "VIDEO",
23
+ DOCUMENT = "DOCUMENT",
24
+ AUDIO = "AUDIO",
25
+ ARCHIVE = "ARCHIVE",
26
+ OTHER = "OTHER"
27
+ }
28
+ //# sourceMappingURL=Media.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Media.d.ts","sourceRoot":"","sources":["../../src/common/Media.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB;AAED,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * Entidad Media
4
+ * Se utiliza para almacenar y gestionar archivos y recursos multimedia.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.MediaType = void 0;
8
+ var MediaType;
9
+ (function (MediaType) {
10
+ MediaType["IMAGE"] = "IMAGE";
11
+ MediaType["VIDEO"] = "VIDEO";
12
+ MediaType["DOCUMENT"] = "DOCUMENT";
13
+ MediaType["AUDIO"] = "AUDIO";
14
+ MediaType["ARCHIVE"] = "ARCHIVE";
15
+ MediaType["OTHER"] = "OTHER";
16
+ })(MediaType || (exports.MediaType = MediaType = {}));
17
+ //# sourceMappingURL=Media.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Media.js","sourceRoot":"","sources":["../../src/common/Media.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAkBH,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,kCAAqB,CAAA;IACrB,4BAAe,CAAA;IACf,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EAPW,SAAS,yBAAT,SAAS,QAOpB"}
@@ -0,0 +1,8 @@
1
+ export interface Phone {
2
+ countryCode: string;
3
+ national: string;
4
+ international: string;
5
+ type: 'mobile' | 'landline';
6
+ validated: boolean;
7
+ }
8
+ //# sourceMappingURL=Phone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Phone.d.ts","sourceRoot":"","sources":["../../src/common/Phone.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Phone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Phone.js","sourceRoot":"","sources":["../../src/common/Phone.ts"],"names":[],"mappings":""}
@@ -1,2 +1,6 @@
1
1
  export * from './BaseEntity';
2
+ export * from './Address';
3
+ export * from './Media';
4
+ export * from './Phone';
5
+ export * from './Currency';
2
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
@@ -16,4 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  };
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  __exportStar(require("./BaseEntity"), exports);
19
+ __exportStar(require("./Address"), exports);
20
+ __exportStar(require("./Media"), exports);
21
+ __exportStar(require("./Phone"), exports);
22
+ __exportStar(require("./Currency"), exports);
19
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";AAAA,0DAA0D;;;;;;;;;;;;;;;;AAE1D,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";AAAA,0DAA0D;;;;;;;;;;;;;;;;AAE1D,+CAA6B;AAC7B,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,16 @@
1
1
  export * from './common';
2
2
  export * from './account';
3
+ export * from './accountBranch';
4
+ export * from './accountDeliveryOption';
5
+ export * from './accountDomain';
6
+ export * from './accountIntegration';
7
+ export * from './integration';
8
+ export * from './order';
9
+ export * from './product';
10
+ export * from './productAttribute';
11
+ export * from './productCategory';
12
+ export * from './standardCategory';
13
+ export * from './storeBanner';
14
+ export * from './storePage';
15
+ export * from './cart';
3
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
package/dist/index.js CHANGED
@@ -19,4 +19,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./common"), exports);
20
20
  // Entity-specific exports
21
21
  __exportStar(require("./account"), exports);
22
+ __exportStar(require("./accountBranch"), exports);
23
+ __exportStar(require("./accountDeliveryOption"), exports);
24
+ __exportStar(require("./accountDomain"), exports);
25
+ __exportStar(require("./accountIntegration"), exports);
26
+ __exportStar(require("./integration"), exports);
27
+ __exportStar(require("./order"), exports);
28
+ __exportStar(require("./product"), exports);
29
+ __exportStar(require("./productAttribute"), exports);
30
+ __exportStar(require("./productCategory"), exports);
31
+ __exportStar(require("./standardCategory"), exports);
32
+ __exportStar(require("./storeBanner"), exports);
33
+ __exportStar(require("./storePage"), exports);
34
+ __exportStar(require("./cart"), exports);
22
35
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,oEAAoE;;;;;;;;;;;;;;;;AAEpE,eAAe;AACf,2CAAyB;AAEzB,0BAA0B;AAC1B,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,oEAAoE;;;;;;;;;;;;;;;;AAEpE,eAAe;AACf,2CAAyB;AAEzB,0BAA0B;AAC1B,4CAA0B;AAC1B,kDAAgC;AAChC,0DAAwC;AACxC,kDAAgC;AAChC,uDAAqC;AACrC,gDAA8B;AAC9B,0CAAwB;AACxB,4CAA0B;AAC1B,qDAAmC;AACnC,oDAAkC;AAClC,qDAAmC;AACnC,gDAA8B;AAC9B,8CAA4B;AAC5B,yCAAuB"}
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/integration/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // shared-types/src/integration/index.ts - Integration entity exports
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ // Types
19
+ __exportStar(require("./types"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/integration/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;;;;;;;;;;;;;;;;AAErE,QAAQ;AACR,0CAAwB"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Entidad Integration
3
+ * Define las integraciones de terceros disponibles en la plataforma (ej. pasarelas de pago, transportistas).
4
+ * Almacena información sobre el proveedor, categoría y esquema de parámetros requeridos.
5
+ */
6
+ export declare enum IntegrationCategory {
7
+ PAYMENT_GATEWAY = "PAYMENT_GATEWAY",
8
+ SHIPPING_CARRIER = "SHIPPING_CARRIER",
9
+ MARKETPLACE = "MARKETPLACE",
10
+ EMAIL_MARKETING = "EMAIL_MARKETING",
11
+ ANALYTICS = "ANALYTICS",
12
+ ACCOUNTING = "ACCOUNTING",
13
+ SOCIAL_MEDIA = "SOCIAL_MEDIA",
14
+ OTHER = "OTHER"
15
+ }
16
+ export declare enum IntegrationStatus {
17
+ ACTIVE = "ACTIVE",
18
+ INACTIVE = "INACTIVE",
19
+ BETA = "BETA",
20
+ DEPRECATED = "DEPRECATED"
21
+ }
22
+ export interface Integration {
23
+ id: string;
24
+ category: IntegrationCategory;
25
+ providerKey: string;
26
+ name: string;
27
+ description?: string;
28
+ setupInstructions?: string;
29
+ logoUrl?: string;
30
+ requiredParamsSchema?: any;
31
+ status: IntegrationStatus;
32
+ createdAt: Date;
33
+ updatedAt: Date;
34
+ deletedAt?: Date | null;
35
+ }
36
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/integration/types.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH,oBAAY,mBAAmB;IAC9B,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,KAAK,UAAU;CACf;AAED,oBAAY,iBAAiB;IAC5B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,UAAU,eAAe;CACzB;AAED,MAAM,WAAW,WAAW;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,GAAG,CAAC;IAC3B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ /**
3
+ * Entidad Integration
4
+ * Define las integraciones de terceros disponibles en la plataforma (ej. pasarelas de pago, transportistas).
5
+ * Almacena información sobre el proveedor, categoría y esquema de parámetros requeridos.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.IntegrationStatus = exports.IntegrationCategory = void 0;
9
+ var IntegrationCategory;
10
+ (function (IntegrationCategory) {
11
+ IntegrationCategory["PAYMENT_GATEWAY"] = "PAYMENT_GATEWAY";
12
+ IntegrationCategory["SHIPPING_CARRIER"] = "SHIPPING_CARRIER";
13
+ IntegrationCategory["MARKETPLACE"] = "MARKETPLACE";
14
+ IntegrationCategory["EMAIL_MARKETING"] = "EMAIL_MARKETING";
15
+ IntegrationCategory["ANALYTICS"] = "ANALYTICS";
16
+ IntegrationCategory["ACCOUNTING"] = "ACCOUNTING";
17
+ IntegrationCategory["SOCIAL_MEDIA"] = "SOCIAL_MEDIA";
18
+ IntegrationCategory["OTHER"] = "OTHER";
19
+ })(IntegrationCategory || (exports.IntegrationCategory = IntegrationCategory = {}));
20
+ var IntegrationStatus;
21
+ (function (IntegrationStatus) {
22
+ IntegrationStatus["ACTIVE"] = "ACTIVE";
23
+ IntegrationStatus["INACTIVE"] = "INACTIVE";
24
+ IntegrationStatus["BETA"] = "BETA";
25
+ IntegrationStatus["DEPRECATED"] = "DEPRECATED";
26
+ })(IntegrationStatus || (exports.IntegrationStatus = IntegrationStatus = {}));
27
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/integration/types.ts"],"names":[],"mappings":";AACA;;;;GAIG;;;AAEH,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC9B,0DAAmC,CAAA;IACnC,4DAAqC,CAAA;IACrC,kDAA2B,CAAA;IAC3B,0DAAmC,CAAA;IACnC,8CAAuB,CAAA;IACvB,gDAAyB,CAAA;IACzB,oDAA6B,CAAA;IAC7B,sCAAe,CAAA;AAChB,CAAC,EATW,mBAAmB,mCAAnB,mBAAmB,QAS9B;AAED,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;IACb,8CAAyB,CAAA;AAC1B,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Add an item to the cart
3
+ */
4
+ export interface OrderCreateFromCartDto {
5
+ cartId: string;
6
+ paymentMethodIntegrationId?: string;
7
+ customerNote?: string;
8
+ }
9
+ //# sourceMappingURL=dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dto.d.ts","sourceRoot":"","sources":["../../src/order/dto.ts"],"names":[],"mappings":"AACA;;EAEE;AACF,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dto.js","sourceRoot":"","sources":["../../src/order/dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export * from './dto';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/order/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // shared-types/src/cart/index.ts - Cart entity exports
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ // Types
19
+ __exportStar(require("./types"), exports);
20
+ __exportStar(require("./dto"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/order/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;;;;AAEvD,QAAQ;AACR,0CAAwB;AACxB,wCAAsB"}
@@ -0,0 +1,105 @@
1
+ import { Currency } from "../common";
2
+ /**
3
+ * Entidad Order
4
+ * Define la orden de compra de un cliente en el sitio web.
5
+ */
6
+ export interface Order {
7
+ id: string;
8
+ accountId: string;
9
+ customerId: string;
10
+ cartId?: string;
11
+ code: string;
12
+ deliveryType?: 'shipping' | 'pickup';
13
+ deliveryFirstName?: string;
14
+ deliveryLastName?: string;
15
+ deliveryAddress?: any;
16
+ deliveryPhone?: any;
17
+ deliveryOptionId?: string;
18
+ pickupBranchId?: string;
19
+ paymentMethodIntegrationId?: string;
20
+ billingInformation?: any;
21
+ currency: Currency;
22
+ subtotalPrice: number;
23
+ totalDiscounts: number;
24
+ totalShippingPrice: number;
25
+ totalTax: number;
26
+ taxDetails?: any;
27
+ totalPrice: number;
28
+ totalRefunded: number;
29
+ status: OrderStatus;
30
+ paymentStatus: OrderPaymentStatus;
31
+ fulfillmentStatus: OrderFulfillmentStatus;
32
+ statusHistory?: StatusChangeHistory[];
33
+ customerNote?: string;
34
+ internalNote?: string;
35
+ source: OrderSource;
36
+ demo: boolean;
37
+ createdAt: Date;
38
+ updatedAt: Date;
39
+ cancelledAt?: Date;
40
+ cancelReason?: string;
41
+ deletedAt?: Date;
42
+ items?: OrderItem[];
43
+ }
44
+ export interface OrderItem {
45
+ id: string;
46
+ accountId: string;
47
+ orderId: string;
48
+ productId: string;
49
+ productVariantId: string;
50
+ sku?: string;
51
+ productName: string;
52
+ variantName?: string;
53
+ currency: Currency;
54
+ unitPrice: number;
55
+ totalDiscount: number;
56
+ totalPrice: number;
57
+ quantity: number;
58
+ quantityFulfilled: number;
59
+ quantityRefunded: number;
60
+ quantityReturned: number;
61
+ totalTax: number;
62
+ taxName?: string;
63
+ createdAt: Date;
64
+ updatedAt: Date;
65
+ }
66
+ export declare enum OrderStatus {
67
+ PENDING_PAYMENT = "PENDING_PAYMENT",
68
+ CONFIRMED = "CONFIRMED",
69
+ PROCESSING = "PROCESSING",
70
+ SHIPPED = "SHIPPED",
71
+ PARTIALLY_SHIPPED = "PARTIALLY_SHIPPED",
72
+ DELIVERED = "DELIVERED",
73
+ COMPLETED = "COMPLETED",
74
+ CANCELLED = "CANCELLED",
75
+ REFUNDED = "REFUNDED",
76
+ PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
77
+ ON_HOLD = "ON_HOLD",
78
+ FAILED = "FAILED"
79
+ }
80
+ export declare enum OrderPaymentStatus {
81
+ PENDING = "PENDING",
82
+ PARTIAL = "PARTIAL",
83
+ PAID = "PAID",
84
+ OVERPAID = "OVERPAID",
85
+ REFUNDED = "REFUNDED",
86
+ PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED"
87
+ }
88
+ export declare enum OrderFulfillmentStatus {
89
+ PENDING = "PENDING",
90
+ PARTIAL = "PARTIAL",
91
+ FULFILLED = "FULFILLED"
92
+ }
93
+ export declare enum OrderSource {
94
+ WEB = "WEB",
95
+ POS = "POS",
96
+ API = "API"
97
+ }
98
+ export interface StatusChangeHistory {
99
+ status: OrderStatus;
100
+ timestamp: Date;
101
+ reason?: string;
102
+ userId?: string;
103
+ metadata?: Record<string, any>;
104
+ }
105
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/order/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderSource = exports.OrderFulfillmentStatus = exports.OrderPaymentStatus = exports.OrderStatus = void 0;
4
+ var OrderStatus;
5
+ (function (OrderStatus) {
6
+ OrderStatus["PENDING_PAYMENT"] = "PENDING_PAYMENT";
7
+ OrderStatus["CONFIRMED"] = "CONFIRMED";
8
+ OrderStatus["PROCESSING"] = "PROCESSING";
9
+ OrderStatus["SHIPPED"] = "SHIPPED";
10
+ OrderStatus["PARTIALLY_SHIPPED"] = "PARTIALLY_SHIPPED";
11
+ OrderStatus["DELIVERED"] = "DELIVERED";
12
+ OrderStatus["COMPLETED"] = "COMPLETED";
13
+ OrderStatus["CANCELLED"] = "CANCELLED";
14
+ OrderStatus["REFUNDED"] = "REFUNDED";
15
+ OrderStatus["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
16
+ OrderStatus["ON_HOLD"] = "ON_HOLD";
17
+ OrderStatus["FAILED"] = "FAILED";
18
+ })(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
19
+ var OrderPaymentStatus;
20
+ (function (OrderPaymentStatus) {
21
+ OrderPaymentStatus["PENDING"] = "PENDING";
22
+ OrderPaymentStatus["PARTIAL"] = "PARTIAL";
23
+ OrderPaymentStatus["PAID"] = "PAID";
24
+ OrderPaymentStatus["OVERPAID"] = "OVERPAID";
25
+ OrderPaymentStatus["REFUNDED"] = "REFUNDED";
26
+ OrderPaymentStatus["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
27
+ })(OrderPaymentStatus || (exports.OrderPaymentStatus = OrderPaymentStatus = {}));
28
+ var OrderFulfillmentStatus;
29
+ (function (OrderFulfillmentStatus) {
30
+ OrderFulfillmentStatus["PENDING"] = "PENDING";
31
+ OrderFulfillmentStatus["PARTIAL"] = "PARTIAL";
32
+ OrderFulfillmentStatus["FULFILLED"] = "FULFILLED";
33
+ })(OrderFulfillmentStatus || (exports.OrderFulfillmentStatus = OrderFulfillmentStatus = {}));
34
+ var OrderSource;
35
+ (function (OrderSource) {
36
+ OrderSource["WEB"] = "WEB";
37
+ OrderSource["POS"] = "POS";
38
+ OrderSource["API"] = "API";
39
+ })(OrderSource || (exports.OrderSource = OrderSource = {}));
40
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/order/types.ts"],"names":[],"mappings":";;;AAqEA,IAAY,WAaX;AAbD,WAAY,WAAW;IACnB,kDAAmC,CAAA;IACnC,sCAAuB,CAAA;IACvB,wCAAyB,CAAA;IACzB,kCAAmB,CAAA;IACnB,sDAAuC,CAAA;IACvC,sCAAuB,CAAA;IACvB,sCAAuB,CAAA;IACvB,sCAAuB,CAAA;IACvB,oCAAqB,CAAA;IACrB,wDAAyC,CAAA;IACzC,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;AACrB,CAAC,EAbW,WAAW,2BAAX,WAAW,QAatB;AAED,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC1B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,+DAAyC,CAAA;AAC7C,CAAC,EAPW,kBAAkB,kCAAlB,kBAAkB,QAO7B;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAC9B,6CAAmB,CAAA;IACnB,6CAAmB,CAAA;IACnB,iDAAuB,CAAA;AAC3B,CAAC,EAJW,sBAAsB,sCAAtB,sBAAsB,QAIjC;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,0BAAW,CAAA;AACf,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}