@medusajs/types 1.12.0-snapshot-20240321152555 → 1.12.0-snapshot-20240325085803

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,21 +1,76 @@
1
1
  import { BaseFilterable } from "../../dal";
2
+ /**
3
+ * @interface
4
+ *
5
+ * An API key's type.
6
+ */
2
7
  export type ApiKeyType = "secret" | "publishable";
8
+ /**
9
+ * The API key details.
10
+ */
3
11
  export interface ApiKeyDTO {
12
+ /**
13
+ * The ID of the API key.
14
+ */
4
15
  id: string;
16
+ /**
17
+ * The token of the API key.
18
+ */
5
19
  token: string;
20
+ /**
21
+ * The redacted form of the API key's token. This is useful
22
+ * when showing portion of the token. For example `sk_...123`.
23
+ */
6
24
  redacted: string;
25
+ /**
26
+ * The title of the API key.
27
+ */
7
28
  title: string;
29
+ /**
30
+ * The type of the API key.
31
+ */
8
32
  type: ApiKeyType;
33
+ /**
34
+ * The date the API key was last used.
35
+ */
9
36
  last_used_at: Date | null;
37
+ /**
38
+ * Who created the API key.
39
+ */
10
40
  created_by: string;
41
+ /**
42
+ * The date the API key was created.
43
+ */
11
44
  created_at: Date;
45
+ /**
46
+ * Who revoked the API key. For example,
47
+ * the ID of the user that revoked it.
48
+ */
12
49
  revoked_by: string | null;
50
+ /**
51
+ * The date the API key was revoked.
52
+ */
13
53
  revoked_at: Date | null;
14
54
  }
55
+ /**
56
+ * The filters to apply on the retrieved API keys.
57
+ */
15
58
  export interface FilterableApiKeyProps extends BaseFilterable<FilterableApiKeyProps> {
59
+ /**
60
+ * The IDs to filter the API keys by.
61
+ */
16
62
  id?: string | string[];
63
+ /**
64
+ * The tokens to filter the API keys by.
65
+ */
17
66
  token?: string | string[];
67
+ /**
68
+ * The titles to filter the API keys by.
69
+ */
18
70
  title?: string | string[];
71
+ /**
72
+ * Filter the API keys by their type.
73
+ */
19
74
  type?: ApiKeyType;
20
75
  }
21
76
  //# sourceMappingURL=api-key.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../../src/api-key/common/api-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,aAAa,CAAA;AACjD,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;CACxB;AAED,MAAM,WAAW,qBACf,SAAQ,cAAc,CAAC,qBAAqB,CAAC;IAC7C,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACzB,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB"}
1
+ {"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../../src/api-key/common/api-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,aAAa,CAAA;AAEjD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,EAAE,UAAU,CAAA;IAEhB;;OAEG;IACH,YAAY,EAAE,IAAI,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,UAAU,EAAE,IAAI,CAAA;IAEhB;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,qBACf,SAAQ,cAAc,CAAC,qBAAqB,CAAC;IAC7C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEzB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB"}
@@ -1,20 +1,63 @@
1
1
  import { ApiKeyType } from "../common";
2
+ /**
3
+ * The API key to be created.
4
+ */
2
5
  export interface CreateApiKeyDTO {
6
+ /**
7
+ * The title of the API key.
8
+ */
3
9
  title: string;
10
+ /**
11
+ * The type of the API key.
12
+ */
4
13
  type: ApiKeyType;
14
+ /**
15
+ * Who created the API key.
16
+ */
5
17
  created_by: string;
6
18
  }
19
+ /**
20
+ * The attributes in the API key to be created or updated.
21
+ */
7
22
  export interface UpsertApiKeyDTO {
23
+ /**
24
+ * The ID of the API key.
25
+ */
8
26
  id?: string;
27
+ /**
28
+ * The title of the API key.
29
+ */
9
30
  title?: string;
31
+ /**
32
+ * The type of the API key. Required only when creating an API key.
33
+ */
10
34
  type?: ApiKeyType;
35
+ /**
36
+ * Who created the API key. It's only
37
+ * usable and required when creating an API key.
38
+ */
11
39
  created_by?: string;
12
40
  }
41
+ /**
42
+ * The attributes to update in the API key.
43
+ */
13
44
  export interface UpdateApiKeyDTO {
45
+ /**
46
+ * The title of the API key.
47
+ */
14
48
  title?: string;
15
49
  }
50
+ /**
51
+ * The details of revoking an API key.
52
+ */
16
53
  export interface RevokeApiKeyDTO {
54
+ /**
55
+ * Who revoked the API key.
56
+ */
17
57
  revoked_by: string;
58
+ /**
59
+ * When to revoke the API key (time in seconds).
60
+ */
18
61
  revoke_in?: number;
19
62
  }
20
63
  //# sourceMappingURL=api-key.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../../src/api-key/mutations/api-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,UAAU,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CAEnB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../../src/api-key/mutations/api-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,EAAE,UAAU,CAAA;IAEhB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;CAEnB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -3,101 +3,262 @@ import { ApiKeyDTO, FilterableApiKeyProps } from "./common";
3
3
  import { FindConfig } from "../common";
4
4
  import { Context } from "../shared-context";
5
5
  import { CreateApiKeyDTO, RevokeApiKeyDTO, UpdateApiKeyDTO, UpsertApiKeyDTO } from "./mutations";
