@medusajs/js-sdk 2.0.0-rc-20241022183311 → 2.0.1-preview-20241025120203

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/dist/admin/api-key.d.ts +8 -8
  2. package/dist/admin/api-key.js +8 -8
  3. package/dist/admin/campaign.d.ts +8 -8
  4. package/dist/admin/campaign.js +8 -8
  5. package/dist/admin/claim.d.ts +22 -22
  6. package/dist/admin/claim.js +22 -22
  7. package/dist/admin/currency.d.ts +4 -4
  8. package/dist/admin/currency.js +4 -4
  9. package/dist/admin/customer-group.d.ts +8 -8
  10. package/dist/admin/customer-group.js +8 -8
  11. package/dist/admin/customer.d.ts +27 -7
  12. package/dist/admin/customer.d.ts.map +1 -1
  13. package/dist/admin/customer.js +33 -7
  14. package/dist/admin/customer.js.map +1 -1
  15. package/dist/admin/exchange.d.ts +21 -21
  16. package/dist/admin/exchange.js +21 -21
  17. package/dist/admin/fulfillment-provider.d.ts +2 -2
  18. package/dist/admin/fulfillment-provider.js +2 -2
  19. package/dist/admin/fulfillment-set.d.ts +6 -6
  20. package/dist/admin/fulfillment-set.js +6 -6
  21. package/dist/admin/fulfillment.d.ts +3 -3
  22. package/dist/admin/fulfillment.js +3 -3
  23. package/dist/admin/inventory-item.d.ts +12 -12
  24. package/dist/admin/inventory-item.js +12 -12
  25. package/dist/admin/invite.d.ts +8 -8
  26. package/dist/admin/invite.js +8 -8
  27. package/dist/admin/payment-collection.d.ts +0 -2
  28. package/dist/admin/payment-collection.d.ts.map +1 -1
  29. package/dist/admin/payment-collection.js +0 -12
  30. package/dist/admin/payment-collection.js.map +1 -1
  31. package/dist/admin/price-list.d.ts +195 -1
  32. package/dist/admin/price-list.d.ts.map +1 -1
  33. package/dist/admin/price-list.js +194 -0
  34. package/dist/admin/price-list.js.map +1 -1
  35. package/dist/admin/price-preference.d.ts +133 -0
  36. package/dist/admin/price-preference.d.ts.map +1 -1
  37. package/dist/admin/price-preference.js +133 -0
  38. package/dist/admin/price-preference.js.map +1 -1
  39. package/dist/admin/product-category.d.ts +150 -0
  40. package/dist/admin/product-category.d.ts.map +1 -1
  41. package/dist/admin/product-category.js +150 -0
  42. package/dist/admin/product-category.js.map +1 -1
  43. package/dist/admin/product-collection.d.ts +149 -0
  44. package/dist/admin/product-collection.d.ts.map +1 -1
  45. package/dist/admin/product-collection.js +149 -0
  46. package/dist/admin/product-collection.js.map +1 -1
  47. package/dist/auth/index.d.ts +10 -10
  48. package/dist/auth/index.js +10 -10
  49. package/dist/esm/admin/api-key.d.ts +8 -8
  50. package/dist/esm/admin/api-key.js +8 -8
  51. package/dist/esm/admin/campaign.d.ts +8 -8
  52. package/dist/esm/admin/campaign.js +8 -8
  53. package/dist/esm/admin/claim.d.ts +22 -22
  54. package/dist/esm/admin/claim.js +22 -22
  55. package/dist/esm/admin/currency.d.ts +4 -4
  56. package/dist/esm/admin/currency.js +4 -4
  57. package/dist/esm/admin/customer-group.d.ts +8 -8
  58. package/dist/esm/admin/customer-group.js +8 -8
  59. package/dist/esm/admin/customer.d.ts +27 -7
  60. package/dist/esm/admin/customer.d.ts.map +1 -1
  61. package/dist/esm/admin/customer.js +35 -7
  62. package/dist/esm/admin/customer.js.map +1 -1
  63. package/dist/esm/admin/exchange.d.ts +21 -21
  64. package/dist/esm/admin/exchange.js +21 -21
  65. package/dist/esm/admin/fulfillment-provider.d.ts +2 -2
  66. package/dist/esm/admin/fulfillment-provider.js +2 -2
  67. package/dist/esm/admin/fulfillment-set.d.ts +6 -6
  68. package/dist/esm/admin/fulfillment-set.js +6 -6
  69. package/dist/esm/admin/fulfillment.d.ts +3 -3
  70. package/dist/esm/admin/fulfillment.js +3 -3
  71. package/dist/esm/admin/inventory-item.d.ts +12 -12
  72. package/dist/esm/admin/inventory-item.js +12 -12
  73. package/dist/esm/admin/invite.d.ts +8 -8
  74. package/dist/esm/admin/invite.js +8 -8
  75. package/dist/esm/admin/payment-collection.d.ts +0 -2
  76. package/dist/esm/admin/payment-collection.d.ts.map +1 -1
  77. package/dist/esm/admin/payment-collection.js +0 -16
  78. package/dist/esm/admin/payment-collection.js.map +1 -1
  79. package/dist/esm/admin/price-list.d.ts +195 -1
  80. package/dist/esm/admin/price-list.d.ts.map +1 -1
  81. package/dist/esm/admin/price-list.js +194 -0
  82. package/dist/esm/admin/price-list.js.map +1 -1
  83. package/dist/esm/admin/price-preference.d.ts +133 -0
  84. package/dist/esm/admin/price-preference.d.ts.map +1 -1
  85. package/dist/esm/admin/price-preference.js +133 -0
  86. package/dist/esm/admin/price-preference.js.map +1 -1
  87. package/dist/esm/admin/product-category.d.ts +150 -0
  88. package/dist/esm/admin/product-category.d.ts.map +1 -1
  89. package/dist/esm/admin/product-category.js +150 -0
  90. package/dist/esm/admin/product-category.js.map +1 -1
  91. package/dist/esm/admin/product-collection.d.ts +149 -0
  92. package/dist/esm/admin/product-collection.d.ts.map +1 -1
  93. package/dist/esm/admin/product-collection.js +149 -0
  94. package/dist/esm/admin/product-collection.js.map +1 -1
  95. package/dist/esm/auth/index.d.ts +10 -10
  96. package/dist/esm/auth/index.js +10 -10
  97. package/dist/esm/store/index.d.ts +73 -73
  98. package/dist/esm/store/index.js +73 -73
  99. package/dist/store/index.d.ts +73 -73
  100. package/dist/store/index.js +73 -73
  101. package/package.json +2 -2
