@nicefer/types 1.0.218 → 2.0.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 (110) hide show
  1. package/dist/{api.d.ts → types/api.d.ts} +1 -0
  2. package/dist/types/api.d.ts.map +1 -0
  3. package/dist/types/api.js +3 -0
  4. package/dist/{bag.d.ts → types/bag.d.ts} +1 -0
  5. package/dist/types/bag.d.ts.map +1 -0
  6. package/dist/types/bag.js +1 -0
  7. package/dist/{branch.d.ts → types/branch.d.ts} +1 -0
  8. package/dist/types/branch.d.ts.map +1 -0
  9. package/dist/types/branch.js +1 -0
  10. package/dist/{company.d.ts → types/company.d.ts} +1 -0
  11. package/dist/types/company.d.ts.map +1 -0
  12. package/dist/types/company.js +2 -0
  13. package/dist/{countries.d.ts → types/countries.d.ts} +1 -0
  14. package/dist/types/countries.d.ts.map +1 -0
  15. package/dist/{countries.js → types/countries.js} +4 -5
  16. package/dist/{index.d.ts → types/index.d.ts} +1 -0
  17. package/dist/types/index.d.ts.map +1 -0
  18. package/{src/index.ts → dist/types/index.js} +17 -19
  19. package/dist/{orders.d.ts → types/orders.d.ts} +1 -0
  20. package/dist/types/orders.d.ts.map +1 -0
  21. package/dist/types/orders.js +9 -0
  22. package/dist/{payments.d.ts → types/payments.d.ts} +1 -0
  23. package/dist/types/payments.d.ts.map +1 -0
  24. package/dist/types/payments.js +1 -0
  25. package/dist/{product-category.d.ts → types/product-category.d.ts} +1 -0
  26. package/dist/types/product-category.d.ts.map +1 -0
  27. package/dist/types/product-category.js +2 -0
  28. package/dist/{products.d.ts → types/products.d.ts} +1 -0
  29. package/dist/types/products.d.ts.map +1 -0
  30. package/dist/types/products.js +6 -0
  31. package/dist/{replenishment.d.ts → types/replenishment.d.ts} +1 -0
  32. package/dist/types/replenishment.d.ts.map +1 -0
  33. package/dist/types/replenishment.js +5 -0
  34. package/dist/{stats.d.ts → types/stats.d.ts} +1 -0
  35. package/dist/types/stats.d.ts.map +1 -0
  36. package/dist/types/stats.js +1 -0
  37. package/dist/{translations.d.ts → types/translations.d.ts} +1 -0
  38. package/dist/types/translations.d.ts.map +1 -0
  39. package/dist/types/translations.js +1 -0
  40. package/dist/{users.d.ts → types/users.d.ts} +1 -0
  41. package/dist/types/users.d.ts.map +1 -0
  42. package/dist/types/users.js +3 -0
  43. package/dist/{warehouses.d.ts → types/warehouses.d.ts} +1 -0
  44. package/dist/types/warehouses.d.ts.map +1 -0
  45. package/dist/types/warehouses.js +2 -0
  46. package/dist/{org → types-org}/event.d.ts +1 -0
  47. package/dist/types-org/event.d.ts.map +1 -0
  48. package/dist/types-org/event.js +1 -0
  49. package/dist/types-org/index.d.ts +3 -0
  50. package/dist/types-org/index.d.ts.map +1 -0
  51. package/dist/types-org/index.js +2 -0
  52. package/dist/{org → types-org}/radar.d.ts +1 -0
  53. package/dist/types-org/radar.d.ts.map +1 -0
  54. package/dist/types-org/radar.js +3 -0
  55. package/package.json +11 -1
  56. package/dist/api.js +0 -4
  57. package/dist/api.js.map +0 -1
  58. package/dist/bag.js +0 -2
  59. package/dist/bag.js.map +0 -1
  60. package/dist/branch.js +0 -2
  61. package/dist/branch.js.map +0 -1
  62. package/dist/company.js +0 -3
  63. package/dist/company.js.map +0 -1
  64. package/dist/countries.js.map +0 -1
  65. package/dist/index.js +0 -18
  66. package/dist/index.js.map +0 -1
  67. package/dist/orders.js +0 -10
  68. package/dist/orders.js.map +0 -1
  69. package/dist/org/event.js +0 -2
  70. package/dist/org/event.js.map +0 -1
  71. package/dist/org/index.d.ts +0 -2
  72. package/dist/org/index.js +0 -2
  73. package/dist/org/index.js.map +0 -1
  74. package/dist/org/radar.js +0 -4
  75. package/dist/org/radar.js.map +0 -1
  76. package/dist/payments.js +0 -2
  77. package/dist/payments.js.map +0 -1
  78. package/dist/product-category.js +0 -3
  79. package/dist/product-category.js.map +0 -1
  80. package/dist/products.js +0 -7
  81. package/dist/products.js.map +0 -1
  82. package/dist/replenishment.js +0 -6
  83. package/dist/replenishment.js.map +0 -1
  84. package/dist/stats.js +0 -2
  85. package/dist/stats.js.map +0 -1
  86. package/dist/translations.js +0 -2
  87. package/dist/translations.js.map +0 -1
  88. package/dist/users.js +0 -4
  89. package/dist/users.js.map +0 -1
  90. package/dist/warehouses.js +0 -3
  91. package/dist/warehouses.js.map +0 -1
  92. package/src/api.ts +0 -12
  93. package/src/bag.ts +0 -45
  94. package/src/branch.ts +0 -22
  95. package/src/company.ts +0 -11
  96. package/src/countries.ts +0 -227
  97. package/src/orders.ts +0 -112
  98. package/src/org/event.ts +0 -17
  99. package/src/org/index.ts +0 -2
  100. package/src/org/radar.ts +0 -86
  101. package/src/payments.ts +0 -79
  102. package/src/product-category.ts +0 -34
  103. package/src/products.ts +0 -129
  104. package/src/replenishment.ts +0 -114
  105. package/src/stats.ts +0 -18
  106. package/src/translations.ts +0 -3
  107. package/src/users.ts +0 -85
  108. package/src/warehouses.ts +0 -53
  109. package/tsconfig.json +0 -40
  110. package/tsconfig.json.old +0 -16
@@ -9,3 +9,4 @@ export interface ApiResponse<Data, ErrorCodes = string> {
9
9
  error?: ErrorCodes;
10
10
  data?: Data;
11
11
  }
12
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/types/api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IACpD,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb"}
@@ -0,0 +1,3 @@
1
+ ;
2
+ ;
3
+ export {};
@@ -33,3 +33,4 @@ export interface ProductWithVariantInBag {
33
33
  createdAt: string;
34
34
  updatedAt?: string;
35
35
  }