6
+ /**
7
+ * The main service interface for the Api Key Module.
8
+ */
6
9
  export interface IApiKeyModuleService extends IModuleService {
7
10
  /**
8
- * Create a new api key
9
- * @param data
10
- * @param sharedContext
11
+ * This method creates API keys.
12
+ *
13
+ * @param {CreateApiKeyDTO[]} data - The API keys to be created.
14
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
15
+ * @returns {Promise<ApiKeyDTO[]>} The created API keys.
16
+ *
17
+ * @example
18
+ * const apiKey = await apiKeyModuleService.create([{
19
+ * title: "Development API key",
20
+ * type: "publishable",
21
+ * created_by: "user_123"
22
+ * }])
11
23
  */
12
24
  create(data: CreateApiKeyDTO[], sharedContext?: Context): Promise<ApiKeyDTO[]>;
25
+ /**
26
+ * This method creates an API key.
27
+ *
28
+ * @param {CreateApiKeyDTO} data - The API key to be created.
29
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
30
+ * @returns {Promise<ApiKeyDTO>} The created API key.
31
+ *
32
+ * @example
33
+ * const apiKey = await apiKeyModuleService.create({
34
+ * title: "Development API key",
35
+ * type: "publishable",
36
+ * created_by: "user_123"
37
+ * })
38
+ */
13
39
  create(data: CreateApiKeyDTO, sharedContext?: Context): Promise<ApiKeyDTO>;
14
40
  /**
15
- * This method updates existing API keys, or creates new ones if they don't exist.
41
+ * This method updates or creates API keys if they don't exist.
16
42
  *
17
- * @param {UpsertApiKeyDTO[]} data - The attributes to update or create for each API key.
18
- * @returns {Promise<ApiKeyDTO[]>} The updated and created API keys.
43
+ * @param {UpsertApiKeyDTO[]} data - The attributes in the API keys that are created or updated.
44
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
45
+ * @returns {Promise<ApiKeyDTO[]>} The created or updated API keys.
19
46
  *
20
47
  * @example
21
- * {example-code}
48
+ * const apiKey = await apiKeyModuleService.upsert([
49
+ * {
50
+ * id: "apk_123",
51
+ * title: "My development key",
52
+ * },
53
+ * {
54
+ * title: "New development key",
55
+ * type: "secret",
56
+ * created_by: "user_123",
57
+ * },
58
+ * ])
22
59
  */
23
60
  upsert(data: UpsertApiKeyDTO[], sharedContext?: Context): Promise<ApiKeyDTO[]>;
24
61
  /**
25
- * This method updates an existing API key, or creates a new one if it doesn't exist.
62
+ * This method updates or creates an API key if it doesn't exist.
26
63
  *
27
- * @param {UpsertApiKeyDTO} data - The attributes to update or create for the API key.
28
- * @returns {Promise<ApiKeyDTO>} The updated or created API key.
64
+ * @param {UpsertApiKeyDTO} data - The attributes in the API key that's created or updated.
65
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
66
+ * @returns {Promise<ApiKeyDTO>} The created or updated API key.
29
67
  *
30
68
  * @example
31
- * {example-code}
69
+ * const apiKey = await apiKeyModuleService.upsert({
70
+ * id: "apk_123",
71
+ * title: "My development key"
72
+ * })
32
73
  */
33
74
  upsert(data: UpsertApiKeyDTO, sharedContext?: Context): Promise<ApiKeyDTO>;
34
75
  /**
35
76
  * This method updates an existing API key.
36
77
  *
37
- * @param {string} id - The API key's ID.
38
- * @param {UpdateApiKeyDTO} data - The details to update in the API key.
78
+ * @param {string} id - The ID of the API key.
79
+ * @param {UpdateApiKeyDTO} data - The attributes to update in the API key.
39
80
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
40
81
  * @returns {Promise<ApiKeyDTO>} The updated API key.
82
+ *
83
+ * @example
84
+ * const apiKey = await apiKeyModuleService.update("apk_123", {
85
+ * title: "My development key"
86
+ * })
41
87
  */
42
88
  update(id: string, data: UpdateApiKeyDTO, sharedContext?: Context): Promise<ApiKeyDTO>;
43
89
  /**
44
90
  * This method updates existing API keys.
45
91
  *
46
- * @param {FilterableApiKeyProps} selector - The filters to specify which API keys should be updated.
47
- * @param {UpdateApiKeyDTO} data - The details to update in the API keys.
92
+ * @param {FilterableApiKeyProps} selector - The filters that specify which API keys should be updated.
93
+ * @param {UpdateApiKeyDTO} data - The attributes to update in the API keys.
48
94
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
49
95
  * @returns {Promise<ApiKeyDTO[]>} The updated API keys.
50
96
  *
51
97
  * @example
52
- * {example-code}
98
+ * const apiKey = await apiKeyModuleService.update(
99
+ * {
100
+ * title: "Development key",
101
+ * },
102
+ * {
103
+ * title: "My development key",
104
+ * }
105
+ * )
53
106
  */
54
107
  update(selector: FilterableApiKeyProps, data: UpdateApiKeyDTO, sharedContext?: Context): Promise<ApiKeyDTO[]>;
55
108
  /**
56
- * Delete an api key
57
- * @param ids
58
- * @param sharedContext
109
+ * This method deletes API keys by their IDs.
110
+ *
111
+ * @param {string[]} ids - The IDs of the API keys.
112
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
113
+ * @returns {Promise<void>} Resolves when the API keys are deleted successfully.
114
+ *
115
+ * @example
116
+ * await apiKeyModuleService.delete(["apk_123"])
59
117
  */
60
118
  delete(ids: string[], sharedContext?: Context): Promise<void>;
119
+ /**
120
+ * This method deletes an API key by its ID.
121
+ *
122
+ * @param {string} id - The ID of the API key.
123
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
124
+ * @returns {Promise<void>} Resolves when the API key is deleted successfully.
125
+ *
126
+ * @example
127
+ * await apiKeyModuleService.delete("apk_123")
128
+ */
61
129
  delete(id: string, sharedContext?: Context): Promise<void>;
62
130
  /**
63
- * Retrieve an api key
64
- * @param id
65
- * @param config
66
- * @param sharedContext
131
+ * This method retrieves an API key by its ID.
132
+ *
133
+ * @param {string} id - The ID of the API key.
134
+ * @param {FindConfig<ApiKeyDTO>} config - The configurations determining how the API key is retrieved. Its properties, such as `select` or `relations`, accept the
135
+ * attributes or relations associated with a api key.
136
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
137
+ * @returns {Promise<ApiKeyDTO>} The retrieved API key.
138
+ *
139
+ * @example
140
+ * const apiKey = await apiKeyModuleService.retrieve("apk_123")
67
141
  */
68
142
  retrieve(id: string, config?: FindConfig<ApiKeyDTO>, sharedContext?: Context): Promise<ApiKeyDTO>;
69
143
  /**
70
- * List api keys
71
- * @param filters
72
- * @param config
73
- * @param sharedContext
144
+ * This method retrieves a paginated list of API keys based on optional filters and configuration.
145
+ *
146
+ * @param {FilterableApiKeyProps} filters - The filters to apply on the retrieved API keys.
147
+ * @param {FindConfig<ApiKeyDTO>} config - The configurations determining how the API key is retrieved. Its properties, such as `select` or `relations`, accept the
148
+ * attributes or relations associated with a API key.
149
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
150
+ * @returns {Promise<ApiKeyDTO[]>} The list of API keys.
151
+ *
152
+ * @example
153
+ * To retrieve a list of API keys using their IDs:
154
+ *
155
+ * ```ts
156
+ * const apiKeys = await apiKeyModuleService.list({
157
+ * id: ["apk_123", "apk_321"]
158
+ * })
159
+ * ```
160
+ *
161
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
162
+ *
163
+ * ```ts
164
+ * const apiKeys = await apiKeyModuleService.list(
165
+ * {
166
+ * id: ["apk_123", "apk_321"],
167
+ * },
168
+ * {
169
+ * take: 20,
170
+ * skip: 2,
171
+ * }
172
+ * )
173
+ * ```
74
174
  */
75
175
  list(filters?: FilterableApiKeyProps, config?: FindConfig<ApiKeyDTO>, sharedContext?: Context): Promise<ApiKeyDTO[]>;
76
176
  /**
77
- * List and count api keys
78
- * @param filters
79
- * @param config
80
- * @param sharedContext
177
+ * This method retrieves a paginated list of API keys along with the total count of available API keys satisfying the provided filters.
178
+ *
179
+ * @param {FilterableApiKeyProps} filters - The filters to apply on the retrieved API keys.
180
+ * @param {FindConfig<ApiKeyDTO>} config - The configurations determining how the api API is retrieved. Its properties, such as `select` or `relations`, accept the
181
+ * attributes or relations associated with a API key.
182
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
183
+ * @returns {Promise<[ApiKeyDTO[], number]>} The list of API keys along with their total count.
184
+ *
185
+ * @example
186
+ * To retrieve a list of API keys using their IDs:
187
+ *
188
+ * ```ts
189
+ * const [apiKeys, count] =
190
+ * await apiKeyModuleService.listAndCount({
191
+ * id: ["apk_123", "apk_321"],
192
+ * })
193
+ * ```
194
+ *
195
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
196
+ *
197
+ * ```ts
198
+ * const [apiKeys, count] =
199
+ * await apiKeyModuleService.listAndCount(
200
+ * {
201
+ * id: ["apk_123", "apk_321"],
202
+ * },
203
+ * {
204
+ * take: 15,
205
+ * skip: 2,
206
+ * }
207
+ * )
208
+ * ```
81
209
  */
82
210
  listAndCount(filters?: FilterableApiKeyProps, config?: FindConfig<ApiKeyDTO>, sharedContext?: Context): Promise<[ApiKeyDTO[], number]>;
83
211
  /**
84
- * Revokes an api key
85
- * @param selector
86
- * @param data
87
- * @param sharedContext
212
+ * This method revokes API keys based on the filters provided.
213
+ *
214
+ * @param {FilterableApiKeyProps} selector - The filters to specify which API keys should be revoked.
215
+ * @param {RevokeApiKeyDTO} data - The details of revoking the API keys.
216
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
217
+ * @returns {Promise<ApiKeyDTO[]>} The revoked API keys.
218
+ *
219
+ * @example
220
+ * const apiKey = await apiKeyModuleService.revoke(
221
+ * {
222
+ * id: "apk_123",
223
+ * },
224
+ * {
225
+ * revoked_by: "user_123",
226
+ * // 1 minute
227
+ * revoke_in: 60,
228
+ * }
229
+ * )
88
230
  */
89
231
  revoke(selector: FilterableApiKeyProps, data: RevokeApiKeyDTO, sharedContext?: Context): Promise<ApiKeyDTO[]>;
90
232
  /**
91
- * Revokes an api key
92
- * @param id
93
- * @param data
94
- * @param sharedContext
233
+ * This method revokes an API key based on the ID provided.
234
+ *
235
+ * @param {string} id - The ID of the API key to revoke.
236
+ * @param {RevokeApiKeyDTO} data - The details of revoking the API key.
237
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
238
+ * @returns {Promise<ApiKeyDTO>} The revoked API key.
239
+ *
240
+ * @example
241
+ * const apiKey = await apiKeyModuleService.revoke("apk_123", {
242
+ * revoked_by: "user_123",
243
+ * // 1 minute
244
+ * revoke_in: 60,
245
+ * })
95
246
  */
96
247
  revoke(id: string, data: RevokeApiKeyDTO, sharedContext?: Context): Promise<ApiKeyDTO>;
97
248
  /**
98
- * Check the validity of an api key
99
- * @param token
100
- * @param sharedContext
249
+ * This method verifies whether a token is valid, considering it authenticated.
250
+ *
251
+ * @param {string} token - The token to verify.
252
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
253
+ * @returns {Promise<false | ApiKeyDTO>} If the token is verified successfully, the API key associated with the token is returned. Otherwise, `false` is returned.
254
+ *
255
+ * @example
256
+ * const apiKey =
257
+ * await apiKeyModuleService.authenticate("AbCD123987")
258
+ *
259
+ * if (!apiKey) {
260
+ * // authentication failed
261
+ * }
101
262
  */
102
263
  authenticate(token: string, sharedContext?: Context): Promise<ApiKeyDTO | false>;
103
264
  }
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/api-key/service.ts"],"names":[],"mappings":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tB,OAAO,CAAC,SAAS,GAAG,KAAK,CAAC,CAAA;CAC9B"}
@@ -21,6 +21,10 @@ export type AuthenticationResponse = {
21
21
  * Redirect location. Location takes precedence over success.
22
22
  */
23
23
  location?: string;
24
+ /**
25
+ * Redirect url for successful authentication.
26
+ */
27
+ successRedirectUrl?: string;
24
28
  };