@@ -16,7 +16,7 @@ export class FulfillmentSet {
16
16
  }
17
17
  /**
18
18
  * This method deletes a fulfillment set. It sends a request to the
19
- * [Delete Fulfillment Set](https://docs.medusajs.com/v2/api/admin#fulfillment-sets_deletefulfillmentsetsid)
19
+ * [Delete Fulfillment Set](https://docs.medusajs.com/api/admin#fulfillment-sets_deletefulfillmentsetsid)
20
20
  * API route.
21
21
  *
22
22
  * @param id - The fulfillment set's ID.
@@ -39,7 +39,7 @@ export class FulfillmentSet {
39
39
  }
40
40
  /**
41
41
  * This method adds a service zone to a fulfillment set. It uses the
42
- * [Add Service Zone](https://docs.medusajs.com/v2/api/admin#fulfillment-sets_postfulfillmentsetsidservicezones)
42
+ * [Add Service Zone](https://docs.medusajs.com/api/admin#fulfillment-sets_postfulfillmentsetsidservicezones)
43
43
  * API route.
44
44
  *
45
45
  * @param id - The fulfillment set's ID.
@@ -72,7 +72,7 @@ export class FulfillmentSet {
72
72
  }
73
73
  /**
74
74
  * This method retrieves a fulfillment set's service zone's details. It sends a request to the
75
- * [Get Service Zone](https://docs.medusajs.com/v2/api/admin#fulfillment-sets_getfulfillmentsetsidservicezoneszone_id)
75
+ * [Get Service Zone](https://docs.medusajs.com/api/admin#fulfillment-sets_getfulfillmentsetsidservicezoneszone_id)
76
76
  * API route.
77
77
  *
78
78
  * @param fulfillmentSetId - The fulfillment set's ID.
@@ -109,7 +109,7 @@ export class FulfillmentSet {
109
109
  * })
110
110
  * ```
111
111
  *
112
- * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
112
+ * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
113
113
  */
