@medusajs/types 2.22.6 → 2.22.7-preview-20261113084204

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/AGENTS.md +2 -2
  2. package/dist/audit/common.d.ts +202 -0
  3. package/dist/audit/common.d.ts.map +1 -0
  4. package/dist/audit/common.js +3 -0
  5. package/dist/audit/common.js.map +1 -0
  6. package/dist/audit/index.d.ts +6 -0
  7. package/dist/audit/index.d.ts.map +1 -0
  8. package/dist/audit/index.js +22 -0
  9. package/dist/audit/index.js.map +1 -0
  10. package/dist/audit/mutations.d.ts +67 -0
  11. package/dist/audit/mutations.d.ts.map +1 -0
  12. package/dist/audit/mutations.js +3 -0
  13. package/dist/audit/mutations.js.map +1 -0
  14. package/dist/audit/options.d.ts +95 -0
  15. package/dist/audit/options.d.ts.map +1 -0
  16. package/dist/audit/options.js +3 -0
  17. package/dist/audit/options.js.map +1 -0
  18. package/dist/audit/provider.d.ts +46 -0
  19. package/dist/audit/provider.d.ts.map +1 -0
  20. package/dist/audit/provider.js +3 -0
  21. package/dist/audit/provider.js.map +1 -0
  22. package/dist/audit/service.d.ts +79 -0
  23. package/dist/audit/service.d.ts.map +1 -0
  24. package/dist/audit/service.js +3 -0
  25. package/dist/audit/service.js.map +1 -0
  26. package/dist/bundles.d.ts +1 -0
  27. package/dist/bundles.d.ts.map +1 -1
  28. package/dist/bundles.js +2 -1
  29. package/dist/bundles.js.map +1 -1
  30. package/dist/common/common.d.ts +6 -1
  31. package/dist/common/common.d.ts.map +1 -1
  32. package/dist/common/config-module.d.ts +84 -0
  33. package/dist/common/config-module.d.ts.map +1 -1
  34. package/dist/http/common/response.d.ts +1 -0
  35. package/dist/http/common/response.d.ts.map +1 -1
  36. package/dist/http/index/admin/payload.d.ts +3 -0
  37. package/dist/http/index/admin/payload.d.ts.map +1 -1
  38. package/dist/http/index/admin/responses.d.ts +3 -0
  39. package/dist/http/index/admin/responses.d.ts.map +1 -1
  40. package/dist/http/product/admin/payloads.d.ts +2 -1
  41. package/dist/http/product/admin/payloads.d.ts.map +1 -1
  42. package/dist/http/rbac/admin/payloads.d.ts +6 -0
  43. package/dist/http/rbac/admin/payloads.d.ts.map +1 -1
  44. package/dist/http/rbac/admin/responses.d.ts +14 -0
  45. package/dist/http/rbac/admin/responses.d.ts.map +1 -1
  46. package/dist/http/user/admin/entities.d.ts +1 -1
  47. package/dist/index-data/service.d.ts +5 -0
  48. package/dist/index-data/service.d.ts.map +1 -1
  49. package/dist/index.d.ts +1 -0
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/index.js +1 -0
  52. package/dist/index.js.map +1 -1
  53. package/dist/modules-sdk/remote-query.d.ts +4 -0
  54. package/dist/modules-sdk/remote-query.d.ts.map +1 -1
  55. package/dist/modules-sdk/to-remote-query.d.ts +11 -3
  56. package/dist/modules-sdk/to-remote-query.d.ts.map +1 -1
  57. package/dist/order/common.d.ts +4 -0
  58. package/dist/order/common.d.ts.map +1 -1
  59. package/dist/order/mutations.d.ts +4 -0
  60. package/dist/order/mutations.d.ts.map +1 -1
  61. package/dist/payment/mutations.d.ts +22 -0
  62. package/dist/payment/mutations.d.ts.map +1 -1
  63. package/dist/payment/service.d.ts +24 -1
  64. package/dist/payment/service.d.ts.map +1 -1
  65. package/dist/user/common.d.ts +2 -2
  66. package/dist/user/mutations.d.ts +2 -2
  67. package/dist/workflow/invite/create-invite.d.ts +1 -1
  68. package/dist/workflow/user/create-user.d.ts +1 -1
  69. package/package.json +2 -2