36
+ //# sourceMappingURL=bag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bag.d.ts","sourceRoot":"","sources":["../../src/types/bag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,GAAG;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACnC,GAAG,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IACxB,QAAQ,EAAE,uBAAuB,EAAE,CAAC;CACrC;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IAEpB,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,GAAG,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAExB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IAEpB,eAAe,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;IAEvD,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -18,3 +18,4 @@ export interface BranchFK {
18
18
  id: string;
19
19
  name: string;
20
20
  }
21
+ //# sourceMappingURL=branch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branch.d.ts","sourceRoot":"","sources":["../../src/types/branch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,CAAC;IAC1C,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1 @@
1
+ export {};
@@ -8,3 +8,4 @@ export interface CompanyFK {
8
8
  id: string;
9
9
  displayName: string;
10
10
  }
11
+ //# sourceMappingURL=company.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"company.d.ts","sourceRoot":"","sources":["../../src/types/company.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,2 @@
1
+ ;
2
+ export {};
@@ -29,3 +29,4 @@ export declare function getRegionsByCountryId(id: 'HN' | 'US' | 'SV'): Region[]
29
29
  */
30
30
  export declare const compareCountries: (c1: Country, c2: Country) => boolean;
31
31
  export declare const compareRegions: (r1: Region, r2: Region) => boolean;