114
114
  retrieveServiceZone(fulfillmentSetId, serviceZoneId, query, headers) {
115
115
  return __awaiter(this, void 0, void 0, function* () {
@@ -122,7 +122,7 @@ export class FulfillmentSet {
122
122
  }
123
123
  /**
124
124
  * This method updates a service zone in a fulfillment set. It sends a request to the
125
- * [Update Service Zone](https://docs.medusajs.com/v2/api/admin#fulfillment-sets_postfulfillmentsetsidservicezoneszone_id)
125
+ * [Update Service Zone](https://docs.medusajs.com/api/admin#fulfillment-sets_postfulfillmentsetsidservicezoneszone_id)
126
126
  * API route.
127
127
  *
128
128
  * @param fulfillmentSetId - The fulfillment set's ID.
@@ -156,7 +156,7 @@ export class FulfillmentSet {
156
156
  }
157
157
  /**
158
158
  * This method deletes a service zone in a fulfillment set. It sends a request to the
159
- * [Remove Service Zone](https://docs.medusajs.com/v2/api/admin#fulfillment-sets_deletefulfillmentsetsidservicezoneszone_id)
159
+ * [Remove Service Zone](https://docs.medusajs.com/api/admin#fulfillment-sets_deletefulfillmentsetsidservicezoneszone_id)
160
160
  * API route.
161
161
  *
162
162
  * @param fulfillmentSetId - The fulfullment set's ID.
@@ -12,7 +12,7 @@ export declare class Fulfillment {
12
12
  constructor(client: Client);
13
13
  /**
14
14
  * This method creates a fulfillment. It sends a request to the
15
- * [Create Fulfillment](https://docs.medusajs.com/v2/api/admin#fulfillments_postfulfillments)
15
+ * [Create Fulfillment](https://docs.medusajs.com/api/admin#fulfillments_postfulfillments)
16
16
  * API route.
17
17
  *
18
18
  * @param body - The fulfillment's details.
@@ -46,7 +46,7 @@ export declare class Fulfillment {
46
46
  create(body: HttpTypes.AdminCreateFulfillment, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminFulfillmentResponse>;
47
47
  /**
48
48
  * This method cancels a fulfillment. It sends a request to the
49
- * [Cancel Fulfillment](https://docs.medusajs.com/v2/api/admin#fulfillments_postfulfillmentsidcancel)
49
+ * [Cancel Fulfillment](https://docs.medusajs.com/api/admin#fulfillments_postfulfillmentsidcancel)
50
50
  * API route.
51
51
  *
52
52
  * @param id - The fulfillment's ID.
@@ -63,7 +63,7 @@ export declare class Fulfillment {
63
63
  cancel(id: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminFulfillmentResponse>;
64
64
  /**
65
65
  * This method creates a shipment for a fulfillment. It sends a request to the
66
- * [Create Shipment](https://docs.medusajs.com/v2/api/admin#fulfillments_postfulfillmentsidshipment)
66
+ * [Create Shipment](https://docs.medusajs.com/api/admin#fulfillments_postfulfillmentsidshipment)
67
67
  * API route.
68
68
  *
69
69
  * @param id - The fulfillment's ID.
@@ -16,7 +16,7 @@ export class Fulfillment {
16
16
  }
17
17
  /**
18
18
  * This method creates a fulfillment. It sends a request to the
19
- * [Create Fulfillment](https://docs.medusajs.com/v2/api/admin#fulfillments_postfulfillments)
19
+ * [Create Fulfillment](https://docs.medusajs.com/api/admin#fulfillments_postfulfillments)
20
20
  * API route.
21
21
  *
22
22
  * @param body - The fulfillment's details.
@@ -59,7 +59,7 @@ export class Fulfillment {
59
59
  }
60
60
  /**
61
61
  * This method cancels a fulfillment. It sends a request to the
62
- * [Cancel Fulfillment](https://docs.medusajs.com/v2/api/admin#fulfillments_postfulfillmentsidcancel)
62
+ * [Cancel Fulfillment](https://docs.medusajs.com/api/admin#fulfillments_postfulfillmentsidcancel)
63
63
  * API route.
64
64
  *
65
65
  * @param id - The fulfillment's ID.
@@ -85,7 +85,7 @@ export class Fulfillment {
85
85
  }
86
86
  /**
87
87
  * This method creates a shipment for a fulfillment. It sends a request to the
88
- * [Create Shipment](https://docs.medusajs.com/v2/api/admin#fulfillments_postfulfillmentsidshipment)
88
+ * [Create Shipment](https://docs.medusajs.com/api/admin#fulfillments_postfulfillmentsidshipment)
89
89
  * API route.
90
90
  *
91
91
  * @param id - The fulfillment's ID.
@@ -12,7 +12,7 @@ export declare class InventoryItem {
12
12
  constructor(client: Client);
13
13
  /**
14
14
  * This method creates an inventory item. It sends a request to the
15
- * [Create Inventory Item](https://docs.medusajs.com/v2/api/admin#inventory-items_postinventoryitems)
15
+ * [Create Inventory Item](https://docs.medusajs.com/api/admin#inventory-items_postinventoryitems)
16
16
  * API route.
17
17
  *
18
18
  * @param body - The inventory item's details.
@@ -31,7 +31,7 @@ export declare class InventoryItem {
31
31
  create(body: HttpTypes.AdminCreateInventoryItem, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryItemResponse>;
32
32
  /**
33
33
  * This method updates an inventory level. It sends a request to the
34
- * [Update Inventory Item](https://docs.medusajs.com/v2/api/admin#inventory-items_postinventoryitemsid)
34
+ * [Update Inventory Item](https://docs.medusajs.com/api/admin#inventory-items_postinventoryitemsid)
35
35
  * API route.
36
36
  *
37
37
  * @param id - The inventory item's ID.
@@ -51,7 +51,7 @@ export declare class InventoryItem {
51
51
  update(id: string, body: HttpTypes.AdminUpdateInventoryItem, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryItemResponse>;
52
52
  /**
53
53
  * This method retrieves a paginated list of inventory items. It sends a request to the
54
- * [List Inventory Items](https://docs.medusajs.com/v2/api/admin#inventory-items_getinventoryitems)
54
+ * [List Inventory Items](https://docs.medusajs.com/api/admin#inventory-items_getinventoryitems)
55
55
  * API route.
56
56
  *
57
57
  * @param query - Filters and pagination configurations.
@@ -94,12 +94,12 @@ export declare class InventoryItem {
94
94
  * })
95
95
  * ```
96
96
  *
97
- * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
97
+ * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
98
98
  */
99
99
  list(query?: HttpTypes.AdminInventoryItemParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryItemListResponse>;
100
100
  /**
101
101
  * This method retrieves an inventory item by its ID. It sends a request to the
102
- * [Get Inventory Item](https://docs.medusajs.com/v2/api/admin#inventory-items_getinventoryitemsid) API route.
102
+ * [Get Inventory Item](https://docs.medusajs.com/api/admin#inventory-items_getinventoryitemsid) API route.
103
103
  *
104
104
  * @param id - The inventory item's ID.
105
105
  * @param query - Configure the fields to retrieve in the inventory item.
@@ -127,12 +127,12 @@ export declare class InventoryItem {
127
127
  * })
128
128
  * ```
129
129
  *
130
- * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
130
+ * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
131
131
  */
132
132
  retrieve(id: string, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryItemResponse>;
133
133
  /**
134
134
  * This method deletes an inventory item. This sends a request to the
135
- * [Delete Inventory Item](https://docs.medusajs.com/v2/api/admin#inventory-items_deleteinventoryitemsid)
135
+ * [Delete Inventory Item](https://docs.medusajs.com/api/admin#inventory-items_deleteinventoryitemsid)
136
136
  * API route.
137
137
  *
138
138
  * @param id - The inventory item's ID.
@@ -148,7 +148,7 @@ export declare class InventoryItem {
148
148
  delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryItemDeleteResponse>;
149
149
  /**
150
150
  * This method retrieves a paginated list of inventory levels that belong to an inventory item.
151
- * It sends a request to the [List Inventory Items](https://docs.medusajs.com/v2/api/admin#inventory-items_getinventoryitems)
151
+ * It sends a request to the [List Inventory Items](https://docs.medusajs.com/api/admin#inventory-items_getinventoryitems)
152
152
  * API route.
153
153
  *
154
154
  * @param id - The inventory item's ID.
@@ -192,7 +192,7 @@ export declare class InventoryItem {
192
192
  * })
193
193
  * ```
194
194
  *
195
- * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
195
+ * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
196
196
  */
197
197
  listLevels(id: string, query?: HttpTypes.AdminInventoryLevelFilters, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryLevelListResponse>;
198
198
  /**
@@ -200,7 +200,7 @@ export declare class InventoryItem {
200
200
  * stock location.
201
201
  *
202
202
  * This method sends a request to the
203
- * [Update Inventory Level](https://docs.medusajs.com/v2/api/admin#inventory-items_postinventoryitemsidlocationlevelslocation_id)
203
+ * [Update Inventory Level](https://docs.medusajs.com/api/admin#inventory-items_postinventoryitemsidlocationlevelslocation_id)
204
204
  * API route.
205
205
  *
206
206
  * @param id - The inventory item's ID.
@@ -228,7 +228,7 @@ export declare class InventoryItem {
228
228
  * and a stock location.
229
229
  *
230
230
  * This method sends a request to the
231
- * [Remove Inventory Level](https://docs.medusajs.com/v2/api/admin#inventory-items_deleteinventoryitemsidlocationlevelslocation_id)
231
+ * [Remove Inventory Level](https://docs.medusajs.com/api/admin#inventory-items_deleteinventoryitemsidlocationlevelslocation_id)
232
232
  * API route.
233
233
  *
234
234
  * @param id - The inventory item's ID.
@@ -248,7 +248,7 @@ export declare class InventoryItem {
248
248
  deleteLevel(id: string, locationId: string, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryLevelDeleteResponse>;
249
249
  /**
250
250
  * This method manages the inventory levels of an inventory item. It sends a request to the
251
- * [Manage Inventory Levels](https://docs.medusajs.com/v2/api/admin#inventory-items_postinventoryitemsidlocationlevelsbatch)
251
+ * [Manage Inventory Levels](https://docs.medusajs.com/api/admin#inventory-items_postinventoryitemsidlocationlevelsbatch)
252
252
  * API route.
253
253
  *
254
254
  * @param id - The inventory item's ID.
@@ -16,7 +16,7 @@ export class InventoryItem {
16
16
  }
17
17
  /**
18
18
  * This method creates an inventory item. It sends a request to the
19
- * [Create Inventory Item](https://docs.medusajs.com/v2/api/admin#inventory-items_postinventoryitems)
19
+ * [Create Inventory Item](https://docs.medusajs.com/api/admin#inventory-items_postinventoryitems)
20
20
  * API route.
21
21
  *
22
22
  * @param body - The inventory item's details.
@@ -44,7 +44,7 @@ export class InventoryItem {
44
44
  }
45
45
  /**
46
46
  * This method updates an inventory level. It sends a request to the
47
- * [Update Inventory Item](https://docs.medusajs.com/v2/api/admin#inventory-items_postinventoryitemsid)
47
+ * [Update Inventory Item](https://docs.medusajs.com/api/admin#inventory-items_postinventoryitemsid)
48
48
  * API route.
49
49
  *
50
50
  * @param id - The inventory item's ID.
@@ -73,7 +73,7 @@ export class InventoryItem {
73
73
  }
74
74
  /**
75
75
  * This method retrieves a paginated list of inventory items. It sends a request to the
76
- * [List Inventory Items](https://docs.medusajs.com/v2/api/admin#inventory-items_getinventoryitems)
76
+ * [List Inventory Items](https://docs.medusajs.com/api/admin#inventory-items_getinventoryitems)
77
77
  * API route.
78
78
  *
79
79
  * @param query - Filters and pagination configurations.
@@ -116,7 +116,7 @@ export class InventoryItem {
116
116
  * })
117
117
  * ```
118
118
  *
119
- * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
119
+ * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
120
120
  */
121
121
  list(query, headers) {
122
122
  return __awaiter(this, void 0, void 0, function* () {
@@ -128,7 +128,7 @@ export class InventoryItem {
128
128
  }
129
129
  /**
130
130
  * This method retrieves an inventory item by its ID. It sends a request to the
131
- * [Get Inventory Item](https://docs.medusajs.com/v2/api/admin#inventory-items_getinventoryitemsid) API route.
131
+ * [Get Inventory Item](https://docs.medusajs.com/api/admin#inventory-items_getinventoryitemsid) API route.
132
132
  *
133
133
  * @param id - The inventory item's ID.
134
134
  * @param query - Configure the fields to retrieve in the inventory item.
@@ -156,7 +156,7 @@ export class InventoryItem {
156
156
  * })
157
157
  * ```
158
158
  *
159
- * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
159
+ * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
160
160
  */
161
161
  retrieve(id, query, headers) {
162
162
  return __awaiter(this, void 0, void 0, function* () {
@@ -168,7 +168,7 @@ export class InventoryItem {
168
168
  }
169
169
  /**
170
170
  * This method deletes an inventory item. This sends a request to the
171
- * [Delete Inventory Item](https://docs.medusajs.com/v2/api/admin#inventory-items_deleteinventoryitemsid)
171
+ * [Delete Inventory Item](https://docs.medusajs.com/api/admin#inventory-items_deleteinventoryitemsid)
172
172
  * API route.
173
173
  *
174
174
  * @param id - The inventory item's ID.
@@ -191,7 +191,7 @@ export class InventoryItem {
191
191
  }
192
192
  /**
193
193
  * This method retrieves a paginated list of inventory levels that belong to an inventory item.
194
- * It sends a request to the [List Inventory Items](https://docs.medusajs.com/v2/api/admin#inventory-items_getinventoryitems)
194
+ * It sends a request to the [List Inventory Items](https://docs.medusajs.com/api/admin#inventory-items_getinventoryitems)
195
195
  * API route.
196
196
  *
197
197
  * @param id - The inventory item's ID.
@@ -235,7 +235,7 @@ export class InventoryItem {
235
235
  * })
236
236
  * ```
237
237
  *
238
- * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
238
+ * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
239
239
  */
240
240
  listLevels(id, query, headers) {
241
241
  return __awaiter(this, void 0, void 0, function* () {
@@ -250,7 +250,7 @@ export class InventoryItem {
250
250
  * stock location.
251
251
  *
252
252
  * This method sends a request to the
253
- * [Update Inventory Level](https://docs.medusajs.com/v2/api/admin#inventory-items_postinventoryitemsidlocationlevelslocation_id)
253
+ * [Update Inventory Level](https://docs.medusajs.com/api/admin#inventory-items_postinventoryitemsidlocationlevelslocation_id)
254
254
  * API route.
255
255
  *
256
256
  * @param id - The inventory item's ID.
@@ -287,7 +287,7 @@ export class InventoryItem {
287
287
  * and a stock location.
288
288
  *
289
289
  * This method sends a request to the
290
- * [Remove Inventory Level](https://docs.medusajs.com/v2/api/admin#inventory-items_deleteinventoryitemsidlocationlevelslocation_id)
290
+ * [Remove Inventory Level](https://docs.medusajs.com/api/admin#inventory-items_deleteinventoryitemsidlocationlevelslocation_id)
291
291
  * API route.
292
292
  *
293
293
  * @param id - The inventory item's ID.
@@ -314,7 +314,7 @@ export class InventoryItem {
314
314
  }
315
315
  /**
316
316
  * This method manages the inventory levels of an inventory item. It sends a request to the
317
- * [Manage Inventory Levels](https://docs.medusajs.com/v2/api/admin#inventory-items_postinventoryitemsidlocationlevelsbatch)
317
+ * [Manage Inventory Levels](https://docs.medusajs.com/api/admin#inventory-items_postinventoryitemsidlocationlevelsbatch)
318
318
  * API route.
319
319
  *
320
320
  * @param id - The inventory item's ID.
@@ -15,7 +15,7 @@ export declare class Invite {
15
15
  * the {@link Auth.register}.
16
16
  *
17
17
  * This method sends a request to the [Accept Invite]
18
- * (https://docs.medusajs.com/v2/api/admin#invites_postinvitesaccept)
18
+ * (https://docs.medusajs.com/api/admin#invites_postinvitesaccept)
19
19
  * API route.
20
20
  *
21
21
  * @param input - The details of the user to create.
@@ -52,7 +52,7 @@ export declare class Invite {
52
52
  }, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminAcceptInviteResponse>;
53
53
  /**
54
54
  * This method creates an invite. It sends a request to the
55
- * [Create Invite](https://docs.medusajs.com/v2/api/admin#invites_postinvites)
55
+ * [Create Invite](https://docs.medusajs.com/api/admin#invites_postinvites)
56
56
  * API route.
57
57
  *
58
58
  * @param body - The invite's details.
@@ -71,7 +71,7 @@ export declare class Invite {
71
71
  create(body: HttpTypes.AdminCreateInvite, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteResponse>;
72
72
  /**
73
73
  * This method retrieves an invite by its ID. It sends a request to the
74
- * [Get Invite](https://docs.medusajs.com/v2/api/admin#invites_getinvitesid)
74
+ * [Get Invite](https://docs.medusajs.com/api/admin#invites_getinvitesid)
75
75
  * API route.
76
76
  *
77
77
  * @param id - The invite's ID.
@@ -100,12 +100,12 @@ export declare class Invite {
100
100
  * })
101
101
  * ```
102
102
  *
103
- * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
103
+ * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
104
104
  */
105
105
  retrieve(id: string, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteResponse>;
106
106
  /**
107
107
  * This method retrieves a paginated list of invites. It sends a request to the
108
- * [List Invites](https://docs.medusajs.com/v2/api/admin#invites_getinvites)
108
+ * [List Invites](https://docs.medusajs.com/api/admin#invites_getinvites)
109
109
  * API route.
110
110
  *
111
111
  * @param queryParams - Filters and pagination configurations.
@@ -148,12 +148,12 @@ export declare class Invite {
148
148
  * })
149
149
  * ```
150
150
  *
151
- * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
151
+ * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
152
152
  */
153
153
  list(queryParams?: FindParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteListResponse>;
154
154
  /**
155
155
  * This method refreshes the token of an invite. It sends a request to the
156
- * [Refresh Invite Token](https://docs.medusajs.com/v2/api/admin#invites_postinvitesidresend)
156
+ * [Refresh Invite Token](https://docs.medusajs.com/api/admin#invites_postinvitesidresend)
157
157
  * API route.
158
158
  *
159
159
  * @param id - The invite's ID.
@@ -169,7 +169,7 @@ export declare class Invite {
169
169
  resend(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteResponse>;
170
170
  /**
171
171
  * This method deletes an invite. It sends a request to the
172
- * [Delete Invite](https://docs.medusajs.com/v2/api/admin#invites_deleteinvitesid)
172
+ * [Delete Invite](https://docs.medusajs.com/api/admin#invites_deleteinvitesid)
173
173
  * API route.
174
174
  *
175
175
  * @param id - The invite's ID.
@@ -30,7 +30,7 @@ export class Invite {
30
30
  * the {@link Auth.register}.
31
31
  *
32
32
  * This method sends a request to the [Accept Invite]
33
- * (https://docs.medusajs.com/v2/api/admin#invites_postinvitesaccept)
33
+ * (https://docs.medusajs.com/api/admin#invites_postinvitesaccept)
34
34
  * API route.
35
35
  *
36
36
  * @param input - The details of the user to create.
@@ -72,7 +72,7 @@ export class Invite {
72
72
  }
73
73
  /**
74
74
  * This method creates an invite. It sends a request to the
75
- * [Create Invite](https://docs.medusajs.com/v2/api/admin#invites_postinvites)
75
+ * [Create Invite](https://docs.medusajs.com/api/admin#invites_postinvites)
76
76
  * API route.
77
77
  *
78
78
  * @param body - The invite's details.
@@ -100,7 +100,7 @@ export class Invite {
100
100
  }
101
101
  /**
102
102
  * This method retrieves an invite by its ID. It sends a request to the
103
- * [Get Invite](https://docs.medusajs.com/v2/api/admin#invites_getinvitesid)
103
+ * [Get Invite](https://docs.medusajs.com/api/admin#invites_getinvitesid)
104
104
  * API route.
105
105
  *
106
106
  * @param id - The invite's ID.
@@ -129,7 +129,7 @@ export class Invite {
129
129
  * })
130
130
  * ```
131
131
  *
132
- * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
132
+ * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
133
133
  */
134
134
  retrieve(id, query, headers) {
135
135
  return __awaiter(this, void 0, void 0, function* () {
@@ -141,7 +141,7 @@ export class Invite {
141
141
  }
142
142
  /**
143
143
  * This method retrieves a paginated list of invites. It sends a request to the
144
- * [List Invites](https://docs.medusajs.com/v2/api/admin#invites_getinvites)
144
+ * [List Invites](https://docs.medusajs.com/api/admin#invites_getinvites)
145
145
  * API route.
146
146
  *
147
147
  * @param queryParams - Filters and pagination configurations.
@@ -184,7 +184,7 @@ export class Invite {
184
184
  * })
185
185
  * ```
186
186
  *
187
- * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
187
+ * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
188
188
  */
189
189
  list(queryParams, headers) {
190
190
  return __awaiter(this, void 0, void 0, function* () {
@@ -196,7 +196,7 @@ export class Invite {
196
196
  }
197
197
  /**
198
198
  * This method refreshes the token of an invite. It sends a request to the
199
- * [Refresh Invite Token](https://docs.medusajs.com/v2/api/admin#invites_postinvitesidresend)
199
+ * [Refresh Invite Token](https://docs.medusajs.com/api/admin#invites_postinvitesidresend)
200
200
  * API route.
201
201
  *
202
202
  * @param id - The invite's ID.
@@ -219,7 +219,7 @@ export class Invite {
219
219
  }
220
220
  /**
221
221
  * This method deletes an invite. It sends a request to the
222
- * [Delete Invite](https://docs.medusajs.com/v2/api/admin#invites_deleteinvitesid)
222
+ * [Delete Invite](https://docs.medusajs.com/api/admin#invites_deleteinvitesid)
223
223
  * API route.
224
224
  *
225
225
  * @param id - The invite's ID.
@@ -10,8 +10,6 @@ export declare class PaymentCollection {
10
10
  * @ignore
11
11
  */
12
12
  constructor(client: Client);
13
- list(query?: HttpTypes.AdminPaymentCollectionFilters, headers?: ClientHeaders): Promise<HttpTypes.AdminPaymentCollectionsResponse>;
14
- retrieve(id: string, query?: HttpTypes.AdminPaymentCollectionFilters, headers?: ClientHeaders): Promise<HttpTypes.AdminPaymentCollectionResponse>;
15
13
  create(body: HttpTypes.AdminCreatePaymentCollection, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPaymentCollectionResponse>;
16
14
  delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminDeletePaymentCollectionResponse>;
17
15
  markAsPaid(id: string, body: HttpTypes.AdminMarkPaymentCollectionAsPaid, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPaymentCollectionResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"payment-collection.d.ts","sourceRoot":"","sources":["../../../src/admin/payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,iBAAiB;IAC5B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IACtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAIpB,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,6BAA6B,EAC/C,OAAO,CAAC,EAAE,aAAa;IAWnB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,6BAA6B,EAC/C,OAAO,CAAC,EAAE,aAAa;IAWnB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,4BAA4B,EAC5C,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAU1C,UAAU,CACd,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,gCAAgC,EAChD,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;CAY1B"}
1
+ {"version":3,"file":"payment-collection.d.ts","sourceRoot":"","sources":["../../../src/admin/payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,iBAAiB;IAC5B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IACtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAIpB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,4BAA4B,EAC5C,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAU1C,UAAU,CACd,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,gCAAgC,EAChD,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;CAY1B"}
@@ -14,22 +14,6 @@ export class PaymentCollection {
14
14
  constructor(client) {
15
15
  this.client = client;
16
16
  }
17
- list(query, headers) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- return yield this.client.fetch(`/admin/payment-collections`, {
20
- query,
21
- headers,
22
- });
23
- });
24
- }
25
- retrieve(id, query, headers) {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- return yield this.client.fetch(`/admin/payment-collections/${id}`, {
28
- query,
29
- headers,
30
- });
31
- });
32
- }
33
17
  create(body, query, headers) {
34
18
  return __awaiter(this, void 0, void 0, function* () {
35
19
  return yield this.client.fetch(`/admin/payment-collections`, {
@@ -1 +1 @@
1
- {"version":3,"file":"payment-collection.js","sourceRoot":"","sources":["../../../src/admin/payment-collection.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,iBAAiB;IAK5B;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,IAAI,CACR,KAA+C,EAC/C,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,4BAA4B,EAC5B;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,QAAQ,CACZ,EAAU,EACV,KAA+C,EAC/C,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,8BAA8B,EAAE,EAAE,EAClC;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,IAA4C,EAC5C,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,4BAA4B,EAC5B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,8BAA8B,EAAE,EAAE,EAClC;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,UAAU,CACd,EAAU,EACV,IAAgD,EAChD,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,8BAA8B,EAAE,eAAe,EAC/C;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
1
+ {"version":3,"file":"payment-collection.js","sourceRoot":"","sources":["../../../src/admin/payment-collection.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,iBAAiB;IAK5B;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,MAAM,CACV,IAA4C,EAC5C,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,4BAA4B,EAC5B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,8BAA8B,EAAE,EAAE,EAClC;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,UAAU,CACd,EAAU,EACV,IAAgD,EAChD,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,8BAA8B,EAAE,eAAe,EAC/C;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;CACF"}