package/AGENTS.md CHANGED
@@ -21,8 +21,8 @@ function toCard(product: HttpTypes.StoreProduct) {
21
21
  ```
22
22
 
23
23
  - Storefronts and admin extensions that only need HTTP shapes can import `HttpTypes` from `@medusajs/types` directly (no runtime cost).
24
- - Namespaced bundles (`src/bundles.ts`): `HttpTypes`, `ProductTypes`, `OrderTypes`, `CartTypes`, `PricingTypes`, `ModulesSdkTypes`, `DAL`, `DmlTypes`, `SearchTypes`, `WorkflowsSdkTypes`, ...
25
- - Provider contracts to implement for custom providers live here (e.g. `IPaymentProvider` in `payment/provider.ts`, `ITaxProvider` in `tax/provider.ts`, `ILockingProvider` in `locking/index.ts`, `ICachingProviderService` in `caching/index.ts`, `AuthMfaProvider` in `auth/mfa-provider.ts`).
24
+ - Namespaced bundles (`src/bundles.ts`): `HttpTypes`, `ProductTypes`, `OrderTypes`, `CartTypes`, `PricingTypes`, `ModulesSdkTypes`, `DAL`, `DmlTypes`, `SearchTypes`, `AuditTypes`, `WorkflowsSdkTypes`, ...
25
+ - Provider contracts to implement for custom providers live here (e.g. `IPaymentProvider` in `payment/provider.ts`, `ITaxProvider` in `tax/provider.ts`, `ILockingProvider` in `locking/index.ts`, `ICachingProviderService` in `caching/index.ts`, `IAuditProvider` in `audit/provider.ts`, `AuthMfaProvider` in `auth/mfa-provider.ts`).
26
26
  - Typed module options in `defineConfig`: modules augment `ModuleOptions` keyed by their `resolve` string:
27
27
 
28
28
  ```ts
@@ -0,0 +1,202 @@
1
+ /**
2
+ * Who performed the audited action.
3
+ *
4
+ * - `user`: an admin user.
5
+ * - `api_key`: a secret API key.
6
+ * - `customer`: a storefront customer.
7
+ * - `system`: code that runs outside a request, such as a scheduled job.
8
+ * - `anonymous`: an unauthenticated request, such as a failed login.
9
+ */
10
+ export type AuditActorType = "user" | "api_key" | "customer" | "system" | "anonymous";
11
+ /**
12
+ * How the audited action ended. `denied` is a 401 or 403 response, `failed`
13
+ * any other 4xx or 5xx response.
14
+ */
15
+ export type AuditOutcome = "succeeded" | "denied" | "failed";
16
+ /**
17
+ * The HTTP details of an audit log written for an API request.
18
+ */
19
+ export interface AuditLogRequest {
20
+ /**
21
+ * The HTTP method, such as `POST`.
22
+ */
23
+ method: string;
24
+ /**
25
+ * The route pattern, such as `/admin/orders/:id/cancel`.
26
+ */
27
+ route: string;
28
+ /**
29
+ * The request path without the query string.
30
+ */
31
+ path: string;
32
+ /**
33
+ * The response status code.
34
+ */
35
+ status_code: number;
36
+ /**
37
+ * The request ID, the same one that appears in the application logs.
38
+ */
39
+ request_id: string | null;
40
+ /**
41
+ * The client IP address.
42
+ */
43
+ ip_address: string | null;
44
+ /**
45
+ * The client user agent.
46
+ */
47
+ user_agent: string | null;
48
+ }
49
+ /**
50
+ * An audit log: one action, who performed it, on which resource, and how it ended.
51
+ * Audit logs are only inserted and read, never updated or deleted.
52
+ */
53
+ export interface AuditLogDTO {
54
+ /**
55
+ * The ID of the audit log, prefixed with `audlog_`.
56
+ */
57
+ id: string;
58
+ /**
59
+ * When the action started, such as when the request arrived.
60
+ */
61
+ started_at: Date;
62
+ /**
63
+ * When the action ended, such as when the response was sent.
64
+ */
65
+ ended_at: Date;
66
+ /**
67
+ * The type of actor that performed the action.
68
+ */
69
+ actor_type: AuditActorType;
70
+ /**
71
+ * The ID of the user, API key, or customer that performed the action.
72
+ */
73
+ actor_id: string | null;
74
+ /**
75
+ * The ID of the Medusa staff member acting as the actor, on Medusa Cloud.
76
+ */
77
+ impersonator_id: string | null;
78
+ /**
79
+ * The name of the action, such as `order.cancel` or `POST /admin/orders/:id/cancel`.
80
+ */
81
+ action: string;
82
+ /**
83
+ * The type of resource acted on, such as `order`.
84
+ */
85
+ resource_type: string | null;
86
+ /**
87
+ * The ID of the resource acted on. `null` when the action acts on several resources.
88
+ */
89
+ resource_id: string | null;
90
+ /**
91
+ * How the action ended.
92
+ */
93
+ outcome: AuditOutcome;
94
+ /**
95
+ * The HTTP details. `null` for an audit log written outside an API request.
96
+ */
97
+ request: AuditLogRequest | null;
98
+ /**
99
+ * The request fields that the route chose to keep.
100
+ */
101
+ request_data: Record<string, unknown> | null;
102
+ /**
103
+ * The response fields that the route chose to keep.
104
+ */
105
+ response_data: Record<string, unknown> | null;
106
+ /**
107
+ * Any other data attached to the audit log.
108
+ */
109
+ metadata: Record<string, unknown> | null;
110
+ }
111
+ /**
112
+ * A date range filter. Dates can be passed as `Date` objects or ISO 8601 strings.
113
+ */
114
+ export interface AuditLogDateRange {
115
+ /**
116
+ * Later than this date.
117
+ */
118
+ $gt?: Date | string;
119
+ /**
120
+ * Later than or equal to this date.
121
+ */
122
+ $gte?: Date | string;
123
+ /**
124
+ * Earlier than this date.
125
+ */
126
+ $lt?: Date | string;
127
+ /**
128
+ * Earlier than or equal to this date.
129
+ */
130
+ $lte?: Date | string;
131
+ }
132
+ /**
133
+ * The filters to apply on retrieved audit logs. A filter given an array matches
134
+ * any of its values.
135
+ */
136
+ export interface FilterableAuditLogProps {
137
+ /**
138
+ * Filter by audit log IDs.
139
+ */
140
+ id?: string | string[];
141
+ /**
142
+ * Filter by actor types.
143
+ */
144
+ actor_type?: AuditActorType | AuditActorType[];
145
+ /**
146
+ * Filter by actor IDs.
147
+ */
148
+ actor_id?: string | string[];
149
+ /**
150
+ * Filter by actions.
151
+ */
152
+ action?: string | string[];
153
+ /**
154
+ * Filter by resource types.
155
+ */
156
+ resource_type?: string | string[];
157
+ /**
158
+ * Filter by resource IDs.
159
+ */
160
+ resource_id?: string | string[];
161
+ /**
162
+ * Filter by outcomes.
163
+ */
164
+ outcome?: AuditOutcome | AuditOutcome[];
165
+ /**
166
+ * Filter by when the action started.
167
+ */
168
+ started_at?: AuditLogDateRange;
169
+ /**
170
+ * Search the action, resource type, resource ID, and actor ID for this text.
171
+ * Providers are not required to support it.
172
+ */
173
+ q?: string;
174
+ }
175
+ /**
176
+ * Pagination, sorting, and field selection for retrieved audit logs.
177
+ */
178
+ export interface AuditLogFindConfig {
179
+ /**
180
+ * The fields to return. All fields are returned when omitted. `id` is always returned.
181
+ */
182
+ select?: (keyof AuditLogDTO)[];
183
+ /**
184
+ * The number of audit logs to skip.
185
+ */
186
+ skip?: number | null;
187
+ /**
188
+ * The maximum number of audit logs to return.
189
+ *
190
+ * @defaultValue 20
191
+ */
192
+ take?: number | null;
193
+ /**
194
+ * The sort order. Audit logs can only be sorted by when they started.
195
+ *
196
+ * @defaultValue `{ started_at: "DESC" }`
197
+ */
198
+ order?: {
199
+ started_at?: "ASC" | "DESC" | "asc" | "desc";
200
+ };
201
+ }
202
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/audit/common.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GACxB,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,CAAA;AAE1D;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAE5D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,UAAU,EAAE,IAAI,CAAA;IAEhB;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAA;IAEd;;OAEG;IACH,UAAU,EAAE,cAAc,CAAA;IAE1B;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAE9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAE1B;;OAEG;IACH,OAAO,EAAE,YA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AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,WAAW,CAAC,EAAE,CAAA;IAE9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEpB;;;;OAIG;IACH,KAAK,CAAC,EAAE;QACN,UAAU,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAA;KAC7C,CAAA;CACF"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/audit/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export * from "./common";
2
+ export * from "./mutations";
3
+ export * from "./options";
4
+ export * from "./provider";
5
+ export * from "./service";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/audit/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./common"), exports);
18
+ __exportStar(require("./mutations"), exports);
19
+ __exportStar(require("./options"), exports);
20
+ __exportStar(require("./provider"), exports);
21
+ __exportStar(require("./service"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/audit/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,8CAA2B;AAC3B,4CAAyB;AACzB,6CAA0B;AAC1B,4CAAyB"}
@@ -0,0 +1,67 @@
1
+ import { AuditActorType, AuditLogRequest, AuditOutcome } from "./common";
2
+ /**
3
+ * An audit log to record. The ID is always generated by the Audit Module.
4
+ */
5
+ export interface CreateAuditLogDTO {
6
+ /**
7
+ * The name of the action, such as `order.cancel`.
8
+ */
9
+ action: string;
10
+ /**
11
+ * The type of actor that performed the action.
12
+ *
13
+ * @defaultValue "system"
14
+ */
15
+ actor_type?: AuditActorType;
16
+ /**
17
+ * The ID of the user, API key, or customer that performed the action.
18
+ */
19
+ actor_id?: string | null;
20
+ /**
21
+ * The ID of the Medusa staff member acting as the actor, on Medusa Cloud.
22
+ */
23
+ impersonator_id?: string | null;
24
+ /**
25
+ * The type of resource acted on, such as `order`.
26
+ */
27
+ resource_type?: string | null;
28
+ /**
29
+ * The ID of the resource acted on.
30
+ */
31
+ resource_id?: string | null;
32
+ /**
33
+ * How the action ended.
34
+ *
35
+ * @defaultValue "succeeded"
36
+ */
37
+ outcome?: AuditOutcome;
38
+ /**
39
+ * When the action started, as a `Date` or an ISO 8601 string.
40
+ *
41
+ * @defaultValue The time `createAuditLogs` is called.
42
+ */
43
+ started_at?: Date | string;
44
+ /**
45
+ * When the action ended, as a `Date` or an ISO 8601 string.
46
+ *
47
+ * @defaultValue The value of `started_at`.
48
+ */
49
+ ended_at?: Date | string;
50
+ /**
51
+ * The HTTP details. Leave empty for an audit log written outside an API request.
52
+ */
53
+ request?: AuditLogRequest | null;
54
+ /**
55
+ * The request fields to keep. Never pass a whole request body.
56
+ */
57
+ request_data?: Record<string, unknown> | null;
58
+ /**
59
+ * The response fields to keep. Never pass a whole response body.
60
+ */
61
+ response_data?: Record<string, unknown> | null;
62
+ /**
63
+ * Any other data to attach to the audit log.
64
+ */
65
+ metadata?: Record<string, unknown> | null;
66
+ }
67
+ //# sourceMappingURL=mutations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/audit/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAExE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,UAAU,CAAC,EAAE,cAAc,CAAA;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAExB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;IAEtB;;;;OAIG;IACH,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;IAE1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;IAEhC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAE7C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAE9C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=mutations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../src/audit/mutations.ts"],"names":[],"mappings":""}
@@ -0,0 +1,95 @@
1
+ import { ModuleProviderExports } from "../modules-sdk";
2
+ /**
3
+ * The options of the Audit Module.
4
+ */
5
+ export interface AuditModuleOptions {
6
+ /**
7
+ * Whether audit logs are recorded. When `false`, `createAuditLogs` does nothing and
8
+ * nothing is buffered, so callers need no change. Reading audit logs still works.
9
+ *
10
+ * @defaultValue true
11
+ */
12
+ enabled?: boolean;
13
+ /**
14
+ * Audit logs older than this many days are deleted from the application's
15
+ * database. When unset, they are kept forever. It only applies to the
16
+ * built-in Postgres storage, which is used when neither `providers` nor
17
+ * `cloud` is set.
18
+ */
19
+ retention_days?: number;
20
+ /**
21
+ * Custom providers that store audit logs, replacing the built-in Postgres
22
+ * storage. Recorded audit logs are written to the default provider only.
23
+ */
24
+ providers?: {
25
+ /**
26
+ * The provider package or its exports.
27
+ */
28
+ resolve: string | ModuleProviderExports;
29
+ /**
30
+ * The provider's ID, used by `default_provider`.
31
+ */
32
+ id: string;
33
+ /**
34
+ * The provider's options.
35
+ */
36
+ options?: Record<string, unknown>;
37
+ }[];
38
+ /**
39
+ * The ID of the provider that recorded audit logs are written to and read from.
40
+ * Defaults to the Medusa Cloud provider when `cloud` is set, otherwise to the
41
+ * only registered provider. Required when several providers are registered
42
+ * without `cloud`.
43
+ */
44
+ default_provider?: string;
45
+ /**
46
+ * Medusa Cloud audit storage. When `endpoint` is set, the module registers the
47
+ * built-in Medusa Cloud provider with the ID `cloud` and makes it the default.
48
+ */
49
+ cloud?: {
50
+ /**
51
+ * The Medusa Cloud API key.
52
+ */
53
+ api_key?: string;
54
+ /**
55
+ * The base URL of the Medusa Cloud audit service.
56
+ */
57
+ endpoint?: string;
58
+ /**
59
+ * The handle of the Medusa Cloud environment.
60
+ */
61
+ environment_handle?: string;
62
+ /**
63
+ * @ignore
64
+ *
65
+ * Replaces the HTTP transport, for tests.
66
+ */
67
+ fetch?: typeof fetch;
68
+ };
69
+ /**
70
+ * How recorded audit logs are buffered before they're written.
71
+ */
72
+ buffer?: {
73
+ /**
74
+ * The number of buffered audit logs that triggers a write, and the largest
75
+ * batch passed to the provider.
76
+ *
77
+ * @defaultValue 100
78
+ */
79
+ max_size?: number;
80
+ /**
81
+ * How long an audit log waits in the buffer at most before it's written, in milliseconds.
82
+ *
83
+ * @defaultValue 1000
84
+ */
85
+ flush_interval_ms?: number;
86
+ /**
87
+ * The most audit logs held in memory, for example while the provider is
88
+ * unavailable. When exceeded, the oldest are dropped and a warning is logged.
89
+ *
90
+ * @defaultValue 10000
91
+ */
92
+ max_buffered?: number;
93
+ };
94
+ }
95
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/audit/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAEtD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,OAAO,EAAE,MAAM,GAAG,qBAAqB,CAAA;QACvC;;WAEG;QACH,EAAE,EAAE,MAAM,CAAA;QACV;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAClC,EAAE,CAAA;IAEH;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAEzB;;;OAGG;IACH,KAAK,CAAC,EAAE;QACN;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB;;WAEG;QACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;QAC3B;;;;WAIG;QACH,KAAK,CAAC,EAAE,OAAO,KAAK,CAAA;KACrB,CAAA;IAED;;OAEG;IACH,MAAM,CAAC,EAAE;QACP;;;;;WAKG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB;;;;WAIG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;QAC1B;;;;;WAKG;QACH,YAAY,CAAC,EAAE,MAAM,CAAA;KACtB,CAAA;CACF"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/audit/options.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ import { AuditLogDTO, AuditLogFindConfig, FilterableAuditLogProps } from "./common";
2
+ /**
3
+ * The interface an Audit Module provider implements. A provider stores audit
4
+ * logs and reads them back. It never updates or deletes a single audit log.
5
+ *
6
+ * Every provider must have a static `identifier` property.
7
+ */
8
+ export interface IAuditProvider {
9
+ /**
10
+ * Stores a batch of audit logs. The Audit Module buffers recorded audit logs
11
+ * and calls this method with up to `buffer.max_size` of them at a time. The
12
+ * audit logs already have their ID and dates set.
13
+ *
14
+ * Throw when the batch can't be stored: the module retries a few times
15
+ * before it drops the batch, so the write should be safe to repeat.
16
+ *
17
+ * @param {AuditLogDTO[]} entries - The audit logs to store.
18
+ * @returns {Promise<void>} Resolves when the batch is stored.
19
+ */
20
+ write(entries: AuditLogDTO[]): Promise<void>;
21
+ /**
22
+ * Retrieves a page of audit logs, newest first unless `config.order` says otherwise.
23
+ *
24
+ * @param {FilterableAuditLogProps} filters - The filters to apply.
25
+ * @param {AuditLogFindConfig} config - Pagination, sorting, and field selection.
26
+ * @returns {Promise<AuditLogDTO[]>} The audit logs.
27
+ */
28
+ list(filters: FilterableAuditLogProps, config: AuditLogFindConfig): Promise<AuditLogDTO[]>;
29
+ /**
30
+ * Retrieves a page of audit logs and the total count of audit logs matching the filters.
31
+ *
32
+ * @param {FilterableAuditLogProps} filters - The filters to apply.
33
+ * @param {AuditLogFindConfig} config - Pagination, sorting, and field selection.
34
+ * @returns {Promise<[AuditLogDTO[], number]>} The audit logs and their total count.
35
+ */
36
+ listAndCount(filters: FilterableAuditLogProps, config: AuditLogFindConfig): Promise<[AuditLogDTO[], number]>;
37
+ /**
38
+ * Retrieves an audit log by its ID.
39
+ *
40
+ * @param {string} id - The ID of the audit log.
41
+ * @param {AuditLogFindConfig} config - Field selection.
42
+ * @returns {Promise<AuditLogDTO | null>} The audit log, or `null` if it doesn't exist.
43
+ */
44
+ retrieve(id: string, config: AuditLogFindConfig): Promise<AuditLogDTO | null>;
45
+ }
46
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/audit/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,uBAAuB,EACxB,MAAM,UAAU,CAAA;AAEjB;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;;;;OAUG;IACH,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAE5C;;;;;;OAMG;IACH,IAAI,CACF,OAAO,EAAE,uBAAuB,EAChC,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;IAEzB;;;;;;OAMG;IACH,YAAY,CACV,OAAO,EAAE,uBAAuB,EAChC,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE,MAAM,CAAC,CAAC,CAAA;IAEnC;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAC9E"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/audit/provider.ts"],"names":[],"mappings":""}
@@ -0,0 +1,79 @@
1
+ import { IModuleService } from "../modules-sdk";
2
+ import { AuditLogDTO, AuditLogFindConfig, FilterableAuditLogProps } from "./common";
3
+ import { CreateAuditLogDTO } from "./mutations";
4
+ /**
5
+ * The main service interface for the Audit Module.
6
+ */
7
+ export interface IAuditModuleService extends IModuleService {
8
+ /**
9
+ * This method records one or more audit logs. Unlike other modules' create
10
+ * methods, it returns nothing, never throws and never waits for storage: the audit logs are validated, given an ID, and buffered, then
11
+ * written in batches by the module's default provider. An invalid audit log is
12
+ * dropped and logged. When the module's `enabled` option is `false`, this
13
+ * method does nothing.
14
+ *
15
+ * @param {CreateAuditLogDTO | CreateAuditLogDTO[]} data - The audit logs to record.
16
+ *
17
+ * @example
18
+ * auditModuleService.createAuditLogs({
19
+ * actor_type: "system",
20
+ * action: "inventory.sync",
21
+ * resource_type: "inventory_item",
22
+ * resource_id: "iitem_123",
23
+ * })
24
+ */
25
+ createAuditLogs(data: CreateAuditLogDTO | CreateAuditLogDTO[]): void;
26
+ /**
27
+ * This method retrieves a paginated list of audit logs, newest first.
28
+ *
29
+ * @param {FilterableAuditLogProps} filters - The filters to apply.
30
+ * @param {AuditLogFindConfig} config - Pagination, sorting, and field selection.
31
+ * @returns {Promise<AuditLogDTO[]>} The list of audit logs.
32
+ *
33
+ * @example
34
+ * const auditLogs = await auditModuleService.listAuditLogs(
35
+ * { resource_type: "order", resource_id: "order_123" },
36
+ * { take: 20 }
37
+ * )
38
+ */
39
+ listAuditLogs(filters?: FilterableAuditLogProps, config?: AuditLogFindConfig): Promise<AuditLogDTO[]>;
40
+ /**
41
+ * This method retrieves a paginated list of audit logs, newest first, with
42
+ * the total count of audit logs matching the filters.
43
+ *
44
+ * @param {FilterableAuditLogProps} filters - The filters to apply.
45
+ * @param {AuditLogFindConfig} config - Pagination, sorting, and field selection.
46
+ * @returns {Promise<[AuditLogDTO[], number]>} The list of audit logs and their total count.
47
+ *
48
+ * @example
49
+ * const [auditLogs, count] = await auditModuleService.listAndCountAuditLogs(
50
+ * { actor_type: "user", actor_id: "user_123" },
51
+ * { skip: 0, take: 20 }
52
+ * )
53
+ */
54
+ listAndCountAuditLogs(filters?: FilterableAuditLogProps, config?: AuditLogFindConfig): Promise<[AuditLogDTO[], number]>;
55
+ /**
56
+ * This method retrieves an audit log by its ID. It throws a `not_found` error
57
+ * when the audit log doesn't exist.
58
+ *
59
+ * @param {string} id - The ID of the audit log.
60
+ * @param {AuditLogFindConfig} config - Field selection.
61
+ * @returns {Promise<AuditLogDTO>} The audit log.
62
+ *
63
+ * @example
64
+ * const auditLog = await auditModuleService.retrieveAuditLog("audlog_123")
65
+ */
66
+ retrieveAuditLog(id: string, config?: AuditLogFindConfig): Promise<AuditLogDTO>;
67
+ /**
68
+ * This method writes every buffered audit log through the default provider and
69
+ * resolves once done. It never throws. The module calls it on shutdown; call it
70
+ * yourself when you need recorded audit logs to be readable right away, such
71
+ * as in a script that exits afterwards.
72
+ *
73
+ * @example
74
+ * auditModuleService.createAuditLogs({ action: "catalog.import" })
75
+ * await auditModuleService.flush()
76
+ */
77
+ flush(): Promise<void>;
78
+ }
79
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/audit/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,uBAAuB,EACxB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD;;;;;;;;;;;;;;;;OAgBG;IACH,eAAe,CAAC,IAAI,EAAE,iBAAiB,GAAG,iBAAiB,EAAE,GAAG,IAAI,CAAA;IAEpE;;;;;;;;;;;;OAYG;IACH,aAAa,CACX,OAAO,CAAC,EAAE,uBAAuB,EACjC,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;IAEzB;;;;;;;;;;;;;OAaG;IACH,qBAAqB,CACnB,OAAO,CAAC,EAAE,uBAAuB,EACjC,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE,MAAM,CAAC,CAAC,CAAA;IAEnC;;;;;;;;;;OAUG;IACH,gBAAgB,CACd,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,WAAW,CAAC,CAAA;IAEvB;;;;;;;;;OASG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACvB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/audit/service.ts"],"names":[],"mappings":""}
package/dist/bundles.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * as AdminTypes from "./admin";
2
2
  export * as AnalyticsTypes from "./analytics";
3
3
  export * as ApiKeyTypes from "./api-key";
4
+ export * as AuditTypes from "./audit";
4
5
  export * as AuthTypes from "./auth";
5
6
  export * as CacheTypes from "./cache";
6
7
  export * as CachingTypes from "./caching";
@@ -1 +1 @@
1
- {"version":3,"file":"bundles.d.ts","sourceRoot":"","sources":["../src/bundles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,cAAc,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,WAAW,MAAM,WAAW,CAAA;AACxC,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,KAAK,UAAU,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,YAAY,MAAM,WAAW,CAAA;AACzC,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,KAAK,WAAW,MAAM,UAAU,CAAA;AACvC,OAAO,KAAK,aAAa,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,aAAa,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,GAAG,MAAM,OAAO,CAAA;AAC5B,OAAO,KAAK,QAAQ,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,aAAa,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,gBAAgB,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,cAAc,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,WAAW,MAAM,UAAU,CAAA;AACvC,OAAO,KAAK,eAAe,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,iBAAiB,MAAM,gBAAgB,CAAA;AACnD,OAAO,KAAK,UAAU,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,YAAY,MAAM,WAAW,CAAA;AACzC,OAAO,KAAK,YAAY,MAAM,WAAW,CAAA;AACzC,OAAO,KAAK,cAAc,MAAM,a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K,gBAAgB,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,cAAc,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,WAAW,MAAM,UAAU,CAAA;AACvC,OAAO,KAAK,eAAe,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,iBAAiB,MAAM,gBAAgB,CAAA;AACnD,OAAO,KAAK,UAAU,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,YAAY,MAAM,WAAW,CAAA;AACzC,OAAO,KAAK,YAAY,MAAM,WAAW,CAAA;AACzC,OAAO,KAAK,cAAc,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,WAAW,MAAM,UAAU,CAAA;AACvC,OAAO,KAAK,iBAAiB,MAAM,iBAAiB,CAAA;AACpD,OAAO,KAAK,WAAW,MAAM,UAAU,CAAA;AACvC,OAAO,KAAK,aAAa,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,kBAAkB,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,UAAU,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,QAAQ,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,oBAAoB,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,KAAK,aAAa,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,iBAAiB,MAAM,iBAAiB,CAAA"}
package/dist/bundles.js CHANGED
@@ -33,10 +33,11 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.WorkflowsSdkTypes = exports.WorkflowTypes = exports.UserTypes = exports.TranslationTypes = exports.TransactionBaseTypes = exports.TaxTypes = exports.StoreTypes = exports.StockLocationTypes = exports.SettingsTypes = exports.SearchTypes = exports.SalesChannelTypes = exports.RegionTypes = exports.PromotionTypes = exports.ProductTypes = exports.PricingTypes = exports.OrderTypes = exports.NotificationTypes = exports.ModulesSdkTypes = exports.LoggerTypes = exports.InventoryTypes = exports.IndexTypes = exports.HttpTypes = exports.FulfillmentTypes = exports.FileTypes = exports.FeatureFlagTypes = exports.EventBusTypes = exports.DmlTypes = exports.DAL = exports.CustomerTypes = exports.CurrencyTypes = exports.CommonTypes = exports.CartTypes = exports.CachingTypes = exports.CacheTypes = exports.AuthTypes = exports.ApiKeyTypes = exports.AnalyticsTypes = exports.AdminTypes = void 0;
36
+ exports.WorkflowsSdkTypes = exports.WorkflowTypes = exports.UserTypes = exports.TranslationTypes = exports.TransactionBaseTypes = exports.TaxTypes = exports.StoreTypes = exports.StockLocationTypes = exports.SettingsTypes = exports.SearchTypes = exports.SalesChannelTypes = exports.RegionTypes = exports.PromotionTypes = exports.ProductTypes = exports.PricingTypes = exports.OrderTypes = exports.NotificationTypes = exports.ModulesSdkTypes = exports.LoggerTypes = exports.InventoryTypes = exports.IndexTypes = exports.HttpTypes = exports.FulfillmentTypes = exports.FileTypes = exports.FeatureFlagTypes = exports.EventBusTypes = exports.DmlTypes = exports.DAL = exports.CustomerTypes = exports.CurrencyTypes = exports.CommonTypes = exports.CartTypes = exports.CachingTypes = exports.CacheTypes = exports.AuthTypes = exports.AuditTypes = exports.ApiKeyTypes = exports.AnalyticsTypes = exports.AdminTypes = void 0;
37
37
  exports.AdminTypes = __importStar(require("./admin"));
38
38
  exports.AnalyticsTypes = __importStar(require("./analytics"));
39
39
  exports.ApiKeyTypes = __importStar(require("./api-key"));
40
+ exports.AuditTypes = __importStar(require("./audit"));
40
41
  exports.AuthTypes = __importStar(require("./auth"));
41
42
  exports.CacheTypes = __importStar(require("./cache"));
42
43
  exports.CachingTypes = __importStar(require("./caching"));
@@ -1 +1 @@
1
- {"version":3,"file":"bundles.js","sourceRoot":"","sources":["../src/bundles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,QAAY,UAAU,oCAAe;AACrC,QAAY,cAAc,wCAAmB;AAC7C,QAAY,WAAW,sCAAiB;AACxC,QAAY,SAAS,mCAAc;AACnC,QAAY,UAAU,oCAAe;AACrC,QAAY,YAAY,sCAAiB;AACzC,QAAY,SAAS,mCAAc;AACnC,QAAY,WAAW,qCAAgB;AACvC,QAAY,aAAa,uCAAkB;AAC3C,QAAY,aAAa,uCAAkB;AAC3C,QAAY,GAAG,kCAAa;AAC5B,QAAY,QAAQ,kCAAa;AACjC,QAAY,aAAa,wCAAmB;AAC5C,QAAY,gBAAgB,2CAAsB;AAClD,QAAY,SAAS,mCAAc;AACnC,QAAY,gBAAgB,0CAAqB;AACjD,QAAY,SAAS,mCAAc;AACnC,QAAY,UAAU,+CAA0B;AAChD,QAAY,cAAc,wCAAmB;AAC7C,QAAY,WAAW,qCAAgB;AACvC,QAAY,eAAe,0CAAqB;AAChD,QAAY,iBAAiB,2CAAsB;AACnD,QAAY,UAAU,oCAAe;AACrC,QAAY,YAAY,sCAAiB;AACzC,QAAY,YAAY,sCAAiB;AACzC,QAAY,cAAc,wCAAmB;AAC7C,QAAY,WAAW,qCAAgB;AACvC,QAAY,iBAAiB,4CAAuB;AACpD,QAAY,WAAW,qCAAgB;AACvC,QAAY,aAAa,uCAAkB;AAC3C,QAAY,kBAAkB,6CAAwB;AACtD,QAAY,UAAU,oCAAe;AACrC,QAAY,QAAQ,kCAAa;AACjC,QAAY,oBAAoB,+CAA0B;AAC1D,QAAY,gBAAgB,0CAAqB;AACjD,QAAY,SAAS,mCAAc;AACnC,QAAY,aAAa,uCAAkB;AAC3C,QAAY,iBAAiB,4CAAuB"}
1
+ {"version":3,"file":"bundles.js","sourceRoot":"","sources":["../src/bundles.ts"],"names":[],"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