@medusajs/js-sdk 3.0.0-snapshot-20251208164410 → 3.0.0-snapshot-20251211180009
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.
- package/dist/admin/index.d.ts +10 -5
- package/dist/admin/index.d.ts.map +1 -1
- package/dist/admin/index.js +4 -2
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/locale.d.ts +95 -0
- package/dist/admin/locale.d.ts.map +1 -0
- package/dist/admin/locale.js +104 -0
- package/dist/admin/locale.js.map +1 -0
- package/dist/admin/price-list.d.ts +17 -0
- package/dist/admin/price-list.d.ts.map +1 -1
- package/dist/admin/price-list.js +23 -0
- package/dist/admin/price-list.js.map +1 -1
- package/dist/admin/product.d.ts +0 -22
- package/dist/admin/product.d.ts.map +1 -1
- package/dist/admin/product.js +0 -29
- package/dist/admin/product.js.map +1 -1
- package/dist/admin/translation.d.ts +95 -0
- package/dist/admin/translation.d.ts.map +1 -0
- package/dist/admin/translation.js +106 -0
- package/dist/admin/translation.js.map +1 -0
- package/dist/esm/admin/index.d.ts +10 -5
- package/dist/esm/admin/index.d.ts.map +1 -1
- package/dist/esm/admin/index.js +4 -2
- package/dist/esm/admin/index.js.map +1 -1
- package/dist/esm/admin/locale.d.ts +95 -0
- package/dist/esm/admin/locale.d.ts.map +1 -0
- package/dist/esm/admin/locale.js +113 -0
- package/dist/esm/admin/locale.js.map +1 -0
- package/dist/esm/admin/price-list.d.ts +17 -0
- package/dist/esm/admin/price-list.d.ts.map +1 -1
- package/dist/esm/admin/price-list.js +25 -0
- package/dist/esm/admin/price-list.js.map +1 -1
- package/dist/esm/admin/product.d.ts +0 -22
- package/dist/esm/admin/product.d.ts.map +1 -1
- package/dist/esm/admin/product.js +0 -31
- package/dist/esm/admin/product.js.map +1 -1
- package/dist/esm/admin/translation.d.ts +95 -0
- package/dist/esm/admin/translation.d.ts.map +1 -0
- package/dist/esm/admin/translation.js +115 -0
- package/dist/esm/admin/translation.js.map +1 -0
- package/package.json +2 -2
- package/dist/admin/product-option.d.ts +0 -122
- package/dist/admin/product-option.d.ts.map +0 -1
- package/dist/admin/product-option.js +0 -150
- package/dist/admin/product-option.js.map +0 -1
- package/dist/esm/admin/product-option.d.ts +0 -122
- package/dist/esm/admin/product-option.d.ts.map +0 -1
- package/dist/esm/admin/product-option.js +0 -165
- package/dist/esm/admin/product-option.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../../src/admin/product.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAU,UAAU,EAAE,MAAM,WAAW,CAAA;AAG9C,MAAM,OAAO,OAAO;IAKlB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,MAAM,CACV,IAAyC,EACzC,KAAU,EACV,OAAuB;;YAEvB,MAAM,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAA;YAC3B,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;YAE9B,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,wBAAwB,EACxB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO,kCACF,OAAO;oBACV,8CAA8C;oBAC9C,cAAc,EAAE,IAAI,GACrB;gBACD,IAAI,EAAE,IAAI;gBACV,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACG,YAAY,CAChB,IAAyC,EACzC,KAAU,EACV,OAAuB;;YAEvB;;eAEG;YACH,MAAM,QAAQ,GACZ,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CACrB,8BAA8B,EAC9B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,OAAO;gBAChB,IAAI,EAAE;oBACJ,YAAY,EAAE,IAAI,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACG,cAAc,CAClB,SAAiB,EACjB,EAAU,EACV,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,mBAAmB,SAAS,YAAY,EAAE,EAAE,EAC5C;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;;;OAeG;IACG,YAAY,CAAC,SAAiB,EAAE,EAAU,EAAE,OAAuB;;YACvE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,mBAAmB,SAAS,YAAY,EAAE,EAAE,EAC5C;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,kBAAkB,CACtB,SAAiB,EACjB,OAAe,EACf,IAA6C,EAC7C,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,mBAAmB,SAAS,WAAW,OAAO,iBAAiB,EAC/D;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;aACL,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,kBAAkB,CACtB,SAAiB,EACjB,SAAiB,EACjB,IAA8C,EAC9C,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,mBAAmB,SAAS,aAAa,SAAS,eAAe,EACjE;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;aACL,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { HttpTypes } from "@medusajs/types";
|
|
2
|
+
import { Client } from "../client";
|
|
3
|
+
import { ClientHeaders } from "../types";
|
|
4
|
+
export declare class Translation {
|
|
5
|
+
/**
|
|
6
|
+
* @ignore
|
|
7
|
+
*/
|
|
8
|
+
private client;
|
|
9
|
+
/**
|
|
10
|
+
* @ignore
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: Client);
|
|
13
|
+
/**
|
|
14
|
+
* This method retrieves a paginated list of translations. It sends a request to the
|
|
15
|
+
* [List Translations](https://docs.medusajs.com/api/admin#translations_gettranslations)
|
|
16
|
+
* API route.
|
|
17
|
+
*
|
|
18
|
+
* @param query - Filters and pagination configurations.
|
|
19
|
+
* @param headers - Headers to pass in the request.
|
|
20
|
+
* @returns The paginated list of translations.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* To retrieve the list of translations:
|
|
24
|
+
*
|
|
25
|
+
* ```ts
|
|
26
|
+
* sdk.admin.translation.list()
|
|
27
|
+
* .then(({ translations, count, limit, offset }) => {
|
|
28
|
+
* console.log(translations)
|
|
29
|
+
* })
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* To configure the pagination, pass the `limit` and `offset` query parameters.
|
|
33
|
+
*
|
|
34
|
+
* For example, to retrieve only 10 items and skip 10 items:
|
|
35
|
+
*
|
|
36
|
+
* ```ts
|
|
37
|
+
* sdk.admin.translation.list({
|
|
38
|
+
* limit: 10,
|
|
39
|
+
* offset: 10
|
|
40
|
+
* })
|
|
41
|
+
* .then(({ translations, count, limit, offset }) => {
|
|
42
|
+
* console.log(translations)
|
|
43
|
+
* })
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* Using the `fields` query parameter, you can specify the fields and relations to retrieve
|
|
47
|
+
* in each translation:
|
|
48
|
+
*
|
|
49
|
+
* ```ts
|
|
50
|
+
* sdk.admin.translation.list({
|
|
51
|
+
* fields: "id,name"
|
|
52
|
+
* })
|
|
53
|
+
* .then(({ translations, count, limit, offset }) => {
|
|
54
|
+
* console.log(translations)
|
|
55
|
+
* })
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
|
|
59
|
+
*/
|
|
60
|
+
list(query?: HttpTypes.AdminTranslationsListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminTranslationsListResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* This method manages allows bulk operations on translations. It sends a request to the
|
|
63
|
+
* [Manage Translations](https://docs.medusajs.com/api/admin#translations_posttranslationsbatch)
|
|
64
|
+
* API route.
|
|
65
|
+
*
|
|
66
|
+
* @param payload - The translations to create, update, or delete.
|
|
67
|
+
* @param headers - Headers to pass in the request.
|
|
68
|
+
* @returns The translations' details.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* sdk.admin.translation.batch({
|
|
72
|
+
* create: [
|
|
73
|
+
* {
|
|
74
|
+
* reference_id: "prod_123",
|
|
75
|
+
* reference: "product",
|
|
76
|
+
* locale_code: "en-US",
|
|
77
|
+
* translations: { title: "Shirt" }
|
|
78
|
+
* }
|
|
79
|
+
* ],
|
|
80
|
+
* update: [
|
|
81
|
+
* {
|
|
82
|
+
* id: "trans_123",
|
|
83
|
+
* translations: { title: "Pants" }
|
|
84
|
+
* }
|
|
85
|
+
* ],
|
|
86
|
+
* delete: ["trans_321"]
|
|
87
|
+
* })
|
|
88
|
+
* .then(({ created, updated, deleted }) => {
|
|
89
|
+
* console.log(created, updated, deleted)
|
|
90
|
+
* })
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
batch(body: HttpTypes.AdminBatchTranslations, headers?: ClientHeaders): Promise<HttpTypes.AdminTranslationsBatchResponse>;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../src/admin/translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,WAAW;IACtB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IAEtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAK1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACG,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,2BAA2B,EAC7C,OAAO,CAAC,EAAE,aAAa;IAWzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACG,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,sBAAsB,EAAE,OAAO,CAAC,EAAE,aAAa;CAU5E"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export class Translation {
|
|
11
|
+
/**
|
|
12
|
+
* @ignore
|
|
13
|
+
*/
|
|
14
|
+
constructor(client) {
|
|
15
|
+
this.client = client;
|
|
16
|
+
}
|
|
17
|
+
// TODO: Ask Adrien/Shahed how do I know how to construct the api docs url when implementing new methods
|
|
18
|
+
/**
|
|
19
|
+
* This method retrieves a paginated list of translations. It sends a request to the
|
|
20
|
+
* [List Translations](https://docs.medusajs.com/api/admin#translations_gettranslations)
|
|
21
|
+
* API route.
|
|
22
|
+
*
|
|
23
|
+
* @param query - Filters and pagination configurations.
|
|
24
|
+
* @param headers - Headers to pass in the request.
|
|
25
|
+
* @returns The paginated list of translations.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* To retrieve the list of translations:
|
|
29
|
+
*
|
|
30
|
+
* ```ts
|
|
31
|
+
* sdk.admin.translation.list()
|
|
32
|
+
* .then(({ translations, count, limit, offset }) => {
|
|
33
|
+
* console.log(translations)
|
|
34
|
+
* })
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* To configure the pagination, pass the `limit` and `offset` query parameters.
|
|
38
|
+
*
|
|
39
|
+
* For example, to retrieve only 10 items and skip 10 items:
|
|
40
|
+
*
|
|
41
|
+
* ```ts
|
|
42
|
+
* sdk.admin.translation.list({
|
|
43
|
+
* limit: 10,
|
|
44
|
+
* offset: 10
|
|
45
|
+
* })
|
|
46
|
+
* .then(({ translations, count, limit, offset }) => {
|
|
47
|
+
* console.log(translations)
|
|
48
|
+
* })
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* Using the `fields` query parameter, you can specify the fields and relations to retrieve
|
|
52
|
+
* in each translation:
|
|
53
|
+
*
|
|
54
|
+
* ```ts
|
|
55
|
+
* sdk.admin.translation.list({
|
|
56
|
+
* fields: "id,name"
|
|
57
|
+
* })
|
|
58
|
+
* .then(({ translations, count, limit, offset }) => {
|
|
59
|
+
* console.log(translations)
|
|
60
|
+
* })
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
|
|
64
|
+
*/
|
|
65
|
+
list(query, headers) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
return yield this.client.fetch(`/admin/translations`, {
|
|
68
|
+
headers,
|
|
69
|
+
query,
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* This method manages allows bulk operations on translations. It sends a request to the
|
|
75
|
+
* [Manage Translations](https://docs.medusajs.com/api/admin#translations_posttranslationsbatch)
|
|
76
|
+
* API route.
|
|
77
|
+
*
|
|
78
|
+
* @param payload - The translations to create, update, or delete.
|
|
79
|
+
* @param headers - Headers to pass in the request.
|
|
80
|
+
* @returns The translations' details.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* sdk.admin.translation.batch({
|
|
84
|
+
* create: [
|
|
85
|
+
* {
|
|
86
|
+
* reference_id: "prod_123",
|
|
87
|
+
* reference: "product",
|
|
88
|
+
* locale_code: "en-US",
|
|
89
|
+
* translations: { title: "Shirt" }
|
|
90
|
+
* }
|
|
91
|
+
* ],
|
|
92
|
+
* update: [
|
|
93
|
+
* {
|
|
94
|
+
* id: "trans_123",
|
|
95
|
+
* translations: { title: "Pants" }
|
|
96
|
+
* }
|
|
97
|
+
* ],
|
|
98
|
+
* delete: ["trans_321"]
|
|
99
|
+
* })
|
|
100
|
+
* .then(({ created, updated, deleted }) => {
|
|
101
|
+
* console.log(created, updated, deleted)
|
|
102
|
+
* })
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
batch(body, headers) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
return yield this.client.fetch(`/admin/translations/batch`, {
|
|
108
|
+
method: "POST",
|
|
109
|
+
headers,
|
|
110
|
+
body,
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=translation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../src/admin/translation.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,WAAW;IAMtB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,wGAAwG;IACxG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACG,IAAI,CACR,KAA6C,EAC7C,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,qBAAqB,EACrB;gBACE,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACG,KAAK,CAAC,IAAsC,EAAE,OAAuB;;YACzE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,2BAA2B,EAC3B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;aACL,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/js-sdk",
|
|
3
|
-
"version": "3.0.0-snapshot-
|
|
3
|
+
"version": "3.0.0-snapshot-20251211180009",
|
|
4
4
|
"description": "SDK for the Medusa API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "Medusa",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@medusajs/types": "3.0.0-snapshot-
|
|
32
|
+
"@medusajs/types": "3.0.0-snapshot-20251211180009"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"fetch-event-stream": "^0.1.5",
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { Client } from "../client";
|
|
2
|
-
import { ClientHeaders } from "../types";
|
|
3
|
-
import { HttpTypes, SelectParams } from "@medusajs/types";
|
|
4
|
-
export declare class ProductOption {
|
|
5
|
-
/**
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
|
-
private client;
|
|
9
|
-
/**
|
|
10
|
-
* @ignore
|
|
11
|
-
*/
|
|
12
|
-
constructor(client: Client);
|
|
13
|
-
/**
|
|
14
|
-
* This method creates a product option. It sends a request to the
|
|
15
|
-
* [Create Option](TODO)
|
|
16
|
-
* API route.
|
|
17
|
-
*
|
|
18
|
-
* @param body - The details of the option to create.
|
|
19
|
-
* @param query - Configure the fields to retrieve in the option.
|
|
20
|
-
* @param headers - Headers to pass in the request
|
|
21
|
-
* @returns The option's details.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* sdk.admin.productOption.create({
|
|
25
|
-
* title: "Size",
|
|
26
|
-
* values: ["S", "M"]
|
|
27
|
-
* })
|
|
28
|
-
* .then(({ product_option }) => {
|
|
29
|
-
* console.log(product_option)
|
|
30
|
-
* })
|
|
31
|
-
*/
|
|
32
|
-
create(body: HttpTypes.AdminCreateProductOption, query?: HttpTypes.AdminProductOptionParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductOptionResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* This method updates a product option. It sends a request to the
|
|
35
|
-
* [Update Option](TODO)
|
|
36
|
-
* API route.
|
|
37
|
-
*
|
|
38
|
-
* @param id - The product option's ID.
|
|
39
|
-
* @param body - The data to update in the option.
|
|
40
|
-
* @param query - Configure the fields to retrieve in the option.
|
|
41
|
-
* @param headers - Headers to pass in the request
|
|
42
|
-
* @returns The option's details.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* sdk.admin.productOption.update("opt_123", {
|
|
46
|
-
* title: "Size"
|
|
47
|
-
* })
|
|
48
|
-
* .then(({ product_option }) => {
|
|
49
|
-
* console.log(product_option)
|
|
50
|
-
* })
|
|
51
|
-
*/
|
|
52
|
-
update(id: string, body: HttpTypes.AdminUpdateProductOption, query?: HttpTypes.AdminProductOptionParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductOptionResponse>;
|
|
53
|
-
/**
|
|
54
|
-
* This method retrieves a paginated list of product options. It sends a request to the
|
|
55
|
-
* List Product Options API route.
|
|
56
|
-
*
|
|
57
|
-
* @param queryParams - Filters and pagination configurations.
|
|
58
|
-
* @param headers - Headers to pass in the request.
|
|
59
|
-
* @returns The paginated list of product options.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* To retrieve the list of product options:
|
|
63
|
-
*
|
|
64
|
-
* ```ts
|
|
65
|
-
* sdk.admin.productOption.list()
|
|
66
|
-
* .then(({ product_options, count, limit, offset }) => {
|
|
67
|
-
* console.log(product_options)
|
|
68
|
-
* })
|
|
69
|
-
* ```
|
|
70
|
-
*
|
|
71
|
-
* To configure the pagination, pass the `limit` and `offset` query parameters.
|
|
72
|
-
*
|
|
73
|
-
* For example, to retrieve only 10 items and skip 10 items:
|
|
74
|
-
*
|
|
75
|
-
* ```ts
|
|
76
|
-
* sdk.admin.productOption.list({
|
|
77
|
-
* limit: 10,
|
|
78
|
-
* offset: 10
|
|
79
|
-
* })
|
|
80
|
-
* .then(({ product_options, count, limit, offset }) => {
|
|
81
|
-
* console.log(product_options)
|
|
82
|
-
* })
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
85
|
-
list(queryParams?: HttpTypes.AdminProductOptionListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductOptionListResponse>;
|
|
86
|
-
/**
|
|
87
|
-
* This method retrieves a product option by its ID. It sends a request to the
|
|
88
|
-
* Get Product Option API route.
|
|
89
|
-
*
|
|
90
|
-
* @param id - The product option's ID.
|
|
91
|
-
* @param query - Configure the fields to retrieve in the product option.
|
|
92
|
-
* @param headers - Headers to pass in the request
|
|
93
|
-
* @returns The product option's details.
|
|
94
|
-
*
|
|
95
|
-
* @example
|
|
96
|
-
* To retrieve a product option by its ID:
|
|
97
|
-
*
|
|
98
|
-
* ```ts
|
|
99
|
-
* sdk.admin.productOption.retrieve("opt_123")
|
|
100
|
-
* .then(({ product_option }) => {
|
|
101
|
-
* console.log(product_option)
|
|
102
|
-
* })
|
|
103
|
-
* ```
|
|
104
|
-
*/
|
|
105
|
-
retrieve(id: string, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductOptionResponse>;
|
|
106
|
-
/**
|
|
107
|
-
* This method deletes a product option. It sends a request to the
|
|
108
|
-
* Delete Product Option API route.
|
|
109
|
-
*
|
|
110
|
-
* @param id - The product option's ID.
|
|
111
|
-
* @param headers - Headers to pass in the request
|
|
112
|
-
* @returns The deletion's details.
|
|
113
|
-
*
|
|
114
|
-
* @example
|
|
115
|
-
* sdk.admin.productOption.delete("opt_123")
|
|
116
|
-
* .then(({ deleted }) => {
|
|
117
|
-
* console.log(deleted)
|
|
118
|
-
* })
|
|
119
|
-
*/
|
|
120
|
-
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminProductOptionDeleteResponse>;
|
|
121
|
-
}
|
|
122
|
-
//# sourceMappingURL=product-option.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-option.d.ts","sourceRoot":"","sources":["../../src/admin/product-option.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEzD,qBAAa,aAAa;IACxB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IACtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;;;;;;;;;;;;;;;OAkBG;IACG,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,wBAAwB,EACxC,KAAK,CAAC,EAAE,SAAS,CAAC,wBAAwB,EAC1C,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;;;OAkBG;IACG,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,wBAAwB,EACxC,KAAK,CAAC,EAAE,SAAS,CAAC,wBAAwB,EAC1C,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACG,IAAI,CACR,WAAW,CAAC,EAAE,SAAS,CAAC,4BAA4B,EACpD,OAAO,CAAC,EAAE,aAAa;IAWzB;;;;;;;;;;;;;;;;;;OAkBG;IACG,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;IAUxE;;;;;;;;;;;;;OAaG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;CASjD"}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProductOption = void 0;
|
|
4
|
-
class ProductOption {
|
|
5
|
-
/**
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
|
-
constructor(client) {
|
|
9
|
-
this.client = client;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* This method creates a product option. It sends a request to the
|
|
13
|
-
* [Create Option](TODO)
|
|
14
|
-
* API route.
|
|
15
|
-
*
|
|
16
|
-
* @param body - The details of the option to create.
|
|
17
|
-
* @param query - Configure the fields to retrieve in the option.
|
|
18
|
-
* @param headers - Headers to pass in the request
|
|
19
|
-
* @returns The option's details.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* sdk.admin.productOption.create({
|
|
23
|
-
* title: "Size",
|
|
24
|
-
* values: ["S", "M"]
|
|
25
|
-
* })
|
|
26
|
-
* .then(({ product_option }) => {
|
|
27
|
-
* console.log(product_option)
|
|
28
|
-
* })
|
|
29
|
-
*/
|
|
30
|
-
async create(body, query, headers) {
|
|
31
|
-
return this.client.fetch(`/admin/product-options`, {
|
|
32
|
-
method: "POST",
|
|
33
|
-
headers,
|
|
34
|
-
body,
|
|
35
|
-
query,
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* This method updates a product option. It sends a request to the
|
|
40
|
-
* [Update Option](TODO)
|
|
41
|
-
* API route.
|
|
42
|
-
*
|
|
43
|
-
* @param id - The product option's ID.
|
|
44
|
-
* @param body - The data to update in the option.
|
|
45
|
-
* @param query - Configure the fields to retrieve in the option.
|
|
46
|
-
* @param headers - Headers to pass in the request
|
|
47
|
-
* @returns The option's details.
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* sdk.admin.productOption.update("opt_123", {
|
|
51
|
-
* title: "Size"
|
|
52
|
-
* })
|
|
53
|
-
* .then(({ product_option }) => {
|
|
54
|
-
* console.log(product_option)
|
|
55
|
-
* })
|
|
56
|
-
*/
|
|
57
|
-
async update(id, body, query, headers) {
|
|
58
|
-
return this.client.fetch(`/admin/product-options/${id}`, {
|
|
59
|
-
method: "POST",
|
|
60
|
-
headers,
|
|
61
|
-
body,
|
|
62
|
-
query,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* This method retrieves a paginated list of product options. It sends a request to the
|
|
67
|
-
* List Product Options API route.
|
|
68
|
-
*
|
|
69
|
-
* @param queryParams - Filters and pagination configurations.
|
|
70
|
-
* @param headers - Headers to pass in the request.
|
|
71
|
-
* @returns The paginated list of product options.
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* To retrieve the list of product options:
|
|
75
|
-
*
|
|
76
|
-
* ```ts
|
|
77
|
-
* sdk.admin.productOption.list()
|
|
78
|
-
* .then(({ product_options, count, limit, offset }) => {
|
|
79
|
-
* console.log(product_options)
|
|
80
|
-
* })
|
|
81
|
-
* ```
|
|
82
|
-
*
|
|
83
|
-
* To configure the pagination, pass the `limit` and `offset` query parameters.
|
|
84
|
-
*
|
|
85
|
-
* For example, to retrieve only 10 items and skip 10 items:
|
|
86
|
-
*
|
|
87
|
-
* ```ts
|
|
88
|
-
* sdk.admin.productOption.list({
|
|
89
|
-
* limit: 10,
|
|
90
|
-
* offset: 10
|
|
91
|
-
* })
|
|
92
|
-
* .then(({ product_options, count, limit, offset }) => {
|
|
93
|
-
* console.log(product_options)
|
|
94
|
-
* })
|
|
95
|
-
* ```
|
|
96
|
-
*/
|
|
97
|
-
async list(queryParams, headers) {
|
|
98
|
-
return this.client.fetch(`/admin/product-options`, {
|
|
99
|
-
headers,
|
|
100
|
-
query: queryParams,
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* This method retrieves a product option by its ID. It sends a request to the
|
|
105
|
-
* Get Product Option API route.
|
|
106
|
-
*
|
|
107
|
-
* @param id - The product option's ID.
|
|
108
|
-
* @param query - Configure the fields to retrieve in the product option.
|
|
109
|
-
* @param headers - Headers to pass in the request
|
|
110
|
-
* @returns The product option's details.
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* To retrieve a product option by its ID:
|
|
114
|
-
*
|
|
115
|
-
* ```ts
|
|
116
|
-
* sdk.admin.productOption.retrieve("opt_123")
|
|
117
|
-
* .then(({ product_option }) => {
|
|
118
|
-
* console.log(product_option)
|
|
119
|
-
* })
|
|
120
|
-
* ```
|
|
121
|
-
*/
|
|
122
|
-
async retrieve(id, query, headers) {
|
|
123
|
-
return this.client.fetch(`/admin/product-options/${id}`, {
|
|
124
|
-
query,
|
|
125
|
-
headers,
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* This method deletes a product option. It sends a request to the
|
|
130
|
-
* Delete Product Option API route.
|
|
131
|
-
*
|
|
132
|
-
* @param id - The product option's ID.
|
|
133
|
-
* @param headers - Headers to pass in the request
|
|
134
|
-
* @returns The deletion's details.
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* sdk.admin.productOption.delete("opt_123")
|
|
138
|
-
* .then(({ deleted }) => {
|
|
139
|
-
* console.log(deleted)
|
|
140
|
-
* })
|
|
141
|
-
*/
|
|
142
|
-
async delete(id, headers) {
|
|
143
|
-
return this.client.fetch(`/admin/product-options/${id}`, {
|
|
144
|
-
method: "DELETE",
|
|
145
|
-
headers,
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
exports.ProductOption = ProductOption;
|
|
150
|
-
//# sourceMappingURL=product-option.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-option.js","sourceRoot":"","sources":["../../src/admin/product-option.ts"],"names":[],"mappings":";;;AAIA,MAAa,aAAa;IAKxB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,MAAM,CACV,IAAwC,EACxC,KAA0C,EAC1C,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,wBAAwB,EACxB;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,MAAM,CACV,EAAU,EACV,IAAwC,EACxC,KAA0C,EAC1C,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,0BAA0B,EAAE,EAAE,EAC9B;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,KAAK,CAAC,IAAI,CACR,WAAoD,EACpD,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,wBAAwB,EACxB;YACE,OAAO;YACP,KAAK,EAAE,WAAW;SACnB,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,QAAQ,CAAC,EAAU,EAAE,KAAoB,EAAE,OAAuB;QACtE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,0BAA0B,EAAE,EAAE,EAC9B;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAuB;QAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,0BAA0B,EAAE,EAAE,EAC9B;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;CACF;AApLD,sCAoLC"}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { Client } from "../client";
|
|
2
|
-
import { ClientHeaders } from "../types";
|
|
3
|
-
import { HttpTypes, SelectParams } from "@medusajs/types";
|
|
4
|
-
export declare class ProductOption {
|
|
5
|
-
/**
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
|
-
private client;
|
|
9
|
-
/**
|
|
10
|
-
* @ignore
|
|
11
|
-
*/
|
|
12
|
-
constructor(client: Client);
|
|
13
|
-
/**
|
|
14
|
-
* This method creates a product option. It sends a request to the
|
|
15
|
-
* [Create Option](TODO)
|
|
16
|
-
* API route.
|
|
17
|
-
*
|
|
18
|
-
* @param body - The details of the option to create.
|
|
19
|
-
* @param query - Configure the fields to retrieve in the option.
|
|
20
|
-
* @param headers - Headers to pass in the request
|
|
21
|
-
* @returns The option's details.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* sdk.admin.productOption.create({
|
|
25
|
-
* title: "Size",
|
|
26
|
-
* values: ["S", "M"]
|
|
27
|
-
* })
|
|
28
|
-
* .then(({ product_option }) => {
|
|
29
|
-
* console.log(product_option)
|
|
30
|
-
* })
|
|
31
|
-
*/
|
|
32
|
-
create(body: HttpTypes.AdminCreateProductOption, query?: HttpTypes.AdminProductOptionParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductOptionResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* This method updates a product option. It sends a request to the
|
|
35
|
-
* [Update Option](TODO)
|
|
36
|
-
* API route.
|
|
37
|
-
*
|
|
38
|
-
* @param id - The product option's ID.
|
|
39
|
-
* @param body - The data to update in the option.
|
|
40
|
-
* @param query - Configure the fields to retrieve in the option.
|
|
41
|
-
* @param headers - Headers to pass in the request
|
|
42
|
-
* @returns The option's details.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* sdk.admin.productOption.update("opt_123", {
|
|
46
|
-
* title: "Size"
|
|
47
|
-
* })
|
|
48
|
-
* .then(({ product_option }) => {
|
|
49
|
-
* console.log(product_option)
|
|
50
|
-
* })
|
|
51
|
-
*/
|
|
52
|
-
update(id: string, body: HttpTypes.AdminUpdateProductOption, query?: HttpTypes.AdminProductOptionParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductOptionResponse>;
|
|
53
|
-
/**
|
|
54
|
-
* This method retrieves a paginated list of product options. It sends a request to the
|
|
55
|
-
* List Product Options API route.
|
|
56
|
-
*
|
|
57
|
-
* @param queryParams - Filters and pagination configurations.
|
|
58
|
-
* @param headers - Headers to pass in the request.
|
|
59
|
-
* @returns The paginated list of product options.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* To retrieve the list of product options:
|
|
63
|
-
*
|
|
64
|
-
* ```ts
|
|
65
|
-
* sdk.admin.productOption.list()
|
|
66
|
-
* .then(({ product_options, count, limit, offset }) => {
|
|
67
|
-
* console.log(product_options)
|
|
68
|
-
* })
|
|
69
|
-
* ```
|
|
70
|
-
*
|
|
71
|
-
* To configure the pagination, pass the `limit` and `offset` query parameters.
|
|
72
|
-
*
|
|
73
|
-
* For example, to retrieve only 10 items and skip 10 items:
|
|
74
|
-
*
|
|
75
|
-
* ```ts
|
|
76
|
-
* sdk.admin.productOption.list({
|
|
77
|
-
* limit: 10,
|
|
78
|
-
* offset: 10
|
|
79
|
-
* })
|
|
80
|
-
* .then(({ product_options, count, limit, offset }) => {
|
|
81
|
-
* console.log(product_options)
|
|
82
|
-
* })
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
85
|
-
list(queryParams?: HttpTypes.AdminProductOptionListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductOptionListResponse>;
|
|
86
|
-
/**
|
|
87
|
-
* This method retrieves a product option by its ID. It sends a request to the
|
|
88
|
-
* Get Product Option API route.
|
|
89
|
-
*
|
|
90
|
-
* @param id - The product option's ID.
|
|
91
|
-
* @param query - Configure the fields to retrieve in the product option.
|
|
92
|
-
* @param headers - Headers to pass in the request
|
|
93
|
-
* @returns The product option's details.
|
|
94
|
-
*
|
|
95
|
-
* @example
|
|
96
|
-
* To retrieve a product option by its ID:
|
|
97
|
-
*
|
|
98
|
-
* ```ts
|
|
99
|
-
* sdk.admin.productOption.retrieve("opt_123")
|
|
100
|
-
* .then(({ product_option }) => {
|
|
101
|
-
* console.log(product_option)
|
|
102
|
-
* })
|
|
103
|
-
* ```
|
|
104
|
-
*/
|
|
105
|
-
retrieve(id: string, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductOptionResponse>;
|
|
106
|
-
/**
|
|
107
|
-
* This method deletes a product option. It sends a request to the
|
|
108
|
-
* Delete Product Option API route.
|
|
109
|
-
*
|
|
110
|
-
* @param id - The product option's ID.
|
|
111
|
-
* @param headers - Headers to pass in the request
|
|
112
|
-
* @returns The deletion's details.
|
|
113
|
-
*
|
|
114
|
-
* @example
|
|
115
|
-
* sdk.admin.productOption.delete("opt_123")
|
|
116
|
-
* .then(({ deleted }) => {
|
|
117
|
-
* console.log(deleted)
|
|
118
|
-
* })
|
|
119
|
-
*/
|
|
120
|
-
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminProductOptionDeleteResponse>;
|
|
121
|
-
}
|
|
122
|
-
//# sourceMappingURL=product-option.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-option.d.ts","sourceRoot":"","sources":["../../../src/admin/product-option.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEzD,qBAAa,aAAa;IACxB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IACtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;;;;;;;;;;;;;;;OAkBG;IACG,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,wBAAwB,EACxC,KAAK,CAAC,EAAE,SAAS,CAAC,wBAAwB,EAC1C,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;;;OAkBG;IACG,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,wBAAwB,EACxC,KAAK,CAAC,EAAE,SAAS,CAAC,wBAAwB,EAC1C,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACG,IAAI,CACR,WAAW,CAAC,EAAE,SAAS,CAAC,4BAA4B,EACpD,OAAO,CAAC,EAAE,aAAa;IAWzB;;;;;;;;;;;;;;;;;;OAkBG;IACG,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;IAUxE;;;;;;;;;;;;;OAaG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;CASjD"}
|