@medusajs/types 1.12.0-snapshot-20240322174858 → 1.12.0-snapshot-20240328175402

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/dist/auth/common/provider.d.ts +4 -0
  2. package/dist/auth/common/provider.d.ts.map +1 -1
  3. package/dist/common/config-module.d.ts +7 -4
  4. package/dist/common/config-module.d.ts.map +1 -1
  5. package/dist/dal/index.d.ts +11 -0
  6. package/dist/dal/index.d.ts.map +1 -1
  7. package/dist/dal/index.js.map +1 -1
  8. package/dist/dal/repository-service.d.ts +2 -1
  9. package/dist/dal/repository-service.d.ts.map +1 -1
  10. package/dist/inventory/common/inventory-level.d.ts +5 -5
  11. package/dist/inventory/common/inventory-level.d.ts.map +1 -1
  12. package/dist/inventory/mutations/inventory-level.d.ts +1 -1
  13. package/dist/inventory/mutations/inventory-level.d.ts.map +1 -1
  14. package/dist/modules-sdk/internal-module-service.d.ts +2 -1
  15. package/dist/modules-sdk/internal-module-service.d.ts.map +1 -1
  16. package/dist/order/service.d.ts +1450 -0
  17. package/dist/order/service.d.ts.map +1 -1
  18. package/dist/pricing/common/index.d.ts +1 -1
  19. package/dist/pricing/common/index.d.ts.map +1 -1
  20. package/dist/pricing/common/index.js +1 -1
  21. package/dist/pricing/common/index.js.map +1 -1
  22. package/dist/pricing/common/money-amount.d.ts +0 -5
  23. package/dist/pricing/common/money-amount.d.ts.map +1 -1
  24. package/dist/pricing/common/price-list.d.ts +2 -2
  25. package/dist/pricing/common/price-list.d.ts.map +1 -1
  26. package/dist/pricing/common/price-rule.d.ts +7 -7
  27. package/dist/pricing/common/price-rule.d.ts.map +1 -1
  28. package/dist/pricing/common/price-set-rule-type.d.ts +2 -2
  29. package/dist/pricing/common/price-set-rule-type.d.ts.map +1 -1
  30. package/dist/pricing/common/price.d.ts +137 -0
  31. package/dist/pricing/common/price.d.ts.map +1 -0
  32. package/dist/pricing/common/{price-set-money-amount.js → price.js} +1 -1
  33. package/dist/pricing/common/price.js.map +1 -0
  34. package/dist/pricing/service.d.ts +68 -68
  35. package/dist/pricing/service.d.ts.map +1 -1
  36. package/dist/sales-channel/mutations.d.ts +5 -1
  37. package/dist/sales-channel/mutations.d.ts.map +1 -1
  38. package/dist/sales-channel/service.d.ts +127 -62
  39. package/dist/sales-channel/service.d.ts.map +1 -1
  40. package/dist/stock-location/common.d.ts +11 -10
  41. package/dist/stock-location/common.d.ts.map +1 -1
  42. package/dist/stock-location/service-next.d.ts +22 -3
  43. package/dist/stock-location/service-next.d.ts.map +1 -1
  44. package/dist/workflow/invite/accept-invite.d.ts +1 -0
  45. package/dist/workflow/invite/accept-invite.d.ts.map +1 -1
  46. package/package.json +1 -1
  47. package/dist/pricing/common/price-set-money-amount.d.ts +0 -93
  48. package/dist/pricing/common/price-set-money-amount.d.ts.map +0 -1
  49. package/dist/pricing/common/price-set-money-amount.js.map +0 -1
@@ -21,6 +21,10 @@ export type AuthenticationResponse = {
21
21
  * Redirect location. Location takes precedence over success.
22
22
  */
23
23
  location?: string;
24
+ /**
25
+ * Redirect url for successful authentication.
26
+ */
27
+ successRedirectUrl?: string;
24
28
  };
