@medusajs/types 2.0.0-rc-20241018141633 → 2.0.0-rc-20241022152047

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/api-key/common/api-key.d.ts +8 -0
  2. package/dist/api-key/common/api-key.d.ts.map +1 -1
  3. package/dist/common/common.d.ts +10 -2
  4. package/dist/common/common.d.ts.map +1 -1
  5. package/dist/common/config-module.d.ts +19 -0
  6. package/dist/common/config-module.d.ts.map +1 -1
  7. package/dist/http/api-key/admin/payloads.d.ts +9 -0
  8. package/dist/http/api-key/admin/payloads.d.ts.map +1 -1
  9. package/dist/http/api-key/admin/queries.d.ts +27 -2
  10. package/dist/http/api-key/admin/queries.d.ts.map +1 -1
  11. package/dist/http/api-key/admin/responses.d.ts +45 -0
  12. package/dist/http/api-key/admin/responses.d.ts.map +1 -1
  13. package/dist/http/campaign/admin/payloads.d.ts +74 -0
  14. package/dist/http/campaign/admin/payloads.d.ts.map +1 -1
  15. package/dist/http/campaign/admin/responses.d.ts +54 -0
  16. package/dist/http/campaign/admin/responses.d.ts.map +1 -1
  17. package/dist/http/cart/store/entities.d.ts +39 -0
  18. package/dist/http/cart/store/entities.d.ts.map +1 -1
  19. package/dist/http/cart/store/payloads.d.ts +74 -0
  20. package/dist/http/cart/store/payloads.d.ts.map +1 -1
  21. package/dist/http/cart/store/responses.d.ts +28 -0
  22. package/dist/http/cart/store/responses.d.ts.map +1 -1
  23. package/dist/http/claim/admin/entities.d.ts +9 -0
  24. package/dist/http/claim/admin/entities.d.ts.map +1 -1
  25. package/dist/http/claim/admin/payloads.d.ts +71 -0
  26. package/dist/http/claim/admin/payloads.d.ts.map +1 -1
  27. package/dist/http/claim/admin/queries.d.ts +0 -1
  28. package/dist/http/claim/admin/queries.d.ts.map +1 -1
  29. package/dist/http/claim/admin/responses.d.ts +24 -0
  30. package/dist/http/claim/admin/responses.d.ts.map +1 -1
  31. package/dist/http/claim/common.d.ts +81 -0
  32. package/dist/http/claim/common.d.ts.map +1 -1
  33. package/dist/http/collection/common.d.ts +44 -2
  34. package/dist/http/collection/common.d.ts.map +1 -1
  35. package/dist/http/collection/store/entities.d.ts +3 -0
  36. package/dist/http/collection/store/entities.d.ts.map +1 -1
  37. package/dist/http/collection/store/queries.d.ts +0 -2
  38. package/dist/http/collection/store/queries.d.ts.map +1 -1
  39. package/dist/http/collection/store/responses.d.ts +6 -0
  40. package/dist/http/collection/store/responses.d.ts.map +1 -1
  41. package/dist/http/common/request.d.ts +23 -0
  42. package/dist/http/common/request.d.ts.map +1 -1
  43. package/dist/http/common/response.d.ts +9 -0
  44. package/dist/http/common/response.d.ts.map +1 -1
  45. package/dist/http/currency/admin/queries.d.ts +6 -0
  46. package/dist/http/currency/admin/queries.d.ts.map +1 -1
  47. package/dist/http/currency/admin/responses.d.ts +6 -0
  48. package/dist/http/currency/admin/responses.d.ts.map +1 -1
  49. package/dist/http/currency/common.d.ts +36 -0
  50. package/dist/http/currency/common.d.ts.map +1 -1
  51. package/dist/http/customer/admin/entities.d.ts +9 -0
  52. package/dist/http/customer/admin/entities.d.ts.map +1 -1
  53. package/dist/http/customer/admin/queries.d.ts +6 -0
  54. package/dist/http/customer/admin/queries.d.ts.map +1 -1
  55. package/dist/http/customer/admin/responses.d.ts +6 -0
  56. package/dist/http/customer/admin/responses.d.ts.map +1 -1
  57. package/dist/http/customer/common.d.ts +285 -0
  58. package/dist/http/customer/common.d.ts.map +1 -1
  59. package/dist/http/customer/store/entities.d.ts +3 -0
  60. package/dist/http/customer/store/entities.d.ts.map +1 -1
  61. package/dist/http/customer/store/responses.d.ts +9 -0
  62. package/dist/http/customer/store/responses.d.ts.map +1 -1
  63. package/dist/http/customer-group/admin/entities.d.ts +3 -0
  64. package/dist/http/customer-group/admin/entities.d.ts.map +1 -1
  65. package/dist/http/customer-group/admin/payloads.d.ts +12 -0
  66. package/dist/http/customer-group/admin/payloads.d.ts.map +1 -1
  67. package/dist/http/customer-group/admin/queries.d.ts +59 -4
  68. package/dist/http/customer-group/admin/queries.d.ts.map +1 -1
  69. package/dist/http/customer-group/admin/responses.d.ts +6 -0
  70. package/dist/http/customer-group/admin/responses.d.ts.map +1 -1
  71. package/dist/http/customer-group/common.d.ts +18 -0
  72. package/dist/http/customer-group/common.d.ts.map +1 -1
  73. package/dist/http/exchange/admin/payloads.d.ts +71 -5
  74. package/dist/http/exchange/admin/payloads.d.ts.map +1 -1
  75. package/dist/http/exchange/admin/queries.d.ts +3 -6
  76. package/dist/http/exchange/admin/queries.d.ts.map +1 -1
  77. package/dist/http/exchange/admin/responses.d.ts +21 -0
  78. package/dist/http/exchange/admin/responses.d.ts.map +1 -1
  79. package/dist/http/exchange/common.d.ts +109 -0
  80. package/dist/http/exchange/common.d.ts.map +1 -1
  81. package/dist/http/fulfillment/admin/entitites.d.ts +139 -0
  82. package/dist/http/fulfillment/admin/entitites.d.ts.map +1 -1
  83. package/dist/http/fulfillment/admin/payloads.d.ts +113 -1
  84. package/dist/http/fulfillment/admin/payloads.d.ts.map +1 -1
  85. package/dist/http/fulfillment/admin/responses.d.ts +3 -0
  86. package/dist/http/fulfillment/admin/responses.d.ts.map +1 -1
  87. package/dist/http/fulfillment/store/index.d.ts +54 -1
  88. package/dist/http/fulfillment/store/index.d.ts.map +1 -1
  89. package/dist/http/fulfillment-provider/admin/queries.d.ts +13 -0
  90. package/dist/http/fulfillment-provider/admin/queries.d.ts.map +1 -1
  91. package/dist/http/fulfillment-provider/admin/responses.d.ts +3 -0
  92. package/dist/http/fulfillment-provider/admin/responses.d.ts.map +1 -1
  93. package/dist/http/fulfillment-provider/common.d.ts +6 -0
  94. package/dist/http/fulfillment-provider/common.d.ts.map +1 -1
  95. package/dist/http/fulfillment-set/admin/entities.d.ts +84 -0
  96. package/dist/http/fulfillment-set/admin/entities.d.ts.map +1 -1
  97. package/dist/http/fulfillment-set/admin/payloads.d.ts +66 -0
  98. package/dist/http/fulfillment-set/admin/payloads.d.ts.map +1 -1
  99. package/dist/http/fulfillment-set/admin/responses.d.ts +6 -0
  100. package/dist/http/fulfillment-set/admin/responses.d.ts.map +1 -1
  101. package/dist/http/inventory/admin/entities.d.ts +84 -0
  102. package/dist/http/inventory/admin/entities.d.ts.map +1 -1
  103. package/dist/http/inventory/admin/payloads.d.ts +42 -0
  104. package/dist/http/inventory/admin/payloads.d.ts.map +1 -1
  105. package/dist/http/inventory/admin/queries.d.ts +40 -0
  106. package/dist/http/inventory/admin/queries.d.ts.map +1 -1
  107. package/dist/http/inventory/admin/responses.d.ts +6 -0
  108. package/dist/http/inventory/admin/responses.d.ts.map +1 -1
  109. package/dist/http/inventory-level/admin/entities.d.ts +28 -0
  110. package/dist/http/inventory-level/admin/entities.d.ts.map +1 -1
  111. package/dist/http/inventory-level/admin/payloads.d.ts +30 -0
  112. package/dist/http/inventory-level/admin/payloads.d.ts.map +1 -1
  113. package/dist/http/inventory-level/admin/queries.d.ts +4 -0
  114. package/dist/http/inventory-level/admin/queries.d.ts.map +1 -1
  115. package/dist/http/inventory-level/admin/responses.d.ts +6 -0
  116. package/dist/http/inventory-level/admin/responses.d.ts.map +1 -1
  117. package/dist/http/invite/admin/entities.d.ts +24 -0
  118. package/dist/http/invite/admin/entities.d.ts.map +1 -1
  119. package/dist/http/invite/admin/payloads.d.ts +16 -0
  120. package/dist/http/invite/admin/payloads.d.ts.map +1 -1
  121. package/dist/http/invite/admin/responses.d.ts +12 -0
  122. package/dist/http/invite/admin/responses.d.ts.map +1 -1
  123. package/dist/http/order/admin/entities.d.ts +45 -0
  124. package/dist/http/order/admin/entities.d.ts.map +1 -1
  125. package/dist/http/order/admin/queries.d.ts +6 -0
  126. package/dist/http/order/admin/queries.d.ts.map +1 -1
  127. package/dist/http/order/common.d.ts +630 -0
  128. package/dist/http/order/common.d.ts.map +1 -1
  129. package/dist/http/order/store/entities.d.ts +39 -0
  130. package/dist/http/order/store/entities.d.ts.map +1 -1
  131. package/dist/http/order/store/queries.d.ts +6 -0
  132. package/dist/http/order/store/queries.d.ts.map +1 -1
  133. package/dist/http/order/store/responses.d.ts +6 -0
  134. package/dist/http/order/store/responses.d.ts.map +1 -1
  135. package/dist/http/payment/common.d.ts +3 -0
  136. package/dist/http/payment/common.d.ts.map +1 -1
  137. package/dist/http/payment/store/entities.d.ts +9 -0
  138. package/dist/http/payment/store/entities.d.ts.map +1 -1
  139. package/dist/http/payment/store/payloads.d.ts +18 -0
  140. package/dist/http/payment/store/payloads.d.ts.map +1 -1
  141. package/dist/http/payment/store/queries.d.ts +3 -0
  142. package/dist/http/payment/store/queries.d.ts.map +1 -1
  143. package/dist/http/payment/store/responses.d.ts +6 -0
  144. package/dist/http/payment/store/responses.d.ts.map +1 -1
  145. package/dist/http/product/admin/payloads.d.ts +2 -0
  146. package/dist/http/product/admin/payloads.d.ts.map +1 -1
  147. package/dist/http/product/common.d.ts +268 -0
  148. package/dist/http/product/common.d.ts.map +1 -1
  149. package/dist/http/product/store/entitites.d.ts +36 -0
  150. package/dist/http/product/store/entitites.d.ts.map +1 -1
  151. package/dist/http/product/store/queries.d.ts +19 -1
  152. package/dist/http/product/store/queries.d.ts.map +1 -1
  153. package/dist/http/product/store/responses.d.ts +6 -0
  154. package/dist/http/product/store/responses.d.ts.map +1 -1
  155. package/dist/http/product-category/common.d.ts +94 -0
  156. package/dist/http/product-category/common.d.ts.map +1 -1
  157. package/dist/http/product-category/store/entities.d.ts +9 -0
  158. package/dist/http/product-category/store/entities.d.ts.map +1 -1
  159. package/dist/http/product-category/store/queries.d.ts +1 -1
  160. package/dist/http/product-category/store/queries.d.ts.map +1 -1
  161. package/dist/http/product-category/store/responses.d.ts +6 -0
  162. package/dist/http/product-category/store/responses.d.ts.map +1 -1
  163. package/dist/http/promotion/common.d.ts +3 -0
  164. package/dist/http/promotion/common.d.ts.map +1 -1
  165. package/dist/http/region/common.d.ts +69 -0
  166. package/dist/http/region/common.d.ts.map +1 -1
  167. package/dist/http/region/store/responses.d.ts +6 -0
  168. package/dist/http/region/store/responses.d.ts.map +1 -1
  169. package/dist/http/shipping-option/store/queries.d.ts +8 -0
  170. package/dist/http/shipping-option/store/queries.d.ts.map +1 -1
  171. package/dist/http/shipping-option/store/responses.d.ts +2 -2
  172. package/dist/http/shipping-option/store/responses.d.ts.map +1 -1
  173. package/dist/product/common.d.ts +8 -0
  174. package/dist/product/common.d.ts.map +1 -1
  175. package/package.json +1 -1