32
+ //# sourceMappingURL=countries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countries.d.ts","sourceRoot":"","sources":["../../src/types/countries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACjC;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,EAAE,OAAO,EA4B9B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE;KAAE,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE;CAiK5D,CAAA;AAED,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,EAAE,GAAG,GAAG,EAAE,CAE9E;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,IAAI,OAAO,EAAE,IAAI,OAAO,YAAuC,CAAC;AACjG,eAAO,MAAM,cAAc,GAAI,IAAI,MAAM,EAAE,IAAI,MAAM,YAAuC,CAAC"}
@@ -1,4 +1,4 @@
1
- export var Countries = [
1
+ export const Countries = [
2
2
  {
3
3
  id: 'HN',
4
4
  name: 'Honduras',
@@ -24,7 +24,7 @@ export var Countries = [
24
24
  ccy: 'USD'
25
25
  },
26
26
  ];
27
- export var Regions = {
27
+ export const Regions = {
28
28
  HN: [
29
29
  {
30
30
  id: "AT",
@@ -191,6 +191,5 @@ export function getRegionsByCountryId(id) {
191
191
  * @param c2
192
192
  * @returns
193
193
  */
194
- export var compareCountries = function (c1, c2) { return c1 && c2 ? c1.id === c2.id : false; };
195
- export var compareRegions = function (r1, r2) { return r1 && r2 ? r1.id === r2.id : false; };
196
- //# sourceMappingURL=countries.js.map
194
+ export const compareCountries = (c1, c2) => c1 && c2 ? c1.id === c2.id : false;
195
+ export const compareRegions = (r1, r2) => r1 && r2 ? r1.id === r2.id : false;
@@ -13,3 +13,4 @@ export * from './users';
13
13
  export * from './warehouses';
14
14
  export * from './translations';
15
15
  export * from './company';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAEA,+BAA+B;AAE/B,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC"}
@@ -1,19 +1,17 @@
1
- // src/index.ts
2
-
3
- /** ID único para un usuario */
4
- // export type UserId = string & { __brand: 'UserId' };
5
- export * from './api';
6
- export * from './bag';
7
- export * from './branch';
8
- export * from './countries';
9
- export * from './orders';
10
- export * from './stats';
11
- export * from './payments';
12
- export * from './product-category';
13
- export * from './products';
14
- export * from './replenishment';
15
- export * from './users';
16
- export * from './warehouses';
17
- export * from './translations';
18
- export * from './company';
19
-
1
+ // src/index.ts
2
+ /** ID único para un usuario */
3
+ // export type UserId = string & { __brand: 'UserId' };
4
+ export * from './api';
5
+ export * from './bag';
6
+ export * from './branch';
7
+ export * from './countries';
8
+ export * from './orders';
9
+ export * from './stats';
10
+ export * from './payments';
11
+ export * from './product-category';
12
+ export * from './products';
13
+ export * from './replenishment';
14
+ export * from './users';
15
+ export * from './warehouses';
16
+ export * from './translations';
17
+ export * from './company';
@@ -101,3 +101,4 @@ export interface OrderReady {
101
101
  export interface OrdersReady {
102
102
  [warehouseId: string]: OrderReady;
103
103
  }
104
+ //# sourceMappingURL=orders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orders.d.ts","sourceRoot":"","sources":["../../src/types/orders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,IAAI;IAAG,QAAQ,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAAE;AAE5E,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,S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AC;CACnC"}
@@ -0,0 +1,9 @@
1
+ ;
2
+ ;
3
+ ;
4
+ ;
5
+ ;
6
+ ;
7
+ ;
8
+ ;
9
+ export {};
@@ -68,3 +68,4 @@ export interface StripePaymentIntentResponse {
68
68
  currency: string;
69
69
  }
70
70
  export type PaymentErrorCodes = 'ERR_PAYMENT' | 'ERR_REINTENT_PAYMENT' | 'authentication_required' | 'requires_action';
71
+ //# sourceMappingURL=payments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/types/payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAG5D;;KAEK;AACL,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,SAAS,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;KAAE,CAAC;IAEhD;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,GAAG,EAAE,IAAI,CAAC;IAEV;;;OAGG;IACH,GAAG,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAE3B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAGD;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,mBAAmB,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxD,kBAAkB,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,uBAAuB,CAAC;CACnC;AAED,MAAM,WAAW,uBAAuB;IACtC,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,uBAAuB,GAAG,QAAQ,CAAC;IAC7C,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,sBAAsB,GAAG,yBAAyB,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -27,3 +27,4 @@ export interface ProductCategoryInDB {
27
27
  id: string;
28
28
  subcategory: string;
29
29
  }
30
+ //# sourceMappingURL=product-category.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-category.d.ts","sourceRoot":"","sources":["../../src/types/product-category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,GAAE,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,GAAG,kBAAkB,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAChK,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAGD,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAA;CACpB"}
@@ -0,0 +1,2 @@
1
+ ;
2
+ export {};
@@ -139,3 +139,4 @@ export interface ProductGroupVariant {
139
139
  dataFromServer: boolean;
140
140
  }
141
141
  export {};
142
+ //# sourceMappingURL=products.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/types/products.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,WAAW,2BAA2B;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAAE;AACnF,MAAM,WAAW,kBAAkB;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE;AAEpE,KAAK,cAAc,GAAG,OAAO,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AAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,oFAAoF;IACpF,cAAc,EAAE,OAAO,CAAC;CACzB"}
@@ -0,0 +1,6 @@
1
+ ;
2
+ ;
3
+ ;
4
+ ;
5
+ ;
6
+ export {};
@@ -97,3 +97,4 @@ export interface RPackage {
97
97
  */
98
98
  createdAt: string;
99
99
  }
100
+ //# sourceMappingURL=replenishment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replenishment.d.ts","sourceRoot":"","sources":["../../src/types/replenishment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IAEpB,uEAAuE;IACvE,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,oBAAoB,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;IAEzD;;OAEG;IACH,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC,sBAAsB,CAAC,CAAC;IACtD,IAAI,EAAE,YAAY,GAAG,SAAS,GAAG,MAAM,CAAC;IAExC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,eAAe,EAAE,CAAC;IAEnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;QACX,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IAEF;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,5 @@
1
+ ;
2
+ ;
3
+ ;
4
+ ;
5
+ export {};
@@ -11,3 +11,4 @@ export interface UserStats {
11
11
  };
12
12
  qtyReferrals?: number;
13
13
  }
14
+ //# sourceMappingURL=stats.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../src/types/stats.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
1
  export interface Translations<T = any> {
2
2
  [key: string]: T;
3
3
  }
4
+ //# sourceMappingURL=translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../src/types/translations.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,GAAG;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;CAClB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -82,3 +82,4 @@ export interface UserSearch {
82
82
  tags: string[];
83
83
  createdAt: string;
84
84
  }
85
+ //# sourceMappingURL=users.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/types/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,WAAW,IAAI;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE;QAAC,GAAG,EAAE,M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G,IAAI,GAAG,SAAS,CAAC;CACrC;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ ;
2
+ ;
3
+ export {};
@@ -45,3 +45,4 @@ export interface DeliveryMethod {
45
45
  */
46
46
  maxLbPerFee: number;
47
47
  }
48
+ //# sourceMappingURL=warehouses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warehouses.d.ts","sourceRoot":"","sources":["../../src/types/warehouses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,CAAC;IAC1C;;OAEG;IACH,WAAW,EAAE;SAAE,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,qBAAqB;KAAC,CAAC;IACnE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE;SACd,gBAAgB,IAAI,cAAc,CAAC,IAAI,CAAC,GAAG,cAAc;KAC3D,CAAC;CACH;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,2 @@
1
+ ;
2
+ export {};
@@ -15,3 +15,4 @@ export interface NiceEvent {
15
15
  createdAt: string;
16
16
  updatedAt?: string;
17
17
  }
18
+ //# sourceMappingURL=event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/types-org/event.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './event';
2
+ export * from './radar';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types-org/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './event';
2
+ export * from './radar';
@@ -77,3 +77,4 @@ export interface Donation {
77
77
  };
78
78
  createdAt?: string;
79
79
  }
80
+ //# sourceMappingURL=radar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radar.d.ts","sourceRoot":"","sources":["../../src/types-org/radar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,MAAM,QAAQ,GAAS,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AACjD,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,SAAS,GAAG,eAAe,GAAG,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAEtI;;;;;;;GAOG;AACH,MAAM,MAAM,MAAM,GAAG,iBAAiB,GAAG,OAAO,GAAG,oBAAoB,CAAC;AAExE;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,uBAAuB,GAAG,aAAa,GAAG,cAAc,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAE5H,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IAC1C,IAAI,EAAE,QAAQ,CAAC;IAEf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,eAAe,CAAC;IAEzB;;;OAGG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,QAAQ,CAAC;IAClB,aAAa,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC;IAErC,KAAK,CAAC,EAAE;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAA;KAAE,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ ;
2
+ ;
3
+ export {};
package/package.json CHANGED
@@ -1,10 +1,20 @@
1
1
  {
2
2
  "name": "@nicefer/types",
3
- "version": "1.0.218",
3
+ "version": "2.0.0",
4
4
  "description": "Tipos compartidos para Nicefer",
5
+ "main": "dist/types/index.js",
6
+ "exports": {
7
+ ".": "./dist/types/index.js",
8
+ "./org": "./dist/types-org/index.js"
9
+ },
10
+ "types": "dist/types/index.d.ts",
11
+ "files": [
12
+ "dist"
13
+ ],
5
14
  "scripts": {
6
15
  "build": "tsc",
7
16
  "deploy": "tsc & npm version patch & npm publish --access public",
17
+ "deploy:beta": "tsc & npm publish --access public --tag beta",
8
18
  "test": "echo \"Error: no test specified\" && exit 1"
9
19
  },
10
20
  "keywords": [],
package/dist/api.js DELETED
@@ -1,4 +0,0 @@
1
- ;
2
- ;
3
- export {};
4
- //# sourceMappingURL=api.js.map
package/dist/api.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAKC,CAAC;AAMD,CAAC","sourcesContent":["export interface ApiRequest {\r\n route: string;\r\n auth?: boolean;\r\n params?: any;\r\n page?: number\r\n};\r\n\r\nexport interface ApiResponse<Data, ErrorCodes = string> {\r\n ok: boolean;\r\n error?: ErrorCodes;\r\n data?: Data;\r\n};\r\n"]}
package/dist/bag.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=bag.js.map
package/dist/bag.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"bag.js","sourceRoot":"","sources":["../src/bag.ts"],"names":[],"mappings":"","sourcesContent":["import { OrderDiscountApplied } from \"./orders\";\r\nimport { PaymentInDB } from \"./payments\";\r\nimport { CategoryType } from \"./product-category\";\r\nimport { ProductVariantInDB } from \"./products\";\r\n\r\nexport interface Bag {\r\n subtotalPrice: number;\r\n subtotalWithDiscount: number;\r\n totalPrice: number;\r\n shippingPrice: number;\r\n discounts?: OrderDiscountApplied[];\r\n ccy: PaymentInDB['ccy'];\r\n products: ProductWithVariantInBag[];\r\n}\r\n\r\n/**\r\n * En la bolsa cada variante será independiente,\r\n * @example Si un producto tiene 3 variantes y el usuario\r\n * agrega cada variante, entonces se tomará como 3 productos independientes.\r\n */\r\nexport interface ProductWithVariantInBag {\r\n productId: string;\r\n productName: string;\r\n \r\n /** Heredado de {@link ProductInDB} */\r\n weightLbs: number;\r\n\r\n imgFullUrl: string | undefined;\r\n categoryType: CategoryType['type'];\r\n ccy: PaymentInDB['ccy'];\r\n\r\n variantId: string;\r\n warehouseId: string;\r\n\r\n selectedOptions: ProductVariantInDB['selectedOptions'];\r\n\r\n variantQty: number;\r\n variantPrice: number;\r\n variantPriceWithDiscount?: number;\r\n\r\n createdAt: string;\r\n updatedAt?: string;\r\n}\r\n\r\n\r\n"]}
package/dist/branch.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=branch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"branch.js","sourceRoot":"","sources":["../src/branch.ts"],"names":[],"mappings":"","sourcesContent":["import { Country, Region } from \"./countries\";\r\n\r\nexport interface BranchInDB {\r\n id: string;\r\n name: string;\r\n address: string;\r\n secondLineAddress?: string;\r\n city: string;\r\n region: Region;\r\n zipcode: number;\r\n country: Country;\r\n status: 'active' | 'tmpClosed' | 'closed';\r\n createdAt: string;\r\n}\r\n\r\n/**\r\n * Enlace de la sucursal en otro documento\r\n */\r\nexport interface BranchFK {\r\n id: string;\r\n name: string;\r\n}\r\n"]}
package/dist/company.js DELETED
@@ -1,3 +0,0 @@
1
- ;
2
- export {};
3
- //# sourceMappingURL=company.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"company.js","sourceRoot":"","sources":["../src/company.ts"],"names":[],"mappings":"AAUC,CAAC","sourcesContent":["export interface Company {\r\n id: string;\r\n displayName: string;\r\n verfied: boolean;\r\n createdAt: string;\r\n}\r\n\r\nexport interface CompanyFK {\r\n id: string;\r\n displayName: string;\r\n};"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"countries.js","sourceRoot":"","sources":["../src/countries.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAC,IAAM,SAAS,GAAc;IAClC;QACE,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,KAAK;KACX;IAED;QACE,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,KAAK;KACX;IAED;QACE,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,CAAC;QACP,GAAG,EAAE,KAAK;KACX;IAED;QACE,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,KAAK;KACX;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,OAAO,GAA6C;IAC/D,EAAE,EAAE;QACF;YACE,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE;gBACN,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,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,EAAlC,CAAkC,CAAC;AACjG,MAAM,CAAC,IAAM,cAAc,GAAG,UAAC,EAAU,EAAE,EAAU,IAAK,OAAA,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAAlC,CAAkC,CAAC","sourcesContent":["import { PaymentInDB } from \"./payments\";\r\n\r\nexport interface Country {\r\n id: 'HN' | 'US' | 'SV' | 'CN';\r\n name: string;\r\n ccy: PaymentInDB['ccy'];\r\n code: number | null | undefined;\r\n}\r\n\r\nexport interface City {\r\n id: string;\r\n name: string;\r\n regionId: string;\r\n}\r\n\r\nexport interface Region {\r\n id: string;\r\n name: string;\r\n cities?: City[];\r\n}\r\n\r\nexport const Countries: Country[] = [\r\n {\r\n id: 'HN',\r\n name: 'Honduras',\r\n code: 504,\r\n ccy: 'HNL'\r\n },\r\n\r\n {\r\n id: 'SV',\r\n name: 'El Salvador',\r\n code: 503,\r\n ccy: 'USD'\r\n },\r\n\r\n {\r\n id: 'US',\r\n name: 'Estados Unidos',\r\n code: 1,\r\n ccy: 'USD',\r\n },\r\n\r\n {\r\n id: 'CN',\r\n name: 'China',\r\n code: 56,\r\n ccy: 'USD'\r\n },\r\n];\r\n\r\nexport const Regions: {[countryId in Country['id']]: Region[]} = {\r\n HN: [\r\n {\r\n id: \"AT\",\r\n name: \"Atlántida\",\r\n cities: [\r\n { id: \"LCB\", name: \"La Ceiba\", regionId: \"AT\" },\r\n { id: \"ELP\", name: \"El Porvenir\", regionId: \"AT\" },\r\n { id: \"ESP\", name: \"Esparta\", regionId: \"AT\" },\r\n { id: \"JUT\", name: \"Jutiapa\", regionId: \"AT\" },\r\n { id: \"LAM\", name: \"La Masica\", regionId: \"AT\" },\r\n { id: \"SFR\", name: \"San Francisco\", regionId: \"AT\" },\r\n { id: \"TEL\", name: \"Tela\", regionId: \"AT\" },\r\n { id: \"ARI\", name: \"Arizona\", regionId: \"AT\" }\r\n ]\r\n },\r\n {\r\n id: \"CH\",\r\n name: \"Choluteca\",\r\n cities: [\r\n\r\n ]\r\n },\r\n { id: \"CL\", name: \"Colón\" },\r\n { id: \"CM\", name: \"Comayagua\" },\r\n { id: \"CP\", name: \"Copán\" },\r\n { id: \"CR\", name: \"Cortés\" },\r\n { id: \"EP\", name: \"El Paraíso\" },\r\n {\r\n id: \"FM\",\r\n name: \"Francisco Morazán\",\r\n cities: [\r\n { id: \"TGU\", name: \"Tegucigalpa\", regionId: \"FM\" },\r\n { id: \"AMA\", name: \"Amarateca\", regionId: \"FM\" },\r\n { id: \"AZA\", name: \"Azacualpa\", regionId: \"FM\" },\r\n { id: \"CAR\", name: \"Carpinteron\", regionId: \"FM\" },\r\n { id: \"CEN\", name: \"Cerro Grande\", regionId: \"FM\" },\r\n { id: \"COA\", name: \"Coa Abajo\", regionId: \"FM\" },\r\n { id: \"COU\", name: \"Coa Arriba\", regionId: \"FM\" }, // id corregido\r\n { id: \"COF\", name: \"Cofradía\", regionId: \"FM\" },\r\n { id: \"CON\", name: \"Concepción de Río Grande\", regionId: \"FM\" },\r\n { id: \"ELN\", name: \"El Naranjal\", regionId: \"FM\" },\r\n { id: \"EPI\", name: \"El Piliguín\", regionId: \"FM\" },\r\n { id: \"TIZ\", name: \"El Tizatillo\", regionId: \"FM\" },\r\n { id: \"GER\", name: \"Germania\", regionId: \"FM\" },\r\n { id: \"GUA\", name: \"Guangololo\", regionId: \"FM\" },\r\n { id: \"GUS\", name: \"Guasculile\", regionId: \"FM\" },\r\n { id: \"JAC\", name: \"Jacaleapa\", regionId: \"FM\" },\r\n { id: \"JUT\", name: \"Jutiapa\", regionId: \"FM\" },\r\n { id: \"CAL\", name: \"La Calera\", regionId: \"FM\" },\r\n { id: \"CU2\", name: \"La Cuesta No.2\", regionId: \"FM\" },\r\n { id: \"MON\", name: \"La Montañita\", regionId: \"FM\" },\r\n { id: \"SAB\", name: \"La Sábana\", regionId: \"FM\" },\r\n { id: \"VEN\", name: \"La Venta\", regionId: \"FM\" },\r\n { id: \"CAS\", name: \"Las Casitas\", regionId: \"FM\" },\r\n { id: \"FLO\", name: \"Las Flores\", regionId: \"FM\" },\r\n { id: \"TAP\", name: \"Las Tapias\", regionId: \"FM\" },\r\n { id: \"JUT2\", name: \"Los Jutes\", regionId: \"FM\" },\r\n { id: \"MAT\", name: \"Mateo\", regionId: \"FM\" },\r\n { id: \"RED\", name: \"Monte Redondo\", regionId: \"FM\" },\r\n { id: \"NAL\", name: \"Nueva Aldea\", regionId: \"FM\" },\r\n { id: \"RAB\", name: \"Río Abajo\", regionId: \"FM\" },\r\n { id: \"RHO\", name: \"Río Hondo\", regionId: \"FM\" },\r\n { id: \"SOR\", name: \"San Francisco de Soroguara\", regionId: \"FM\" },\r\n { id: \"SJC\", name: \"San Juancito\", regionId: \"FM\" },\r\n { id: \"SJR\", name: \"San Juan del Rancho\", regionId: \"FM\" },\r\n { id: \"SRG\", name: \"San Juan del Río Grande\", regionId: \"FM\" },\r\n { id: \"SMT\", name: \"San Matías\", regionId: \"FM\" },\r\n { id: \"SCA\", name: \"Santa Cruz Abajo\", regionId: \"FM\" },\r\n { id: \"SCR\", name: \"Santa Cruz Arriba\", regionId: \"FM\" },\r\n { id: \"SAR\", name: \"Santa Rosa\", regionId: \"FM\" },\r\n { id: \"SRO\", name: \"Soroguara\", regionId: \"FM\" },\r\n { id: \"TAM\", name: \"Támara\", regionId: \"FM\" },\r\n { id: \"VNU\", name: \"Villa Nueva\", regionId: \"FM\" },\r\n { id: \"YAG\", name: \"Yaguacire\", regionId: \"FM\" },\r\n { id: \"ZAM\", name: \"Zambrano\", regionId: \"FM\" }\r\n ]\r\n },\r\n { id: \"GD\", name: \"Gracias a Dios\" },\r\n { id: \"IN\", name: \"Intibucá\" },\r\n { id: \"IB\", name: \"Islas de la Bahía\" },\r\n { id: \"LP\", name: \"La Paz\" },\r\n { id: \"LE\", name: \"Lempira\" },\r\n { id: \"OC\", name: \"Ocotepeque\" },\r\n { id: \"OL\", name: \"Olancho\" },\r\n { id: \"SB\", name: \"Santa Bárbara\" },\r\n { id: \"VA\", name: \"Valle\" },\r\n { id: \"YO\", name: \"Yoro\" }\r\n ],\r\n\r\n US: [\r\n { id: \"AL\", name: \"Alabama\" },\r\n { id: \"AK\", name: \"Alaska\" },\r\n { id: \"AZ\", name: \"Arizona\" },\r\n { id: \"AR\", name: \"Arkansas\" },\r\n { id: \"CA\", name: \"California\" },\r\n { id: \"CO\", name: \"Colorado\" },\r\n { id: \"CT\", name: \"Connecticut\" },\r\n { id: \"DE\", name: \"Delaware\" },\r\n { id: \"FL\", name: \"Florida\" },\r\n { id: \"GA\", name: \"Georgia\" },\r\n { id: \"HI\", name: \"Hawaii\" },\r\n { id: \"ID\", name: \"Idaho\" },\r\n { id: \"IL\", name: \"Illinois\" },\r\n { id: \"IN\", name: \"Indiana\" },\r\n { id: \"IA\", name: \"Iowa\" },\r\n { id: \"KS\", name: \"Kansas\" },\r\n { id: \"KY\", name: \"Kentucky\" },\r\n { id: \"LA\", name: \"Louisiana\" },\r\n { id: \"ME\", name: \"Maine\" },\r\n { id: \"MD\", name: \"Maryland\" },\r\n { id: \"MA\", name: \"Massachusetts\" },\r\n { id: \"MI\", name: \"Michigan\" },\r\n { id: \"MN\", name: \"Minnesota\" },\r\n { id: \"MS\", name: \"Mississippi\" },\r\n { id: \"MO\", name: \"Missouri\" },\r\n { id: \"MT\", name: \"Montana\" },\r\n { id: \"NE\", name: \"Nebraska\" },\r\n { id: \"NV\", name: \"Nevada\" },\r\n { id: \"NH\", name: \"New Hampshire\" },\r\n { id: \"NJ\", name: \"New Jersey\" },\r\n { id: \"NM\", name: \"New Mexico\" },\r\n { id: \"NY\", name: \"New York\" },\r\n { id: \"NC\", name: \"North Carolina\" },\r\n { id: \"ND\", name: \"North Dakota\" },\r\n { id: \"OH\", name: \"Ohio\" },\r\n { id: \"OK\", name: \"Oklahoma\" },\r\n { id: \"OR\", name: \"Oregon\" },\r\n { id: \"PA\", name: \"Pennsylvania\" },\r\n { id: \"RI\", name: \"Rhode Island\" },\r\n { id: \"SC\", name: \"South Carolina\" },\r\n { id: \"SD\", name: \"South Dakota\" },\r\n { id: \"TN\", name: \"Tennessee\" },\r\n { id: \"TX\", name: \"Texas\" },\r\n { id: \"UT\", name: \"Utah\" },\r\n { id: \"VT\", name: \"Vermont\" },\r\n { id: \"VA\", name: \"Virginia\" },\r\n { id: \"WA\", name: \"Washington\" },\r\n { id: \"WV\", name: \"West Virginia\" },\r\n { id: \"WI\", name: \"Wisconsin\" },\r\n { id: \"WY\", name: \"Wyoming\" }\r\n ],\r\n\r\n SV: [\r\n { id: \"AH\", name: \"Ahuachapán\" },\r\n { id: \"CA\", name: \"Cabañas\" },\r\n { id: \"CH\", name: \"Chalatenango\" },\r\n { id: \"CU\", name: \"Cuscatlán\" },\r\n { id: \"LI\", name: \"La Libertad\" },\r\n { id: \"PA\", name: \"La Paz\" },\r\n { id: \"ONU\", name: \"La Unión\" },\r\n { id: \"MO\", name: \"Morazán\" },\r\n { id: \"SM\", name: \"San Miguel\" },\r\n { id: \"SS\", name: \"San Salvador\" },\r\n { id: \"SV\", name: \"San Vicente\" },\r\n { id: \"SA\", name: \"Santa Ana\" },\r\n { id: \"SO\", name: \"Sonsonate\" },\r\n { id: \"US\", name: \"Usulutan\" }\r\n ],\r\n\r\n CN: []\r\n}\r\n\r\nexport function getRegionsByCountryId(id: 'HN' | 'US' | 'SV'): Region[] | any[] {\r\n return Regions[id];\r\n}\r\n\r\n/**\r\n * Usado en el atributo [compareWith] de los mat-select's\r\n * de los formularios que manejan paises y regiones.\r\n * @param c1 \r\n * @param c2 \r\n * @returns \r\n */\r\nexport const compareCountries = (c1: Country, c2: Country) => c1 && c2 ? c1.id === c2.id : false;\r\nexport const compareRegions = (r1: Region, r2: Region) => r1 && r2 ? r1.id === r2.id : false;"]}
package/dist/index.js DELETED
@@ -1,18 +0,0 @@
1
- // src/index.ts
2
- /** ID único para un usuario */
3
- // export type UserId = string & { __brand: 'UserId' };
4
- export * from './api';
5
- export * from './bag';
6
- export * from './branch';
7
- export * from './countries';
8
- export * from './orders';
9
- export * from './stats';
10
- export * from './payments';
11
- export * from './product-category';
12
- export * from './products';
13
- export * from './replenishment';
14
- export * from './users';
15
- export * from './warehouses';
16
- export * from './translations';
17
- export * from './company';
18
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAe;AAEf,+BAA+B;AAC/B,uDAAuD;AACvD,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC","sourcesContent":["// src/index.ts\r\n\r\n/** ID único para un usuario */\r\n// export type UserId = string & { __brand: 'UserId' };\r\nexport * from './api';\r\nexport * from './bag';\r\nexport * from './branch';\r\nexport * from './countries';\r\nexport * from './orders';\r\nexport * from './stats';\r\nexport * from './payments';\r\nexport * from './product-category';\r\nexport * from './products';\r\nexport * from './replenishment';\r\nexport * from './users';\r\nexport * from './warehouses';\r\nexport * from './translations';\r\nexport * from './company';\r\n\r\n"]}
package/dist/orders.js DELETED
@@ -1,10 +0,0 @@
1
- ;
2
- ;
3
- ;
4
- ;
5
- ;
6
- ;
7
- ;
8
- ;
9
- export {};
10
- //# sourceMappingURL=orders.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"orders.js","sourceRoot":"","sources":["../src/orders.ts"],"names":[],"mappings":"AAO4E,CAAC;AAgB5E,CAAC;AAID,CAAC;AAMD,CAAC;AAUD,CAAC;AA2CD,CAAC;AAiBD,CAAC;AAQD,CAAC","sourcesContent":["import { PaymentIntent } from \"@stripe/stripe-js\";\r\nimport { ProductWithVariantInBag } from \"./bag\";\r\nimport { UserAddressInDB } from \"./users\";\r\nimport { Country } from \"./countries\";\r\nimport { CategoryType } from \"./product-category\";\r\nimport { DeliveryMethod } from \"./warehouses\";\r\n\r\nexport interface Gift { fullname: string; msg?: string | null | undefined; };\r\n\r\nexport interface OrderDiscount {\r\n id: string;\r\n name: string;\r\n subtitle: string;\r\n code: string;\r\n automatic?: boolean;\r\n amount: number;\r\n isPercent: boolean;\r\n condition: 'first_order' | 'delivery_free' | 'none' | 'student' | 'share_5_friends';\r\n conditionDescription: string;\r\n categoriesTypes?: CategoryType['type'][];\r\n minOrderAmount?: number;\r\n dueDate: string;\r\n public?: boolean;\r\n};\r\n\r\nexport interface OrderDiscountApplied extends OrderDiscount {\r\n amountInCurrentCcy?: number;\r\n};\r\n\r\nexport interface ProductPrepared {\r\n productId: string;\r\n variantId: string;\r\n qty: number;\r\n};\r\n\r\n/**\r\n * Indicará qué productos de {@link OrderInDB.products} fueron ordenados y cuales fueron preparados\r\n */\r\nexport interface ProductCheckedAfterPrepared {\r\n productId: string;\r\n variantId: string;\r\n qtyOrdered: number;\r\n qtyPrepared: number;\r\n};\r\n\r\nexport interface OrderInDB {\r\n id: string;\r\n customerName: string;\r\n customerId: string;\r\n customerCountry: Country;\r\n\r\n products: ProductWithVariantInBag[];\r\n /**\r\n * Indicará qué productos de {@link products} fueron preparados y cuantas unidades.\r\n */\r\n productsPrepared?: ProductPrepared[];\r\n\r\n subtotalPrice: number;\r\n subtotalWithDiscount: number;\r\n totalPrice: number;\r\n shippingPrice: number;\r\n discounts?: OrderDiscountApplied[];\r\n \r\n status: 'pending' | 'payment_error' | 'processing' | 'prepared' | 'shipped' | 'delivered' | 'canceled';\r\n orderDate: string;\r\n deliveryAddress: UserAddressInDB;\r\n paymentStatus?: PaymentIntent.Status,\r\n paymentMethod: 'credit_card' | 'paypal' | 'bank_transfer' | 'cash_on_delivery';\r\n shippingMethod: DeliveryMethod;\r\n gift?: Gift,\r\n notes?: string;\r\n}\r\n\r\nexport type OrderErrorCodes = 'ERR_CREATE_ORDER' | 'ERR_ORDER_INFO' | 'ERR_CHANGE_ORDER_STATUS';\r\n\r\n\r\n/**\r\n * Interfaz para comunicación con la API\r\n */\r\nexport interface ConfirmOrderPayload {\r\n orderReadyToPay: OrderReady;\r\n customerCountry: Country;\r\n paymentMethod: OrderInDB['paymentMethod'];\r\n shippingMethod: OrderInDB['shippingMethod'];\r\n deliveryAddress: OrderInDB['deliveryAddress'];\r\n gift?: Gift;\r\n};\r\n\r\n/**\r\n * Orden lista para que el usuario decida pagar\r\n */\r\nexport interface OrderReady {\r\n warehouseId: string;\r\n warehouseCountryId: Country['id'];\r\n products: ProductWithVariantInBag[];\r\n paymentMethod?: OrderInDB['paymentMethod'];\r\n shippingMethod?: DeliveryMethod;\r\n deliveryAddress?: UserAddressInDB;\r\n gift?: { fullname: string; msg?: string | null | undefined; };\r\n subtotalPrice: number;\r\n shippingPrice: number;\r\n subtotalWithDiscount: number;\r\n totalPrice: number;\r\n};\r\n\r\n\r\n/**\r\n * Ordenes listas para que el usuario decida pagar\r\n */\r\nexport interface OrdersReady {\r\n [warehouseId: string]: OrderReady;\r\n};\r\n"]}
package/dist/org/event.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=event.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/org/event.ts"],"names":[],"mappings":"","sourcesContent":["export interface NiceEvent {\r\n id: string;\r\n title: string;\r\n description: string;\r\n inPerson: boolean;\r\n organizerName: string;\r\n createdBy: {\r\n id: string;\r\n name: string;\r\n };\r\n location: string;\r\n coverUrl?: string;\r\n startDate: Date;\r\n endDate: Date;\r\n createdAt: string;\r\n updatedAt?: string;\r\n }"]}
@@ -1,2 +0,0 @@
1
- export * from './event';
2
- export { Donation } from './radar';
package/dist/org/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './event';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/org/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC","sourcesContent":["export * from './event';\r\nexport {Donation} from './radar';"]}
package/dist/org/radar.js DELETED
@@ -1,4 +0,0 @@
1
- ;
2
- ;
3
- export {};
4
- //# sourceMappingURL=radar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radar.js","sourceRoot":"","sources":["../../src/org/radar.ts"],"names":[],"mappings":"AAuDG,CAAC;AA8BD,CAAC","sourcesContent":["import { PaymentIntent } from \"@stripe/stripe-js\";\r\n\r\nexport type Currency = 'HNL' | 'EUR' | 'USD';\r\n export type DonationStatus = 'pending_pay' | 'pending' | 'payment_error' | 'processing' | 'resolve' | 'rejected' | 'expired' | 'used';\r\n \r\n /**\r\n * Tipos de donaciones usadas en el radar\r\n * \r\n * Valores posibles:\r\n * - `direct_donation`: Donación directa a una persona\r\n * - `event`: Evento\r\n * - `operating_expenses`: Gastos operativos\r\n */\r\n export type UsedIn = 'direct_donation' | 'event' | 'operating_expenses';\r\n \r\n /**\r\n * Tipos de movimientos del radar\r\n *\r\n * Valores posibles:\r\n * - `info`: Movimiento informativo\r\n * - `cash_converted_to_hnl`: Convertido a lempiras\r\n * - `cash_income`: Ingreso\r\n * - `cash_expense`: Gasto\r\n * - `cash_refund`: Reembolso\r\n * - `cash_reversion`: Reversión\r\n *\r\n * @remarks\r\n * El reembolso es para el cliente, mientras que la reversión\r\n * es para devolver el dinero a la donación original.\r\n */\r\n export type FlowType = 'info' | 'cash_converted_to_hnl' | 'cash_income' | 'cash_expense' | 'cash_refund' | 'cash_reversion';\r\n \r\n export interface Movement {\r\n id: string;\r\n title: string;\r\n desc?: string;\r\n /**\r\n * Tipos de donaciones usadas en el radar\r\n * \r\n * Valores posibles:\r\n * - `direct_donation`: Donación directa a una persona\r\n * - `event`: Evento\r\n * - `operating_expenses`: Gastos operativos\r\n */\r\n usedIn: UsedIn;\r\n icon: 'ok' | 'error' | 'info' | 'waiting';\r\n type: FlowType;\r\n \r\n /**\r\n * Monto involucrado en el movimiento,\r\n * se debe proporcionar `0` cuándo {@link FlowType} sea `none`.\r\n * Ej. `amount: 0`\r\n */\r\n amount: number;\r\n createdAt: string;\r\n };\r\n \r\n export interface DonationCharges {\r\n subtotal: number;\r\n fees: number;\r\n total: number;\r\n }\r\n \r\n /**\r\n * La donación se puede recibir en HNL, USD o EUR,\r\n * pero se deberá convertir a lempiras antes de ser usada.\r\n */\r\n export interface Donation {\r\n id: string;\r\n donorId: string;\r\n fullname: string,\r\n anonymous: boolean;\r\n charges: DonationCharges;\r\n \r\n /**\r\n * Cuándo se reciba en una moneda distinta de HNL, se convertirá a HNL.\r\n * De lo contrario será `undefined`\r\n */\r\n chargesInHNL?: DonationCharges;\r\n status: DonationStatus;\r\n mainCcy: Currency;\r\n paymentStatus?: PaymentIntent.Status;\r\n \r\n radar?: { [movementId: string]: Movement };\r\n createdAt?: string;\r\n };"]}
package/dist/payments.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=payments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments.js","sourceRoot":"","sources":["../src/payments.ts"],"names":[],"mappings":"","sourcesContent":["import { Metadata, PaymentIntent } from \"@stripe/stripe-js\";\r\n\r\n\r\n/**\r\n * Payment como está registrado en la base de datos\r\n */\r\nexport interface PaymentInDB {\r\n /**\r\n * @property {string} `id`\r\n * mismo que `Stripe.PaymentIntent.id`\r\n */\r\n id: string;\r\n\r\n /**\r\n * @property {@link Issuer} `recipientMap`\r\n * Quién pagó\r\n */\r\n issuerMap: { id: string; displayName: string; };\r\n\r\n /**\r\n * @property {number} `amount`\r\n * Monto a pagar, incluyendo impuestos, tarifas y comisiones.\r\n */\r\n amount: number;\r\n\r\n /**\r\n * @property {number} `tax`\r\n * Impuesto de la transacción, basado en EEUU.\r\n */\r\n tax: 8.25;\r\n\r\n /**\r\n * @property ccy {@link PaymentCCY}\r\n * Moneda en la que se ejecutará el pago.\r\n */\r\n ccy: 'HNL' | 'USD' | 'EUR';\r\n\r\n /**\r\n * @property {Timestamp} `createdAt`\r\n * Fecha y hora en que se generó la transacción,\r\n * igual que `Stripe.PaymentIntent.created`.\r\n */\r\n createdAt: string;\r\n}\r\n\r\n\r\n/**\r\n * Parámetros que se enviarán al servidor,\r\n * y así registrar el PaymentIntent con stripe.\r\n */\r\nexport interface StripePaymentIntentParams {\r\n cardHolder: string | string | null | undefined;\r\n billingAddressLine1: string | string | null | undefined;\r\n billingAddressCity: string | string | null | undefined;\r\n amount: number;\r\n currency: string;\r\n metadata: PaymentInStripeMetadata;\r\n}\r\n\r\nexport interface PaymentInStripeMetadata {\r\n /** Ej. users/{userId}/orders/{orderId} */\r\n refDB: string;\r\n issuerId: string;\r\n issuerName: string;\r\n}\r\n\r\n/**\r\n * Respuesta de la API Ivife cuándo se busca un PaymentIntent por su {@link StripeMetadata.refId}\r\n */\r\nexport interface StripePaymentIntentResponse {\r\n metadata: PaymentInStripeMetadata | Metadata;\r\n status: PaymentIntent.Status;\r\n amount: number;\r\n amount_capturable: number;\r\n amount_received: number;\r\n currency: string;\r\n}\r\n\r\nexport type PaymentErrorCodes = 'ERR_PAYMENT' | 'ERR_REINTENT_PAYMENT' | 'authentication_required' | 'requires_action';"]}
@@ -1,3 +0,0 @@
1
- ;
2
- export {};
3
- //# sourceMappingURL=product-category.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"product-category.js","sourceRoot":"","sources":["../src/product-category.ts"],"names":[],"mappings":"AAiCC,CAAC","sourcesContent":["import { Country } from \"./countries\";\r\nimport { Translations } from \"./translations\";\r\n\r\nexport interface Category {\r\n id: string;\r\n title: string;\r\n translations?: Translations<string>;\r\n icon?: string;\r\n subcategories?: SubCategory[];\r\n hidden?: boolean;\r\n adultsOnly?: boolean;\r\n}\r\n\r\nexport interface SubCategory {\r\n id: string;\r\n title: string;\r\n translations?: Translations<string>;\r\n}\r\n\r\nexport interface CategoryType {\r\n title: string;\r\n type: 'clothes' |'gifts' | 'perfumes' | 'electric' | 'electronics' | 'handmade-jewelry' | 'jewelry' | 'home' | 'beauty' | 'health' | 'books' | 'shoes' | 'bags';\r\n translations?: Translations<string>;\r\n icon?: string;\r\n categories: Category[];\r\n countries: Country['id'][];\r\n hidden?: boolean;\r\n}\r\n\r\n\r\nexport interface ProductCategoryInDB {\r\n id: string;\r\n subcategory: string\r\n};"]}
package/dist/products.js DELETED
@@ -1,7 +0,0 @@
1
- ;
2
- ;
3
- ;
4
- ;
5
- ;
6
- export {};
7
- //# sourceMappingURL=products.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"products.js","sourceRoot":"","sources":["../src/products.ts"],"names":[],"mappings":"AAMmF,CAAC;AAChB,CAAC;AAQpE,CAAC;AA6CgE,CAAC;AAyDlE,CAAC","sourcesContent":["import { CompanyFK } from \"./company\";\r\nimport { Country } from \"./countries\";\r\nimport { CategoryType, ProductCategoryInDB } from \"./product-category\";\r\nimport { RProduct, RSupplier } from \"./replenishment\";\r\nimport { Translations } from \"./translations\";\r\n\r\nexport interface ProductFirstOptionTypeValue { value: string; codeColor?: string; };\r\nexport interface ProductOptionValue { value: string, code?: string };\r\n\r\ntype clothesOptions = 'talla' | 'color';\r\ntype giftsOptions = 'color' | 'tipo de flor';\r\n\r\nexport interface ProductOptionToSelect {\r\n option: clothesOptions | giftsOptions;\r\n valuesAllowed: ProductOptionValue[];\r\n};\r\n\r\n/**\r\n * Igual que store-product-in-db.ts del proyecto `Zavafa`\r\n */\r\nexport interface ProductInDB {\r\n id: string; // ID único del producto principal\r\n name: string; // Nombre del producto\r\n nameTranslations?: Translations<string>;\r\n description: string; // Descripcion del producto\r\n descriptionTranslations?: Translations<string>;\r\n category: ProductCategoryInDB; // Categoría del producto (ej. \"Electrónica\", \"Ropa\")\r\n brand: string | null | undefined; // Marca del producto (opcional)\r\n coverImg?: ProductVariantImage;\r\n type: CategoryType['type'];\r\n soldBy: CompanyFK;\r\n adultsOnly?: boolean; // Indica si el producto es para adultos\r\n shipmentsTo?: { [countryId in Country['id']]: boolean }; // Países(s) a donde se envia el producto\r\n\r\n countries?: { [key: string]: boolean }; // Países(s) donde se almacena el producto\r\n warrantyInDays?: number;\r\n\r\n /**\r\n * Opciones con las que se identificará cada variante de este producto,\r\n * serán establecidas por el usuario.\r\n * \r\n * Máximo 2.\r\n * @example: Talla, Color, Onzas, etc. Y todos sus valores posibles.\r\n */\r\n optionsToSelect: ProductOptionToSelect[]; // Máximo 2 opciones\r\n /** Peso en libras */\r\n weightLbs?: number;\r\n status: 'active' | 'inactive' | 'discontinued'; // Estado del producto\r\n tags: string[]; // Etiquetas por las cuáles los usuarios pueden buscar este producto\r\n createdAt: any; // Fecha de creación en formato ISO 8601\r\n updatedAt?: string; // Última actualización en formato ISO 8601\r\n \r\n createdBy: { id: string; displayName: string; }; // Usuario que creó el producto\r\n updatedBy?: { id: string; displayName: string; }; // Usuario que actualizó el producto\r\n}\r\n\r\n\r\n/**\r\n * /products/{productId}/variants/{sku}\r\n */\r\nexport interface ProductVariantImage { url: string, path: string };\r\nexport interface ProductVariantInDB {\r\n /** Este es el SKU */\r\n id?: string; \r\n supplier: RSupplier;\r\n supplierVariantId: RProduct['supplierVariantId'];\r\n productId?: string;\r\n images?: ProductVariantImage[];\r\n barcode?: string;\r\n\r\n /**\r\n * Packages dónde está la variante\r\n */\r\n inPackages?: { packageId: string; orderId: string }[];\r\n\r\n /**\r\n * Warehouses dónde está disponible esta variante.\r\n * Cada ```key``` del objeto es el id del warehouse y su valor será {@link VariantWarehouseFK}.\r\n * \r\n * @note Se usa esta nueva manera para poder usar los FieldValue (serverTimestamp, etc) de Firestore,\r\n * ya que en los arrays no funcionan.\r\n */\r\n warehouses: {\r\n [key: string]: VariantWarehouseFK\r\n };\r\n\r\n /**\r\n * Opciones de la variante, por ejemplo una prenda tiene color y talla.\r\n * Obligatoriamente tiene que tener al menos una opción.\r\n * \r\n * @note {@link secondOptionType} NO puede ser de tipo 'color'\r\n */\r\n selectedOptions: {\r\n option: ProductOptionToSelect['option'];\r\n value: { value: string; code?: string };\r\n }[];\r\n}\r\n\r\n/**\r\n * La forma en que se enlaza información del producto en determinada warehouse,\r\n * esta información va adentro de la variante.\r\n * \r\n * /products/{id}/variants/{id}\r\n */\r\nexport interface VariantWarehouseFK {\r\n id: string;\r\n name: string;\r\n stock: number; // Cantidad disponible en inventario\r\n price: number; // Precio de esta variante (puede ser diferente del basePrice)\r\n priceUSD: number; // Precio de esta variante (puede ser diferente del basePrice)\r\n lastPrice?: number; // Último precio de esta variante usado para descuentos o reducciones de precio\r\n lastPriceUSD?: number; // Último precio de esta variante usado para descuentos o reducciones de precio\r\n supplierPriceUSD: number;\r\n supplierPriceHNL: number;\r\n profitMarginUSD: number;\r\n profitMarginHNL: number;\r\n profitMarginPercent: number;\r\n};\r\n\r\n/**\r\n * Para poder mostrar las variantes agrupadas\r\n * \r\n * Ej. Verde / S, Verde / M, etc\r\n */\r\nexport interface ProductGroupVariant {\r\n variant: ProductVariantInDB,\r\n /** Indica si la información se cargó desde el servidor o se creó automaticamente */\r\n dataFromServer: boolean;\r\n}"]}