@medusajs/js-sdk 0.0.2-snapshot-20241022120003 → 0.0.2-snapshot-20241022140307
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/admin/api-key.d.ts +144 -1
- package/dist/admin/api-key.d.ts.map +1 -1
- package/dist/admin/api-key.js +143 -0
- package/dist/admin/api-key.js.map +1 -1
- package/dist/admin/campaign.d.ts +135 -0
- package/dist/admin/campaign.d.ts.map +1 -1
- package/dist/admin/campaign.js +135 -0
- package/dist/admin/campaign.js.map +1 -1
- package/dist/admin/claim.d.ts +542 -19
- package/dist/admin/claim.d.ts.map +1 -1
- package/dist/admin/claim.js +523 -0
- package/dist/admin/claim.js.map +1 -1
- package/dist/admin/currency.d.ts +80 -1
- package/dist/admin/currency.d.ts.map +1 -1
- package/dist/admin/currency.js +81 -2
- package/dist/admin/currency.js.map +1 -1
- package/dist/admin/customer-group.d.ts +152 -2
- package/dist/admin/customer-group.d.ts.map +1 -1
- package/dist/admin/customer-group.js +150 -0
- package/dist/admin/customer-group.js.map +1 -1
- package/dist/admin/customer.d.ts +135 -13
- package/dist/admin/customer.d.ts.map +1 -1
- package/dist/admin/customer.js +130 -0
- package/dist/admin/customer.js.map +1 -1
- package/dist/admin/exchange.d.ts +471 -16
- package/dist/admin/exchange.d.ts.map +1 -1
- package/dist/admin/exchange.js +455 -0
- package/dist/admin/exchange.js.map +1 -1
- package/dist/admin/fulfillment-provider.d.ts +47 -0
- package/dist/admin/fulfillment-provider.d.ts.map +1 -1
- package/dist/admin/fulfillment-provider.js +47 -0
- package/dist/admin/fulfillment-provider.js.map +1 -1
- package/dist/esm/admin/api-key.d.ts +144 -1
- package/dist/esm/admin/api-key.d.ts.map +1 -1
- package/dist/esm/admin/api-key.js +143 -0
- package/dist/esm/admin/api-key.js.map +1 -1
- package/dist/esm/admin/campaign.d.ts +135 -0
- package/dist/esm/admin/campaign.d.ts.map +1 -1
- package/dist/esm/admin/campaign.js +135 -0
- package/dist/esm/admin/campaign.js.map +1 -1
- package/dist/esm/admin/claim.d.ts +542 -19
- package/dist/esm/admin/claim.d.ts.map +1 -1
- package/dist/esm/admin/claim.js +523 -0
- package/dist/esm/admin/claim.js.map +1 -1
- package/dist/esm/admin/currency.d.ts +80 -1
- package/dist/esm/admin/currency.d.ts.map +1 -1
- package/dist/esm/admin/currency.js +81 -2
- package/dist/esm/admin/currency.js.map +1 -1
- package/dist/esm/admin/customer-group.d.ts +152 -2
- package/dist/esm/admin/customer-group.d.ts.map +1 -1
- package/dist/esm/admin/customer-group.js +150 -0
- package/dist/esm/admin/customer-group.js.map +1 -1
- package/dist/esm/admin/customer.d.ts +135 -13
- package/dist/esm/admin/customer.d.ts.map +1 -1
- package/dist/esm/admin/customer.js +130 -0
- package/dist/esm/admin/customer.js.map +1 -1
- package/dist/esm/admin/exchange.d.ts +471 -16
- package/dist/esm/admin/exchange.d.ts.map +1 -1
- package/dist/esm/admin/exchange.js +455 -0
- package/dist/esm/admin/exchange.js.map +1 -1
- package/dist/esm/admin/fulfillment-provider.d.ts +47 -0
- package/dist/esm/admin/fulfillment-provider.d.ts.map +1 -1
- package/dist/esm/admin/fulfillment-provider.js +47 -0
- package/dist/esm/admin/fulfillment-provider.js.map +1 -1
- package/package.json +2 -2
@@ -14,6 +14,53 @@ export class FulfillmentProvider {
|
|
14
14
|
constructor(client) {
|
15
15
|
this.client = client;
|
16
16
|
}
|
17
|
+
/**
|
18
|
+
* This method retrieves a paginated list of fulfillment providers. It sends a request to the
|
19
|
+
* [List Fulfillment Providers](https://docs.medusajs.com/v2/api/admin#fulfillment-providers_getfulfillmentproviders)
|
20
|
+
* API route.
|
21
|
+
*
|
22
|
+
* @param query - Filters and pagination configurations.
|
23
|
+
* @param headers - Headers to pass in the request.
|
24
|
+
* @returns The paginated list of providers.
|
25
|
+
*
|
26
|
+
* @example
|
27
|
+
* To retrieve the list of fulfillment providers:
|
28
|
+
*
|
29
|
+
* ```ts
|
30
|
+
* sdk.admin.fulfillmentProvider.list()
|
31
|
+
* .then(({ fulfillment_providers, count, limit, offset }) => {
|
32
|
+
* console.log(fulfillment_providers)
|
33
|
+
* })
|
34
|
+
* ```
|
35
|
+
*
|
36
|
+
* To configure the pagination, pass the `limit` and `offset` query parameters.
|
37
|
+
*
|
38
|
+
* For example, to retrieve only 10 items and skip 10 items:
|
39
|
+
*
|
40
|
+
* ```ts
|
41
|
+
* sdk.admin.fulfillmentProvider.list({
|
42
|
+
* limit: 10,
|
43
|
+
* offset: 10
|
44
|
+
* })
|
45
|
+
* .then(({ fulfillment_providers, count, limit, offset }) => {
|
46
|
+
* console.log(fulfillment_providers)
|
47
|
+
* })
|
48
|
+
* ```
|
49
|
+
*
|
50
|
+
* Using the `fields` query parameter, you can specify the fields and relations to retrieve
|
51
|
+
* in each fulfillment provider:
|
52
|
+
*
|
53
|
+
* ```ts
|
54
|
+
* sdk.admin.fulfillmentProvider.list({
|
55
|
+
* fields: "id"
|
56
|
+
* })
|
57
|
+
* .then(({ fulfillment_providers, count, limit, offset }) => {
|
58
|
+
* console.log(fulfillment_providers)
|
59
|
+
* })
|
60
|
+
* ```
|
61
|
+
*
|
62
|
+
* Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
|
63
|
+
*/
|
17
64
|
list(query, headers) {
|
18
65
|
return __awaiter(this, void 0, void 0, function* () {
|
19
66
|
return yield this.client.fetch(`/admin/fulfillment-providers`, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fulfillment-provider.js","sourceRoot":"","sources":["../../../src/admin/fulfillment-provider.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,mBAAmB;IAK9B;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;
|
1
|
+
{"version":3,"file":"fulfillment-provider.js","sourceRoot":"","sources":["../../../src/admin/fulfillment-provider.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,mBAAmB;IAK9B;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACG,IAAI,CACR,KAAoD,EACpD,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,8BAA8B,EAC9B;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/js-sdk",
|
3
|
-
"version": "0.0.2-snapshot-
|
3
|
+
"version": "0.0.2-snapshot-20241022140307",
|
4
4
|
"description": "SDK for the Medusa API",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"module": "dist/esm/index.js",
|
@@ -35,7 +35,7 @@
|
|
35
35
|
"typescript": "^5.6.2"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
-
"@medusajs/types": "1.11.17-snapshot-
|
38
|
+
"@medusajs/types": "1.11.17-snapshot-20241022140307",
|
39
39
|
"fetch-event-stream": "^0.1.5",
|
40
40
|
"qs": "^6.12.1"
|
41
41
|
},
|