25
29
  /**
26
30
  * @interface
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/auth/common/provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEvD;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/auth/common/provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEvD;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { NumericalComparisonOperator } from "../../common";
1
+ import { BaseFilterable, OperatorMap } from "../../dal";
2
2
  /**
3
3
  * @schema InventoryLevelDTO
4
4
  * type: object
@@ -51,7 +51,7 @@ export interface InventoryLevelDTO {
51
51
  updated_at: string | Date;
52
52
  deleted_at: string | Date | null;
53
53
  }
54
- export interface FilterableInventoryLevelProps {
54
+ export interface FilterableInventoryLevelProps extends BaseFilterable<FilterableInventoryLevelProps> {
55
55
  /**
56
56
  * Filter inventory levels by the ID of their associated inventory item.
57
57
  */
@@ -63,14 +63,14 @@ export interface FilterableInventoryLevelProps {
63
63
  /**
64
64
  * Filters to apply on inventory levels' `stocked_quantity` attribute.
65
65
  */
66
- stocked_quantity?: number | NumericalComparisonOperator;
66
+ stocked_quantity?: number | OperatorMap<Number>;
67
67
  /**
68
68
  * Filters to apply on inventory levels' `reserved_quantity` attribute.
69
69
  */
70
- reserved_quantity?: number | NumericalComparisonOperator;
70
+ reserved_quantity?: number | OperatorMap<Number>;
71
71
  /**
72
72
  * Filters to apply on inventory levels' `incoming_quantity` attribute.
73
73
  */
74
- incoming_quantity?: number | NumericalComparisonOperator;
74
+ incoming_quantity?: number | OperatorMap<Number>;
75
75
  }