@@ -1,12 +1,48 @@
1
1
  export interface BaseCurrency {
2
+ /**
3
+ * The currency's code.
4
+ *
5
+ * @example
6
+ * usd
7
+ */
2
8
  code: string;
9
+ /**
10
+ * The currency's symbol.
11
+ *
12
+ * @example
13
+ * $
14
+ */
3
15
  symbol: string;
16
+ /**
17
+ * The currency's symbol in its native language or country.
18
+ *
19
+ * @example
20
+ * $
21
+ */
4
22
  symbol_native: string;
23
+ /**
24
+ * The currency's name.
25
+ */
5
26
  name: string;
27
+ /**
28
+ * The number of digits after the decimal for prices in this currency.
29
+ */
6
30
  decimal_digits: number;
31
+ /**
32
+ * The rounding percision applied on prices in this currency.
33
+ */
7
34
  rounding: number;
35
+ /**
36
+ * The date the currency was created.
37
+ */
8
38
  created_at: string;
39
+ /**
40
+ * The date the currency was updated.
41
+ */
9
42
  updated_at: string;
43
+ /**
44
+ * The date the currency was deleted.
45
+ */
10
46
  deleted_at: string | null;
11
47
  }
12
48
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/currency/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/currency/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,cAAc,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B"}
@@ -1,8 +1,17 @@
1
1
  import { AdminCustomerGroup } from "../../customer-group";
