@medusajs/types 1.12.0-snapshot-20240530075042 → 1.12.0-snapshot-20240531090655

Sign up to get free protection for your applications and to get access to all the features.
@@ -117,14 +117,14 @@ export type ProjectConfigOptions = {
117
117
  *
118
118
  * @example
119
119
  * ```js title="medusa-config.js"
120
- * module.exports = {
120
+ * module.exports = defineConfig({
121
121
  * projectConfig: {
122
- * databaseName: process.env.DATABASE_DATABASE ||
122
+ * databaseName: process.env.DATABASE_NAME ||
123
123
  * "medusa-store",
124
124
  * // ...
125
125
  * },
126
126
  * // ...
127
- * }
127
+ * })
128
128
  * ```
129
129
  */
130
130
  databaseName?: string;
@@ -155,13 +155,13 @@ export type ProjectConfigOptions = {
155
155
  * Then, use the value in `medusa-config.js`:
156
156
  *
157
157
  * ```js title="medusa-config.js"
158
- * module.exports = {
158
+ * module.exports = defineConfig({
159
159
  * projectConfig: {
160
160
  * databaseUrl: process.env.DATABASE_URL,
161
161
  * // ...
162
162
  * },
163
163
  * // ...
164
- * }
164
+ * })
165
165
  * ```
166
166
  */
167
167
  databaseUrl?: string;
@@ -169,14 +169,14 @@ export type ProjectConfigOptions = {
169
169
  * The database schema to connect to. This is not required to provide if you’re using the default schema, which is `public`.
170
170
  *
171
171
  * ```js title="medusa-config.js"
172
- * module.exports = {
172
+ * module.exports = defineConfig({
173
173
  * projectConfig: {
174
174
  * databaseSchema: process.env.DATABASE_SCHEMA ||
175
175
  * "custom",
176
176
  * // ...
177
177
  * },
178
178
  * // ...
179
- * }
179
+ * })
180
180
  * ```
181
181
  */
182
182
  databaseSchema?: string;
@@ -191,15 +191,13 @@ export type ProjectConfigOptions = {
191
191
  *
192
192
  * @example
193
193
  * ```js title="medusa-config.js"
194
- * module.exports = {
194
+ * module.exports = defineConfig({
195
195
  * projectConfig: {
196
- * databaseLogging: [
197
- * "query", "error",
198
- * ],
196
+ * databaseLogging: ["query", "error"]
199
197
  * // ...
200
198
  * },
201
199
  * // ...
202
- * }
200
+ * })
203
201
  * ```
204
202
  */
205
203
  databaseLogging?: LoggerOptions;
@@ -220,16 +218,14 @@ export type ProjectConfigOptions = {
220
218
  *
221
219
  * @example
222
220
  * ```js title="medusa-config.js"
223
- * module.exports = {
221
+ * module.exports = defineConfig({
224
222
  * projectConfig: {
225
- * databaseExtra:
226
- * process.env.NODE_ENV !== "development"
227
- * ? { ssl: { rejectUnauthorized: false } }
228
- * : {},
223
+ * databaseExtra: process.env.NODE_ENV !== "development" ?
224
+ * { ssl: { rejectUnauthorized: false } } : {}
229
225
  * // ...
230
226
  * },
231
227
  * // ...
232
- * }
228
+ * })
233
229
  * ```
234
230
  */
235
231
  databaseExtra?: Record<string, unknown> & {
@@ -252,16 +248,14 @@ export type ProjectConfigOptions = {
252
248
  *
253
249
  * @example
254
250
  * ```js title="medusa-config.js"
255
- * module.exports = {
251
+ * module.exports = defineConfig({
256
252
  * projectConfig: {
257
- * databaseDriverOptions:
258
- * process.env.NODE_ENV !== "development"
259
- * ? { connection: { ssl: { rejectUnauthorized: false } } }
260
- * : {},
253
+ * databaseDriverOptions: process.env.NODE_ENV !== "development" ?
254
+ * { ssl: { rejectUnauthorized: false } } : {}
261
255
  * // ...
262
256
  * },
263
257
  * // ...
264
- * }
258
+ * })
265
259
  * ```
266
260
  */
267
261
  databaseDriverOptions?: Record<string, unknown> & {
@@ -296,14 +290,14 @@ export type ProjectConfigOptions = {
296
290
  *
297
291
  * @example
298
292
  * ```js title="medusa-config.js"
299
- * module.exports = {
293
+ * module.exports = defineConfig({
300
294
  * projectConfig: {
301
295
  * redisUrl: process.env.REDIS_URL ||
302
296
  * "redis://localhost:6379",
303
297
  * // ...
304
298
  * },
305
299
  * // ...
306
- * }
300
+ * })
307
301
  * ```
308
302
  */
309
303
  redisUrl?: string;
@@ -314,14 +308,13 @@ export type ProjectConfigOptions = {
314
308
  *
315
309
  * @example
316
310
  * ```js title="medusa-config.js"
317
- * module.exports = {
311
+ * module.exports = defineConfig({
318
312
  * projectConfig: {
319
- * redisPrefix: process.env.REDIS_PREFIX ||
320
- * "medusa:",
313
+ * redisPrefix: process.env.REDIS_URL || "medusa:",
321
314
  * // ...
322
315
  * },
323
316
  * // ...
324
- * }
317
+ * })
325
318
  * ```
326
319
  */
327
320
  redisPrefix?: string;
@@ -331,16 +324,16 @@ export type ProjectConfigOptions = {
331
324
  *
332
325
  * @example
333
326
  * ```js title="medusa-config.js"
334
- * module.exports = {
327
+ * module.exports = defineConfig({
335
328
  * projectConfig: {
336
329
  * redisOptions: {
337
330
  * connectionName: process.env.REDIS_CONNECTION_NAME ||
338
331
  * "medusa",
339
- * },
332
+ * }
340
333
  * // ...
341
334
  * },
342
335
  * // ...
343
- * }
336
+ * })
344
337
  * ```
345
338
  */
346
339
  redisOptions?: RedisOptions;
@@ -349,16 +342,15 @@ export type ProjectConfigOptions = {
349
342
  *
350
343
  * @example
351
344
  * ```js title="medusa-config.js"
352
- * module.exports = {
345
+ * module.exports = defineConfig({
353
346
  * projectConfig: {
354
347
  * sessionOptions: {
355
- * name: process.env.SESSION_NAME ||
356
- * "custom",
357
- * },
348
+ * name: process.env.SESSION_NAME || "custom",
349
+ * }
358
350
  * // ...
359
351
  * },
360
352
  * // ...
361
- * }
353
+ * })
362
354
  * ```
363
355
  */
364
356
  sessionOptions?: SessionOptions;
@@ -368,21 +360,7 @@ export type ProjectConfigOptions = {
368
360
  *
369
361
  * If you enable HTTP compression and you want to disable it for specific API Routes, you can pass in the request header `"x-no-compression": true`.
370
362
  *
371
- * @example
372
- * ```js title="medusa-config.js"
373
- * module.exports = {
374
- * projectConfig: {
375
- * httpCompression: {
376
- * enabled: true,
377
- * level: 6,
378
- * memLevel: 8,
379
- * threshold: 1024,
380
- * },
381
- * // ...
382
- * },
383
- * // ...
384
- * }
385
- * ```
363
+ * @ignore
386
364
  *
387
365
  * @deprecated use {@link http }'s `compression` property instead.
388
366
  *
@@ -393,13 +371,13 @@ export type ProjectConfigOptions = {
393
371
  *
394
372
  * @example
395
373
  * ```js title="medusa-config.js"
396
- * module.exports = {
374
+ * module.exports = defineConfig({
397
375
  * projectConfig: {
398
376
  * jobsBatchSize: 100
399
377
  * // ...
400
378
  * },
401
379
  * // ...
402
- * }
380
+ * })
403
381
  * ```
404
382
  */
405
383
  jobsBatchSize?: number;
@@ -414,13 +392,13 @@ export type ProjectConfigOptions = {
414
392
  *
415
393
  * @example
416
394
  * ```js title="medusa-config.js"
417
- * module.exports = {
395
+ * module.exports = defineConfig({
418
396
  * projectConfig: {
419
397
  * workerMode: "shared"
420
398
  * // ...
421
399
  * },
422
400
  * // ...
423
- * }
401
+ * })
424
402
  * ```
425
403
  */
426
404
  workerMode?: "shared" | "worker" | "server";
@@ -429,16 +407,18 @@ export type ProjectConfigOptions = {
429
407
  *
430
408
  * @example
431
409
  * ```js title="medusa-config.js"
432
- * module.exports = {
410
+ * module.exports = defineConfig({
433
411
  * projectConfig: {
434
412
  * http: {
435
- * cookieSecret: "some-super-secret",
436
- * compression: { ... },
413
+ * cookieSecret: "supersecret",
414
+ * compression: {
415
+ * // ...
416
+ * }
437
417
  * }
438
418
  * // ...
439
419
  * },
440
420
  * // ...
441
- * }
421
+ * })
442
422
  * ```
443
423
  */
444
424
  http: {
@@ -450,14 +430,15 @@ export type ProjectConfigOptions = {
450
430
  *
451
431
  * @example
452
432
  * ```js title="medusa-config.js"
453
- * module.exports = {
433
+ * module.exports = defineConfig({
454
434
  * projectConfig: {
455
435
  * http: {
456
- * cookieSecret: "supersecret"
436
+ * jwtSecret: "supersecret",
457
437
  * }
438
+ * // ...
458
439
  * },
459
440
  * // ...
460
- * }
441
+ * })
461
442
  * ```
462
443
  */
463
444
  jwtSecret?: string;
@@ -466,14 +447,15 @@ export type ProjectConfigOptions = {
466
447
  *
467
448
  * @example
468
449
  * ```js title="medusa-config.js"
469
- * module.exports = {
450
+ * module.exports = defineConfig({
470
451
  * projectConfig: {
471
452
  * http: {
472
453
  * jwtExpiresIn: "2d"
473
454
  * }
455
+ * // ...
474
456
  * },
475
457
  * // ...
476
- * }
458
+ * })
477
459
  * ```
478
460
  */
479
461
  jwtExpiresIn?: string;
@@ -485,15 +467,15 @@ export type ProjectConfigOptions = {
485
467
  *
486
468
  * @example
487
469
  * ```js title="medusa-config.js"
488
- * module.exports = {
470
+ * module.exports = defineConfig({
489
471
  * projectConfig: {
490
472
  * http: {
491
- * cookieSecret: "supersecret"
473
+ * cookieSecret: "supersecret"
492
474
  * }
493
475
  * // ...
494
476
  * },
495
477
  * // ...
496
- * }
478
+ * })
497
479
  * ```
498
480
  */
499
481
  cookieSecret?: string;
@@ -524,7 +506,7 @@ export type ProjectConfigOptions = {
524
506
  * Then, set the configuration in `medusa-config.js`:
525
507
  *
526
508
  * ```js title="medusa-config.js"
527
- * module.exports = {
509
+ * module.exports = defineConfig({
528
510
  * projectConfig: {
529
511
  * http: {
530
512
  * authCors: process.env.AUTH_CORS
@@ -532,13 +514,13 @@ export type ProjectConfigOptions = {
532
514
  * // ...
533
515
  * },
534
516
  * // ...
535
- * }
517
+ * })
536
518
  * ```
537
519
  *
538
520
  * 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:
539
521
  *
540
522
  * ```js title="medusa-config.js"
541
- * module.exports = {
523
+ * module.exports = defineConfig({
542
524
  * projectConfig: {
543
525
  * http: {
544
526
  * authCors: "/http:\\/\\/localhost:700\\d+$/",
@@ -546,7 +528,7 @@ export type ProjectConfigOptions = {
546
528
  * // ...
547
529
  * },
548
530
  * // ...
549
- * }
531
+ * })
550
532
  * ```
551
533
  */
552
534
  authCors: string;
@@ -561,20 +543,20 @@ export type ProjectConfigOptions = {
561
543
  *
562
544
  * @example
563
545
  * ```js title="medusa-config.js"
564
- * module.exports = {
546
+ * module.exports = defineConfig({
565
547
  * projectConfig: {
566
548
  * http: {
567
549
  * compression: {
568
550
  * enabled: true,
569
551
  * level: 6,
570
552
  * memLevel: 8,
571
- * threshold: 1024,
553
+ * threshold: 1024
572
554
  * }
573
- * },
555
+ * }
574
556
  * // ...
575
557
  * },
576
558
  * // ...
577
- * }
559
+ * })
578
560
  * ```
579
561
  */
580
562
  compression?: HttpCompressionOptions;
@@ -605,7 +587,7 @@ export type ProjectConfigOptions = {
605
587
  * Then, set the configuration in `medusa-config.js`:
606
588
  *
607
589
  * ```js title="medusa-config.js"
608
- * module.exports = {
590
+ * module.exports = defineConfig({
609
591
  * projectConfig: {
610
592
  * http: {
611
593
  * storeCors: process.env.STORE_CORS,
@@ -613,13 +595,13 @@ export type ProjectConfigOptions = {
613
595
  * // ...
614
596
  * },
615
597
  * // ...
616
- * }
598
+ * })
617
599
  * ```
618
600
  *
619
601
  * 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:
620
602
  *
621
603
  * ```js title="medusa-config.js"
622
- * module.exports = {
604
+ * module.exports = defineConfig({
623
605
  * projectConfig: {
624
606
  * http: {
625
607
  * storeCors: "/vercel\\.app$/",
@@ -627,7 +609,7 @@ export type ProjectConfigOptions = {
627
609
  * // ...
628
610
  * },
629
611
  * // ...
630
- * }
612
+ * })
631
613
  * ```
632
614
  */
633
615
  storeCors: string;
@@ -658,7 +640,7 @@ export type ProjectConfigOptions = {
658
640
  * Then, set the configuration in `medusa-config.js`:
659
641
  *
660
642
  * ```js title="medusa-config.js"
661
- * module.exports = {
643
+ * module.exports = defineConfig({
662
644
  * projectConfig: {
663
645
  * http: {
664
646
  * adminCors: process.env.ADMIN_CORS,
@@ -666,21 +648,21 @@ export type ProjectConfigOptions = {
666
648
  * // ...
667
649
  * },
668
650
  * // ...
669
- * }
651
+ * })
670
652
  * ```
671
653
  *
672
654
  * 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:
673
655
  *
674
656
  * ```js title="medusa-config.js"
675
- * module.exports = {
657
+ * module.exports = defineConfig({
676
658
  * projectConfig: {
677
659
  * http: {
678
- * adminCors: process.env.ADMIN_CORS,
660
+ * adminCors: "/vercel\\.app$/",
679
661
  * }
680
662
  * // ...
681
663
  * },
682
664
  * // ...
683
- * }
665
+ * })
684
666
  * ```
685
667
  */
686
668
  adminCors: string;
@@ -697,18 +679,18 @@ export type ProjectConfigOptions = {
697
679
  * Then, set the configuration in `medusa-config.js`:
698
680
  *
699
681
  * ```js title="medusa-config.js"
700
- * module.exports = {
682
+ * module.exports = defineConfig({
701
683
  * projectConfig: {
702
684
  * http: {
703
685
  * authMethodsPerActor: {
704
- * user: ['sso'],
705
- * customer: ["emailpass", "google"]
706
- * },
707
- * },
686
+ * user: ["email"],
687
+ * customer: ["emailpas", "google"]
688
+ * }
689
+ * }
708
690
  * // ...
709
691
  * },
710
692
  * // ...
711
- * }
693
+ * })
712
694
  * ```
713
695
  */
714
696
  authMethodsPerActor?: Record<string, string[]>;
@@ -730,12 +712,20 @@ export type ProjectConfigOptions = {
730
712
  * For example:
731
713
  *
732
714
  * ```js title="medusa-config.js"
733
- * module.exports = {
734
- * projectConfig,
735
- * admin,
736
- * modules,
737
- * featureFlags,
738
- * }
715
+ * module.exports = defineConfig({
716
+ * projectConfig: {
717
+ * // ...
718
+ * },
719
+ * admin: {
720
+ * // ...
721
+ * },
722
+ * modules: {
723
+ * // ...
724
+ * },
725
+ * featureFlags: {
726
+ * // ...
727
+ * }
728
+ * })
739
729
  * ```
740
730
  *
741
731
  * ---
@@ -759,12 +749,13 @@ export type ConfigModule = {
759
749
  *
760
750
  * @example
761
751
  * ```js title="medusa-config.js"
762
- * module.exports = {
752
+ * module.exports = defineConfig({
763
753
  * admin: {
764
- * backendUrl: process.env.MEDUSA_BACKEND_URL || "http://localhost:9000"
765
- * }
754
+ * backendUrl: process.env.MEDUSA_BACKEND_URL ||
755
+ * "http://localhost:9000"
756
+ * },
766
757
  * // ...
767
- * }
758
+ * })
768
759
  * ```
769
760
  */
770
761
  admin?: AdminOptions;
@@ -798,6 +789,11 @@ export type ConfigModule = {
798
789
  * // ...
799
790
  * }
800
791
  * ```
792
+ *
793
+ * @ignore
794
+ *
795
+ * @privateRemarks
796
+ * Added the `@\ignore` tag for now so it's not generated in the main docs until we figure out what to do with plugins
801
797
  */
802
798
  plugins: ({
803
799
  resolve: string;
@@ -809,35 +805,24 @@ export type ConfigModule = {
809
805
  *
810
806
  * Aside from installing the module with NPM, you must add it to the exported object in `medusa-config.js`.
811
807
  *
812
- * The keys of the `modules` configuration object refer to the type of module. Its value can be one of the following:
808
+ * The keys of the `modules` configuration object refer to the module's registration name. Its value can be one of the following:
813
809
  *
814
- * 1. A boolean value indicating whether the module type is enabled;
815
- * 2. Or a string value indicating the name of the module to be used for the module type. This can be used if the module does not require any options;
816
- * 3. Or an object having the following properties, but typically you would mainly use the `resolve` and `options` properties only:
817
- * 1. `resolve`: a string indicating the name of the module.
818
- * 2. `options`: an object indicating the options to pass to the module. These options vary for each module, and you should refer to the module’s documentation for details on them.
819
- * 3. `resources`: a string indicating whether the module shares the dependency container with the Medusa core. Its value can either be `shared` or `isolated`. Refer to the [Modules documentation](https://docs.medusajs.com/development/modules/create#module-scope) for more details.
820
- * 4. `alias`: a string indicating a unique alias to register the module under. Other modules can’t use the same alias.
821
- * 5. `main`: a boolean value indicating whether this module is the main registered module. This is useful when an alias is used.
810
+ * 1. A boolean value indicating whether the module type is enabled. This is only supported for Medusa's commerce and architectural modules;
811
+ * 2. Or an object having the following properties:
812
+ * 1. `resolve`: a string indicating the path to the module relative to `src`, or the module's NPM package name.
813
+ * 2. `options`: (optional) an object indicating the options to pass to the module.
814
+ * 3. `definition`: (optional) an object of extra configurations, such as `isQueryable` used when a module has relationships.
822
815
  *
823
816
  * @example
824
817
  * ```js title="medusa-config.js"
825
- * module.exports = {
818
+ * module.exports = defineConfig({
826
819
  * modules: {
827
- * eventBus: {
828
- * resolve: "@medusajs/event-bus-local",
829
- * },
830
- * cacheService: {
831
- * resolve: "@medusajs/cache-redis",
832
- * options: {
833
- * redisUrl: process.env.CACHE_REDIS_URL,
834
- * ttl: 30,
835
- * },
836
- * },
837
- * // ...
838
- * },
820
+ * helloModuleService: {
821
+ * resolve: "./modules/hello"
822
+ * }
823
+ * }
839
824
  * // ...
840
- * }
825
+ * })
841
826
  * ```
842
827
  */
843
828
  modules?: Record<string, boolean | Partial<InternalModuleDeclaration | ExternalModuleDeclaration>>;
@@ -847,26 +832,24 @@ export type ConfigModule = {
847
832
  * You can specify whether a feature should or shouldn’t be used in your backend by enabling its feature flag. Feature flags can be enabled through either environment
848
833
  * variables or through this configuration exported in `medusa-config.js`.
849
834
  *
850
- * If you want to use the environment variables method, learn more about it in the [Feature Flags documentation](https://docs.medusajs.com/development/feature-flags/toggle#method-one-using-environment-variables).
851
- *
852
835
  * The `featureFlags` configuration is an object. Its properties are the names of the feature flags. Each property’s value is a boolean indicating whether the feature flag is enabled.
853
836
  *
854
- * You can find available feature flags and their key name [here](https://github.com/medusajs/medusa/tree/master/packages/medusa/src/loaders/feature-flags).
837
+ * You can find available feature flags and their key name [here](https://github.com/medusajs/medusa/tree/develop/packages/medusa/src/loaders/feature-flags).
855
838
  *
856
839
  * @example
857
840
  * ```js title="medusa-config.js"
858
- * module.exports = {
841
+ * module.exports = defineConfig({
859
842
  * featureFlags: {
860
843
  * product_categories: true,
861
844
  * // ...
862
- * },
845
+ * }
863
846
  * // ...
864
- * }
847
+ * })
865
848
  * ```
866
849
  *
867
850
  * :::note
868
851
  *
869
- * After enabling a feature flag, make sure to [run migrations](https://docs.medusajs.com/development/entities/migrations/overview#migrate-command) as it may require making changes to the database.
852
+ * After enabling a feature flag, make sure to run migrations as it may require making changes to the database.
870
853
  *
871
854
  * :::
872
855
  */
@@ -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,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAA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AC/C,CAAA;CACF,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,aAAa,EAAE,oBAAoB,CAAA;IAEnC;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,YAAY,CAAA;IAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,OAAO,EAAE,CACL;QACE,OAAO,EAAE,MAAM,CAAA;QACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KACjC,GACD,MAAM,CACT,EAAE,CAAA;IAEH;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,OAAO,CAAC,EAAE,MAAM,CACd,MAAM,EACN,OAAO,GAAG,OAAO,CAAC,yBAAyB,GAAG,yBAAyB,CAAC,CACzE,CAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC,CAAA;CAC/C,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
@@ -84,6 +84,7 @@ export type InventoryItemDTO = {
84
84
  created_at: string | Date;
85
85
  updated_at: string | Date;
86
86
  deleted_at: string | Date | null;
87
+ location_levels?: InventoryLevelDTO[];
87
88
  };
88
89
  /**
89
90
  * @schema ReservationItemDTO
@@ -189,6 +190,7 @@ export type InventoryLevelDTO = {
189
190
  location_id: string;
190
191
  stocked_quantity: number;
191
192
  reserved_quantity: number;
193
+ available_quantity: number;
192
194
  incoming_quantity: number;
193
195
  metadata: Record<string, unknown> | null;
194
196
  created_at: string | Date;
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/inventory/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,WAAW,CAAA;AAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACzC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG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