@medusajs/types 1.12.0-snapshot-20240429113131 → 1.12.0-snapshot-20240516091433

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. package/dist/bundles.d.ts +1 -0
  2. package/dist/bundles.d.ts.map +1 -1
  3. package/dist/bundles.js +2 -1
  4. package/dist/bundles.js.map +1 -1
  5. package/dist/cart/workflows.d.ts +34 -0
  6. package/dist/cart/workflows.d.ts.map +1 -1
  7. package/dist/common/common.d.ts +8 -1
  8. package/dist/common/common.d.ts.map +1 -1
  9. package/dist/common/config-module.d.ts +39 -2
  10. package/dist/common/config-module.d.ts.map +1 -1
  11. package/dist/customer/mutations.d.ts +1 -1
  12. package/dist/customer/mutations.d.ts.map +1 -1
  13. package/dist/dal/repository-service.d.ts +2 -2
  14. package/dist/dal/repository-service.d.ts.map +1 -1
  15. package/dist/fulfillment/mutations/shipping-option.d.ts +10 -0
  16. package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
  17. package/dist/fulfillment/service.d.ts +1 -1
  18. package/dist/fulfillment/service.d.ts.map +1 -1
  19. package/dist/fulfillment/workflows.d.ts +4 -1
  20. package/dist/fulfillment/workflows.d.ts.map +1 -1
  21. package/dist/http/campaign/admin/campaign.d.ts +3 -2
  22. package/dist/http/campaign/admin/campaign.d.ts.map +1 -1
  23. package/dist/http/product-category/admin.d.ts +15 -0
  24. package/dist/http/product-category/admin.d.ts.map +1 -0
  25. package/dist/http/product-category/{admin/product-category.js → admin.js} +1 -1
  26. package/dist/http/product-category/admin.js.map +1 -0
  27. package/dist/http/product-category/common.d.ts +18 -0
  28. package/dist/http/product-category/common.d.ts.map +1 -0
  29. package/dist/http/product-category/common.js +3 -0
  30. package/dist/http/product-category/common.js.map +1 -0
  31. package/dist/http/product-category/index.d.ts +1 -0
  32. package/dist/http/product-category/index.d.ts.map +1 -1
  33. package/dist/http/product-category/index.js +1 -0
  34. package/dist/http/product-category/index.js.map +1 -1
  35. package/dist/http/product-category/store.d.ts +15 -0
  36. package/dist/http/product-category/store.d.ts.map +1 -0
  37. package/dist/http/product-category/store.js +3 -0
  38. package/dist/http/product-category/store.js.map +1 -0
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +1 -0
  42. package/dist/index.js.map +1 -1
  43. package/dist/inventory/mutations/reservation-item.d.ts +4 -0
  44. package/dist/inventory/mutations/reservation-item.d.ts.map +1 -1
  45. package/dist/modules-sdk/index.d.ts +10 -12
  46. package/dist/modules-sdk/index.d.ts.map +1 -1
  47. package/dist/modules-sdk/internal-module-service.d.ts +1 -1
  48. package/dist/modules-sdk/internal-module-service.d.ts.map +1 -1
  49. package/dist/notification/common.d.ts +134 -0
  50. package/dist/notification/common.d.ts.map +1 -0
  51. package/dist/notification/common.js +3 -0
  52. package/dist/notification/common.js.map +1 -0
  53. package/dist/notification/index.d.ts +6 -0
  54. package/dist/notification/index.d.ts.map +1 -0
  55. package/dist/notification/index.js +22 -0
  56. package/dist/notification/index.js.map +1 -0
  57. package/dist/notification/mutations.d.ts +49 -0
  58. package/dist/notification/mutations.d.ts.map +1 -0
  59. package/dist/notification/mutations.js +3 -0
  60. package/dist/notification/mutations.js.map +1 -0
  61. package/dist/notification/provider.d.ts +51 -0
  62. package/dist/notification/provider.d.ts.map +1 -0
  63. package/dist/notification/provider.js +3 -0
  64. package/dist/notification/provider.js.map +1 -0
  65. package/dist/notification/providers/index.d.ts +3 -0
  66. package/dist/notification/providers/index.d.ts.map +1 -0
  67. package/dist/{http/product-category/admin → notification/providers}/index.js +2 -1
  68. package/dist/notification/providers/index.js.map +1 -0
  69. package/dist/notification/providers/logger.d.ts +3 -0
  70. package/dist/notification/providers/logger.d.ts.map +1 -0
  71. package/dist/notification/providers/logger.js +3 -0
  72. package/dist/notification/providers/logger.js.map +1 -0
  73. package/dist/notification/providers/sendgrid.d.ts +5 -0
  74. package/dist/notification/providers/sendgrid.d.ts.map +1 -0
  75. package/dist/notification/providers/sendgrid.js +3 -0
  76. package/dist/notification/providers/sendgrid.js.map +1 -0
  77. package/dist/notification/service.d.ts +177 -0
  78. package/dist/notification/service.d.ts.map +1 -0
  79. package/dist/notification/service.js +3 -0
  80. package/dist/notification/service.js.map +1 -0
  81. package/dist/order/common.d.ts +90 -0
  82. package/dist/order/common.d.ts.map +1 -1
  83. package/dist/order/mutations.d.ts +70 -21
  84. package/dist/order/mutations.d.ts.map +1 -1
  85. package/dist/order/mutations.js +0 -1
  86. package/dist/order/mutations.js.map +1 -1
  87. package/dist/order/service.d.ts +23 -2
  88. package/dist/order/service.d.ts.map +1 -1
  89. package/dist/payment/service.d.ts +1 -0
  90. package/dist/payment/service.d.ts.map +1 -1
  91. package/dist/pricing/common/index.d.ts +1 -0
  92. package/dist/pricing/common/index.d.ts.map +1 -1
  93. package/dist/pricing/common/index.js +1 -0
  94. package/dist/pricing/common/index.js.map +1 -1
  95. package/dist/pricing/common/pricing-context.d.ts +7 -0
  96. package/dist/pricing/common/pricing-context.d.ts.map +1 -0
  97. package/dist/pricing/common/pricing-context.js +3 -0
  98. package/dist/pricing/common/pricing-context.js.map +1 -0
  99. package/dist/product/common.d.ts +0 -12
  100. package/dist/product/common.d.ts.map +1 -1
  101. package/dist/product/service.d.ts +1 -1
  102. package/dist/promotion/common/campaign.d.ts +5 -0
  103. package/dist/promotion/common/campaign.d.ts.map +1 -1
  104. package/dist/promotion/common/promotion.d.ts +5 -1
  105. package/dist/promotion/common/promotion.d.ts.map +1 -1
  106. package/dist/promotion/mutations.d.ts +24 -12
  107. package/dist/promotion/mutations.d.ts.map +1 -1
  108. package/dist/promotion/service.d.ts +7 -1
  109. package/dist/promotion/service.d.ts.map +1 -1
  110. package/dist/workflow/product/create-product-variants.d.ts +0 -1
  111. package/dist/workflow/product/create-product-variants.d.ts.map +1 -1
  112. package/dist/workflow/product/create-products.d.ts +0 -1
  113. package/dist/workflow/product/create-products.d.ts.map +1 -1
  114. package/dist/workflow/product/update-product-variants.d.ts +0 -1
  115. package/dist/workflow/product/update-product-variants.d.ts.map +1 -1
  116. package/dist/workflow/product/update-products.d.ts +0 -1
  117. package/dist/workflow/product/update-products.d.ts.map +1 -1
  118. package/package.json +2 -1
  119. package/dist/http/product-category/admin/index.d.ts +0 -2
  120. package/dist/http/product-category/admin/index.d.ts.map +0 -1
  121. package/dist/http/product-category/admin/index.js.map +0 -1
  122. package/dist/http/product-category/admin/product-category.d.ts +0 -32
  123. package/dist/http/product-category/admin/product-category.d.ts.map +0 -1
  124. package/dist/http/product-category/admin/product-category.js.map +0 -1
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,4CAAyB;AACzB,yCAAsB;AACtB,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,2CAAwB;AACxB,6CAA0B;AAC1B,6CAA0B;AAC1B,wCAAqB;AACrB,8CAA2B;AAC3B,iDAA8B;AAC9B,yCAAsB;AACtB,iDAA8B;AAC9B,gDAA6B;AAC7B,yCAAsB;AACtB,8CAA2B;AAC3B,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,gDAA6B;AAC7B,0CAAuB;AACvB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,qDAAkC;AAClC,8CAA2B;AAC3B,2CAAwB;AACxB,mDAAgC;AAChC,kDAA+B;AAC/B,2CAAwB;AACxB,mDAAgC;AAChC,mDAAgC;AAChC,0CAAuB;AACvB,wCAAqB;AACrB,2CAAwB;AACxB,qDAAkC;AAClC,yCAAsB;AACtB,6CAA0B;AAC1B,8CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,4CAAyB;AACzB,yCAAsB;AACtB,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,2CAAwB;AACxB,6CAA0B;AAC1B,6CAA0B;AAC1B,wCAAqB;AACrB,8CAA2B;AAC3B,iDAA8B;AAC9B,yCAAsB;AACtB,iDAA8B;AAC9B,gDAA6B;AAC7B,yCAAsB;AACtB,8CAA2B;AAC3B,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,gDAA6B;AAC7B,0CAAuB;AACvB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,qDAAkC;AAClC,8CAA2B;AAC3B,2CAAwB;AACxB,mDAAgC;AAChC,kDAA+B;AAC/B,2CAAwB;AACxB,mDAAgC;AAChC,mDAAgC;AAChC,0CAAuB;AACvB,wCAAqB;AACrB,2CAAwB;AACxB,qDAAkC;AAClC,yCAAsB;AACtB,6CAA0B;AAC1B,8CAA2B;AAC3B,iDAA8B"}
@@ -44,6 +44,10 @@ export interface CreateReservationItemInput {
44
44
  * The reserved quantity.
45
45
  */
46
46
  quantity: number;
47
+ /**
48
+ * Allow backorder of the item. If true, it won't check inventory levels before reserving it.
49
+ */
50
+ allow_backorder?: boolean;
47
51
  /**
48
52
  * The description of the reservation.
49
53
  */
@@ -1 +1 @@
1
- {"version":3,"file":"reservation-item.d.ts","sourceRoot":"","sources":["../../../src/inventory/mutations/reservation-item.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B"}
1
+ {"version":3,"file":"reservation-item.d.ts","sourceRoot":"","sources":["../../../src/inventory/mutations/reservation-item.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B"}
@@ -16,11 +16,18 @@ export declare enum MODULE_RESOURCE_TYPE {
16
16
  SHARED = "shared",
17
17
  ISOLATED = "isolated"
18
18
  }
19
+ export type CustomModuleDefinition = {
20
+ key?: string;
21
+ registrationName?: string;
22
+ label?: string;
23
+ isQueryable?: boolean;
24
+ dependencies?: string[];
25
+ };
19
26
  export type InternalModuleDeclaration = {
20
27
  scope: MODULE_SCOPE.INTERNAL;
21
28
  resources: MODULE_RESOURCE_TYPE;
22
29
  dependencies?: string[];
23
- definition?: Partial<ModuleDefinition>;
30
+ definition?: CustomModuleDefinition;
24
31
  resolve?: string | ModuleExports;
25
32
  options?: Record<string, unknown>;
26
33
  /**
@@ -35,7 +42,7 @@ export type InternalModuleDeclaration = {
35
42
  };
36
43
  export type ExternalModuleDeclaration = {
37
44
  scope: MODULE_SCOPE.EXTERNAL;
38
- definition?: Partial<ModuleDefinition>;
45
+ definition?: CustomModuleDefinition;
39
46
  server?: {
40
47
  type: "http";
41
48
  url: string;
@@ -66,7 +73,6 @@ export type ModuleDefinition = {
66
73
  label: string;
67
74
  isRequired?: boolean;
68
75
  isQueryable?: boolean;
69
- isLegacy?: boolean;
70
76
  dependencies?: string[];
71
77
  defaultModuleDeclaration: InternalModuleDeclaration | ExternalModuleDeclaration;
72
78
  };
@@ -93,7 +99,7 @@ export type LoaderOptions<TOptions = Record<string, unknown>> = {
93
99
  logger?: Logger;
94
100
  dataLoaderOnly?: boolean;
95
101
  };
96
- export type ModuleLoaderFunction = (options: LoaderOptions, moduleDeclaration?: InternalModuleDeclaration) => Promise<void>;
102
+ export type ModuleLoaderFunction = (options: LoaderOptions<any>, moduleDeclaration?: InternalModuleDeclaration) => Promise<void>;
97
103
  export type ModulesResponse = {
98
104
  module: string;
99
105
  resolution: string | false;
@@ -160,14 +166,6 @@ export declare type ModuleJoinerRelationship = JoinerRelationship & {
160
166
  export type ModuleExports = {
161
167
  service: Constructor<any>;
162
168
  loaders?: ModuleLoaderFunction[];
163
- /**
164
- * @deprecated property will be removed in future versions
165
- */
166
- migrations?: any[];
167
- /**
168
- * @deprecated property will be removed in future versions
169
- */
170
- models?: Constructor<any>[];
171
169
  runMigrations?(options: LoaderOptions<any>, moduleDeclaration?: InternalModuleDeclaration): Promise<void>;
172
170
  revertMigration?(options: LoaderOptions<any>, moduleDeclaration?: InternalModuleDeclaration): Promise<void>;
173
171
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules-sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,WAAW,CAAA;AAElB,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAA;AACtD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AAEjC,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,GACN,KAAK,GACL,WAAW,CAAA;AACf,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,EAAE,CAAA;AAExD,oBAAY,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,OAAO,CAAC,CAAA;KAC/B,CAAA;CACF;AAED,MAAM,MAAM,6CAA6C,GAAG;IAC1D,OAAO,CAAC,EAAE,GAAG,CAAA;IACb,YAAY,CAAC,EAAE;QACb,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAA;KAC9C,CAAA;CACF,CAAA;AAED,MAAM,MAAM,0BAA0B,GAClC,yBAAyB,GACzB,yBAAyB,CAAA;AAK7B,MAAM,MAAM,mBAAmB,GAAG,CAChC,KAAK,EAAE,MAAM,GAAG,iBAAiB,GAAG,MAAM,EAC1C,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,CAAC,EAAE,mBAAmB,KAC1B,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;AAExB,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,cAAc,CAAC,IAAI,kBAAkB,CAAA;IAErC;;OAEG;IACH,OAAO,CAAC,EAAE;QACR,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;QACxC,qBAAqB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;QAC3C,4BAA4B,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;KACnD,CAAA;CACF"}
@@ -26,7 +26,7 @@ export interface InternalModuleService<TEntity extends {}, TContainer extends ob
26
26
  delete(idOrSelector: {
27
27
  selector: FilterQuery<any> | BaseFilterable<FilterQuery<any>>;
28
28
  }, sharedContext?: Context): Promise<void>;
29
- softDelete(idsOrFilter: string[] | InternalFilterQuery, sharedContext?: Context): Promise<[TEntity[], Record<string, unknown[]>]>;
29
+ softDelete(idsOrFilter: string | string[] | InternalFilterQuery | InternalFilterQuery[], sharedContext?: Context): Promise<[TEntity[], Record<string, unknown[]>]>;
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>;
@@ -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,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,CAAC,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAC7D,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EACxB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;IAErB,YAAY,CACV,OAAO,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAC7D,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EACxB,aAAa,CAAC,EAAE,OAAO,GACtB,O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AE,WAAW,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;KAC9D,EACD,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhB,UAAU,CACR,WAAW,EACP,MAAM,GACN,MAAM,EAAE,GACR,mBAAmB,GACnB,mBAAmB,EAAE,EACzB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,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;IAE5D,iBAAiB,CACf,IAAI,EAAE,GAAG,EAAE,EACX,MAAM,CAAC,EAAE,uBAAuB,CAAC,OAAO,CAAC,EACzC,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;CACtB"}
@@ -0,0 +1,134 @@
1
+ import { BaseFilterable } from "../dal";
2
+ import { OperatorMap } from "../dal/utils";
3
+ /**
4
+ * @interface
5
+ *
6
+ * A notification's data.
7
+ */
8
+ export interface NotificationDTO {
9
+ /**
10
+ * The ID of the notification.
11
+ */
12
+ id: string;
13
+ /**
14
+ * The recipient of the notification. It can be email, phone number, or username, depending on the channel.
15
+ */
16
+ to: string;
17
+ /**
18
+ * The channel through which the notification is sent, such as 'email' or 'sms'
19
+ */
20
+ channel: string;
21
+ /**
22
+ * The template name in the provider's system.
23
+ */
24
+ template: string;
25
+ /**
26
+ * The data that gets passed over to the provider for rendering the notification.
27
+ */
28
+ data: Record<string, unknown> | null;
29
+ /**
30
+ * The event name, the workflow, or anything else that can help to identify what triggered the notification.
31
+ */
32
+ trigger_type?: string | null;
33
+ /**
34
+ * The ID of the resource this notification is for, if applicable. Useful for displaying relevant information in the UI
35
+ */
36
+ resource_id?: string | null;
37
+ /**
38
+ * The type of the resource this notification is for, if applicable, eg. "order"
39
+ */
40
+ resource_type?: string | null;
41
+ /**
42
+ * The ID of the customer this notification is for, if applicable.
43
+ */
44
+ receiver_id?: string | null;
45
+ /**
46
+ * The original notification, in case this is a retried notification.
47
+ */
48
+ original_notification_id?: string | null;
49
+ /**
50
+ * The id of the notification in the external system, if applicable
51
+ */
52
+ external_id?: string | null;
53
+ /**
54
+ * The ID of the notification provider.
55
+ */
56
+ provider_id: string;
57
+ /**
58
+ * Information about the notification provider
59
+ */
60
+ provider: NotificationProviderDTO;
61
+ /**
62
+ * The date and time the notification was created.
63
+ */
64
+ created_at: Date;
65
+ }
66
+ /**
67
+ * @interface
68
+ *
69
+ * Information about the notification provider
70
+ */
71
+ export interface NotificationProviderDTO {
72
+ /**
73
+ * The ID of the notification provider.
74
+ */
75
+ id: string;
76
+ /**
77
+ * The handle of the notification provider.
78
+ */
79
+ handle: string;
80
+ /**
81
+ * A user-friendly name of the notification provider.
82
+ */
83
+ name: string;
84
+ /**
85
+ * The supported channels by the notification provider.
86
+ */
87
+ channels: string[];
88
+ }
89
+ /**
90
+ * @interface
91
+ *
92
+ * The filters to apply on retrieved notifications.
93
+ *
94
+ * @prop q - Search through the notifications' attributes, such as trigger types and recipients, using this search term.
95
+ */
96
+ export interface FilterableNotificationProps extends BaseFilterable<FilterableNotificationProps> {
97
+ /**
98
+ * Search through the notifications' attributes, such as trigger types and recipients, using this search term.
99
+ */
100
+ q?: string;
101
+ /**
102
+ * Filter based on the recipient of the notification.
103
+ */
104
+ to?: string | string[] | OperatorMap<string | string[]>;
105
+ /**
106
+ * Filter based on the channel through which the notification is sent, such as 'email' or 'sms'
107
+ */
108
+ channel?: string | string[] | OperatorMap<string | string[]>;
109
+ /**
110
+ * Filter based on the template name.
111
+ */
112
+ template?: string | string[] | OperatorMap<string | string[]>;
113
+ /**
114
+ * Filter based on the trigger type.
115
+ */
116
+ trigger_type?: string | string[] | OperatorMap<string | string[]>;
117
+ /**
118
+ * Filter based on the resource that was the trigger for the notification.
119
+ */
120
+ resource_id?: string | string[] | OperatorMap<string | string[]>;
121
+ /**
122
+ * T* Filter based on the resource type that was the trigger for the notification.
123
+ */
124
+ resource_type?: string | string[] | OperatorMap<string | string[]>;
125
+ /**
126
+ * Filter based on the customer ID.
127
+ */
128
+ receiver_id?: string | string[] | OperatorMap<string | string[]>;
129
+ /**
130
+ * Filters a notification based on when it was sent and created in the database
131
+ */
132
+ created_at?: OperatorMap<string>;
133
+ }
134
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/notification/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,I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MAAM,GAAG,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;IAChE;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;IAClE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;IAChE;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC"}
@@ -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/notification/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export * from "./common";
2
+ export * from "./providers";
3
+ export * from "./mutations";
4
+ export * from "./service";
5
+ export * from "./provider";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notification/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,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("./providers"), exports);
19
+ __exportStar(require("./mutations"), exports);
20
+ __exportStar(require("./service"), exports);
21
+ __exportStar(require("./provider"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/notification/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,8CAA2B;AAC3B,8CAA2B;AAC3B,4CAAyB;AACzB,6CAA0B"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @interface
3
+ *
4
+ * A notification to send and have created in the DB
5
+ *
6
+ */
7
+ export interface CreateNotificationDTO {
8
+ /**
9
+ * The recipient of the notification. It can be email, phone number, or username, depending on the channel.
10
+ */
11
+ to: string;
12
+ /**
13
+ * The channel through which the notification is sent, such as 'email' or 'sms'
14
+ */
15
+ channel: string;
16
+ /**
17
+ * The template name in the provider's system.
18
+ */
19
+ template: string;
20
+ /**
21
+ * The data that gets passed over to the provider for rendering the notification.
22
+ */
23
+ data?: Record<string, unknown> | null;
24
+ /**
25
+ * The event name, the workflow, or anything else that can help to identify what triggered the notification.
26
+ */
27
+ trigger_type?: string | null;
28
+ /**
29
+ * The ID of the resource this notification is for, if applicable. Useful for displaying relevant information in the UI
30
+ */
31
+ resource_id?: string | null;
32
+ /**
33
+ * The type of the resource this notification is for, if applicable, eg. "order"
34
+ */
35
+ resource_type?: string | null;
36
+ /**
37
+ * The ID of the customer this notification is for, if applicable.
38
+ */
39
+ receiver_id?: string | null;
40
+ /**
41
+ * The original notification, in case this is a retried notification.
42
+ */
43
+ original_notification_id?: string | null;
44
+ /**
45
+ * An idempotency key that ensures the same notification is not sent multiple times.
46
+ */
47
+ idempotency_key?: string | null;
48
+ }
49
+ //# sourceMappingURL=mutations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/notification/mutations.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC"}
@@ -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/notification/mutations.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @interface
3
+ *
4
+ * The details of the notification to send.
5
+ */
6
+ export type ProviderSendNotificationDTO = {
7
+ /**
8
+ * The recipient of the notification. It can be email, phone number, or username, depending on the channel.
9
+ */
10
+ to: string;
11
+ /**
12
+ * The channel through which the notification is sent, such as 'email' or 'sms'
13
+ */
14
+ channel: string;
15
+ /**
16
+ * The template name in the provider's system.
17
+ */
18
+ template: string;
19
+ /**
20
+ * The data that gets passed over to the provider for rendering the notification.
21
+ */
22
+ data?: Record<string, unknown> | null;
23
+ };
24
+ /**
25
+ * @interface
26
+ *
27
+ * The result of sending the notification
28
+ */
29
+ export type ProviderSendNotificationResultsDTO = {
30
+ /**
31
+ * The ID of the notification in the external system, if provided in the response
32
+ */
33
+ id?: string;
34
+ };
35
+ /**
36
+ * ## Overview
37
+ *
38
+ * Notification provider interface for the notification module.
39
+ *
40
+ */
41
+ export interface INotificationProvider {
42
+ /**
43
+ * This method is used to send a notification.
44
+ *
45
+ * @param {ProviderSendNotificationDTO} notification - All information needed to send a notification.
46
+ * @returns {Promise<ProviderSendNotificationResultsDTO>} The result of sending the notification.
47
+ *
48
+ */
49
+ send(notification: ProviderSendNotificationDTO): Promise<ProviderSendNotificationResultsDTO>;
50
+ }
51
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/notification/provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CACtC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ,CAAA;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,IAAI,CACF,YAAY,EAAE,2BAA2B,GACxC,OAAO,CAAC,kCAAkC,CAAC,CAAA;CAC/C"}
@@ -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/notification/provider.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from "./logger";
2
+ export * from "./sendgrid";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/notification/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./product-category"), exports);
17
+ __exportStar(require("./logger"), exports);
18
+ __exportStar(require("./sendgrid"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/notification/providers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,6CAA0B"}
@@ -0,0 +1,3 @@
1
+ export interface LocalNotificationServiceOptions {
2
+ }
3
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/notification/providers/logger.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,+BAA+B;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/notification/providers/logger.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface SendgridNotificationServiceOptions {
2
+ api_key: string;
3
+ from: string;
4
+ }
5
+ //# sourceMappingURL=sendgrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendgrid.d.ts","sourceRoot":"","sources":["../../../src/notification/providers/sendgrid.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kCAAkC;IACjD,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sendgrid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendgrid.js","sourceRoot":"","sources":["../../../src/notification/providers/sendgrid.ts"],"names":[],"mappings":""}