@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.
Files changed (65) hide show
  1. package/dist/admin/api-key.d.ts +144 -1
  2. package/dist/admin/api-key.d.ts.map +1 -1
  3. package/dist/admin/api-key.js +143 -0
  4. package/dist/admin/api-key.js.map +1 -1
  5. package/dist/admin/campaign.d.ts +135 -0
  6. package/dist/admin/campaign.d.ts.map +1 -1
  7. package/dist/admin/campaign.js +135 -0
  8. package/dist/admin/campaign.js.map +1 -1
  9. package/dist/admin/claim.d.ts +542 -19
  10. package/dist/admin/claim.d.ts.map +1 -1
  11. package/dist/admin/claim.js +523 -0
  12. package/dist/admin/claim.js.map +1 -1
  13. package/dist/admin/currency.d.ts +80 -1
  14. package/dist/admin/currency.d.ts.map +1 -1
  15. package/dist/admin/currency.js +81 -2
  16. package/dist/admin/currency.js.map +1 -1
  17. package/dist/admin/customer-group.d.ts +152 -2
  18. package/dist/admin/customer-group.d.ts.map +1 -1
  19. package/dist/admin/customer-group.js +150 -0
  20. package/dist/admin/customer-group.js.map +1 -1
  21. package/dist/admin/customer.d.ts +135 -13
  22. package/dist/admin/customer.d.ts.map +1 -1
  23. package/dist/admin/customer.js +130 -0
  24. package/dist/admin/customer.js.map +1 -1
  25. package/dist/admin/exchange.d.ts +471 -16
  26. package/dist/admin/exchange.d.ts.map +1 -1
  27. package/dist/admin/exchange.js +455 -0
  28. package/dist/admin/exchange.js.map +1 -1
  29. package/dist/admin/fulfillment-provider.d.ts +47 -0
  30. package/dist/admin/fulfillment-provider.d.ts.map +1 -1
  31. package/dist/admin/fulfillment-provider.js +47 -0
  32. package/dist/admin/fulfillment-provider.js.map +1 -1
  33. package/dist/esm/admin/api-key.d.ts +144 -1
  34. package/dist/esm/admin/api-key.d.ts.map +1 -1
  35. package/dist/esm/admin/api-key.js +143 -0
  36. package/dist/esm/admin/api-key.js.map +1 -1
  37. package/dist/esm/admin/campaign.d.ts +135 -0
  38. package/dist/esm/admin/campaign.d.ts.map +1 -1
  39. package/dist/esm/admin/campaign.js +135 -0
  40. package/dist/esm/admin/campaign.js.map +1 -1
  41. package/dist/esm/admin/claim.d.ts +542 -19
  42. package/dist/esm/admin/claim.d.ts.map +1 -1
  43. package/dist/esm/admin/claim.js +523 -0
  44. package/dist/esm/admin/claim.js.map +1 -1
  45. package/dist/esm/admin/currency.d.ts +80 -1
  46. package/dist/esm/admin/currency.d.ts.map +1 -1
  47. package/dist/esm/admin/currency.js +81 -2
  48. package/dist/esm/admin/currency.js.map +1 -1
  49. package/dist/esm/admin/customer-group.d.ts +152 -2
  50. package/dist/esm/admin/customer-group.d.ts.map +1 -1
  51. package/dist/esm/admin/customer-group.js +150 -0
  52. package/dist/esm/admin/customer-group.js.map +1 -1
  53. package/dist/esm/admin/customer.d.ts +135 -13
  54. package/dist/esm/admin/customer.d.ts.map +1 -1
  55. package/dist/esm/admin/customer.js +130 -0
  56. package/dist/esm/admin/customer.js.map +1 -1
  57. package/dist/esm/admin/exchange.d.ts +471 -16
  58. package/dist/esm/admin/exchange.d.ts.map +1 -1
  59. package/dist/esm/admin/exchange.js +455 -0
  60. package/dist/esm/admin/exchange.js.map +1 -1
  61. package/dist/esm/admin/fulfillment-provider.d.ts +47 -0
  62. package/dist/esm/admin/fulfillment-provider.d.ts.map +1 -1
  63. package/dist/esm/admin/fulfillment-provider.js +47 -0
  64. package/dist/esm/admin/fulfillment-provider.js.map +1 -1
  65. 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;IAEK,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"}
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-20241022120003",
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-20241022120003",
38
+ "@medusajs/types": "1.11.17-snapshot-20241022140307",
39
39
  "fetch-event-stream": "^0.1.5",
40
40
  "qs": "^6.12.1"
41
41
  },