@medusajs/js-sdk 2.0.0-preview-20241022094107 → 2.0.0-rc-20241022183311
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/admin/fulfillment-set.d.ts +122 -0
- package/dist/admin/fulfillment-set.d.ts.map +1 -1
- package/dist/admin/fulfillment-set.js +122 -0
- package/dist/admin/fulfillment-set.js.map +1 -1
- package/dist/admin/fulfillment.d.ts +74 -0
- package/dist/admin/fulfillment.d.ts.map +1 -1
- package/dist/admin/fulfillment.js +75 -0
- package/dist/admin/fulfillment.js.map +1 -1
- package/dist/admin/inventory-item.d.ts +252 -1
- package/dist/admin/inventory-item.d.ts.map +1 -1
- package/dist/admin/inventory-item.js +251 -0
- package/dist/admin/inventory-item.js.map +1 -1
- package/dist/admin/invite.d.ts +170 -15
- package/dist/admin/invite.d.ts.map +1 -1
- package/dist/admin/invite.js +162 -0
- package/dist/admin/invite.js.map +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -1
- package/dist/client.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/dist/esm/admin/fulfillment-set.d.ts +122 -0
- package/dist/esm/admin/fulfillment-set.d.ts.map +1 -1
- package/dist/esm/admin/fulfillment-set.js +122 -0
- package/dist/esm/admin/fulfillment-set.js.map +1 -1
- package/dist/esm/admin/fulfillment.d.ts +74 -0
- package/dist/esm/admin/fulfillment.d.ts.map +1 -1
- package/dist/esm/admin/fulfillment.js +75 -0
- package/dist/esm/admin/fulfillment.js.map +1 -1
- package/dist/esm/admin/inventory-item.d.ts +252 -1
- package/dist/esm/admin/inventory-item.d.ts.map +1 -1
- package/dist/esm/admin/inventory-item.js +251 -0
- package/dist/esm/admin/inventory-item.js.map +1 -1
- package/dist/esm/admin/invite.d.ts +170 -15
- package/dist/esm/admin/invite.d.ts.map +1 -1
- package/dist/esm/admin/invite.js +162 -0
- package/dist/esm/admin/invite.js.map +1 -1
- package/dist/esm/client.d.ts +1 -1
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/client.js +2 -1
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/store/index.d.ts +1 -1
- package/dist/esm/store/index.js +1 -1
- package/dist/esm/types.d.ts +1 -1
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
@@ -10,23 +10,178 @@ export declare class Invite {
|
|
10
10
|
* @ignore
|
11
11
|
*/
|
12
12
|
constructor(client: Client);
|
13
|
+
/**
|
14
|
+
* This method accepts an invite. It requires sending a previous request to
|
15
|
+
* the {@link Auth.register}.
|
16
|
+
*
|
17
|
+
* This method sends a request to the [Accept Invite]
|
18
|
+
* (https://docs.medusajs.com/v2/api/admin#invites_postinvitesaccept)
|
19
|
+
* API route.
|
20
|
+
*
|
21
|
+
* @param input - The details of the user to create.
|
22
|
+
* @param query - Configure the fields to retrieve in the user.
|
23
|
+
* @param headers - Headers to pass in the request
|
24
|
+
* @returns The user's details.
|
25
|
+
*
|
26
|
+
* @example
|
27
|
+
* const token = await sdk.auth.register("user", "emailpass", {
|
28
|
+
* email: "user@gmail.com",
|
29
|
+
* password: "supersecret"
|
30
|
+
* })
|
31
|
+
*
|
32
|
+
* sdk.admin.invite.accept(
|
33
|
+
* {
|
34
|
+
* email: "user@gmail.com",
|
35
|
+
* first_name: "John",
|
36
|
+
* last_name: "Smith",
|
37
|
+
* invite_token: "12345..."
|
38
|
+
* },
|
39
|
+
* {
|
40
|
+
* Authorization: `Bearer ${token}`
|
41
|
+
* }
|
42
|
+
* )
|
43
|
+
* .then(({ user }) => {
|
44
|
+
* console.log(user)
|
45
|
+
* })
|
46
|
+
*/
|
13
47
|
accept(input: HttpTypes.AdminAcceptInvite & {
|
48
|
+
/**
|
49
|
+
* The invite's token.
|
50
|
+
*/
|
14
51
|
invite_token: string;
|
15
|
-
}, query?: SelectParams, headers?: ClientHeaders): Promise<
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
52
|
+
}, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminAcceptInviteResponse>;
|
53
|
+
/**
|
54
|
+
* This method creates an invite. It sends a request to the
|
55
|
+
* [Create Invite](https://docs.medusajs.com/v2/api/admin#invites_postinvites)
|
56
|
+
* API route.
|
57
|
+
*
|
58
|
+
* @param body - The invite's details.
|
59
|
+
* @param query - Configure the fields to retrieve in the invite.
|
60
|
+
* @param headers - Headers to pass in the request
|
61
|
+
* @returns The invite's details.
|
62
|
+
*
|
63
|
+
* @example
|
64
|
+
* sdk.admin.invite.create({
|
65
|
+
* email: "user@gmail.com",
|
66
|
+
* })
|
67
|
+
* .then(({ invite }) => {
|
68
|
+
* console.log(invite)
|
69
|
+
* })
|
70
|
+
*/
|
71
|
+
create(body: HttpTypes.AdminCreateInvite, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteResponse>;
|
72
|
+
/**
|
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)
|
75
|
+
* API route.
|
76
|
+
*
|
77
|
+
* @param id - The invite's ID.
|
78
|
+
* @param query - Configure the fields to retrieve in the invite.
|
79
|
+
* @param headers - Headers to pass in the request
|
80
|
+
* @returns The invite's details.
|
81
|
+
*
|
82
|
+
* @example
|
83
|
+
* To retrieve an invite its ID:
|
84
|
+
*
|
85
|
+
* ```ts
|
86
|
+
* sdk.admin.invite.retrieve("invite_123")
|
87
|
+
* .then(({ invite }) => {
|
88
|
+
* console.log(invite)
|
89
|
+
* })
|
90
|
+
* ```
|
91
|
+
*
|
92
|
+
* To specify the fields and relations to retrieve:
|
93
|
+
*
|
94
|
+
* ```ts
|
95
|
+
* sdk.admin.invite.retrieve("invite_123", {
|
96
|
+
* fields: "id,email"
|
97
|
+
* })
|
98
|
+
* .then(({ invite }) => {
|
99
|
+
* console.log(invite)
|
100
|
+
* })
|
101
|
+
* ```
|
102
|
+
*
|
103
|
+
* Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
|
104
|
+
*/
|
105
|
+
retrieve(id: string, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteResponse>;
|
106
|
+
/**
|
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)
|
109
|
+
* API route.
|
110
|
+
*
|
111
|
+
* @param queryParams - Filters and pagination configurations.
|
112
|
+
* @param headers - Headers to pass in the request.
|
113
|
+
* @returns The paginated list of invites.
|
114
|
+
*
|
115
|
+
* @example
|
116
|
+
* To retrieve the list of invites:
|
117
|
+
*
|
118
|
+
* ```ts
|
119
|
+
* sdk.admin.invite.list()
|
120
|
+
* .then(({ invites, count, limit, offset }) => {
|
121
|
+
* console.log(invites)
|
122
|
+
* })
|
123
|
+
* ```
|
124
|
+
*
|
125
|
+
* To configure the pagination, pass the `limit` and `offset` query parameters.
|
126
|
+
*
|
127
|
+
* For example, to retrieve only 10 items and skip 10 items:
|
128
|
+
*
|
129
|
+
* ```ts
|
130
|
+
* sdk.admin.invite.list({
|
131
|
+
* limit: 10,
|
132
|
+
* offset: 10
|
133
|
+
* })
|
134
|
+
* .then(({ invites, count, limit, offset }) => {
|
135
|
+
* console.log(invites)
|
136
|
+
* })
|
137
|
+
* ```
|
138
|
+
*
|
139
|
+
* Using the `fields` query parameter, you can specify the fields and relations to retrieve
|
140
|
+
* in each invite:
|
141
|
+
*
|
142
|
+
* ```ts
|
143
|
+
* sdk.admin.invite.list({
|
144
|
+
* fields: "id,email"
|
145
|
+
* })
|
146
|
+
* .then(({ invites, count, limit, offset }) => {
|
147
|
+
* console.log(invites)
|
148
|
+
* })
|
149
|
+
* ```
|
150
|
+
*
|
151
|
+
* Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
|
152
|
+
*/
|
153
|
+
list(queryParams?: FindParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteListResponse>;
|
154
|
+
/**
|
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)
|
157
|
+
* API route.
|
158
|
+
*
|
159
|
+
* @param id - The invite's ID.
|
160
|
+
* @param headers - Headers to pass in the request.
|
161
|
+
* @returns The invite's details.
|
162
|
+
*
|
163
|
+
* @example
|
164
|
+
* sdk.admin.invite.resend("invite_123")
|
165
|
+
* .then(({ invite }) => {
|
166
|
+
* console.log(invite)
|
167
|
+
* })
|
168
|
+
*/
|
169
|
+
resend(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteResponse>;
|
170
|
+
/**
|
171
|
+
* This method deletes an invite. It sends a request to the
|
172
|
+
* [Delete Invite](https://docs.medusajs.com/v2/api/admin#invites_deleteinvitesid)
|
173
|
+
* API route.
|
174
|
+
*
|
175
|
+
* @param id - The invite's ID.
|
176
|
+
* @param headers - Headers to pass in the request.
|
177
|
+
* @returns The deletion's details.
|
178
|
+
*
|
179
|
+
* @example
|
180
|
+
* sdk.admin.invite.delete("invite_123")
|
181
|
+
* .then(({ deleted }) => {
|
182
|
+
* console.log(deleted)
|
183
|
+
* })
|
184
|
+
*/
|
30
185
|
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteDeleteResponse>;
|
31
186
|
}
|
32
187
|
//# sourceMappingURL=invite.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"invite.d.ts","sourceRoot":"","sources":["../../../src/admin/invite.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,
|
1
|
+
{"version":3,"file":"invite.d.ts","sourceRoot":"","sources":["../../../src/admin/invite.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,YAAY,EACb,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,MAAM;IACjB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IACtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACG,MAAM,CACV,KAAK,EAAE,SAAS,CAAC,iBAAiB,GAAG;QACnC;;WAEG;QACH,YAAY,EAAE,MAAM,CAAA;KACrB,EACD,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAczB;;;;;;;;;;;;;;;;;OAiBG;IACG,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,iBAAiB,EACjC,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACG,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;IAUxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACG,IAAI,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,aAAa;IAS5D;;;;;;;;;;;;;;OAcG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAUhD;;;;;;;;;;;;;;OAcG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;CASjD"}
|
package/dist/esm/admin/invite.js
CHANGED
@@ -25,6 +25,40 @@ export class Invite {
|
|
25
25
|
constructor(client) {
|
26
26
|
this.client = client;
|
27
27
|
}
|
28
|
+
/**
|
29
|
+
* This method accepts an invite. It requires sending a previous request to
|
30
|
+
* the {@link Auth.register}.
|
31
|
+
*
|
32
|
+
* This method sends a request to the [Accept Invite]
|
33
|
+
* (https://docs.medusajs.com/v2/api/admin#invites_postinvitesaccept)
|
34
|
+
* API route.
|
35
|
+
*
|
36
|
+
* @param input - The details of the user to create.
|
37
|
+
* @param query - Configure the fields to retrieve in the user.
|
38
|
+
* @param headers - Headers to pass in the request
|
39
|
+
* @returns The user's details.
|
40
|
+
*
|
41
|
+
* @example
|
42
|
+
* const token = await sdk.auth.register("user", "emailpass", {
|
43
|
+
* email: "user@gmail.com",
|
44
|
+
* password: "supersecret"
|
45
|
+
* })
|
46
|
+
*
|
47
|
+
* sdk.admin.invite.accept(
|
48
|
+
* {
|
49
|
+
* email: "user@gmail.com",
|
50
|
+
* first_name: "John",
|
51
|
+
* last_name: "Smith",
|
52
|
+
* invite_token: "12345..."
|
53
|
+
* },
|
54
|
+
* {
|
55
|
+
* Authorization: `Bearer ${token}`
|
56
|
+
* }
|
57
|
+
* )
|
58
|
+
* .then(({ user }) => {
|
59
|
+
* console.log(user)
|
60
|
+
* })
|
61
|
+
*/
|
28
62
|
accept(input, query, headers) {
|
29
63
|
return __awaiter(this, void 0, void 0, function* () {
|
30
64
|
const { invite_token } = input, rest = __rest(input, ["invite_token"]);
|
@@ -36,6 +70,24 @@ export class Invite {
|
|
36
70
|
});
|
37
71
|
});
|
38
72
|
}
|
73
|
+
/**
|
74
|
+
* This method creates an invite. It sends a request to the
|
75
|
+
* [Create Invite](https://docs.medusajs.com/v2/api/admin#invites_postinvites)
|
76
|
+
* API route.
|
77
|
+
*
|
78
|
+
* @param body - The invite's details.
|
79
|
+
* @param query - Configure the fields to retrieve in the invite.
|
80
|
+
* @param headers - Headers to pass in the request
|
81
|
+
* @returns The invite's details.
|
82
|
+
*
|
83
|
+
* @example
|
84
|
+
* sdk.admin.invite.create({
|
85
|
+
* email: "user@gmail.com",
|
86
|
+
* })
|
87
|
+
* .then(({ invite }) => {
|
88
|
+
* console.log(invite)
|
89
|
+
* })
|
90
|
+
*/
|
39
91
|
create(body, query, headers) {
|
40
92
|
return __awaiter(this, void 0, void 0, function* () {
|
41
93
|
return yield this.client.fetch(`/admin/invites`, {
|
@@ -46,6 +98,39 @@ export class Invite {
|
|
46
98
|
});
|
47
99
|
});
|
48
100
|
}
|
101
|
+
/**
|
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)
|
104
|
+
* API route.
|
105
|
+
*
|
106
|
+
* @param id - The invite's ID.
|
107
|
+
* @param query - Configure the fields to retrieve in the invite.
|
108
|
+
* @param headers - Headers to pass in the request
|
109
|
+
* @returns The invite's details.
|
110
|
+
*
|
111
|
+
* @example
|
112
|
+
* To retrieve an invite its ID:
|
113
|
+
*
|
114
|
+
* ```ts
|
115
|
+
* sdk.admin.invite.retrieve("invite_123")
|
116
|
+
* .then(({ invite }) => {
|
117
|
+
* console.log(invite)
|
118
|
+
* })
|
119
|
+
* ```
|
120
|
+
*
|
121
|
+
* To specify the fields and relations to retrieve:
|
122
|
+
*
|
123
|
+
* ```ts
|
124
|
+
* sdk.admin.invite.retrieve("invite_123", {
|
125
|
+
* fields: "id,email"
|
126
|
+
* })
|
127
|
+
* .then(({ invite }) => {
|
128
|
+
* console.log(invite)
|
129
|
+
* })
|
130
|
+
* ```
|
131
|
+
*
|
132
|
+
* Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
|
133
|
+
*/
|
49
134
|
retrieve(id, query, headers) {
|
50
135
|
return __awaiter(this, void 0, void 0, function* () {
|
51
136
|
return yield this.client.fetch(`/admin/invites/${id}`, {
|
@@ -54,6 +139,53 @@ export class Invite {
|
|
54
139
|
});
|
55
140
|
});
|
56
141
|
}
|
142
|
+
/**
|
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)
|
145
|
+
* API route.
|
146
|
+
*
|
147
|
+
* @param queryParams - Filters and pagination configurations.
|
148
|
+
* @param headers - Headers to pass in the request.
|
149
|
+
* @returns The paginated list of invites.
|
150
|
+
*
|
151
|
+
* @example
|
152
|
+
* To retrieve the list of invites:
|
153
|
+
*
|
154
|
+
* ```ts
|
155
|
+
* sdk.admin.invite.list()
|
156
|
+
* .then(({ invites, count, limit, offset }) => {
|
157
|
+
* console.log(invites)
|
158
|
+
* })
|
159
|
+
* ```
|
160
|
+
*
|
161
|
+
* To configure the pagination, pass the `limit` and `offset` query parameters.
|
162
|
+
*
|
163
|
+
* For example, to retrieve only 10 items and skip 10 items:
|
164
|
+
*
|
165
|
+
* ```ts
|
166
|
+
* sdk.admin.invite.list({
|
167
|
+
* limit: 10,
|
168
|
+
* offset: 10
|
169
|
+
* })
|
170
|
+
* .then(({ invites, count, limit, offset }) => {
|
171
|
+
* console.log(invites)
|
172
|
+
* })
|
173
|
+
* ```
|
174
|
+
*
|
175
|
+
* Using the `fields` query parameter, you can specify the fields and relations to retrieve
|
176
|
+
* in each invite:
|
177
|
+
*
|
178
|
+
* ```ts
|
179
|
+
* sdk.admin.invite.list({
|
180
|
+
* fields: "id,email"
|
181
|
+
* })
|
182
|
+
* .then(({ invites, count, limit, offset }) => {
|
183
|
+
* console.log(invites)
|
184
|
+
* })
|
185
|
+
* ```
|
186
|
+
*
|
187
|
+
* Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
|
188
|
+
*/
|
57
189
|
list(queryParams, headers) {
|
58
190
|
return __awaiter(this, void 0, void 0, function* () {
|
59
191
|
return yield this.client.fetch(`/admin/invites`, {
|
@@ -62,6 +194,21 @@ export class Invite {
|
|
62
194
|
});
|
63
195
|
});
|
64
196
|
}
|
197
|
+
/**
|
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)
|
200
|
+
* API route.
|
201
|
+
*
|
202
|
+
* @param id - The invite's ID.
|
203
|
+
* @param headers - Headers to pass in the request.
|
204
|
+
* @returns The invite's details.
|
205
|
+
*
|
206
|
+
* @example
|
207
|
+
* sdk.admin.invite.resend("invite_123")
|
208
|
+
* .then(({ invite }) => {
|
209
|
+
* console.log(invite)
|
210
|
+
* })
|
211
|
+
*/
|
65
212
|
resend(id, headers) {
|
66
213
|
return __awaiter(this, void 0, void 0, function* () {
|
67
214
|
return yield this.client.fetch(`/admin/invites/${id}/resend`, {
|
@@ -70,6 +217,21 @@ export class Invite {
|
|
70
217
|
});
|
71
218
|
});
|
72
219
|
}
|
220
|
+
/**
|
221
|
+
* This method deletes an invite. It sends a request to the
|
222
|
+
* [Delete Invite](https://docs.medusajs.com/v2/api/admin#invites_deleteinvitesid)
|
223
|
+
* API route.
|
224
|
+
*
|
225
|
+
* @param id - The invite's ID.
|
226
|
+
* @param headers - Headers to pass in the request.
|
227
|
+
* @returns The deletion's details.
|
228
|
+
*
|
229
|
+
* @example
|
230
|
+
* sdk.admin.invite.delete("invite_123")
|
231
|
+
* .then(({ deleted }) => {
|
232
|
+
* console.log(deleted)
|
233
|
+
* })
|
234
|
+
*/
|
73
235
|
delete(id, headers) {
|
74
236
|
return __awaiter(this, void 0, void 0, function* () {
|
75
237
|
return yield this.client.fetch(`/admin/invites/${id}`, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"invite.js","sourceRoot":"","sources":["../../../src/admin/invite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"invite.js","sourceRoot":"","sources":["../../../src/admin/invite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAQA,MAAM,OAAO,MAAM;IAKjB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACG,MAAM,CACV,KAKC,EACD,KAAoB,EACpB,OAAuB;;YAEvB,MAAM,EAAE,YAAY,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAAjC,gBAAyB,CAAQ,CAAA;YACvC,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,+BAA+B,KAAK,CAAC,YAAY,EAAE,EACnD;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI,EAAE,IAAI;gBACV,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;OAiBG;IACG,MAAM,CACV,IAAiC,EACjC,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,gBAAgB,EAChB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACG,QAAQ,CAAC,EAAU,EAAE,KAAoB,EAAE,OAAuB;;YACtE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAAE,EAAE,EACtB;gBACE,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACG,IAAI,CAAC,WAAwB,EAAE,OAAuB;;YAC1D,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAE5B,gBAAgB,EAAE;gBAClB,OAAO;gBACP,KAAK,EAAE,WAAW;aACnB,CAAC,CAAA;QACJ,CAAC;KAAA;IAED;;;;;;;;;;;;;;OAcG;IACG,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAAE,SAAS,EAC7B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;;OAcG;IACG,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAAE,EAAE,EACtB;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
package/dist/esm/client.d.ts
CHANGED
@@ -52,7 +52,7 @@ export declare class Client {
|
|
52
52
|
protected setToken_: (token: string) => void;
|
53
53
|
protected getToken_: () => string | null | undefined;
|
54
54
|
protected getTokenStorageInfo_: () => {
|
55
|
-
storageMethod: "session" | "local" | "memory";
|
55
|
+
storageMethod: "session" | "local" | "memory" | "nostore";
|
56
56
|
storageKey: string;
|
57
57
|
};
|
58
58
|
}
|
package/dist/esm/client.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,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wBAAwB,QAC9B;QAAE,CAAC,sBAAsB,CAAC,EAAE,MAAM,CAAA;KAAE,GACpC,EAAE,CAIL;IAED,SAAS,CAAC,aAAa,QAAO;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,GAAG,EAAE,CAQ3D;IAED,SAAS,CAAC,SAAS,UAAW,MAAM,UAgBnC;IAED,SAAS,CAAC,SAAS,kCAelB;IAED,SAAS,CAAC,oBAAoB;;;MAqB7B;CACF"}
|
package/dist/esm/client.js
CHANGED
@@ -111,7 +111,8 @@ export class Client {
|
|
111
111
|
var _a, _b;
|
112
112
|
const hasLocal = hasStorage("localStorage");
|
113
113
|
const hasSession = hasStorage("sessionStorage");
|
114
|
-
const storageMethod = ((_a = this.config.auth) === null || _a === void 0 ? void 0 : _a.jwtTokenStorageMethod) ||
|
114
|
+
const storageMethod = ((_a = this.config.auth) === null || _a === void 0 ? void 0 : _a.jwtTokenStorageMethod) ||
|
115
|
+
(hasLocal ? "local" : "nostore");
|
115
116
|
const storageKey = ((_b = this.config.auth) === null || _b === void 0 ? void 0 : _b.jwtTokenStorageKey) || this.DEFAULT_JWT_STORAGE_KEY;
|
116
117
|
if (!hasLocal && storageMethod === "local") {
|
117
118
|
throw new Error("Local JWT storage is only available in the browser");
|
package/dist/esm/client.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,IAAI,CAAA;AACnB,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAU3C,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAAA;AAE7D,MAAM,UAAU,GAAG,CAAC,OAA0C,EAAE,EAAE;IAChE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,OAAO,IAAI,MAAM,CAAA;IAC1B,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAED,M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AC;oBAChB,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAC/B,eAAe,CAAC,YAAY,CAAC,OAAO,EAAE,CACvC,CAAA;oBACD,MAAM,gBAAgB,GAAG,EAAE,CAAC,SAAS,iCAAM,MAAM,GAAK,IAAI,CAAC,KAAK,EAAG,CAAA;oBACnE,eAAe,CAAC,MAAM,GAAG,gBAAgB,CAAA;gBAC3C,CAAC;YACH,CAAC;YAED,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,0BAA0B,EAC1B,QAAQ,eAAe,CAAC,QAAQ,EAAE,IAAI,EACtC,YAAY,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAClE,CAAA;YAED,kFAAkF;YAClF,OAAO,MAAM,KAAK,CAChB,eAAe,EACf,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,CAC7C,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;gBACd,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,iCAAiC,IAAI,CAAC,MAAM,IAAI,CAAC,CAAA;gBACnE,OAAO,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;YACzC,CAAC,CAAC,CAAA;QACJ,CAAC,CAAA,CAAA;IACH,CAAC;CAmFF"}
|
package/dist/esm/store/index.js
CHANGED
package/dist/esm/types.d.ts
CHANGED
@@ -12,7 +12,7 @@ export type Config = {
|
|
12
12
|
auth?: {
|
13
13
|
type?: "jwt" | "session";
|
14
14
|
jwtTokenStorageKey?: string;
|
15
|
-
jwtTokenStorageMethod?: "local" | "session" | "memory";
|
15
|
+
jwtTokenStorageMethod?: "local" | "session" | "memory" | "nostore";
|
16
16
|
};
|
17
17
|
logger?: Logger;
|
18
18
|
debug?: boolean;
|
package/dist/esm/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"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MAAM,GAAG,MAAM,CAAA;IACpB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,cAAc,CAAC,sBAAsB,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACpE,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB"}
|
package/dist/store/index.d.ts
CHANGED
package/dist/store/index.js
CHANGED
package/dist/types.d.ts
CHANGED
@@ -12,7 +12,7 @@ export type Config = {
|
|
12
12
|
auth?: {
|
13
13
|
type?: "jwt" | "session";
|
14
14
|
jwtTokenStorageKey?: string;
|
15
|
-
jwtTokenStorageMethod?: "local" | "session" | "memory";
|
15
|
+
jwtTokenStorageMethod?: "local" | "session" | "memory" | "nostore";
|
16
16
|
};
|
17
17
|
logger?: Logger;
|
18
18
|
debug?: boolean;
|
package/dist/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACtC,IAAI,EAAE,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACrC,IAAI,EAAE,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACrC,KAAK,EAAE,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,KAAK,GAAG,SAAS,C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vC,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC,GAAG;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACjD,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,CACxB,KAAK,EAAE,UAAU,EACjB,IAAI,CAAC,EAAE,SAAS,KACb,OAAO,CAAC,QAAQ,CAAC,CAAA;AAGtB,MAAM,WAAW,sBAAsB;IACrC,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oFAAoF;IACpF,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,cAAc,CAAC,sBAAsB,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACpE,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/js-sdk",
|
3
|
-
"version": "2.0.0-
|
3
|
+
"version": "2.0.0-rc-20241022183311",
|
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": "2.0.0-
|
38
|
+
"@medusajs/types": "2.0.0-rc-20241022183311",
|
39
39
|
"fetch-event-stream": "^0.1.5",
|
40
40
|
"qs": "^6.12.1"
|
41
41
|
},
|