2
2
  import { BaseCustomer, BaseCustomerAddress } from "../common";
3
3
  export interface AdminCustomer extends BaseCustomer {
4
+ /**
5
+ * Whether the customer is a guest.
6
+ */
4
7
  has_account: boolean;
8
+ /**
9
+ * The groups the customer is in.
10
+ */
5
11
  groups?: AdminCustomerGroup[];
12
+ /**
13
+ * The customer's addresses.
14
+ */
6
15
  addresses: AdminCustomerAddress[];
7
16
  }
8
17
  export interface AdminCustomerAddress extends BaseCustomerAddress {
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/customer/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAE7D,MAAM,WAAW,aAAc,SAAQ,YAAY;IACjD,WAAW,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAA;IAC7B,SAAS,EAAE,oBAAoB,EAAE,CAAA;CAClC;AACD,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;CAAG"}
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/customer/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAE7D,MAAM,WAAW,aAAc,SAAQ,YAAY;IACjD;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAA;IAC7B;;OAEG;IACH,SAAS,EAAE,oBAAoB,EAAE,CAAA;CAClC;AACD,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;CAAG"}
@@ -1,6 +1,12 @@
1
1
  import { BaseCustomerAddressFilters, BaseCustomerFilters, CustomerGroupInCustomerFilters } from "../common";
2
2
  export interface AdminCustomerFilters extends BaseCustomerFilters {
3
+ /**
4
+ * Apply customer group filters to retrieve their customers.
5
+ */
3
6
  groups?: CustomerGroupInCustomerFilters | string[] | string;
7
+ /**
8
+ * Filter by whether the customer is registered.
9
+ */
4
10
  has_account?: boolean;
5
11
  }
6
12
  export interface AdminCustomerAddressFilters extends BaseCustomerAddressFilters {
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/customer/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,mBAAmB,EACnB,8BAA8B,EAC/B,MAAM,WAAW,CAAA;AAElB,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC/D,MAAM,CAAC,EAAE,8BAA8B,GAAG,MAAM,EAAE,GAAG,MAAM,CAAA;IAC3D,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AACD,MAAM,WAAW,2BACf,SAAQ,0BAA0B;CAAG"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/customer/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,mBAAmB,EACnB,8BAA8B,EAC/B,MAAM,WAAW,CAAA;AAElB,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC/D;;OAEG;IACH,MAAM,CAAC,EAAE,8BAA8B,GAAG,MAAM,EAAE,GAAG,MAAM,CAAA;IAC3D;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AACD,MAAM,WAAW,2BACf,SAAQ,0BAA0B;CAAG"}
@@ -1,9 +1,15 @@
1
1
  import { DeleteResponse, DeleteResponseWithParent, PaginatedResponse } from "../../common";
2
2
  import { AdminCustomer, AdminCustomerAddress } from "./entities";
3
3
  export interface AdminCustomerResponse {
4
+ /**
5
+ * The customer's details.
6
+ */
4
7
  customer: AdminCustomer;
5
8
  }
6
9
  export type AdminCustomerListResponse = PaginatedResponse<{
10
+ /**
11
+ * The list of customers.
12
+ */
7
13
  customers: AdminCustomer[];
8
14
  }>;
9
15
  export interface AdminCustomerAddressResponse {
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/customer/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEhE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACxD,SAAS,EAAE,aAAa,EAAE,CAAA;CAC3B,CAAC,CAAA;AAEF,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,oBAAoB,CAAA;CAC9B;AAED,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAC/D,SAAS,EAAE,oBAAoB,EAAE,CAAA;CAClC,CAAC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA;AAEpE,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAA;AAE/E,MAAM,MAAM,kCAAkC,GAAG,wBAAwB,CACvE,kBAAkB,EAClB,aAAa,CACd,CAAA"}
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/customer/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEhE,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACxD;;OAEG;IACH,SAAS,EAAE,aAAa,EAAE,CAAA;CAC3B,CAAC,CAAA;AAEF,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,oBAAoB,CAAA;CAC9B;AAED,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAC/D,SAAS,EAAE,oBAAoB,EAAE,CAAA;CAClC,CAAC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA;AAEpE,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAA;AAE/E,MAAM,MAAM,kCAAkC,GAAG,wBAAwB,CACvE,kBAAkB,EAClB,aAAa,CACd,CAAA"}
@@ -9,113 +9,398 @@ export interface BaseCustomerGroup {
9
9
  updated_at: string;
10
10
  }
11
11
  export interface BaseCustomerAddress {
12
+ /**
13
+ * The address's ID.
14
+ */
12
15
  id: string;
16
+ /**
17
+ * The address's name.
18
+ */
13
19
  address_name: string | null;
20
+ /**
21
+ * Whether the address is used by default for shipping.
22
+ */
14
23
  is_default_shipping: boolean;
24
+ /**
25
+ * Whether the address is used by default for billing.
26
+ */
15
27
  is_default_billing: boolean;
28
+ /**
29
+ * The ID of the customer this address belongs to.
30
+ */
16
31
  customer_id: string;
32
+ /**
33
+ * The address's company.
34
+ */
17
35
  company: string | null;
36
+ /**
37
+ * The address's first name.
38
+ */
18
39
  first_name: string | null;
40
+ /**
41
+ * The address's last name.
42
+ */
19
43
  last_name: string | null;
44
+ /**
45
+ * The address's first line.
46
+ */
20
47
  address_1: string | null;
48
+ /**
49
+ * The address's second line.
50
+ */
21
51
  address_2: string | null;
52
+ /**
53
+ * The address's city.
54
+ */
22
55
  city: string | null;
56
+ /**
57
+ * The address's country code.
58
+ *
59
+ * @example
60
+ * us
61
+ */
23
62
  country_code: string | null;
63
+ /**
64
+ * The address's province.
65
+ */
24
66
  province: string | null;
67
+ /**
68
+ * The address's postal code.
69
+ */
25
70
  postal_code: string | null;
71
+ /**
72
+ * The address's phone number.
73
+ */
26
74
  phone: string | null;
75
+ /**
76
+ * Key-value pairs of custom data.
77
+ */
27
78
  metadata: Record<string, unknown> | null;
79
+ /**
80
+ * The date the address was created.
81
+ */
28
82
  created_at: string;
83
+ /**
84
+ * The date the address was updated.
85
+ */
29
86
  updated_at: string;
30
87
  }
31
88
  export interface BaseCustomer {
89
+ /**
90
+ * The customer's ID.
91
+ */
32
92
  id: string;
93
+ /**
94
+ * The customer's email.
95
+ */
33
96
  email: string;
97
+ /**
98
+ * The ID of the customer's default billing address.
99
+ */
34
100
  default_billing_address_id: string | null;
101
+ /**
102
+ * The ID of the customer's default shipping address.
103
+ */
35
104
  default_shipping_address_id: string | null;
105
+ /**
106
+ * The customer's company name.
107
+ */
36
108
  company_name: string | null;
109
+ /**
110
+ * The customer's first name.
111
+ */
37
112
  first_name: string | null;
113
+ /**
114
+ * The customer's last name.
115
+ */
38
116
  last_name: string | null;
117
+ /**
118
+ * The customer's addresses
119
+ */
39
120
  addresses: BaseCustomerAddress[];
121
+ /**
122
+ * The customer's phone.
123
+ */
40
124
  phone?: string | null;
125
+ /**
126
+ * Key-value pairs of custom data.
127
+ */
41
128
  metadata?: Record<string, unknown>;
129
+ /**
130
+ * The ID of the user that created the customer.
131
+ */
42
132
  created_by?: string | null;
133
+ /**
134
+ * The date the customer was deleted.
135
+ */
43
136
  deleted_at?: Date | string | null;
137
+ /**
138
+ * The date the customer was created.
139
+ */
44
140
  created_at?: Date | string;
141
+ /**
142
+ * The date the customer was updated.
143
+ */
45
144
  updated_at?: Date | string;
46
145
  }
47
146
  export interface CustomerGroupInCustomerFilters {
147
+ /**
148
+ * Filter by customer group ID(s).
149
+ */
48
150
  id: string[] | string;
151
+ /**
152
+ * Filter by name(s).
153
+ */
49
154
  name: string[] | string;
155
+ /**
156
+ * Apply filters on the group's creation date.
157
+ */
50
158
  created_at: OperatorMap<string>;
159
+ /**
160
+ * Apply filters on the group's update date.
161
+ */
51
162
  updated_at: OperatorMap<string>;
163
+ /**
164
+ * Apply filters on the group's deletion date.
165
+ */
52
166
  deleted_at: OperatorMap<string>;
53
167
  }
54
168
  export interface BaseCustomerFilters extends FindParams, BaseFilterable<BaseCustomerFilters> {
169
+ /**
170
+ * Query or keywords to apply on the customer's searchable fields.
171
+ */
55
172
  q?: string;
173
+ /**
174
+ * Filter by customer ID(s).
175
+ */
56
176
  id?: string[] | string | OperatorMap<string | string[]>;
177
+ /**
178
+ * Filter by email(s).
179
+ */
57
180
  email?: string[] | string | OperatorMap<string>;
181
+ /**
182
+ * Filter by company name(s).
183
+ */
58
184
  company_name?: string[] | string | OperatorMap<string>;
185
+ /**
186
+ * Filter by first name(s).
187
+ */
59
188
  first_name?: string[] | string | OperatorMap<string>;
189
+ /**
190
+ * Filter by last name(s).
191
+ */
60
192
  last_name?: string[] | string | OperatorMap<string>;
193
+ /**
194
+ * Filter by user ID(s) to retrieve the customers they created.
195
+ */
61
196
  created_by?: string[] | string | OperatorMap<string>;
197
+ /**
198
+ * Apply filters on the customer's creation date.
199
+ */
62
200
  created_at?: OperatorMap<string>;
201
+ /**
202
+ * Apply filters on the customer's update date.
203
+ */
63
204
  updated_at?: OperatorMap<string>;
205
+ /**
206
+ * Apply filters on the customer's deletion date.
207
+ */
64
208
  deleted_at?: OperatorMap<string>;
65
209
  }
66
210
  export interface BaseCustomerAddressFilters extends BaseFilterable<BaseCustomerAddressFilters> {
211
+ /**
212
+ * A query or keyword to search the address's searchable fields.
213
+ */
67
214
  q?: string;
215
+ /**
216
+ * Filter by company name(s).
217
+ */
68
218
  company?: string[] | string;
219
+ /**
220
+ * Filter by cities.
221
+ */
69
222
  city?: string[] | string;
223
+ /**
224
+ * Filter by country code(s).
225
+ */
70
226
  country_code?: string[] | string;
227
+ /**
228
+ * Filter by province(s).
229
+ */
71
230
  province?: string[] | string;
231
+ /**
232
+ * Filter by postal code(s).
233
+ */
72
234
  postal_code?: string[] | string;
73
235
  }
74
236
  export interface BaseCreateCustomer {
237
+ /**
238
+ * The customer's email.
239
+ */
75
240
  email: string;
241
+ /**
242
+ * The customer's company name.
243
+ */
76
244
  company_name?: string;
245
+ /**
246
+ * The customer's first name.
247
+ */
77
248
  first_name?: string;
249
+ /**
250
+ * The customer's last name.
251
+ */
78
252
  last_name?: string;
253
+ /**
254
+ * The customer's phone number.
255
+ */
79
256
  phone?: string;
257
+ /**
258
+ * Key-value pairs of custom data.
259
+ */
80
260
  metadata?: Record<string, unknown>;
81
261
  }
82
262
  export interface BaseUpdateCustomer {
263
+ /**
264
+ * The customer's company name.
265
+ */
83
266
  company_name?: string;
267
+ /**
268
+ * The customer's first name.
269
+ */
84
270
  first_name?: string;
271
+ /**
272
+ * The customer's last name.
273
+ */
85
274
  last_name?: string;
275
+ /**
276
+ * The customer's phone number.
277
+ */
86
278
  phone?: string;
279
+ /**
280
+ * Key-value pairs of custom data.
281
+ */
87
282
  metadata?: Record<string, unknown>;
88
283
  }
89
284
  export interface BaseCreateCustomerAddress {
285
+ /**
286
+ * The address's first name.
287
+ */
90
288
  first_name?: string;
289
+ /**
290
+ * The address's last name.
291
+ */
91
292
  last_name?: string;
293
+ /**
294
+ * The address's phone.
295
+ */
92
296
  phone?: string;
297
+ /**
298
+ * The address's company.
299
+ */
93
300
  company?: string;
301
+ /**
302
+ * The address's first line.
303
+ */
94
304
  address_1?: string;
305
+ /**
306
+ * The address's second line.
307
+ */
95
308
  address_2?: string;
309
+ /**
310
+ * The address's city.
311
+ */
96
312
  city?: string;
313
+ /**
314
+ * The address's country code.
315
+ *
316
+ * @example
317
+ * us
318
+ */
97
319
  country_code?: string;
320
+ /**
321
+ * The address's province.
322
+ */
98
323
  province?: string;
324
+ /**
325
+ * The address's postal code.
326
+ */
99
327
  postal_code?: string;
328
+ /**
329
+ * Key-value pairs of custom data.
330
+ */
100
331
  metadata?: Record<string, unknown>;
332
+ /**
333
+ * The address's name.
334
+ */
101
335
  address_name?: string;
336
+ /**
337
+ * Whether the address is used by default for shipping.
338
+ */
102
339
  is_default_shipping?: boolean;
340
+ /**
341
+ * Whether the address is used by default for billing.
342
+ */
103
343
  is_default_billing?: boolean;
104
344
  }
105
345
  export interface BaseUpdateCustomerAddress {
346
+ /**
347
+ * The address's first name.
348
+ */
106
349
  first_name?: string;
350
+ /**
351
+ * The address's last name.
352
+ */
107
353
  last_name?: string;
354
+ /**
355
+ * The address's phone.
356
+ */
108
357
  phone?: string;
358
+ /**
359
+ * The address's company.
360
+ */
109
361
  company?: string;
362
+ /**
363
+ * The address's first line.
364
+ */
110
365
  address_1?: string;
366
+ /**
367
+ * The address's second line.
368
+ */
111
369
  address_2?: string;
370
+ /**
371
+ * The address's city.
372
+ */
112
373
  city?: string;
374
+ /**
375
+ * The address's country code.
376
+ *
377
+ * @example
378
+ * us
379
+ */
113
380
  country_code?: string;
381
+ /**
382
+ * The address's province.
383
+ */
114
384
  province?: string;
385
+ /**
386
+ * The address's postal code.
387
+ */
115
388
  postal_code?: string;
389
+ /**
390
+ * Key-value pairs of custom data.
391
+ */
116
392
  metadata?: Record<string, unknown> | null;
393
+ /**
394
+ * The address's name.
395
+ */
117
396
  address_name?: string;
397
+ /**
398
+ * Whether the address is used by default for shipping.
399
+ */
118
400
  is_default_shipping?: boolean;
401
+ /**
402
+ * Whether the address is used by default for billing.
403
+ */
119
404
  is_default_billing?: boolean;
120
405
  }
121
406
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/customer/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,YAAY,EAAE,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mBAAmB,EAAE,OAAO,CAAA;IAC5B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAC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O,CAAC,GAAG,IAAI,CAAA;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B"}
@@ -1,5 +1,8 @@
1
1
  import { BaseCustomer, BaseCustomerAddress } from "../common";
2
2
  export interface StoreCustomer extends Omit<BaseCustomer, "created_by"> {
3
+ /**
4
+ * The customer's address.
5
+ */
3
6
  addresses: StoreCustomerAddress[];
4
7
  }
5
8
  export interface StoreCustomerAddress extends BaseCustomerAddress {
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/customer/store/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAE7D,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC;IACrE,SAAS,EAAE,oBAAoB,EAAE,CAAA;CAClC;AACD,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;CAAG"}
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/customer/store/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAE7D,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC;IACrE;;OAEG;IACH,SAAS,EAAE,oBAAoB,EAAE,CAAA;CAClC;AACD,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;CAAG"}
@@ -1,12 +1,21 @@
1
1
  import { DeleteResponseWithParent, PaginatedResponse } from "../../common";
2
2
  import { StoreCustomer, StoreCustomerAddress } from "./entities";
3
3
  export interface StoreCustomerResponse {
4
+ /**
5
+ * The customer's details.
6
+ */
4
7
  customer: StoreCustomer;
5
8
  }
6
9
  export interface StoreCustomerAddressResponse {
10
+ /**
11
+ * The address's details.
12
+ */
7
13
  address: StoreCustomerAddress;
8
14
  }
9
15
  export interface StoreCustomerAddressListResponse extends PaginatedResponse<{
16
+ /**
17
+ * The paginated list of addresses.
18
+ */
10
19
  addresses: StoreCustomerAddress[];
11
20
  }> {
12
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/customer/store/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC1E,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEhE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,oBAAoB,CAAA;CAC9B;AAED,MAAM,WAAW,gCACf,SAAQ,iBAAiB,CAAC;IAAE,SAAS,EAAE,oBAAoB,EAAE,CAAA;CAAE,CAAC;CAAG;AAErE,MAAM,MAAM,kCAAkC,GAAG,wBAAwB,CACvE,SAAS,EACT,aAAa,CACd,CAAA"}
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/customer/store/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC1E,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEhE,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,OAAO,EAAE,oBAAoB,CAAA;CAC9B;AAED,MAAM,WAAW,gCACf,SAAQ,iBAAiB,CAAC;IACxB;;OAEG;IACH,SAAS,EAAE,oBAAoB,EAAE,CAAA;CAClC,CAAC;CAAG;AAEP,MAAM,MAAM,kCAAkC,GAAG,wBAAwB,CACvE,SAAS,EACT,aAAa,CACd,CAAA"}
@@ -1,6 +1,9 @@
1
1
  import { AdminCustomer } from "../../customer/admin";
2
2
  import { BaseCustomerGroup } from "../common";
3
3
  export interface AdminCustomerGroup extends BaseCustomerGroup {
4
+ /**
5
+ * The customers in the group.
6
+ */
4
7
  customers: AdminCustomer[];
5
8
  }
6
9
  //# sourceMappingURL=entities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/customer-group/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,SAAS,EAAE,aAAa,EAAE,CAAA;CAC3B"}
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/customer-group/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D;;OAEG;IACH,SAAS,EAAE,aAAa,EAAE,CAAA;CAC3B"}
@@ -1,9 +1,21 @@
1
1
  export interface AdminCreateCustomerGroup {
2
+ /**
3
+ * The customer group's name.
4
+ */
2
5
  name: string;
6
+ /**
7
+ * Key-value pairs of custom data.
8
+ */
3
9
  metadata?: Record<string, unknown> | null;
4
10
  }
5
11
  export interface AdminUpdateCustomerGroup {
12
+ /**
13
+ * The customer group's name.
14
+ */
6
15
  name?: string;
16
+ /**
17
+ * Key-value pairs of custom data.
18
+ */
7
19
  metadata?: Record<string, unknown> | null;
8
20
  }
9
21
  //# sourceMappingURL=payloads.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/customer-group/admin/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C"}
1
+ {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/customer-group/admin/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C"}