@medusajs/types 2.7.1-snapshot-20250411173504 → 2.7.1-snapshot-20250414093455

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.
@@ -13,7 +13,7 @@ export interface AdminOptions {
13
13
  * in both development and production environments. The default value is `false`.
14
14
  *
15
15
  * @example
16
- * ```js title="medusa-config.js"
16
+ * ```js title="medusa-config.ts"
17
17
  * module.exports = defineConfig({
18
18
  * admin: {
19
19
  * disable: process.env.ADMIN_DISABLED === "true" ||
@@ -34,7 +34,7 @@ export interface AdminOptions {
34
34
  * - `/`
35
35
  *
36
36
  * @example
37
- * ```js title="medusa-config.js"
37
+ * ```ts title="medusa-config.ts"
38
38
  * module.exports = defineConfig({
39
39
  * admin: {
40
40
  * path: process.env.ADMIN_PATH || `/app`,
@@ -48,7 +48,7 @@ export interface AdminOptions {
48
48
  * The URL of your Medusa application. Defaults to the browser origin. This is useful to set when running the admin on a separate domain.
49
49
  *
50
50
  * @example
51
- * ```js title="medusa-config.js"
51
+ * ```js title="medusa-config.ts"
52
52
  * module.exports = defineConfig({
53
53
  * admin: {
54
54
  * backendUrl: process.env.MEDUSA_BACKEND_URL ||
@@ -64,7 +64,7 @@ export interface AdminOptions {
64
64
  * to provide to customers to complete any processes
65
65
  *
66
66
  * @example
67
- * ```js title="medusa-config.js"
67
+ * ```js title="medusa-config.ts"
68
68
  * module.exports = defineConfig({
69
69
  * admin: {
70
70
  * storefrontUrl: process.env.MEDUSA_STOREFRONT_URL ||
@@ -75,6 +75,11 @@ export interface AdminOptions {
75
75
  * ```
76
76
  */
77
77
  storefrontUrl?: string;
78
+ /**
79
+ * The directory where the admin build is output. This is where the build process places the generated files.
80
+ * The default value is `./build`.
81
+ */
82
+ outDir?: string;
78
83
  /**
79
84
  * Configure the Vite configuration for the admin dashboard. This function receives the default Vite configuration
80
85
  * and returns the modified configuration. The default value is `undefined`.
@@ -88,7 +93,7 @@ export interface AdminOptions {
88
93
  *
89
94
  * Options to pass to `express-session`.
90
95
  */
91
- type SessionOptions = {
96
+ export type SessionOptions = {
92
97
  /**
93
98
  * The name of the session ID cookie to set in the response (and read from in the request). The default value is `connect.sid`.
94
99
  * Refer to [express-session’s documentation](https://www.npmjs.com/package/express-session#name) for more details.
@@ -119,6 +124,33 @@ type SessionOptions = {
119
124
  * Refer to [express-session’s documentation](https://www.npmjs.com/package/express-session#cookiemaxage) for details.
120
125
  */
121
126
  ttl?: number;
127
+ /**
128
+ * Specify the options for storing session data to dynamoDB. Make
129
+ * sure to install the following dependencies and set the following
130
+ * variables too.
131
+ *
132
+ * - @aws-sdk/client-dynamodb@^3.218.0
133
+ * - connect-dynamodb@^3.0.5
134
+ *
135
+ * Environment variables to set
136
+ * - AWS_REGION=<value>
137
+ * - ENDPOINT=<value>
138
+ * - AWS_ACCESS_KEY_ID=<value>
139
+ * - AWS_SECRET_ACCESS_KEY=<value>
140
+ */
141
+ dynamodbOptions?: {
142
+ clientOptions?: {
143
+ endpoint?: string;
144
+ };
145
+ table?: string;
146
+ readCapacityUnits?: number;
147
+ writeCapacityUnits?: number;
148
+ specialKeys?: {
149
+ name: string;
150
+ type: string;
151
+ }[];
152
+ skipThrowMissingSpecialKeys?: boolean;
153
+ };
122
154
  };
123
155
  /**
124
156
  * @interface
@@ -159,7 +191,7 @@ export type ProjectConfigOptions = {
159
191
  * [PostgreSQL's documentation](https://www.postgresql.org/docs/current/sql-createdatabase.html).
160
192
  *
161
193
  * @example
162
- * ```js title="medusa-config.js"
194
+ * ```js title="medusa-config.ts"
163
195
  * module.exports = defineConfig({
164
196
  * projectConfig: {
165
197
  * databaseName: process.env.DATABASE_NAME ||
@@ -195,9 +227,9 @@ export type ProjectConfigOptions = {
195
227
  * DATABASE_URL=postgres://postgres@localhost/medusa-store
196
228
  * ```
197
229
  *
198
- * Then, use the value in `medusa-config.js`:
230
+ * Then, use the value in `medusa-config.ts`:
199
231
  *
200
- * ```js title="medusa-config.js"
232
+ * ```js title="medusa-config.ts"
201
233
  * module.exports = defineConfig({
202
234
  * projectConfig: {
203
235
  * databaseUrl: process.env.DATABASE_URL,
@@ -211,7 +243,7 @@ export type ProjectConfigOptions = {
211
243
  /**
212
244
  * The database schema to connect to. This is not required to provide if you’re using the default schema, which is `public`.
213
245
  *
214
- * ```js title="medusa-config.js"
246
+ * ```js title="medusa-config.ts"
215
247
  * module.exports = defineConfig({
216
248
  * projectConfig: {
217
249
  * databaseSchema: process.env.DATABASE_SCHEMA ||
@@ -227,7 +259,7 @@ export type ProjectConfigOptions = {
227
259
  * This configuration specifies whether database messages should be logged.
228
260
  *
229
261
  * @example
230
- * ```js title="medusa-config.js"
262
+ * ```js title="medusa-config.ts"
231
263
  * module.exports = defineConfig({
232
264
  * projectConfig: {
233
265
  * databaseLogging: false
@@ -252,7 +284,7 @@ export type ProjectConfigOptions = {
252
284
  * :::
253
285
  *
254
286
  * @example
255
- * ```js title="medusa-config.js"
287
+ * ```js title="medusa-config.ts"
256
288
  * module.exports = defineConfig({
257
289
  * projectConfig: {
258
290
  * databaseDriverOptions: process.env.NODE_ENV !== "development" ?
@@ -289,7 +321,7 @@ export type ProjectConfigOptions = {
289
321
  * For a local Redis installation, the connection URL should be `redis://localhost:6379` unless you’ve made any changes to the Redis configuration during installation.
290
322
  *
291
323
  * @example
292
- * ```js title="medusa-config.js"
324
+ * ```js title="medusa-config.ts"
293
325
  * module.exports = defineConfig({
294
326
  * projectConfig: {
295
327
  * redisUrl: process.env.REDIS_URL ||
@@ -307,7 +339,7 @@ export type ProjectConfigOptions = {
307
339
  * If this configuration option is provided, it is prepended to `sess:`.
308
340
  *
309
341
  * @example
310
- * ```js title="medusa-config.js"
342
+ * ```js title="medusa-config.ts"
311
343
  * module.exports = defineConfig({
312
344
  * projectConfig: {
313
345
  * redisPrefix: process.env.REDIS_URL || "medusa:",
@@ -323,7 +355,7 @@ export type ProjectConfigOptions = {
323
355
  * for the list of available options.
324
356
  *
325
357
  * @example
326
- * ```js title="medusa-config.js"
358
+ * ```js title="medusa-config.ts"
327
359
  * module.exports = defineConfig({
328
360
  * projectConfig: {
329
361
  * redisOptions: {
@@ -341,7 +373,7 @@ export type ProjectConfigOptions = {
341
373
  * This configuration defines additional options to pass to [express-session](https://www.npmjs.com/package/express-session), which is used to store the Medusa server's session.
342
374
  *
343
375
  * @example
344
- * ```js title="medusa-config.js"
376
+ * ```js title="medusa-config.ts"
345
377
  * module.exports = defineConfig({
346
378
  * projectConfig: {
347
379
  * sessionOptions: {
@@ -358,7 +390,7 @@ export type ProjectConfigOptions = {
358
390
  * Configure the number of staged jobs that are polled from the database. Default is `1000`.
359
391
  *
360
392
  * @example
361
- * ```js title="medusa-config.js"
393
+ * ```js title="medusa-config.ts"
362
394
  * module.exports = defineConfig({
363
395
  * projectConfig: {
364
396
  * jobsBatchSize: 100
@@ -395,7 +427,7 @@ export type ProjectConfigOptions = {
395
427
  * 2. Another having the `workerMode` configuration set to `worker`.
396
428
  *
397
429
  * @example
398
- * ```js title="medusa-config.js"
430
+ * ```js title="medusa-config.ts"
399
431
  * module.exports = defineConfig({
400
432
  * projectConfig: {
401
433
  * workerMode: process.env.WORKER_MODE || "shared"
@@ -410,7 +442,7 @@ export type ProjectConfigOptions = {
410
442
  * This property configures the application's http-specific settings.
411
443
  *
412
444
  * @example
413
- * ```js title="medusa-config.js"
445
+ * ```js title="medusa-config.ts"
414
446
  * module.exports = defineConfig({
415
447
  * projectConfig: {
416
448
  * http: {
@@ -433,7 +465,7 @@ export type ProjectConfigOptions = {
433
465
  * error is thrown and the application crashes.
434
466
  *
435
467
  * @example
436
- * ```js title="medusa-config.js"
468
+ * ```js title="medusa-config.ts"
437
469
  * module.exports = defineConfig({
438
470
  * projectConfig: {
439
471
  * http: {
@@ -452,7 +484,7 @@ export type ProjectConfigOptions = {
452
484
  * If not provided, the default value is `24h`.
453
485
  *
454
486
  * @example
455
- * ```js title="medusa-config.js"
487
+ * ```js title="medusa-config.ts"
456
488
  * module.exports = defineConfig({
457
489
  * projectConfig: {
458
490
  * http: {
@@ -472,7 +504,7 @@ export type ProjectConfigOptions = {
472
504
  * the application crashes.
473
505
  *
474
506
  * @example
475
- * ```js title="medusa-config.js"
507
+ * ```js title="medusa-config.ts"
476
508
  * module.exports = defineConfig({
477
509
  * projectConfig: {
478
510
  * http: {
@@ -509,9 +541,9 @@ export type ProjectConfigOptions = {
509
541
  * AUTH_CORS=/http:\/\/.+/
510
542
  * ```
511
543
  *
512
- * Then, set the configuration in `medusa-config.js`:
544
+ * Then, set the configuration in `medusa-config.ts`:
513
545
  *
514
- * ```js title="medusa-config.js"
546
+ * ```js title="medusa-config.ts"
515
547
  * module.exports = defineConfig({
516
548
  * projectConfig: {
517
549
  * http: {
@@ -523,9 +555,9 @@ export type ProjectConfigOptions = {
523
555
  * })
524
556
  * ```
525
557
  *
526
- * If you’re adding the value directly within `medusa-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
558
+ * If you’re adding the value directly within `medusa-config.ts`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
527
559
  *
528
- * ```js title="medusa-config.js"
560
+ * ```js title="medusa-config.ts"
529
561
  * module.exports = defineConfig({
530
562
  * projectConfig: {
531
563
  * http: {
@@ -547,7 +579,7 @@ export type ProjectConfigOptions = {
547
579
  * Learn more in the [API Reference](https://docs.medusajs.com/api/store#http-compression).
548
580
  *
549
581
  * @example
550
- * ```js title="medusa-config.js"
582
+ * ```js title="medusa-config.ts"
551
583
  * module.exports = defineConfig({
552
584
  * projectConfig: {
553
585
  * http: {
@@ -589,9 +621,9 @@ export type ProjectConfigOptions = {
589
621
  * STORE_CORS=/http:\/\/.+/
590
622
  * ```
591
623
  *
592
- * Then, set the configuration in `medusa-config.js`:
624
+ * Then, set the configuration in `medusa-config.ts`:
593
625
  *
594
- * ```js title="medusa-config.js"
626
+ * ```js title="medusa-config.ts"
595
627
  * module.exports = defineConfig({
596
628
  * projectConfig: {
597
629
  * http: {
@@ -603,9 +635,9 @@ export type ProjectConfigOptions = {
603
635
  * })
604
636
  * ```
605
637
  *
606
- * If you’re adding the value directly within `medusa-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
638
+ * If you’re adding the value directly within `medusa-config.ts`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
607
639
  *
608
- * ```js title="medusa-config.js"
640
+ * ```js title="medusa-config.ts"
609
641
  * module.exports = defineConfig({
610
642
  * projectConfig: {
611
643
  * http: {
@@ -642,9 +674,9 @@ export type ProjectConfigOptions = {
642
674
  * ADMIN_CORS=/http:\/\/.+/
643
675
  * ```
644
676
  *
645
- * Then, set the configuration in `medusa-config.js`:
677
+ * Then, set the configuration in `medusa-config.ts`:
646
678
  *
647
- * ```js title="medusa-config.js"
679
+ * ```js title="medusa-config.ts"
648
680
  * module.exports = defineConfig({
649
681
  * projectConfig: {
650
682
  * http: {
@@ -656,9 +688,9 @@ export type ProjectConfigOptions = {
656
688
  * })
657
689
  * ```
658
690
  *
659
- * If you’re adding the value directly within `medusa-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
691
+ * If you’re adding the value directly within `medusa-config.ts`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
660
692
  *
661
- * ```js title="medusa-config.js"
693
+ * ```js title="medusa-config.ts"
662
694
  * module.exports = defineConfig({
663
695
  * projectConfig: {
664
696
  * http: {
@@ -680,9 +712,9 @@ export type ProjectConfigOptions = {
680
712
  * @example
681
713
  * Some example values of common use cases:
682
714
  *
683
- * Then, set the configuration in `medusa-config.js`:
715
+ * Then, set the configuration in `medusa-config.ts`:
684
716
  *
685
- * ```js title="medusa-config.js"
717
+ * ```js title="medusa-config.ts"
686
718
  * module.exports = defineConfig({
687
719
  * projectConfig: {
688
720
  * http: {
@@ -704,7 +736,7 @@ export type ProjectConfigOptions = {
704
736
  *
705
737
  * @example
706
738
  *
707
- * ```js title="medusa-config.js"
739
+ * ```js title="medusa-config.ts"
708
740
  * module.exports = defineConfig({
709
741
  * projectConfig: {
710
742
  * http: {
@@ -722,20 +754,27 @@ export type ProjectConfigOptions = {
722
754
  /**
723
755
  * @interface
724
756
  *
725
- * The configurations for your Medusa application are in `medusa-config.js` located in the root of your Medusa project. The configurations include configurations for database, modules, and more.
757
+ * The configurations for your Medusa application are set in `medusa-config.ts` located in the root of your Medusa project. The configurations include configurations for database, modules, and more.
758
+ *
759
+ * :::note
760
+ *
761
+ * Some Medusa configurations are set through environment variables, which you can find in [this documentation](https://docs.medusajs.com/learn/fundamentals/environment-variables#predefined-medusa-environment-variables).
762
+ *
763
+ * :::
726
764
  *
727
- * `medusa-config.js` exports the value returned by the `defineConfig` utility function imported from `@medusajs/utils`.
765
+ * `medusa-config.ts` exports the value returned by the `defineConfig` utility function imported from `@medusajs/framework/utils`.
728
766
  *
729
767
  * `defineConfig` accepts as a parameter an object with the following properties:
730
768
  *
731
769
  * - {@link ConfigModule.projectConfig | projectConfig} (required): An object that holds general configurations related to the Medusa application, such as database or CORS configurations.
770
+ * - {@link ConfigModule.plugins | plugins}: An array of strings or objects that hold the configurations of the plugins installed in the Medusa application.
732
771
  * - {@link ConfigModule.admin | admin}: An object that holds admin-related configurations.
733
772
  * - {@link ConfigModule.modules | modules}: An object that configures the Medusa application's modules.
734
773
  * - {@link ConfigModule.featureFlags | featureFlags}: An object that enables or disables features guarded by a feature flag.
735
774
  *
736
775
  * For example:
737
776
  *
738
- * ```js title="medusa-config.js"
777
+ * ```ts title="medusa-config.ts"
739
778
  * module.exports = defineConfig({
740
779
  * projectConfig: {
741
780
  * // ...
@@ -756,7 +795,7 @@ export type ProjectConfigOptions = {
756
795
  *
757
796
  * ## Environment Variables
758
797
  *
759
- * It's highly recommended to store the values of configurations in environment variables, then reference them within `medusa-config.js`.
798
+ * It's highly recommended to store the values of configurations in environment variables, then reference them within `medusa-config.ts`.
760
799
  *
761
800
  * During development, you can set your environment variables in the `.env` file at the root of your Medusa application project. In production,
762
801
  * setting the environment variables depends on the hosting provider.
@@ -772,7 +811,7 @@ export type ConfigModule = {
772
811
  * This property holds configurations for the Medusa Admin dashboard.
773
812
  *
774
813
  * @example
775
- * ```js title="medusa-config.js"
814
+ * ```ts title="medusa-config.ts"
776
815
  * module.exports = defineConfig({
777
816
  * admin: {
778
817
  * backendUrl: process.env.MEDUSA_BACKEND_URL ||
@@ -784,20 +823,22 @@ export type ConfigModule = {
784
823
  */
785
824
  admin: AdminOptions;
786
825
  /**
787
- * On your Medusa backend, you can use [Plugins](https://docs.medusajs.com/development/plugins/overview) to add custom features or integrate third-party services.
788
- * For example, installing a plugin to use Stripe as a payment processor.
826
+ * On your Medusa server, you can use [Plugins](https://docs.medusajs.com/learn/fundamentals/plugins) to add re-usable Medusa customizations. Plugins
827
+ * can include modules, workflows, API Routes, and other customizations. Plugins are available starting from [Medusa v2.3.0](https://github.com/medusajs/medusa/releases/tag/v2.3.0).
789
828
  *
790
- * Aside from installing the plugin with NPM, you need to pass the plugin you installed into the `plugins` array defined in `medusa-config.js`.
829
+ * Aside from installing the plugin with NPM, you need to pass the plugin you installed into the `plugins` array defined in `medusa-config.ts`.
791
830
  *
792
831
  * The items in the array can either be:
793
832
  *
794
- * - A string, which is the name of the plugin to add. You can pass a plugin as a string if it doesn’t require any configurations.
833
+ * - A string, which is the name of the plugin's package as specified in the plugin's `package.json` file. You can pass a plugin as a string if it doesn’t require any options.
795
834
  * - An object having the following properties:
796
- * - `resolve`: The name of the plugin.
797
- * - `options`: An object that includes the plugin’s options. These options vary for each plugin, and you should refer to the plugin’s documentation for available options.
835
+ * - `resolve`: The name of the plugin's package as specified in the plugin's `package.json` file.
836
+ * - `options`: An object that includes options to be passed to the modules within the plugin. Learn more in [this documentation](https://docs.medusajs.com/learn/fundamentals/modules/options).
837
+ *
838
+ * Learn how to create a plugin in [this documentation](https://docs.medusajs.com/learn/fundamentals/plugins/create).
798
839
  *
799
840
  * @example
800
- * ```js title="medusa-config.js"
841
+ * ```ts title="medusa-config.ts"
801
842
  * module.exports = {
802
843
  * plugins: [
803
844
  * `medusa-my-plugin-1`,
@@ -813,14 +854,16 @@ export type ConfigModule = {
813
854
  * // ...
814
855
  * }
815
856
  * ```
816
- *
817
- * @ignore
818
- *
819
- * @privateRemarks
820
- * Added the `@\ignore` tag for now so it's not generated in the main docs until we figure out what to do with plugins
821
857
  */
822
858
  plugins: ({
859
+ /**
860
+ * The name of the plugin's package as specified in the plugin's `package.json` file.
861
+ */
823
862
  resolve: string;
863
+ /**
864
+ * An object that includes options to be passed to the modules within the plugin.
865
+ * Learn more in [this documentation](https://docs.medusajs.com/learn/fundamentals/modules/options).
866
+ */
824
867
  options: Record<string, unknown>;
825
868
  } | string)[];
826
869
  /**
@@ -833,21 +876,19 @@ export type ConfigModule = {
833
876
  *
834
877
  * :::
835
878
  *
836
- * The keys of the `modules` configuration object refer to the module's registration name. Its value can be one of the following:
879
+ * `modules` is an array of objects, each holding a module's registration configurations. Each object has the following properties:
837
880
  *
838
- * 1. A boolean value indicating whether the module type is enabled. This is only supported for Medusa's commerce and architectural modules;
839
- * 2. Or an object having the following properties:
840
- * 1. `resolve`: a string indicating the path to the module relative to `src`, or the module's NPM package name. For example, `./modules/my-module`.
841
- * 2. `options`: (optional) an object indicating the options to pass to the module.
881
+ * 1. `resolve`: a string indicating the path to the module relative to `src`, or the module's NPM package name. For example, `./modules/my-module`.
882
+ * 2. `options`: (optional) an object indicating the options to pass to the module.
842
883
  *
843
884
  * @example
844
- * ```js title="medusa-config.js"
885
+ * ```ts title="medusa-config.ts"
845
886
  * module.exports = defineConfig({
846
- * modules: {
847
- * helloModuleService: {
887
+ * modules: [
888
+ * {
848
889
  * resolve: "./modules/hello"
849
890
  * }
850
- * }
891
+ * ]
851
892
  * // ...
852
893
  * })
853
894
  * ```
@@ -857,14 +898,14 @@ export type ConfigModule = {
857
898
  * Some features in the Medusa application are guarded by a feature flag. This ensures constant shipping of new features while maintaining the engine’s stability.
858
899
  *
859
900
  * You can enable a feature in your application by enabling its feature flag. Feature flags are enabled through either environment
860
- * variables or through this configuration property exported in `medusa-config.js`.
901
+ * variables or through this configuration property exported in `medusa-config.ts`.
861
902
  *
862
903
  * The `featureFlags`'s value is an object. Its properties are the names of the feature flags, and their value is a boolean indicating whether the feature flag is enabled.
863
904
  *
864
905
  * You can find available feature flags and their key name [here](https://github.com/medusajs/medusa/tree/develop/packages/medusa/src/loaders/feature-flags).
865
906
  *
866
907
  * @example
867
- * ```js title="medusa-config.js"
908
+ * ```ts title="medusa-config.ts"
868
909
  * module.exports = defineConfig({
869
910
  * featureFlags: {
870
911
  * analytics: true,
@@ -910,7 +951,7 @@ export type InputConfigModules = Partial<InternalModuleDeclarationOverride | Ext
910
951
  * The configuration accepted by the "defineConfig" helper
911
952
  */
912
953
  export type InputConfig = Partial<Omit<ConfigModule, "admin" | "modules"> & {
913
- admin: Partial<ConfigModule["admin"]>;
954
+ admin?: Partial<ConfigModule["admin"]>;
914
955
  modules: InputConfigModules
915
956
  /**
916
957
  * @deprecated use the array instead
@@ -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,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,EAAE,IAAI,MAAM,EAAE,CAAA;IAClB;;;;;;;;;;;;;OAaG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;;;;;;;;;;OAcG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,C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+ import { ApplicationMethodTypeValues } from "../../../promotion";
2
3
  import { FindParams, SelectParams } from "../../common";
3
4
  export interface AdminGetPromotionParams extends SelectParams {
4
5
  }
@@ -43,7 +44,7 @@ export interface AdminGetPromotionsParams extends FindParams, BaseFilterable<Adm
43
44
  /**
44
45
  * Filter by the promotion's application method type.
45
46
  */
46
- application_method_type?: string | string[];
47
+ application_method_type?: ApplicationMethodTypeValues | ApplicationMethodTypeValues[];
47
48
  /**
48
49
  * An array of filters to apply on the entity, where each item in the array is joined with an "and" condition.
49
50
  */
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/promotion/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEvD,MAAM,WAAW,uBAAwB,SAAQ,YAAY;CAAG;AAEhE,MAAM,WAAW,wBACf,SAAQ,UAAU,EAChB,cAAc,CAAC,wBAAwB,CAAC;IAC1C;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAC9C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B;;OAEG;IACH,kBAAkB,CAAC,EAAE;QACnB;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAClC,CAAA;IACD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC;;OAEG;IACH,UAAU,CAAC,E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AAE;QACnB;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAClC,CAAA;IACD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC;;OAEG;IACH,uBAAuB,CAAC,EAAE,2BAA2B,GAAG,2BAA2B,EAAE,CAAA;IACrF;;OAEG;IACH,IAAI,CAAC,EAAE,wBAAwB,EAAE,CAAA;IACjC;;OAEG;IACH,GAAG,CAAC,EAAE,wBAAwB,EAAE,CAAA;CACjC;AAED,MAAM,WAAW,2BAA2B;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,uBAAuB,CAAC,EAAE,MAAM,CAAA;CACjC;AAED,MAAM,WAAW,+BAAgC,SAAQ,YAAY;IACnE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,uBAAuB,CAAC,EAAE,MAAM,CAAA;CACjC;AAED,MAAM,WAAW,iCAAkC,SAAQ,UAAU;IACnE;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAC1B"}
@@ -5,7 +5,7 @@ import { Context } from "../shared-context";
5
5
  export interface ILinkModule extends IModuleService {
6
6
  list(filters?: Record<string, unknown>, config?: FindConfig<unknown>, sharedContext?: Context): Promise<unknown[]>;
7
7
  listAndCount(filters?: Record<string, unknown>, config?: FindConfig<unknown>, sharedContext?: Context): Promise<[unknown[], number]>;
8
- create(primaryKeyOrBulkData: string | string[] | [string | string[], string, Record<string, unknown>?][], foreignKeyData?: string, extraFields?: Record<string, unknown>, sharedContext?: Context): Promise<unknown[]>;
8
+ create(primaryKeyOrBulkData: string | string[] | [string | string[], string, Record<string, unknown>?][], foreignKeyData?: string, sharedContext?: Context): Promise<unknown[]>;
9
9
  dismiss(primaryKeyOrBulkData: string | string[] | [string | string[], string][], foreignKeyData?: string, sharedContext?: Context): Promise<unknown[]>;
10
10
  delete(data: unknown | unknown[], sharedContext?: Context): Promise<void>;
11
11
  softDelete(data: unknown | unknown[], config?: SoftDeleteReturn, sharedContext?: Context): Promise<Record<string, unknown[]> | void>;
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/link-modules/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAE3C,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,IAAI,CACF,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,EAC5B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;IAErB,YAAY,CACV,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,EAC5B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,CAAC,CAAA;IAE/B,MAAM,CACJ,oBAAoB,EAChB,MAAM,GACN,MAAM,EAAE,GACR,CAAC,MAAM,GAAG,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAC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,IAAI,EAAE,OAAO,GAAG,OAAO,EAAE,EACzB,MAAM,CAAC,EAAE,aAAa,EACtB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;CAC7C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/types",
3
- "version": "2.7.1-snapshot-20250411173504",
3
+ "version": "2.7.1-snapshot-20250414093455",
4
4
  "description": "Medusa Types definition",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",