25
29
  /**
26
30
  * @interface
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/auth/common/provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED;;;;GAIG;AACH,M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AAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA"}
@@ -501,10 +501,13 @@ export type ProjectConfigOptions = {
501
501
  */
502
502
  jobs_batch_size?: number;
503
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.
504
+ * Configure the application's worker mode. Default is `shared`.
505
+ *
506
+ * - Use `shared` to run the application in a single process.
507
+ * - Use `worker` to run the a worker process only.
508
+ * - Use `server` to run the application server only.
509
+ *
510
+ * Learn more in [this guide](https://docs.medusajs.com/development/medusa-worker).
508
511
  *
509
512
  * @example
510
513
  * ```js title="medusa-config.js"
@@ -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,MAA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AO,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"}
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,oBAAoB,GAAG;IACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+CG;IACH,UAAU,CAAC,EAAE,MAAM,CA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;;;;;;;;;;;OAiBG;IACH,aAAa,CAAC,EAAE,YAAY,CAAA;IAE5B;;;;;;;;;;;;;;;;OAgBG;IACH,eAAe,CAAC,EAAE,cAAc,CAAA;IAEhC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,gBAAgB,CAAC,EAAE,sBAAsB,CAAA;IAEzC;;;;;;;;;;;;;OAaG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IAExB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;CAC7C,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,aAAa,EAAE,oBAAoB,CAAA;IAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -63,6 +63,17 @@ export type FindOptions<T = any> = {
63
63
  */
64
64
  options?: OptionsQuery<T, any>;
65
65
  };
66
+ /**
67
+ * @interface
68
+ *
69
+ * An object used to specify the configuration of how the upsert should be performed.
70
+ */
71
+ export type UpsertWithReplaceConfig<T> = {
72
+ /**
73
+ * The relationships that will be updated/created/deleted as part of the upsert
74
+ */
75
+ relations?: (keyof T)[];
76
+ };
66
77
  export * from "./repository-service";
67
78
  export * from "./entity";
68
79
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAe,KAAK,EAAE,MAAM,SAAS,CAAA;AAErE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAElD;;;;GAIG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IAEhC;;OAEG;IACH,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,KAAK;IACvD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC,GAAG,MAAM,EAAE,GAAG,OAAO,CAAA;CAChE;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,GAAG,IAAI;IACjC;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC,CAAC,C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;;;;GAIG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,GAAG,IAAI;IACjC;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAA;IAEtD;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;CAC/B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI;IACvC;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,CAAA;CACxB,CAAA;AAED,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAwEA,uDAAoC;AACpC,2CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoFA,uDAAoC;AACpC,2CAAwB"}
@@ -1,6 +1,6 @@
1
1
  import { RepositoryTransformOptions } from "../common";
2
2
  import { Context } from "../shared-context";
3
- import { BaseFilterable, FilterQuery as InternalFilterQuery, FilterQuery, FindOptions } from "./index";
3
+ import { BaseFilterable, FilterQuery as InternalFilterQuery, FilterQuery, FindOptions, UpsertWithReplaceConfig } from "./index";
4
4
  /**
5
5
  * Data access layer (DAL) interface to implements for any repository service.
6
6
  * This layer helps to separate the business logic (service layer) from accessing the
@@ -36,6 +36,7 @@ export interface RepositoryService<T = any> extends BaseRepositoryService<T> {
36
36
  softDelete(idsOrFilter: string[] | InternalFilterQuery, context?: Context): Promise<[T[], Record<string, unknown[]>]>;
37
37
  restore(idsOrFilter: string[] | InternalFilterQuery, context?: Context): Promise<[T[], Record<string, unknown[]>]>;
38
38
  upsert(data: any[], context?: Context): Promise<T[]>;
39
+ upsertWithReplace(data: any[], config?: UpsertWithReplaceConfig<T>, context?: Context): Promise<T[]>;
39
40
  }
40
41
  export interface TreeRepositoryService<T = any> extends BaseRepositoryService<T> {
41
42
  find(options?: FindOptions<T>, transformOptions?: RepositoryTransformOptions, context?: Context): Promise<T[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"repository-service.d.ts","sourceRoot":"","sources":["../../src/dal/repository-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EACL,cAAc,EACd,WAAW,IAAI,mBAAmB,EAClC,WAAW,EACX,WAAW,EACZ,MAAM,SAAS,CAAA;AAEhB;;;;GAIG;AACH,UAAU,qBAAqB,CAAC,CAAC,GAAG,GAAG;IACrC,WAAW,CAAC,QAAQ,GAAG,OAAO,EAC5B,IAAI,EAAE,CAAC,kBAAkB,EAAE,QAAQ,KAAK,OAAO,CAAC,GAAG,CAAC,EACpD,OAAO,CAAC,EAAE;QACR,cAAc,CAAC,EAAE,MAAM,CAAA;QACvB,WAAW,CAAC,EAAE,QAAQ,CAAA;QACtB,wBAAwB,CAAC,EAAE,OAAO,CAAA;KACnC,GACA,OAAO,CAAC,GAAG,CAAC,CAAA;IAEf,eAAe,CAAC,QAAQ,GAAG,OAAO,KAAK,QAAQ,CAAA;IAE/C,gBAAgB,CAAC,QAAQ,GAAG,OAAO,KAAK,QAAQ,CAAA;IAEhD,SAAS,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,EAAE,EACzC,IAAI,EAAE,GAAG,EACT,OAAO,CAAC,EAAE,GAAG,GACZ,OAAO,CAAC,OAAO,CAAC,CAAA;CACpB;AAID,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,qBAAqB,CAAC,CAAC,CAAC;IAC1E,IAAI,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,CAAC,CAA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AO,GAChB,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAA;IAEzB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAEpD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACrD;AAED;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,CAAC,uBAAuB,GAAG,MAAM,IAAI;IAC/D;;OAEG;IACH,kBAAkB,CAAC,EAAE,uBAAuB,EAAE,CAAA;CAC/C,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,aAAa,CAAC,uBAAuB,GAAG,MAAM,IAAI;IAC5D;;OAEG;IACH,kBAAkB,CAAC,EAAE,uBAAuB,EAAE,CAAA;CAC/C,CAAA"}
@@ -1,4 +1,4 @@
1
- import { NumericalComparisonOperator } from "../../common";
1
+ import { BaseFilterable, OperatorMap } from "../../dal";
2
2
  /**
3
3
  * @schema InventoryLevelDTO
4
4
  * type: object
@@ -51,7 +51,7 @@ export interface InventoryLevelDTO {
51
51
  updated_at: string | Date;
52
52
  deleted_at: string | Date | null;
53
53
  }
54
- export interface FilterableInventoryLevelProps {
54
+ export interface FilterableInventoryLevelProps extends BaseFilterable<FilterableInventoryLevelProps> {
55
55
  /**
56
56
  * Filter inventory levels by the ID of their associated inventory item.
57
57
  */
@@ -63,14 +63,14 @@ export interface FilterableInventoryLevelProps {
63
63
  /**
64
64
  * Filters to apply on inventory levels' `stocked_quantity` attribute.
65
65
  */
66
- stocked_quantity?: number | NumericalComparisonOperator;
66
+ stocked_quantity?: number | OperatorMap<Number>;
67
67
  /**
68
68
  * Filters to apply on inventory levels' `reserved_quantity` attribute.
69
69
  */
70
- reserved_quantity?: number | NumericalComparisonOperator;
70
+ reserved_quantity?: number | OperatorMap<Number>;
71
71
  /**
72
72
  * Filters to apply on inventory levels' `incoming_quantity` attribute.
73
73
  */
74
- incoming_quantity?: number | NumericalComparisonOperator;
74
+ incoming_quantity?: number | OperatorMap<Number>;
75
75
  }
76
76
  //# sourceMappingURL=inventory-level.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/inventory-level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,2BAA2B,CAAA;IACvD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,2BAA2B,CAAA;IACxD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,2BAA2B,CAAA;CACzD"}
1
+ {"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/inventory-level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAIvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,6BACf,SAAQ,cAAc,CAAC,6BAA6B,CAAC;IACrD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAC/C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAChD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;CACjD"}
@@ -29,7 +29,7 @@ export interface UpdateInventoryLevelInput {
29
29
  /**
30
30
  * id of the inventory level to update
31
31
  */
32
- id: string;
32
+ id?: string;
33
33
  /**
34
34
  * The stocked quantity of the associated inventory item in the associated location.
35
35
  */
@@ -1 +1 @@
1
- {"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/mutations/inventory-level.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;CACpB,GAAG,yBAAyB,CAAA"}
1
+ {"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/mutations/inventory-level.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;CACpB,GAAG,yBAAyB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { FindConfig } from "../common";
2
2
  import { Context } from "../shared-context";
3
- import { BaseFilterable, FilterQuery as InternalFilterQuery, FilterQuery } from "../dal";
3
+ import { BaseFilterable, FilterQuery as InternalFilterQuery, FilterQuery, UpsertWithReplaceConfig } from "../dal";
4
4
  export interface InternalModuleService<TEntity extends {}, TContainer extends object = object> {
5
5
  get __container__(): TContainer;
6
6
  retrieve(idOrObject: string, config?: FindConfig<any>, sharedContext?: Context): Promise<TEntity>;
@@ -30,5 +30,6 @@ export interface InternalModuleService<TEntity extends {}, TContainer extends ob
30
30
  restore(idsOrFilter: string[] | InternalFilterQuery, sharedContext?: Context): Promise<[TEntity[], Record<string, unknown[]>]>;
31
31
  upsert(data: any[], sharedContext?: Context): Promise<TEntity[]>;
32
32
  upsert(data: any, sharedContext?: Context): Promise<TEntity>;
33
+ upsertWithReplace(data: any[], config?: UpsertWithReplaceConfig<TEntity>, sharedContext?: Context): Promise<TEntity[]>;
33
34
  }
34
35
  //# sourceMappingURL=internal-module-service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal-module-service.d.ts","sourceRoot":"","sources":["../../src/modules-sdk/internal-module-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EACL,cAAc,EACd,WAAW,IAAI,mBAAmB,EAClC,WAAW,EACZ,MAAM,QAAQ,CAAA;AAEf,MAAM,WAAW,qBAAqB,CACpC,OAAO,SAAS,EAAE,EAClB,UAAU,SAAS,MAAM,GAAG,MAAM;IAElC,IAAI,aAAa,IAAI,U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AC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAA;IAElD,OAAO,CACL,WAAW,EAAE,MAAM,EAAE,GAAG,mBAAmB,EAC3C,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAA;IAElD,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;IAChE,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAC7D"}
1
+ {"version":3,"file":"internal-module-service.d.ts","sourceRoot":"","sources":["../../src/modules-sdk/internal-module-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EACL,cAAc,EACd,WAAW,IAAI,mBAAmB,EAClC,WAAW,EACX,uBAAuB,EACxB,MAAM,QAAQ,CAAA;AAEf,MAAM,WAAW,qBAAqB,CACpC,OAAO,SAAS,EAAE,EAClB,UAAU,SAAS,MAAM,GAAG,MAAM;IAElC,IAAI,aAAa,IAAI,UAAU,CAAA;IAE/B,QAAQ,CACN,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EACxB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,OAAO,CAAC,CAAA;IACnB,QAAQ,CACN,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EACxB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,OAAO,CAAC,CAAA;IAEnB,IAAI,CACF,OAAO,CAAC,EAAE,WAAW,CAAC,GAAG,C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