76
76
  //# sourceMappingURL=inventory-level.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/inventory-level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,2BAA2B,CAAA;IACvD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,2BAA2B,CAAA;IACxD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,2BAA2B,CAAA;CACzD"}
1
+ {"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/inventory-level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAIvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,6BACf,SAAQ,cAAc,CAAC,6BAA6B,CAAC;IACrD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAC/C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAChD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;CACjD"}
@@ -29,7 +29,7 @@ export interface UpdateInventoryLevelInput {
29
29
  /**
30
30
  * id of the inventory level to update
31
31
  */
32
- id: string;
32
+ id?: string;
33
33
  /**
34
34
  * The stocked quantity of the associated inventory item in the associated location.
35
35
  */
@@ -1 +1 @@
1
- {"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/mutations/inventory-level.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;CACpB,GAAG,yBAAyB,CAAA"}
1
+ {"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/mutations/inventory-level.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;CACpB,GAAG,yBAAyB,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { BaseFilterable } from "../../dal";
2
- import { CreatePriceSetPriceRules } from "./price-list";
2
+ import { Context } from "../../shared-context";
3
3
  import { CreateMoneyAmountDTO, FilterableMoneyAmountProps, MoneyAmountDTO } from "./money-amount";
4
+ import { CreatePriceSetPriceRules } from "./price-list";
4
5
  import { RuleTypeDTO } from "./rule-type";
5
- import { Context } from "../../shared-context";
6
6
  export interface PricingRepositoryService {
7
7
  calculatePrices(pricingFilters: PricingFilters, pricingContext: PricingContext, context: Context): Promise<CalculatedPriceSetDTO[]>;
8
8
  }
@@ -128,9 +128,9 @@ export interface CalculatedPriceSet {
128
128
  */
129
129
  calculated_price?: {
130
130
  /**
131
- * The ID of the money amount selected as the calculated price.
131
+ * The ID of the price selected as the calculated price.
132
132
  */
133
- money_amount_id: string | null;
133
+ id: string | null;
134
134
  /**
135
135
  * The ID of the associated price list, if any.
136
136
  */
@@ -140,11 +140,11 @@ export interface CalculatedPriceSet {
140
140
  */
141
141
  price_list_type: string | null;
142
142
  /**
143
- * The `min_quantity` field defined on a money amount.
143
+ * The `min_quantity` field defined on a price.
144
144
  */
145
145
  min_quantity: number | null;
146
146
  /**
147
- * The `max_quantity` field defined on a money amount.
147
+ * The `max_quantity` field defined on a price.
148
148
  */
149
149
  max_quantity: number | null;
150
150
  };
@@ -153,9 +153,9 @@ export interface CalculatedPriceSet {
153
153
  */
154
154
  original_price?: {
155
155
  /**
156
- * The ID of the money amount selected as the original price.
156
+ * The ID of the price selected as the original price.
157
157
  */
158
- money_amount_id: string | null;
158
+ id: string | null;
159
159
  /**
160
160
  * The ID of the associated price list, if any.
161
161
  */
@@ -165,11 +165,11 @@ export interface CalculatedPriceSet {
165
165
  */
166
166
  price_list_type: string | null;
167
167
  /**
168
- * The `min_quantity` field defined on a money amount.
168
+ * The `min_quantity` field defined on a price.
169
169
  */
170
170
  min_quantity: number | null;
171
171
  /**
172
- * The `max_quantity` field defined on a money amount.
172
+ * The `max_quantity` field defined on a price.
173
173
  */
174
174
  max_quantity: number | null;
175
175
  };
@@ -1 +1 @@
1
- {"version":3,"file":"price-set.d.ts","sourceRoot":"","sources":["../../../src/pricing/common/price-set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,cAAc,EACf,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAE9C,MAAM,WAAW,wBAAwB;IACvC,eAAe,CACb,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,qBAAqB,EAAE,CAAC,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;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE;QACN;;WAEG;QACH,cAAc,EAAE,MAAM,CAAA;KACvB,EAAE,CAAA;IACH;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,EAAE,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX;AAED;;;;GAIG;AACH,MAAM,WAAW,uBACf,SAAQ,cAAc,CAAC,uBAAuB,CAAC;IAC/C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IACb;;OAEG;IACH,aAAa,CAAC,EAAE,0BAA0B,CAAA;CAC3C"}
1
+ {"version":3,"file":"price-set.d.ts","sourceRoot":"","sources":["../../../src/pricing/common/price-set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,cAAc,EACf,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,wBAAwB;IACvC,eAAe,CACb,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAA;CACpC;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;CAC1C;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,EAAE,CAAA;CACb;AAED;;;;GAIG;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,EAAE,MAAM,CAAA;CACX;AAED;;;;GAIG;AACH,MAAM,WAAW,uBACf,SAAQ,cAAc,CAAC,uBAAuB,CAAC;IAC/C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IACb;;OAEG;IACH,aAAa,CAAC,EAAE,0BAA0B,CAAA;CAC3C"}
@@ -1,4 +1,4 @@
1
- import { AddPriceListPricesDTO, AddPricesDTO, AddRulesDTO, CalculatedPriceSet, CreateMoneyAmountDTO, CreatePriceListDTO, CreatePriceListRuleDTO, CreatePriceRuleDTO, CreatePriceSetDTO, CreateRuleTypeDTO, FilterableMoneyAmountProps, FilterablePriceListProps, FilterablePriceListRuleProps, FilterablePriceRuleProps, FilterablePriceSetMoneyAmountProps, FilterablePriceSetProps, FilterableRuleTypeProps, MoneyAmountDTO, PriceListDTO, PriceListRuleDTO, PriceRuleDTO, PriceSetDTO, PriceSetMoneyAmountDTO, PricingContext, PricingFilters, RemovePriceListRulesDTO, RemovePriceSetRulesDTO, RuleTypeDTO, SetPriceListRulesDTO, UpdateMoneyAmountDTO, UpdatePriceListDTO, UpdatePriceListPricesDTO, UpdatePriceListRuleDTO, UpdatePriceRuleDTO, UpdatePriceSetDTO, UpdateRuleTypeDTO } from "./common";
1
+ import { AddPriceListPricesDTO, AddPricesDTO, AddRulesDTO, CalculatedPriceSet, CreatePriceListDTO, CreatePriceListRuleDTO, CreatePriceRuleDTO, CreatePriceSetDTO, CreateRuleTypeDTO, FilterablePriceListProps, FilterablePriceListRuleProps, FilterablePriceRuleProps, FilterablePriceSetMoneyAmountProps, FilterablePriceSetProps, FilterableRuleTypeProps, PriceListDTO, PriceListRuleDTO, PriceRuleDTO, PriceSetDTO, PriceSetMoneyAmountDTO, PricingContext, PricingFilters, RemovePriceListRulesDTO, RemovePriceSetRulesDTO, RuleTypeDTO, SetPriceListRulesDTO, UpdatePriceListDTO, UpdatePriceListPricesDTO, UpdatePriceListRuleDTO, UpdatePriceRuleDTO, UpdatePriceSetDTO, UpdateRuleTypeDTO } from "./common";
2
2
  import { FindConfig } from "../common";
3
3
  import { RestoreReturn, SoftDeleteReturn } from "../dal";
4
4
  import { IModuleService } from "../modules-sdk";
@@ -806,414 +806,6 @@ export interface IPricingModuleService extends IModuleService {
806
806
  * }
807
807
  */
808
808
  addRules(data: AddRulesDTO[], sharedContext?: Context): Promise<PriceSetDTO[]>;
809
- /**
810
- * This method retrieves a money amount by its ID.
811
- *
812
- * @param {string} id - The ID of the money amount to retrieve.
813
- * @param {FindConfig<MoneyAmountDTO>} config -
814
- * The configurations determining how a money amount is retrieved. Its properties, such as `select` or `relations`, accept the
815
- * attributes or relations associated with a money amount.
816
- * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
817
- * @returns {Promise<MoneyAmountDTO>} The retrieved money amount.
818
- *
819
- * @example
820
- * To retrieve a money amount by its ID:
821
- *
822
- * ```ts
823
- * import {
824
- * initialize as initializePricingModule,
825
- * } from "@medusajs/pricing"
826
- *
827
- * async function retrieveMoneyAmount (moneyAmountId: string) {
828
- * const pricingService = await initializePricingModule()
829
- *
830
- * const moneyAmount = await pricingService.retrieveMoneyAmount(
831
- * moneyAmountId,
832
- * )
833
- *
834
- * // do something with the money amount or return it
835
- * }
836
- * ```
837
- *
838
- * To retrieve relations along with the money amount:
839
- *
840
- * ```ts
841
- * import {
842
- * initialize as initializePricingModule,
843
- * } from "@medusajs/pricing"
844
- *
845
- * async function retrieveMoneyAmount (moneyAmountId: string) {
846
- * const pricingService = await initializePricingModule()
847
- *
848
- * const moneyAmount = await pricingService.retrieveMoneyAmount(
849
- * moneyAmountId,
850
- * {
851
- * relations: ["price_set_money_amount"]
852
- * }
853
- * )
854
- *
855
- * // do something with the money amount or return it
856
- * }
857
- * ```
858
- */
859
- retrieveMoneyAmount(id: string, config?: FindConfig<MoneyAmountDTO>, sharedContext?: Context): Promise<MoneyAmountDTO>;
860
- /**
861
- * This method is used to retrieve a paginated list of money amounts based on optional filters and configuration.
862
- *
863
- * @param {FilterableMoneyAmountProps} filters - The filtes to apply on the retrieved money amounts.
864
- * @param {FindConfig<MoneyAmountDTO>} config -
865
- * The configurations determining how the money amounts are retrieved. Its properties, such as `select` or `relations`, accept the
866
- * attributes or relations associated with a money amount.
867
- * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
868
- * @returns {Promise<MoneyAmountDTO[]>} The list of money amounts.
869
- *
870
- * @example
871
- *
872
- * To retrieve a list of money amounts using their IDs:
873
- *
874
- * ```ts
875
- * import {
876
- * initialize as initializePricingModule,
877
- * } from "@medusajs/pricing"
878
- *
879
- * async function retrieveMoneyAmounts (moneyAmountIds: string[]) {
880
- * const pricingService = await initializePricingModule()
881
- *
882
- * const moneyAmounts = await pricingService.listMoneyAmounts(
883
- * {
884
- * id: moneyAmountIds
885
- * }
886
- * )
887
- *
888
- * // do something with the money amounts or return them
889
- * }
890
- * ```
891
- *
892
- * To specify relations that should be retrieved within the money amounts:
893
- *
894
- * ```ts
895
- * import {
896
- * initialize as initializePricingModule,
897
- * } from "@medusajs/pricing"
898
- *
899
- * async function retrieveMoneyAmounts (moneyAmountIds: string[]) {
900
- * const pricingService = await initializePricingModule()
901
- *
902
- * const moneyAmounts = await pricingService.listMoneyAmounts(
903
- * {
904
- * id: moneyAmountIds
905
- * },
906
- * {
907
- * relations: ["price_set_money_amount"]
908
- * }
909
- * )
910
- *
911
- * // do something with the money amounts or return them
912
- * }
913
- * ```
914
- *
915
- * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
916
- *
917
- * ```ts
918
- * import {
919
- * initialize as initializePricingModule,
920
- * } from "@medusajs/pricing"
921
- *
922
- * async function retrieveMoneyAmounts (moneyAmountIds: string[], skip: number, take: number) {
923
- * const pricingService = await initializePricingModule()
924
- *
925
- * const moneyAmounts = await pricingService.listMoneyAmounts(
926
- * {
927
- * id: moneyAmountIds
928
- * },
929
- * {
930
- * relations: ["price_set_money_amount"],
931
- * skip,
932
- * take
933
- * }
934
- * )
935
- *
936
- * // do something with the money amounts or return them
937
- * }
938
- * ```
939
- *
940
- * You can also use the `$and` or `$or` properties of the `filter` parameter to use and/or conditions in your filters. For example:
941
- *
942
- * ```ts
943
- * import {
944
- * initialize as initializePricingModule,
945
- * } from "@medusajs/pricing"
946
- *
947
- * async function retrieveMoneyAmounts (moneyAmountIds: string[], currencyCode: string[], skip: number, take: number) {
948
- * const pricingService = await initializePricingModule()
949
- *
950
- * const moneyAmounts = await pricingService.listMoneyAmounts(
951
- * {
952
- * $and: [
953
- * {
954
- * id: moneyAmountIds
955
- * },
956
- * {
957
- * currency_code: currencyCode
958
- * }
959
- * ]
960
- * },
961
- * {
962
- * relations: ["price_set_money_amount"],
963
- * skip,
964
- * take
965
- * }
966
- * )
967
- *
968
- * // do something with the money amounts or return them
969
- * }
970
- * ```
971
- */
972
- listMoneyAmounts(filters?: FilterableMoneyAmountProps, config?: FindConfig<MoneyAmountDTO>, sharedContext?: Context): Promise<MoneyAmountDTO[]>;
973
- /**
974
- * This method is used to retrieve a paginated list of money amounts along with the total count of available money amounts satisfying the provided filters.
975
- *
976
- * @param {FilterableMoneyAmountProps} filters - The filters to apply on the retrieved money amounts.
977
- * @param {FindConfig<MoneyAmountDTO>} config -
978
- * The configurations determining how the money amounts are retrieved. Its properties, such as `select` or `relations`, accept the
979
- * attributes or relations associated with a money amount.
980
- * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
981
- * @returns {Promise<[MoneyAmountDTO[], number]>} The list of money amounts along with their total count.
982
- *
983
- * @example
984
- *
985
- * To retrieve a list of money amounts using their IDs:
986
- *
987
- * ```ts
988
- * import {
989
- * initialize as initializePricingModule,
990
- * } from "@medusajs/pricing"
991
- *
992
- * async function retrieveMoneyAmounts (moneyAmountIds: string[]) {
993
- * const pricingService = await initializePricingModule()
994
- *
995
- * const [moneyAmounts, count] = await pricingService.listAndCountMoneyAmounts(
996
- * {
997
- * id: moneyAmountIds
998
- * }
999
- * )
1000
- *
1001
- * // do something with the money amounts or return them
1002
- * }
1003
- * ```
1004
- *
1005
- * To specify relations that should be retrieved within the money amounts:
1006
- *
1007
- * ```ts
1008
- * import {
1009
- * initialize as initializePricingModule,
1010
- * } from "@medusajs/pricing"
1011
- *
1012
- * async function retrieveMoneyAmounts (moneyAmountIds: string[]) {
1013
- * const pricingService = await initializePricingModule()
1014
- *
1015
- * const [moneyAmounts, count] = await pricingService.listAndCountMoneyAmounts(
1016
- * {
1017
- * id: moneyAmountIds
1018
- * },
1019
- * {
1020
- * relations: ["price_set_money_amount"]
1021
- * }
1022
- * )
1023
- *
1024
- * // do something with the money amounts or return them
1025
- * }
1026
- * ```
1027
- *
1028
- * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
1029
- *
1030
- * ```ts
1031
- * import {
1032
- * initialize as initializePricingModule,
1033
- * } from "@medusajs/pricing"
1034
- *
1035
- * async function retrieveMoneyAmounts (moneyAmountIds: string[], skip: number, take: number) {
1036
- * const pricingService = await initializePricingModule()
1037
- *
1038
- * const [moneyAmounts, count] = await pricingService.listAndCountMoneyAmounts(
1039
- * {
1040
- * id: moneyAmountIds
1041
- * },
1042
- * {
1043
- * relations: ["price_set_money_amount"],
1044
- * skip,
1045
- * take
1046
- * }
1047
- * )
1048
- *
1049
- * // do something with the money amounts or return them
1050
- * }
1051
- * ```
1052
- *
1053
- * You can also use the `$and` or `$or` properties of the `filter` parameter to use and/or conditions in your filters. For example:
1054
- *
1055
- * ```ts
1056
- * import {
1057
- * initialize as initializePricingModule,
1058
- * } from "@medusajs/pricing"
1059
- *
1060
- * async function retrieveMoneyAmounts (moneyAmountIds: string[], currencyCode: string[], skip: number, take: number) {
1061
- * const pricingService = await initializePricingModule()
1062
- *
1063
- * const [moneyAmounts, count] = await pricingService.listAndCountMoneyAmounts(
1064
- * {
1065
- * $and: [
1066
- * {
1067
- * id: moneyAmountIds
1068
- * },
1069
- * {
1070
- * currency_code: currencyCode
1071
- * }
1072
- * ]
1073
- * },
1074
- * {
1075
- * relations: ["price_set_money_amount"],
1076
- * skip,
1077
- * take
1078
- * }
1079
- * )
1080
- *
1081
- * // do something with the money amounts or return them
1082
- * }
1083
- * ```
1084
- */
1085
- listAndCountMoneyAmounts(filters?: FilterableMoneyAmountProps, config?: FindConfig<MoneyAmountDTO>, sharedContext?: Context): Promise<[MoneyAmountDTO[], number]>;
1086
- /**
1087
- * This method creates money amounts.
1088
- *
1089
- * @param {CreateMoneyAmountDTO[]} data - The money amounts to create.
1090
- * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
1091
- * @returns {Promise<MoneyAmountDTO[]>} The list of created money amounts.
1092
- *
1093
- * @example
1094
- * import {
1095
- * initialize as initializePricingModule,
1096
- * } from "@medusajs/pricing"
1097
- *
1098
- * async function retrieveMoneyAmounts () {
1099
- * const pricingService = await initializePricingModule()
1100
- *
1101
- * const moneyAmounts = await pricingService.createMoneyAmounts([
1102
- * {
1103
- * amount: 500,
1104
- * currency_code: "USD",
1105
- * },
1106
- * {
1107
- * amount: 400,
1108
- * currency_code: "USD",
1109
- * min_quantity: 0,
1110
- * max_quantity: 4
1111
- * }
1112
- * ])
1113
- *
1114
- * // do something with the money amounts or return them
1115
- * }
1116
- */
1117
- createMoneyAmounts(data: CreateMoneyAmountDTO[], sharedContext?: Context): Promise<MoneyAmountDTO[]>;
1118
- createMoneyAmounts(data: CreateMoneyAmountDTO, sharedContext?: Context): Promise<MoneyAmountDTO>;
1119
- /**
1120
- * This method updates existing money amounts.
1121
- *
1122
- * @param {UpdateMoneyAmountDTO[]} data - The money amounts to update, each having the attributes that should be updated in a money amount.
1123
- * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
1124
- * @returns {Promise<MoneyAmountDTO[]>} The list of updated money amounts.
1125
- *
1126
- * @example
1127
- * import {
1128
- * initialize as initializePricingModule,
1129
- * } from "@medusajs/pricing"
1130
- *
1131
- * async function updateMoneyAmounts (moneyAmountId: string, amount: number) {
1132
- * const pricingService = await initializePricingModule()
1133
- *
1134
- * const moneyAmounts = await pricingService.updateMoneyAmounts([
1135
- * {
1136
- * id: moneyAmountId,
1137
- * amount
1138
- * }
1139
- * ])
1140
- *
1141
- * // do something with the money amounts or return them
1142
- * }
1143
- */
1144
- updateMoneyAmounts(data: UpdateMoneyAmountDTO[], sharedContext?: Context): Promise<MoneyAmountDTO[]>;
1145
- updateMoneyAmounts(data: UpdateMoneyAmountDTO, sharedContext?: Context): Promise<MoneyAmountDTO>;
1146
- /**
1147
- * This method deletes money amounts by their IDs.
1148
- *
1149
- * @param {string[]} ids - The IDs of the money amounts to delete.
1150
- * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
1151
- * @returns {Promise<void>} Resolves when the money amounts are successfully deleted.
1152
- *
1153
- * @example
1154
- * import {
1155
- * initialize as initializePricingModule,
1156
- * } from "@medusajs/pricing"
1157
- *
1158
- * async function deleteMoneyAmounts (moneyAmountIds: string[]) {
1159
- * const pricingService = await initializePricingModule()
1160
- *
1161
- * await pricingService.deleteMoneyAmounts(
1162
- * moneyAmountIds
1163
- * )
1164
- * }
1165
- */
1166
- deleteMoneyAmounts(ids: string[], sharedContext?: Context): Promise<void>;
1167
- /**
1168
- * This method soft deletes money amounts by their IDs.
1169
- *
1170
- * @param {string[]} ids - The IDs of the money amounts to delete.
1171
- * @param {SoftDeleteReturn<TReturnableLinkableKeys>} config
1172
- * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
1173
- * @returns {Promise<void>} Resolves when the money amounts are successfully deleted.
1174
- *
1175
- * @example
1176
- * import {
1177
- * initialize as initializePricingModule,
1178
- * } from "@medusajs/pricing"
1179
- *
1180
- * async function softDeleteMoneyAmounts (moneyAmountIds: string[]) {
1181
- * const pricingService = await initializePricingModule()
1182
- *
1183
- * await pricingService.softDeleteMoneyAmounts(
1184
- * moneyAmountIds
1185
- * )
1186
- * }
1187
- */
1188
- softDeleteMoneyAmounts<TReturnableLinkableKeys extends string = string>(ids: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1189
- /**
1190
- * This method restores soft deleted money amounts by their IDs.
1191
- *
1192
- * @param {string[]} ids - The IDs of the money amounts to delete.
1193
- * @param {RestoreReturn<TReturnableLinkableKeys>} config -
1194
- * Configurations determining which relations to restore along with each of the money amounts. You can pass to its `returnLinkableKeys`
1195
- * property any of the money amount's relation attribute names, such as `price_set_money_amount`.
1196
- * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
1197
- * @returns {Promise<Record<string, string[]> | void>}
1198
- * An object that includes the IDs of related records that were restored, such as the ID of associated price set money amounts.
1199
- * The object's keys are the ID attribute names of the money amount entity's relations, such as `price_set_money_amount_id`,
1200
- * and its value is an array of strings, each being the ID of the record associated with the money amount through this relation,
1201
- * such as the IDs of associated price set money amounts.
1202
- *
1203
- * @example
1204
- * import {
1205
- * initialize as initializePricingModule,
1206
- * } from "@medusajs/pricing"
1207
- *
1208
- * async function softDeleteMoneyAmounts (moneyAmountIds: string[]) {
1209
- * const pricingService = await initializePricingModule()
1210
- *
1211
- * await pricingService.softDeleteMoneyAmounts(
1212
- * moneyAmountIds
1213
- * )
1214
- * }
1215
- */
1216
- restoreMoneyAmounts<TReturnableLinkableKeys extends string = string>(ids: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1217
809
  /**
1218
810
  * This method is used to retrieve a rule type by its ID and and optionally based on the provided configurations.
1219
811
  *
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/pricing/service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,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O,CAAC,gBAAgB,EAAE,CAAC,CAAA;IAE9B;;;;;;;;;;;;;;;;;OAiBG;IACH,oBAAoB,CAClB,gBAAgB,EAAE,MAAM,EAAE,EAC1B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,kBAAkB,CAChB,IAAI,EAAE,qBAAqB,EAAE,EAC7B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,YAAY,EAAE,CAAC,CAAA;IAE1B,qBAAqB,CACnB,IAAI,EAAE,wBAAwB,EAAE,EAChC,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,YAAY,EAAE,CAAC,CAAA;IAE1B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,iBAAiB,CACf,IAAI,EAAE,oBAAoB,EAC1B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,YAAY,CAAC,CAAA;IAExB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,oBAAoB,CAClB,IAAI,EAAE,uBAAuB,EAC7B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,YAAY,CAAC,CAAA;IAExB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACpE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/types",
3
- "version": "1.12.0-snapshot-20240321152555",
3
+ "version": "1.12.0-snapshot-20240325085803",
4
4
  "description": "Medusa Types definition",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",