@medusajs/types 1.12.0-snapshot-20240321105225 → 1.12.0-snapshot-20240322174858
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-key/common/api-key.d.ts +55 -0
- package/dist/api-key/common/api-key.d.ts.map +1 -1
- package/dist/api-key/mutations/api-key.d.ts +43 -0
- package/dist/api-key/mutations/api-key.d.ts.map +1 -1
- package/dist/api-key/service.d.ts +203 -42
- package/dist/api-key/service.d.ts.map +1 -1
- package/dist/common/config-module.d.ts +19 -3
- package/dist/common/config-module.d.ts.map +1 -1
- package/dist/modules-sdk/index.d.ts +4 -1
- package/dist/modules-sdk/index.d.ts.map +1 -1
- package/dist/pricing/common/price-set.d.ts +10 -10
- package/dist/pricing/common/price-set.d.ts.map +1 -1
- package/dist/pricing/service.d.ts +1 -409
- package/dist/pricing/service.d.ts.map +1 -1
- package/package.json +1 -1
@@ -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;
|
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;
|
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
|
-
*
|
9
|
-
*
|
10
|
-
* @param
|
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
|
41
|
+
* This method updates or creates API keys if they don't exist.
|
16
42
|
*
|
17
|
-
* @param {UpsertApiKeyDTO[]} data - The attributes
|
18
|
-
* @
|
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
|
-
*
|
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
|
62
|
+
* This method updates or creates an API key if it doesn't exist.
|
26
63
|
*
|
27
|
-
* @param {UpsertApiKeyDTO} data - The attributes
|
28
|
-
* @
|
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
|
-
* {
|
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
|
38
|
-
* @param {UpdateApiKeyDTO} data - The
|
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
|
47
|
-
* @param {UpdateApiKeyDTO} data - The
|
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
|
-
*
|
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
|
-
*
|
57
|
-
*
|
58
|
-
* @param
|
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
|
-
*
|
64
|
-
*
|
65
|
-
* @param
|
66
|
-
* @param
|
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
|
-
*
|
71
|
-
*
|
72
|
-
* @param
|
73
|
-
* @param
|
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
|
-
*
|
78
|
-
*
|
79
|
-
* @param
|
80
|
-
* @param
|
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
|
-
*
|
85
|
-
*
|
86
|
-
* @param
|
87
|
-
* @param
|
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
|
-
*
|
92
|
-
*
|
93
|
-
* @param
|
94
|
-
* @param
|
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
|
-
*
|
99
|
-
*
|
100
|
-
* @param
|
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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OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,MAAM,CAAC,CAAC,CAAA;IAEjC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,QAAQ,EAAE,qBAAqB,EAC/B,IAAI,EAAE,eAAe,EACrB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,SAAS,EAAE,CAAC,CAAA;IAEvB;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,eAAe,EACrB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,SAAS,CAAC,CAAA;IAErB;;;;;;;;;;;;;;OAcG;IACH,YAAY,CACV,KAAK,EAAE,MAAM,EACb,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,SAAS,GAAG,KAAK,CAAC,CAAA;CAC9B"}
|
@@ -329,8 +329,6 @@ export type ProjectConfigOptions = {
|
|
329
329
|
* // ...
|
330
330
|
* }
|
331
331
|
* ```
|
332
|
-
*
|
333
|
-
* @deprecated use `database_driver_options` instead
|
334
332
|
*/
|
335
333
|
database_extra?: Record<string, unknown> & {
|
336
334
|
/**
|
@@ -344,7 +342,7 @@ export type ProjectConfigOptions = {
|
|
344
342
|
};
|
345
343
|
};
|
346
344
|
/**
|
347
|
-
* An object that includes additional configurations to pass to the database connection. You can pass any configuration. One defined configuration to pass is
|
345
|
+
* An object that includes additional configurations to pass to the database connection for v2. You can pass any configuration. One defined configuration to pass is
|
348
346
|
* `ssl` which enables support for TLS/SSL connections.
|
349
347
|
*
|
350
348
|
* This is useful for production databases, which can be supported by setting the `rejectUnauthorized` attribute of `ssl` object to `false`.
|
@@ -502,6 +500,24 @@ export type ProjectConfigOptions = {
|
|
502
500
|
* ```
|
503
501
|
*/
|
504
502
|
jobs_batch_size?: number;
|
503
|
+
/**
|
504
|
+
* Configure the application's worker mode. The default value is `shared`.
|
505
|
+
* - Use `shared` if you want to run the application in a single process.
|
506
|
+
* - Use `worker` if you want to run the a worker process only.
|
507
|
+
* - Use `server` if you want to run the application server only.
|
508
|
+
*
|
509
|
+
* @example
|
510
|
+
* ```js title="medusa-config.js"
|
511
|
+
* module.exports = {
|
512
|
+
* projectConfig: {
|
513
|
+
* worker_mode: "shared"
|
514
|
+
* // ...
|
515
|
+
* },
|
516
|
+
* // ...
|
517
|
+
* }
|
518
|
+
* ```
|
519
|
+
*/
|
520
|
+
worker_mode?: "shared" | "worker" | "server";
|
505
521
|
};
|
506
522
|
/**
|
507
523
|
* @interface
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC;;;;GAIG;AACH,KAAK,cAAc,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC5B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,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;;;;;;;;;;;;;;;;;;;OAoCG;IACH,OAAO,CAAC,EAAE,MAAM,CACd,MAAM,EACN,OAAO,GAAG,OAAO,CAAC,yBAAyB,GAAG,yBAAyB,CAAC,CACzE,CAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC,CAAA;CAC/C,CAAA"}
|
@@ -31,6 +31,7 @@ export type InternalModuleDeclaration = {
|
|
31
31
|
* If the module is the main module for the key when multiple ones are registered
|
32
32
|
*/
|
33
33
|
main?: boolean;
|
34
|
+
worker_mode?: "shared" | "worker" | "server";
|
34
35
|
};
|
35
36
|
export type ExternalModuleDeclaration = {
|
36
37
|
scope: MODULE_SCOPE.EXTERNAL;
|
@@ -181,7 +182,9 @@ export interface ModuleServiceInitializeOptions {
|
|
181
182
|
user?: string;
|
182
183
|
password?: string;
|
183
184
|
database?: string;
|
184
|
-
driverOptions?: Record<string, unknown
|
185
|
+
driverOptions?: Record<string, unknown> & {
|
186
|
+
connection?: Record<string, unknown>;
|
187
|
+
};
|
185
188
|
debug?: boolean;
|
186
189
|
pool?: Record<string, unknown>;
|
187
190
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules-sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,WAAW,CAAA;AAElB,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAA;AACtD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;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AAA;CACF"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { BaseFilterable } from "../../dal";
|
2
|
-
import {
|
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
|
131
|
+
* The ID of the price selected as the calculated price.
|
132
132
|
*/
|
133
|
-
|
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
|
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
|
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
|
156
|
+
* The ID of the price selected as the original price.
|
157
157
|
*/
|
158
|
-
|
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
|
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
|
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,
|
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;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,M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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,
|
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,EAC5B,wBAAwB,EACxB,kCAAkC,EAClC,uBAAuB,EACvB,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAA;AAEjB,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,M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