@medusajs/utils 3.0.0-snapshot-20250410105645 → 3.0.0-snapshot-20251104004624

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. package/dist/analytics/abstract-analytics-provider.d.ts +110 -0
  2. package/dist/analytics/abstract-analytics-provider.d.ts.map +1 -0
  3. package/dist/analytics/abstract-analytics-provider.js +107 -0
  4. package/dist/analytics/abstract-analytics-provider.js.map +1 -0
  5. package/dist/analytics/index.d.ts +2 -0
  6. package/dist/analytics/index.d.ts.map +1 -0
  7. package/dist/{feature-flags/utils → analytics}/index.js +1 -1
  8. package/dist/analytics/index.js.map +1 -0
  9. package/dist/auth/token.d.ts +4 -2
  10. package/dist/auth/token.d.ts.map +1 -1
  11. package/dist/auth/token.js +5 -2
  12. package/dist/auth/token.js.map +1 -1
  13. package/dist/bundles.d.ts +1 -0
  14. package/dist/bundles.d.ts.map +1 -1
  15. package/dist/bundles.js +19 -8
  16. package/dist/bundles.js.map +1 -1
  17. package/dist/caching/index.d.ts +59 -0
  18. package/dist/caching/index.d.ts.map +1 -0
  19. package/dist/caching/index.js +132 -0
  20. package/dist/caching/index.js.map +1 -0
  21. package/dist/common/build-query.d.ts +1 -1
  22. package/dist/common/build-query.d.ts.map +1 -1
  23. package/dist/common/camel-to-snake-case.d.ts.map +1 -1
  24. package/dist/common/compress-name.d.ts +2 -0
  25. package/dist/common/compress-name.d.ts.map +1 -0
  26. package/dist/common/compress-name.js +34 -0
  27. package/dist/common/compress-name.js.map +1 -0
  28. package/dist/common/container.d.ts +1 -1
  29. package/dist/common/container.js +1 -1
  30. package/dist/common/create-container-like.d.ts.map +1 -1
  31. package/dist/common/create-container-like.js +9 -1
  32. package/dist/common/create-container-like.js.map +1 -1
  33. package/dist/common/create-psql-index-helper.d.ts +2 -2
  34. package/dist/common/create-psql-index-helper.d.ts.map +1 -1
  35. package/dist/common/create-psql-index-helper.js +4 -2
  36. package/dist/common/create-psql-index-helper.js.map +1 -1
  37. package/dist/common/deep-copy.js +20 -10
  38. package/dist/common/deep-copy.js.map +1 -1
  39. package/dist/common/define-config.d.ts.map +1 -1
  40. package/dist/common/define-config.js +122 -6
  41. package/dist/common/define-config.js.map +1 -1
  42. package/dist/common/define-file-config.d.ts +7 -0
  43. package/dist/common/define-file-config.d.ts.map +1 -0
  44. package/dist/common/define-file-config.js +31 -0
  45. package/dist/common/define-file-config.js.map +1 -0
  46. package/dist/common/dynamic-import.d.ts.map +1 -1
  47. package/dist/common/dynamic-import.js +6 -1
  48. package/dist/common/dynamic-import.js.map +1 -1
  49. package/dist/common/execute-with-concurrency.d.ts +7 -0
  50. package/dist/common/execute-with-concurrency.d.ts.map +1 -0
  51. package/dist/common/execute-with-concurrency.js +26 -0
  52. package/dist/common/execute-with-concurrency.js.map +1 -0
  53. package/dist/common/get-duplicates.d.ts.map +1 -1
  54. package/dist/common/get-iso-string-from-date.d.ts.map +1 -1
  55. package/dist/common/get-resolved-plugins.js +1 -1
  56. package/dist/common/get-resolved-plugins.js.map +1 -1
  57. package/dist/common/get-selects-and-relations-from-object-array.d.ts +2 -1
  58. package/dist/common/get-selects-and-relations-from-object-array.d.ts.map +1 -1
  59. package/dist/common/get-selects-and-relations-from-object-array.js +7 -5
  60. package/dist/common/get-selects-and-relations-from-object-array.js.map +1 -1
  61. package/dist/common/index.d.ts +9 -2
  62. package/dist/common/index.d.ts.map +1 -1
  63. package/dist/common/index.js +9 -2
  64. package/dist/common/index.js.map +1 -1
  65. package/dist/common/medusa-container.js +1 -1
  66. package/dist/common/medusa-container.js.map +1 -1
  67. package/dist/common/normalize-csv-value.d.ts +6 -0
  68. package/dist/common/normalize-csv-value.d.ts.map +1 -0
  69. package/dist/common/normalize-csv-value.js +14 -0
  70. package/dist/common/normalize-csv-value.js.map +1 -0
  71. package/dist/common/normalize-import-path-with-source.d.ts +1 -1
  72. package/dist/common/normalize-import-path-with-source.d.ts.map +1 -1
  73. package/dist/common/normalize-import-path-with-source.js +2 -2
  74. package/dist/common/normalize-import-path-with-source.js.map +1 -1
  75. package/dist/common/optional-numeric-serializer.d.ts.map +1 -1
  76. package/dist/common/parse-stringify-if-necessary.d.ts +11 -0
  77. package/dist/common/parse-stringify-if-necessary.d.ts.map +1 -0
  78. package/dist/common/parse-stringify-if-necessary.js +44 -0
  79. package/dist/common/parse-stringify-if-necessary.js.map +1 -0
  80. package/dist/common/partition-array.d.ts.map +1 -1
  81. package/dist/common/read-dir-recursive.d.ts +2 -1
  82. package/dist/common/read-dir-recursive.d.ts.map +1 -1
  83. package/dist/common/read-dir-recursive.js +4 -3
  84. package/dist/common/read-dir-recursive.js.map +1 -1
  85. package/dist/common/remove-undefined.d.ts.map +1 -1
  86. package/dist/common/retry-execution.d.ts +18 -0
  87. package/dist/common/retry-execution.d.ts.map +1 -0
  88. package/dist/common/retry-execution.js +50 -0
  89. package/dist/common/retry-execution.js.map +1 -0
  90. package/dist/common/to-handle.d.ts.map +1 -1
  91. package/dist/common/to-kebab-case.d.ts.map +1 -1
  92. package/dist/common/try-convert-to-boolean.d.ts +7 -0
  93. package/dist/common/try-convert-to-boolean.d.ts.map +1 -0
  94. package/dist/common/try-convert-to-boolean.js +15 -0
  95. package/dist/common/try-convert-to-boolean.js.map +1 -0
  96. package/dist/common/try-convert-to-number.d.ts +7 -0
  97. package/dist/common/try-convert-to-number.d.ts.map +1 -0
  98. package/dist/common/try-convert-to-number.js +10 -0
  99. package/dist/common/try-convert-to-number.js.map +1 -0
  100. package/dist/common/validate-handle.d.ts.map +1 -1
  101. package/dist/common/wrap-handler.d.ts.map +1 -1
  102. package/dist/core-flows/events.d.ts +783 -0
  103. package/dist/core-flows/events.d.ts.map +1 -1
  104. package/dist/core-flows/events.js +784 -1
  105. package/dist/core-flows/events.js.map +1 -1
  106. package/dist/dal/index.d.ts +4 -3
  107. package/dist/dal/index.d.ts.map +1 -1
  108. package/dist/dal/index.js +4 -3
  109. package/dist/dal/index.js.map +1 -1
  110. package/dist/dal/mikro-orm/base-entity.d.ts +1 -1
  111. package/dist/dal/mikro-orm/base-entity.d.ts.map +1 -1
  112. package/dist/dal/mikro-orm/base-entity.js +1 -1
  113. package/dist/dal/mikro-orm/base-entity.js.map +1 -1
  114. package/dist/dal/mikro-orm/big-number-field.d.ts +1 -1
  115. package/dist/dal/mikro-orm/big-number-field.d.ts.map +1 -1
  116. package/dist/dal/mikro-orm/big-number-field.js +38 -2
  117. package/dist/dal/mikro-orm/big-number-field.js.map +1 -1
  118. package/dist/dal/mikro-orm/custom-db-migrator.d.ts +8 -0
  119. package/dist/dal/mikro-orm/custom-db-migrator.d.ts.map +1 -0
  120. package/dist/dal/mikro-orm/custom-db-migrator.js +47 -0
  121. package/dist/dal/mikro-orm/custom-db-migrator.js.map +1 -0
  122. package/dist/dal/mikro-orm/db-error-mapper.d.ts.map +1 -1
  123. package/dist/dal/mikro-orm/db-error-mapper.js +1 -1
  124. package/dist/dal/mikro-orm/db-error-mapper.js.map +1 -1
  125. package/dist/dal/mikro-orm/decorators/foreign-key.d.ts.map +1 -1
  126. package/dist/dal/mikro-orm/decorators/foreign-key.js +1 -1
  127. package/dist/dal/mikro-orm/decorators/foreign-key.js.map +1 -1
  128. package/dist/dal/mikro-orm/decorators/searchable.d.ts.map +1 -1
  129. package/dist/dal/mikro-orm/decorators/searchable.js +1 -1
  130. package/dist/dal/mikro-orm/decorators/searchable.js.map +1 -1
  131. package/dist/dal/mikro-orm/mikro-orm-create-connection.d.ts +3 -3
  132. package/dist/dal/mikro-orm/mikro-orm-create-connection.d.ts.map +1 -1
  133. package/dist/dal/mikro-orm/mikro-orm-create-connection.js +32 -4
  134. package/dist/dal/mikro-orm/mikro-orm-create-connection.js.map +1 -1
  135. package/dist/dal/mikro-orm/mikro-orm-free-text-search-filter.d.ts +2 -2
  136. package/dist/dal/mikro-orm/mikro-orm-free-text-search-filter.d.ts.map +1 -1
  137. package/dist/dal/mikro-orm/mikro-orm-free-text-search-filter.js +3 -3
  138. package/dist/dal/mikro-orm/mikro-orm-free-text-search-filter.js.map +1 -1
  139. package/dist/dal/mikro-orm/mikro-orm-repository.d.ts +2 -1
  140. package/dist/dal/mikro-orm/mikro-orm-repository.d.ts.map +1 -1
  141. package/dist/dal/mikro-orm/mikro-orm-repository.js +282 -65
  142. package/dist/dal/mikro-orm/mikro-orm-repository.js.map +1 -1
  143. package/dist/dal/mikro-orm/mikro-orm-serializer-old.d.ts +29 -0
  144. package/dist/dal/mikro-orm/mikro-orm-serializer-old.d.ts.map +1 -0
  145. package/dist/dal/mikro-orm/mikro-orm-serializer-old.js +443 -0
  146. package/dist/dal/mikro-orm/mikro-orm-serializer-old.js.map +1 -0
  147. package/dist/dal/mikro-orm/mikro-orm-serializer.d.ts +25 -10
  148. package/dist/dal/mikro-orm/mikro-orm-serializer.d.ts.map +1 -1
  149. package/dist/dal/mikro-orm/mikro-orm-serializer.js +384 -175
  150. package/dist/dal/mikro-orm/mikro-orm-serializer.js.map +1 -1
  151. package/dist/dal/mikro-orm/utils.d.ts +1 -1
  152. package/dist/dal/mikro-orm/utils.d.ts.map +1 -1
  153. package/dist/defaults/countries.js +6 -6
  154. package/dist/defaults/countries.js.map +1 -1
  155. package/dist/defaults/currencies.d.ts.map +1 -1
  156. package/dist/defaults/currencies.js +27 -0
  157. package/dist/defaults/currencies.js.map +1 -1
  158. package/dist/dml/entity-builder.d.ts +1 -1
  159. package/dist/dml/entity-builder.js +1 -1
  160. package/dist/dml/helpers/create-graphql.d.ts.map +1 -1
  161. package/dist/dml/helpers/create-graphql.js +10 -3
  162. package/dist/dml/helpers/create-graphql.js.map +1 -1
  163. package/dist/dml/helpers/create-mikro-orm-entity.d.ts +0 -3
  164. package/dist/dml/helpers/create-mikro-orm-entity.d.ts.map +1 -1
  165. package/dist/dml/helpers/create-mikro-orm-entity.js +5 -4
  166. package/dist/dml/helpers/create-mikro-orm-entity.js.map +1 -1
  167. package/dist/dml/helpers/entity-builder/create-big-number-properties.d.ts.map +1 -1
  168. package/dist/dml/helpers/entity-builder/create-big-number-properties.js +16 -4
  169. package/dist/dml/helpers/entity-builder/create-big-number-properties.js.map +1 -1
  170. package/dist/dml/helpers/entity-builder/define-property.js +1 -1
  171. package/dist/dml/helpers/entity-builder/define-property.js.map +1 -1
  172. package/dist/dml/helpers/entity-builder/define-relationship.js +1 -1
  173. package/dist/dml/helpers/entity-builder/define-relationship.js.map +1 -1
  174. package/dist/dml/helpers/graphql-builder/get-attribute.d.ts.map +1 -1
  175. package/dist/dml/helpers/graphql-builder/get-attribute.js +3 -2
  176. package/dist/dml/helpers/graphql-builder/get-attribute.js.map +1 -1
  177. package/dist/dml/helpers/mikro-orm/apply-checks.js +1 -1
  178. package/dist/dml/helpers/mikro-orm/apply-checks.js.map +1 -1
  179. package/dist/dml/helpers/mikro-orm/build-indexes.js +1 -1
  180. package/dist/dml/helpers/mikro-orm/build-indexes.js.map +1 -1
  181. package/dist/dml/properties/autoincrement.d.ts +20 -1
  182. package/dist/dml/properties/autoincrement.d.ts.map +1 -1
  183. package/dist/dml/properties/autoincrement.js +19 -0
  184. package/dist/dml/properties/autoincrement.js.map +1 -1
  185. package/dist/dml/properties/big-number.d.ts +2 -0
  186. package/dist/dml/properties/big-number.d.ts.map +1 -1
  187. package/dist/dml/properties/big-number.js +4 -0
  188. package/dist/dml/properties/big-number.js.map +1 -1
  189. package/dist/dml/properties/id.d.ts +1 -1
  190. package/dist/dml/properties/id.d.ts.map +1 -1
  191. package/dist/dml/properties/id.js.map +1 -1
  192. package/dist/dml/properties/primary-key.d.ts +1 -0
  193. package/dist/dml/properties/primary-key.d.ts.map +1 -1
  194. package/dist/dml/properties/primary-key.js +8 -5
  195. package/dist/dml/properties/primary-key.js.map +1 -1
  196. package/dist/dml/relations/belongs-to.d.ts.map +1 -1
  197. package/dist/dml/relations/has-many.d.ts.map +1 -1
  198. package/dist/dml/relations/has-one-fk.d.ts.map +1 -1
  199. package/dist/dml/relations/has-one.d.ts.map +1 -1
  200. package/dist/dml/relations/many-to-many.d.ts.map +1 -1
  201. package/dist/event-bus/index.d.ts +30 -2
  202. package/dist/event-bus/index.d.ts.map +1 -1
  203. package/dist/event-bus/index.js +39 -0
  204. package/dist/event-bus/index.js.map +1 -1
  205. package/dist/event-bus/message-aggregator.d.ts +1 -1
  206. package/dist/event-bus/message-aggregator.d.ts.map +1 -1
  207. package/dist/event-bus/message-aggregator.js +30 -8
  208. package/dist/event-bus/message-aggregator.js.map +1 -1
  209. package/dist/event-bus/utils.d.ts.map +1 -1
  210. package/dist/event-bus/utils.js +1 -2
  211. package/dist/event-bus/utils.js.map +1 -1
  212. package/dist/exceptions/is-duplicate-error.d.ts.map +1 -1
  213. package/dist/feature-flags/discover-and-register-feature-flags.d.ts +15 -0
  214. package/dist/feature-flags/discover-and-register-feature-flags.d.ts.map +1 -0
  215. package/dist/feature-flags/discover-and-register-feature-flags.js +23 -0
  216. package/dist/feature-flags/discover-and-register-feature-flags.js.map +1 -0
  217. package/dist/feature-flags/discover-feature-flags.d.ts +6 -0
  218. package/dist/feature-flags/discover-feature-flags.d.ts.map +1 -0
  219. package/dist/feature-flags/discover-feature-flags.js +53 -0
  220. package/dist/feature-flags/discover-feature-flags.js.map +1 -0
  221. package/dist/feature-flags/{utils/flag-router.d.ts → flag-router.d.ts} +1 -0
  222. package/dist/feature-flags/flag-router.d.ts.map +1 -0
  223. package/dist/feature-flags/{utils/flag-router.js → flag-router.js} +3 -2
  224. package/dist/feature-flags/flag-router.js.map +1 -0
  225. package/dist/feature-flags/index.d.ts +4 -10
  226. package/dist/feature-flags/index.d.ts.map +1 -1
  227. package/dist/feature-flags/index.js +4 -10
  228. package/dist/feature-flags/index.js.map +1 -1
  229. package/dist/feature-flags/register-flag.d.ts +18 -0
  230. package/dist/feature-flags/register-flag.d.ts.map +1 -0
  231. package/dist/feature-flags/register-flag.js +41 -0
  232. package/dist/feature-flags/register-flag.js.map +1 -0
  233. package/dist/file/abstract-file-provider.d.ts +61 -9
  234. package/dist/file/abstract-file-provider.d.ts.map +1 -1
  235. package/dist/file/abstract-file-provider.js +64 -9
  236. package/dist/file/abstract-file-provider.js.map +1 -1
  237. package/dist/fulfillment/events.d.ts +6 -0
  238. package/dist/fulfillment/events.d.ts.map +1 -1
  239. package/dist/fulfillment/events.js +6 -0
  240. package/dist/fulfillment/events.js.map +1 -1
  241. package/dist/fulfillment/provider.d.ts +4 -4
  242. package/dist/fulfillment/provider.js +4 -4
  243. package/dist/graphql/graphql-to-ts-types.d.ts.map +1 -1
  244. package/dist/graphql/graphql-to-ts-types.js +40 -9
  245. package/dist/graphql/graphql-to-ts-types.js.map +1 -1
  246. package/dist/index.d.ts +2 -0
  247. package/dist/index.d.ts.map +1 -1
  248. package/dist/index.js +2 -0
  249. package/dist/index.js.map +1 -1
  250. package/dist/link/compose-link-name.d.ts.map +1 -1
  251. package/dist/migrations/index.d.ts +3 -3
  252. package/dist/migrations/index.d.ts.map +1 -1
  253. package/dist/migrations/index.js +37 -3
  254. package/dist/migrations/index.js.map +1 -1
  255. package/dist/modules-sdk/build-query.d.ts.map +1 -1
  256. package/dist/modules-sdk/build-query.js +5 -11
  257. package/dist/modules-sdk/build-query.js.map +1 -1
  258. package/dist/modules-sdk/create-medusa-mikro-orm-event-subscriber.d.ts +16 -0
  259. package/dist/modules-sdk/create-medusa-mikro-orm-event-subscriber.d.ts.map +1 -0
  260. package/dist/modules-sdk/create-medusa-mikro-orm-event-subscriber.js +50 -0
  261. package/dist/modules-sdk/create-medusa-mikro-orm-event-subscriber.js.map +1 -0
  262. package/dist/modules-sdk/create-pg-connection.d.ts +1 -1
  263. package/dist/modules-sdk/create-pg-connection.d.ts.map +1 -1
  264. package/dist/modules-sdk/create-pg-connection.js +13 -2
  265. package/dist/modules-sdk/create-pg-connection.js.map +1 -1
  266. package/dist/modules-sdk/decorators/context-parameter.d.ts.map +1 -1
  267. package/dist/modules-sdk/decorators/emit-events.d.ts.map +1 -1
  268. package/dist/modules-sdk/decorators/inject-manager.d.ts.map +1 -1
  269. package/dist/modules-sdk/decorators/inject-manager.js +4 -3
  270. package/dist/modules-sdk/decorators/inject-manager.js.map +1 -1
  271. package/dist/modules-sdk/decorators/inject-transaction-manager.d.ts.map +1 -1
  272. package/dist/modules-sdk/decorators/inject-transaction-manager.js +7 -9
  273. package/dist/modules-sdk/decorators/inject-transaction-manager.js.map +1 -1
  274. package/dist/modules-sdk/define-link.d.ts +2 -0
  275. package/dist/modules-sdk/define-link.d.ts.map +1 -1
  276. package/dist/modules-sdk/define-link.js +11 -0
  277. package/dist/modules-sdk/define-link.js.map +1 -1
  278. package/dist/modules-sdk/definition.d.ts +9 -0
  279. package/dist/modules-sdk/definition.d.ts.map +1 -1
  280. package/dist/modules-sdk/definition.js +6 -0
  281. package/dist/modules-sdk/definition.js.map +1 -1
  282. package/dist/modules-sdk/event-builder-factory.d.ts.map +1 -1
  283. package/dist/modules-sdk/index.d.ts +1 -0
  284. package/dist/modules-sdk/index.d.ts.map +1 -1
  285. package/dist/modules-sdk/index.js +1 -0
  286. package/dist/modules-sdk/index.js.map +1 -1
  287. package/dist/modules-sdk/joiner-config-builder.d.ts +7 -1
  288. package/dist/modules-sdk/joiner-config-builder.d.ts.map +1 -1
  289. package/dist/modules-sdk/joiner-config-builder.js +42 -8
  290. package/dist/modules-sdk/joiner-config-builder.js.map +1 -1
  291. package/dist/modules-sdk/load-module-database-config.d.ts.map +1 -1
  292. package/dist/modules-sdk/load-module-database-config.js +15 -1
  293. package/dist/modules-sdk/load-module-database-config.js.map +1 -1
  294. package/dist/modules-sdk/loaders/container-loader-factory.js +1 -1
  295. package/dist/modules-sdk/loaders/container-loader-factory.js.map +1 -1
  296. package/dist/modules-sdk/loaders/mikro-orm-connection-loader.d.ts.map +1 -1
  297. package/dist/modules-sdk/loaders/mikro-orm-connection-loader.js +1 -1
  298. package/dist/modules-sdk/loaders/mikro-orm-connection-loader.js.map +1 -1
  299. package/dist/modules-sdk/medusa-internal-service.d.ts +14 -3
  300. package/dist/modules-sdk/medusa-internal-service.d.ts.map +1 -1
  301. package/dist/modules-sdk/medusa-internal-service.js +126 -3
  302. package/dist/modules-sdk/medusa-internal-service.js.map +1 -1
  303. package/dist/modules-sdk/medusa-service.d.ts.map +1 -1
  304. package/dist/modules-sdk/medusa-service.js +89 -56
  305. package/dist/modules-sdk/medusa-service.js.map +1 -1
  306. package/dist/modules-sdk/migration-scripts/migration-down.d.ts.map +1 -1
  307. package/dist/modules-sdk/migration-scripts/migration-down.js +4 -2
  308. package/dist/modules-sdk/migration-scripts/migration-down.js.map +1 -1
  309. package/dist/modules-sdk/migration-scripts/migration-generate.d.ts +1 -1
  310. package/dist/modules-sdk/migration-scripts/migration-generate.d.ts.map +1 -1
  311. package/dist/modules-sdk/migration-scripts/migration-generate.js +3 -3
  312. package/dist/modules-sdk/migration-scripts/migration-generate.js.map +1 -1
  313. package/dist/modules-sdk/migration-scripts/migration-up.d.ts.map +1 -1
  314. package/dist/modules-sdk/migration-scripts/migration-up.js +4 -2
  315. package/dist/modules-sdk/migration-scripts/migration-up.js.map +1 -1
  316. package/dist/modules-sdk/migration-scripts/seed.d.ts.map +1 -1
  317. package/dist/modules-sdk/migration-scripts/seed.js +4 -1
  318. package/dist/modules-sdk/migration-scripts/seed.js.map +1 -1
  319. package/dist/modules-sdk/mikro-orm-cli-config-builder.d.ts +1 -1
  320. package/dist/modules-sdk/mikro-orm-cli-config-builder.d.ts.map +1 -1
  321. package/dist/modules-sdk/mikro-orm-cli-config-builder.js +2 -1
  322. package/dist/modules-sdk/mikro-orm-cli-config-builder.js.map +1 -1
  323. package/dist/modules-sdk/module.d.ts.map +1 -1
  324. package/dist/modules-sdk/module.js +2 -0
  325. package/dist/modules-sdk/module.js.map +1 -1
  326. package/dist/modules-sdk/modules-to-container-types.d.ts.map +1 -1
  327. package/dist/modules-sdk/modules-to-container-types.js +2 -1
  328. package/dist/modules-sdk/modules-to-container-types.js.map +1 -1
  329. package/dist/modules-sdk/query-context.d.ts +2 -2
  330. package/dist/modules-sdk/query-context.d.ts.map +1 -1
  331. package/dist/modules-sdk/query-context.js.map +1 -1
  332. package/dist/modules-sdk/types/medusa-service.d.ts +15 -1
  333. package/dist/modules-sdk/types/medusa-service.d.ts.map +1 -1
  334. package/dist/payment/abstract-payment-provider.d.ts +145 -32
  335. package/dist/payment/abstract-payment-provider.d.ts.map +1 -1
  336. package/dist/payment/abstract-payment-provider.js +6 -3
  337. package/dist/payment/abstract-payment-provider.js.map +1 -1
  338. package/dist/payment/index.d.ts +0 -1
  339. package/dist/payment/index.d.ts.map +1 -1
  340. package/dist/payment/index.js +0 -1
  341. package/dist/payment/index.js.map +1 -1
  342. package/dist/pg/index.d.ts +1 -1
  343. package/dist/pg/index.d.ts.map +1 -1
  344. package/dist/pg/index.js +1 -1
  345. package/dist/pg/index.js.map +1 -1
  346. package/dist/product/csv-normalizer.d.ts +43 -0
  347. package/dist/product/csv-normalizer.d.ts.map +1 -0
  348. package/dist/product/csv-normalizer.js +382 -0
  349. package/dist/product/csv-normalizer.js.map +1 -0
  350. package/dist/product/enums.d.ts +7 -0
  351. package/dist/product/enums.d.ts.map +1 -0
  352. package/dist/product/enums.js +11 -0
  353. package/dist/product/enums.js.map +1 -0
  354. package/dist/product/events.d.ts +6 -0
  355. package/dist/product/events.d.ts.map +1 -1
  356. package/dist/product/events.js +1 -0
  357. package/dist/product/events.js.map +1 -1
  358. package/dist/product/get-variant-availability.d.ts +3 -3
  359. package/dist/product/get-variant-availability.d.ts.map +1 -1
  360. package/dist/product/get-variant-availability.js +13 -2
  361. package/dist/product/get-variant-availability.js.map +1 -1
  362. package/dist/product/index.d.ts +3 -6
  363. package/dist/product/index.d.ts.map +1 -1
  364. package/dist/product/index.js +26 -8
  365. package/dist/product/index.js.map +1 -1
  366. package/dist/product/validators.d.ts +894 -0
  367. package/dist/product/validators.d.ts.map +1 -0
  368. package/dist/product/validators.js +163 -0
  369. package/dist/product/validators.js.map +1 -0
  370. package/dist/promotion/index.d.ts +5 -2
  371. package/dist/promotion/index.d.ts.map +1 -1
  372. package/dist/promotion/index.js +3 -0
  373. package/dist/promotion/index.js.map +1 -1
  374. package/dist/totals/adjustment/index.d.ts +11 -6
  375. package/dist/totals/adjustment/index.d.ts.map +1 -1
  376. package/dist/totals/adjustment/index.js +25 -19
  377. package/dist/totals/adjustment/index.js.map +1 -1
  378. package/dist/totals/big-number.d.ts +5 -1
  379. package/dist/totals/big-number.d.ts.map +1 -1
  380. package/dist/totals/big-number.js +26 -14
  381. package/dist/totals/big-number.js.map +1 -1
  382. package/dist/totals/cart/index.d.ts +1 -0
  383. package/dist/totals/cart/index.d.ts.map +1 -1
  384. package/dist/totals/cart/index.js +19 -4
  385. package/dist/totals/cart/index.js.map +1 -1
  386. package/dist/totals/credit-lines/index.d.ts +3 -3
  387. package/dist/totals/credit-lines/index.d.ts.map +1 -1
  388. package/dist/totals/credit-lines/index.js +4 -3
  389. package/dist/totals/credit-lines/index.js.map +1 -1
  390. package/dist/totals/line-item/index.d.ts +2 -1
  391. package/dist/totals/line-item/index.d.ts.map +1 -1
  392. package/dist/totals/line-item/index.js +42 -18
  393. package/dist/totals/line-item/index.js.map +1 -1
  394. package/dist/totals/math.d.ts +4 -2
  395. package/dist/totals/math.d.ts.map +1 -1
  396. package/dist/totals/math.js +18 -10
  397. package/dist/totals/math.js.map +1 -1
  398. package/dist/totals/promotion/index.d.ts +2 -2
  399. package/dist/totals/promotion/index.d.ts.map +1 -1
  400. package/dist/totals/promotion/index.js +46 -26
  401. package/dist/totals/promotion/index.js.map +1 -1
  402. package/dist/totals/shipping-method/index.d.ts +1 -0
  403. package/dist/totals/shipping-method/index.d.ts.map +1 -1
  404. package/dist/totals/shipping-method/index.js +3 -1
  405. package/dist/totals/shipping-method/index.js.map +1 -1
  406. package/dist/totals/tax/index.d.ts +1 -1
  407. package/dist/totals/tax/index.d.ts.map +1 -1
  408. package/dist/totals/tax/index.js +0 -3
  409. package/dist/totals/tax/index.js.map +1 -1
  410. package/dist/tsconfig.tsbuildinfo +1 -1
  411. package/package.json +11 -29
  412. package/dist/common/set-metadata.d.ts +0 -10
  413. package/dist/common/set-metadata.d.ts.map +0 -1
  414. package/dist/common/set-metadata.js +0 -37
  415. package/dist/common/set-metadata.js.map +0 -1
  416. package/dist/feature-flags/analytics.d.ts +0 -3
  417. package/dist/feature-flags/analytics.d.ts.map +0 -1
  418. package/dist/feature-flags/analytics.js +0 -10
  419. package/dist/feature-flags/analytics.js.map +0 -1
  420. package/dist/feature-flags/many-to-many-inventory.d.ts +0 -3
  421. package/dist/feature-flags/many-to-many-inventory.d.ts.map +0 -1
  422. package/dist/feature-flags/many-to-many-inventory.js +0 -10
  423. package/dist/feature-flags/many-to-many-inventory.js.map +0 -1
  424. package/dist/feature-flags/medusa-v2.d.ts +0 -3
  425. package/dist/feature-flags/medusa-v2.d.ts.map +0 -1
  426. package/dist/feature-flags/medusa-v2.js +0 -10
  427. package/dist/feature-flags/medusa-v2.js.map +0 -1
  428. package/dist/feature-flags/order-editing.d.ts +0 -3
  429. package/dist/feature-flags/order-editing.d.ts.map +0 -1
  430. package/dist/feature-flags/order-editing.js +0 -10
  431. package/dist/feature-flags/order-editing.js.map +0 -1
  432. package/dist/feature-flags/product-categories.d.ts +0 -3
  433. package/dist/feature-flags/product-categories.d.ts.map +0 -1
  434. package/dist/feature-flags/product-categories.js +0 -10
  435. package/dist/feature-flags/product-categories.js.map +0 -1
  436. package/dist/feature-flags/publishable-api-keys.d.ts +0 -3
  437. package/dist/feature-flags/publishable-api-keys.d.ts.map +0 -1
  438. package/dist/feature-flags/publishable-api-keys.js +0 -10
  439. package/dist/feature-flags/publishable-api-keys.js.map +0 -1
  440. package/dist/feature-flags/sales-channels.d.ts +0 -3
  441. package/dist/feature-flags/sales-channels.d.ts.map +0 -1
  442. package/dist/feature-flags/sales-channels.js +0 -10
  443. package/dist/feature-flags/sales-channels.js.map +0 -1
  444. package/dist/feature-flags/tax-inclusive-pricing.d.ts +0 -3
  445. package/dist/feature-flags/tax-inclusive-pricing.d.ts.map +0 -1
  446. package/dist/feature-flags/tax-inclusive-pricing.js +0 -10
  447. package/dist/feature-flags/tax-inclusive-pricing.js.map +0 -1
  448. package/dist/feature-flags/utils/flag-router.d.ts.map +0 -1
  449. package/dist/feature-flags/utils/flag-router.js.map +0 -1
  450. package/dist/feature-flags/utils/index.d.ts +0 -2
  451. package/dist/feature-flags/utils/index.d.ts.map +0 -1
  452. package/dist/feature-flags/utils/index.js.map +0 -1
  453. package/dist/feature-flags/workflows.d.ts +0 -3
  454. package/dist/feature-flags/workflows.d.ts.map +0 -1
  455. package/dist/feature-flags/workflows.js +0 -10
  456. package/dist/feature-flags/workflows.js.map +0 -1
  457. package/dist/payment/events.d.ts +0 -5
  458. package/dist/payment/events.d.ts.map +0 -1
  459. package/dist/payment/events.js +0 -8
  460. package/dist/payment/events.js.map +0 -1
@@ -1,85 +1,868 @@
1
+ /**
2
+ * @category Cart
3
+ * @customNamespace Cart
4
+ */
1
5
  export declare const CartWorkflowEvents: {
6
+ /**
7
+ * Emitted when a cart is created.
8
+ *
9
+ * @eventPayload
10
+ * ```ts
11
+ * {
12
+ * id, // The ID of the cart
13
+ * }
14
+ * ```
15
+ */
2
16
  CREATED: string;
17
+ /**
18
+ * Emitted when a cart's details are updated.
19
+ *
20
+ * @eventPayload
21
+ * ```ts
22
+ * {
23
+ * id, // The ID of the cart
24
+ * }
25
+ * ```
26
+ */
3
27
  UPDATED: string;
28
+ /**
29
+ * Emitted when the customer in the cart is updated.
30
+ *
31
+ * @eventPayload
32
+ * ```ts
33
+ * {
34
+ * id, // The ID of the cart
35
+ * }
36
+ * ```
37
+ */
4
38
  CUSTOMER_UPDATED: string;
39
+ /**
40
+ * Emitted when the cart's region is updated. This
41
+ * event is emitted alongside the `cart.updated` event.
42
+ *
43
+ * @eventPayload
44
+ * ```ts
45
+ * {
46
+ * id, // The ID of the cart
47
+ * }
48
+ * ```
49
+ */
5
50
  REGION_UPDATED: string;
51
+ /**
52
+ * Emitted when the customer in the cart is transferred.
53
+ *
54
+ * @since 2.8.0
55
+ *
56
+ * @eventPayload
57
+ * ```ts
58
+ * {
59
+ * id, // The ID of the cart
60
+ * customer_id, // The ID of the customer
61
+ * }
62
+ * ```
63
+ */
64
+ CUSTOMER_TRANSFERRED: string;
6
65
  };
66
+ /**
67
+ * @category Customer
68
+ * @customNamespace Customer
69
+ */
7
70
  export declare const CustomerWorkflowEvents: {
71
+ /**
72
+ * Emitted when a customer is created.
73
+ *
74
+ * @eventPayload
75
+ * ```ts
76
+ * [{
77
+ * id, // The ID of the customer
78
+ * }]
79
+ * ```
80
+ */
8
81
  CREATED: string;
82
+ /**
83
+ * Emitted when a customer is updated.
84
+ *
85
+ * @eventPayload
86
+ * ```ts
87
+ * [{
88
+ * id, // The ID of the customer
89
+ * }]
90
+ * ```
91
+ */
9
92
  UPDATED: string;
93
+ /**
94
+ * Emitted when a customer is deleted.
95
+ *
96
+ * @eventPayload
97
+ * ```ts
98
+ * [{
99
+ * id, // The ID of the customer
100
+ * }]
101
+ * ```
102
+ */
10
103
  DELETED: string;
11
104
  };
105
+ /**
106
+ * @category Order
107
+ * @customNamespace Order
108
+ */
12
109
  export declare const OrderWorkflowEvents: {
110
+ /**
111
+ * Emitted when the details of an order or draft order is updated. This
112
+ * doesn't include updates made by an edit.
113
+ *
114
+ * @eventPayload
115
+ * ```ts
116
+ * {
117
+ * id, // The ID of the order
118
+ * }
119
+ * ```
120
+ */
13
121
  UPDATED: string;
122
+ /**
123
+ * Emitted when an order is placed, or when a draft order is converted to an
124
+ * order.
125
+ *
126
+ * @eventPayload
127
+ * ```ts
128
+ * {
129
+ * id, // The ID of the order
130
+ * }
131
+ * ```
132
+ */
14
133
  PLACED: string;
134
+ /**
135
+ * Emitted when an order is canceld.
136
+ *
137
+ * @eventPayload
138
+ * ```ts
139
+ * {
140
+ * id, // The ID of the order
141
+ * }
142
+ * ```
143
+ */
15
144
  CANCELED: string;
145
+ /**
146
+ * Emitted when orders are completed.
147
+ *
148
+ * @eventPayload
149
+ * ```ts
150
+ * [{
151
+ * id, // The ID of the order
152
+ * }]
153
+ * ```
154
+ */
16
155
  COMPLETED: string;
156
+ /**
157
+ * Emitted when an order is archived.
158
+ *
159
+ * @eventPayload
160
+ * ```ts
161
+ * [{
162
+ * id, // The ID of the order
163
+ * }]
164
+ * ```
165
+ */
17
166
  ARCHIVED: string;
167
+ /**
168
+ * Emitted when a fulfillment is created for an order.
169
+ *
170
+ * @eventPayload
171
+ * ```ts
172
+ * {
173
+ * order_id, // The ID of the order
174
+ * fulfillment_id, // The ID of the fulfillment
175
+ * no_notification, // (boolean) Whether to notify the customer
176
+ * }
177
+ * ```
178
+ */
18
179
  FULFILLMENT_CREATED: string;
180
+ /**
181
+ * Emitted when an order's fulfillment is canceled.
182
+ *
183
+ * @eventPayload
184
+ * ```ts
185
+ * {
186
+ * order_id, // The ID of the order
187
+ * fulfillment_id, // The ID of the fulfillment
188
+ * no_notification, // (boolean) Whether to notify the customer
189
+ * }
190
+ * ```
191
+ */
19
192
  FULFILLMENT_CANCELED: string;
193
+ /**
194
+ * Emitted when a return request is confirmed.
195
+ *
196
+ * @eventPayload
197
+ * ```ts
198
+ * {
199
+ * order_id, // The ID of the order
200
+ * return_id, // The ID of the return
201
+ * }
202
+ * ```
203
+ */
20
204
  RETURN_REQUESTED: string;
205
+ /**
206
+ * Emitted when a return is marked as received.
207
+ *
208
+ * @eventPayload
209
+ * ```ts
210
+ * {
211
+ * order_id, // The ID of the order
212
+ * return_id, // The ID of the return
213
+ * }
214
+ * ```
215
+ */
21
216
  RETURN_RECEIVED: string;
217
+ /**
218
+ * Emitted when a claim is created for an order.
219
+ *
220
+ * @eventPayload
221
+ * ```ts
222
+ * {
223
+ * order_id, // The ID of the order
224
+ * claim_id, // The ID of the claim
225
+ * }
226
+ * ```
227
+ */
22
228
  CLAIM_CREATED: string;
229
+ /**
230
+ * Emitted when an exchange is created for an order.
231
+ *
232
+ * @eventPayload
233
+ * ```ts
234
+ * {
235
+ * order_id, // The ID of the order
236
+ * exchange_id, // The ID of the exchange
237
+ * }
238
+ * ```
239
+ */
23
240
  EXCHANGE_CREATED: string;
241
+ /**
242
+ * Emitted when an order is requested to be transferred to
243
+ * another customer.
244
+ *
245
+ * @eventPayload
246
+ * ```ts
247
+ * {
248
+ * id, // The ID of the order
249
+ * order_change_id, // The ID of the order change created for the transfer
250
+ * }
251
+ * ```
252
+ */
24
253
  TRANSFER_REQUESTED: string;
25
254
  };
255
+ /**
256
+ * @category Order Edit
257
+ * @customNamespace Order
258
+ */
259
+ export declare const OrderEditWorkflowEvents: {
260
+ /**
261
+ * Emitted when an order edit is requested.
262
+ *
263
+ * @since 2.8.0
264
+ *
265
+ * @eventPayload
266
+ * ```ts
267
+ * {
268
+ * order_id, // The ID of the order
269
+ * actions, // (array) The [actions](https://docs.medusajs.com/resources/references/fulfillment/interfaces/fulfillment.OrderChangeActionDTO) to edit the order
270
+ * }
271
+ * ```
272
+ */
273
+ REQUESTED: string;
274
+ /**
275
+ * Emitted when an order edit request is confirmed.
276
+ *
277
+ * @since 2.8.0
278
+ *
279
+ * @eventPayload
280
+ * ```ts
281
+ * {
282
+ * order_id, // The ID of the order
283
+ * actions, // (array) The [actions](https://docs.medusajs.com/resources/references/fulfillment/interfaces/fulfillment.OrderChangeActionDTO) to edit the order
284
+ * }
285
+ * ```
286
+ */
287
+ CONFIRMED: string;
288
+ /**
289
+ * Emitted when an order edit request is canceled.
290
+ *
291
+ * @since 2.8.0
292
+ *
293
+ * @eventPayload
294
+ * ```ts
295
+ * {
296
+ * order_id, // The ID of the order
297
+ * actions, // (array) The [actions](https://docs.medusajs.com/resources/references/fulfillment/interfaces/fulfillment.OrderChangeActionDTO) to edit the order
298
+ * }
299
+ * ```
300
+ */
301
+ CANCELED: string;
302
+ };
303
+ /**
304
+ * @category User
305
+ * @customNamespace User
306
+ */
26
307
  export declare const UserWorkflowEvents: {
308
+ /**
309
+ * Emitted when users are created.
310
+ *
311
+ * @eventPayload
312
+ * ```ts
313
+ * [{
314
+ * id, // The ID of the user
315
+ * }]
316
+ * ```
317
+ */
27
318
  CREATED: string;
319
+ /**
320
+ * Emitted when users are updated.
321
+ *
322
+ * @eventPayload
323
+ * ```ts
324
+ * [{
325
+ * id, // The ID of the user
326
+ * }]
327
+ * ```
328
+ */
28
329
  UPDATED: string;
330
+ /**
331
+ * Emitted when users are deleted.
332
+ *
333
+ * @eventPayload
334
+ * ```ts
335
+ * [{
336
+ * id, // The ID of the user
337
+ * }]
338
+ * ```
339
+ */
29
340
  DELETED: string;
30
341
  };
342
+ /**
343
+ * @category Auth
344
+ * @customNamespace Auth
345
+ */
31
346
  export declare const AuthWorkflowEvents: {
347
+ /**
348
+ * Emitted when a reset password token is generated. You can listen to this event
349
+ * to send a reset password email to the user or customer, for example.
350
+ *
351
+ * @eventPayload
352
+ * ```ts
353
+ * {
354
+ * entity_id, // The identifier of the user or customer. For example, an email address.
355
+ * actor_type, // The type of actor. For example, "customer", "user", or custom.
356
+ * token, // The generated token.
357
+ * }
358
+ * ```
359
+ */
32
360
  PASSWORD_RESET: string;
33
361
  };
362
+ /**
363
+ * @category Sales Channel
364
+ * @customNamespace Sales Channel
365
+ */
34
366
  export declare const SalesChannelWorkflowEvents: {
367
+ /**
368
+ * Emitted when sales channels are created.
369
+ *
370
+ * @eventPayload
371
+ * ```ts
372
+ * [{
373
+ * id, // The ID of the sales channel
374
+ * }]
375
+ * ```
376
+ */
35
377
  CREATED: string;
378
+ /**
379
+ * Emitted when sales channels are updated.
380
+ *
381
+ * @eventPayload
382
+ * ```ts
383
+ * [{
384
+ * id, // The ID of the sales channel
385
+ * }]
386
+ * ```
387
+ */
36
388
  UPDATED: string;
389
+ /**
390
+ * Emitted when sales channels are deleted.
391
+ *
392
+ * @eventPayload
393
+ * ```ts
394
+ * [{
395
+ * id, // The ID of the sales channel
396
+ * }]
397
+ * ```
398
+ */
37
399
  DELETED: string;
38
400
  };
401
+ /**
402
+ * @category Product Category
403
+ * @customNamespace Product
404
+ */
39
405
  export declare const ProductCategoryWorkflowEvents: {
406
+ /**
407
+ * Emitted when product categories are created.
408
+ *
409
+ * @eventPayload
410
+ * ```ts
411
+ * [{
412
+ * id, // The ID of the product category
413
+ * }]
414
+ * ```
415
+ */
40
416
  CREATED: string;
417
+ /**
418
+ * Emitted when product categories are updated.
419
+ *
420
+ * @eventPayload
421
+ * ```ts
422
+ * [{
423
+ * id, // The ID of the product category
424
+ * }]
425
+ * ```
426
+ */
41
427
  UPDATED: string;
428
+ /**
429
+ * Emitted when product categories are deleted.
430
+ *
431
+ * @eventPayload
432
+ * ```ts
433
+ * [{
434
+ * id, // The ID of the product category
435
+ * }]
436
+ * ```
437
+ */
42
438
  DELETED: string;
43
439
  };
440
+ /**
441
+ * @category Product Collection
442
+ * @customNamespace Product
443
+ */
44
444
  export declare const ProductCollectionWorkflowEvents: {
445
+ /**
446
+ * Emitted when product collections are created.
447
+ *
448
+ * @eventPayload
449
+ * ```ts
450
+ * [{
451
+ * id, // The ID of the product collection
452
+ * }]
453
+ * ```
454
+ */
45
455
  CREATED: string;
456
+ /**
457
+ * Emitted when product collections are updated.
458
+ *
459
+ * @eventPayload
460
+ * ```ts
461
+ * [{
462
+ * id, // The ID of the product collection
463
+ * }]
464
+ * ```
465
+ */
46
466
  UPDATED: string;
467
+ /**
468
+ * Emitted when product collections are deleted.
469
+ *
470
+ * @eventPayload
471
+ * ```ts
472
+ * [{
473
+ * id, // The ID of the product collection
474
+ * }]
475
+ * ```
476
+ */
47
477
  DELETED: string;
48
478
  };
479
+ /**
480
+ * @category Product Variant
481
+ * @customNamespace Product
482
+ */
49
483
  export declare const ProductVariantWorkflowEvents: {
484
+ /**
485
+ * Emitted when product variants are updated.
486
+ *
487
+ * @eventPayload
488
+ * ```ts
489
+ * [{
490
+ * id, // The ID of the product variant
491
+ * }]
492
+ * ```
493
+ */
50
494
  UPDATED: string;
495
+ /**
496
+ * Emitted when product variants are created.
497
+ *
498
+ * @eventPayload
499
+ * ```ts
500
+ * [{
501
+ * id, // The ID of the product variant
502
+ * }]
503
+ * ```
504
+ */
51
505
  CREATED: string;
506
+ /**
507
+ * Emitted when product variants are deleted.
508
+ *
509
+ * @eventPayload
510
+ * ```ts
511
+ * [{
512
+ * id, // The ID of the product variant
513
+ * }]
514
+ * ```
515
+ */
52
516
  DELETED: string;
53
517
  };
518
+ /**
519
+ * @category Product
520
+ * @customNamespace Product
521
+ */
54
522
  export declare const ProductWorkflowEvents: {
523
+ /**
524
+ * Emitted when products are updated.
525
+ *
526
+ * @eventPayload
527
+ * ```ts
528
+ * [{
529
+ * id, // The ID of the product
530
+ * }]
531
+ * ```
532
+ */
55
533
  UPDATED: string;
534
+ /**
535
+ * Emitted when products are created.
536
+ *
537
+ * @eventPayload
538
+ * ```ts
539
+ * [{
540
+ * id, // The ID of the product
541
+ * }]
542
+ * ```
543
+ */
56
544
  CREATED: string;
545
+ /**
546
+ * Emitted when products are deleted.
547
+ *
548
+ * @eventPayload
549
+ * ```ts
550
+ * [{
551
+ * id, // The ID of the product
552
+ * }]
553
+ * ```
554
+ */
57
555
  DELETED: string;
58
556
  };
557
+ /**
558
+ * @category Product Type
559
+ * @customNamespace Product
560
+ */
59
561
  export declare const ProductTypeWorkflowEvents: {
562
+ /**
563
+ * Emitted when product types are updated.
564
+ *
565
+ * @eventPayload
566
+ * ```ts
567
+ * [{
568
+ * id, // The ID of the product type
569
+ * }]
570
+ * ```
571
+ */
60
572
  UPDATED: string;
573
+ /**
574
+ * Emitted when product types are created.
575
+ *
576
+ * @eventPayload
577
+ * ```ts
578
+ * [{
579
+ * id, // The ID of the product type
580
+ * }]
581
+ * ```
582
+ */
61
583
  CREATED: string;
584
+ /**
585
+ * Emitted when product types are deleted.
586
+ *
587
+ * @eventPayload
588
+ * ```ts
589
+ * [{
590
+ * id, // The ID of the product type
591
+ * }]
592
+ * ```
593
+ */
62
594
  DELETED: string;
63
595
  };
596
+ /**
597
+ * @category Product Tag
598
+ * @customNamespace Product
599
+ */
64
600
  export declare const ProductTagWorkflowEvents: {
601
+ /**
602
+ * Emitted when product tags are updated.
603
+ *
604
+ * @eventPayload
605
+ * ```ts
606
+ * [{
607
+ * id, // The ID of the product tag
608
+ * }]
609
+ * ```
610
+ */
65
611
  UPDATED: string;
612
+ /**
613
+ * Emitted when product tags are created.
614
+ *
615
+ * @eventPayload
616
+ * ```ts
617
+ * [{
618
+ * id, // The ID of the product tag
619
+ * }]
620
+ * ```
621
+ */
66
622
  CREATED: string;
623
+ /**
624
+ * Emitted when product tags are deleted.
625
+ *
626
+ * @eventPayload
627
+ * ```ts
628
+ * [{
629
+ * id, // The ID of the product tag
630
+ * }]
631
+ * ```
632
+ */
67
633
  DELETED: string;
68
634
  };
635
+ /**
636
+ * @category Product Option
637
+ * @customNamespace Product
638
+ */
69
639
  export declare const ProductOptionWorkflowEvents: {
640
+ /**
641
+ * Emitted when product options are updated.
642
+ *
643
+ * @eventPayload
644
+ * ```ts
645
+ * [{
646
+ * id, // The ID of the product option
647
+ * }]
648
+ * ```
649
+ */
70
650
  UPDATED: string;
651
+ /**
652
+ * Emitted when product options are created.
653
+ *
654
+ * @eventPayload
655
+ * ```ts
656
+ * [{
657
+ * id, // The ID of the product option
658
+ * }]
659
+ * ```
660
+ */
71
661
  CREATED: string;
662
+ /**
663
+ * Emitted when product options are deleted.
664
+ *
665
+ * @eventPayload
666
+ * ```ts
667
+ * [{
668
+ * id, // The ID of the product option
669
+ * }]
670
+ * ```
671
+ */
72
672
  DELETED: string;
73
673
  };
674
+ /**
675
+ * @category Invite
676
+ * @customNamespace User
677
+ */
74
678
  export declare const InviteWorkflowEvents: {
679
+ /**
680
+ * Emitted when an invite is accepted.
681
+ *
682
+ * @eventPayload
683
+ * ```ts
684
+ * {
685
+ * id, // The ID of the invite
686
+ * }
687
+ * ```
688
+ */
75
689
  ACCEPTED: string;
690
+ /**
691
+ * Emitted when invites are created. You can listen to this event
692
+ * to send an email to the invited users, for example.
693
+ *
694
+ * @eventPayload
695
+ * ```ts
696
+ * [{
697
+ * id, // The ID of the invite
698
+ * }]
699
+ * ```
700
+ */
76
701
  CREATED: string;
702
+ /**
703
+ * Emitted when invites are deleted.
704
+ *
705
+ * @eventPayload
706
+ * ```ts
707
+ * [{
708
+ * id, // The ID of the invite
709
+ * }]
710
+ * ```
711
+ */
77
712
  DELETED: string;
713
+ /**
714
+ * Emitted when invites should be resent because their token was
715
+ * refreshed. You can listen to this event to send an email to the invited users,
716
+ * for example.
717
+ *
718
+ * @eventPayload
719
+ * ```ts
720
+ * [{
721
+ * id, // The ID of the invite
722
+ * }]
723
+ * ```
724
+ */
78
725
  RESENT: string;
79
726
  };
727
+ /**
728
+ * @category Region
729
+ * @customNamespace Region
730
+ */
80
731
  export declare const RegionWorkflowEvents: {
732
+ /**
733
+ * Emitted when regions are updated.
734
+ *
735
+ * @eventPayload
736
+ * ```ts
737
+ * [{
738
+ * id, // The ID of the region
739
+ * }]
740
+ * ```
741
+ */
742
+ UPDATED: string;
743
+ /**
744
+ * Emitted when regions are created.
745
+ *
746
+ * @eventPayload
747
+ * ```ts
748
+ * [{
749
+ * id, // The ID of the region
750
+ * }]
751
+ * ```
752
+ */
753
+ CREATED: string;
754
+ /**
755
+ * Emitted when regions are deleted.
756
+ *
757
+ * @eventPayload
758
+ * ```ts
759
+ * [{
760
+ * id, // The ID of the region
761
+ * }]
762
+ * ```
763
+ */
764
+ DELETED: string;
765
+ };
766
+ /**
767
+ * @category Fulfillment
768
+ * @customNamespace Fulfillment
769
+ */
770
+ export declare const FulfillmentWorkflowEvents: {
771
+ /**
772
+ * Emitted when a shipment is created for an order.
773
+ *
774
+ * @eventPayload
775
+ * ```ts
776
+ * {
777
+ * id, // the ID of the fulfillment
778
+ * no_notification, // (boolean) whether to notify the customer
779
+ * }
780
+ * ```
781
+ */
782
+ SHIPMENT_CREATED: string;
783
+ /**
784
+ * Emitted when a fulfillment is marked as delivered.
785
+ *
786
+ * @eventPayload
787
+ * ```ts
788
+ * {
789
+ * id, // the ID of the fulfillment
790
+ * }
791
+ * ```
792
+ */
793
+ DELIVERY_CREATED: string;
794
+ };
795
+ /**
796
+ * @category Shipping Option Type
797
+ * @customNamespace Fulfillment
798
+ */
799
+ export declare const ShippingOptionTypeWorkflowEvents: {
800
+ /**
801
+ * Emitted when shipping option types are updated.
802
+ *
803
+ * @since 2.10.0
804
+ *
805
+ * @eventPayload
806
+ * ```ts
807
+ * [{
808
+ * id, // The ID of the shipping option type
809
+ * }]
810
+ * ```
811
+ */
81
812
  UPDATED: string;
813
+ /**
814
+ * Emitted when shipping option types are created.
815
+ *
816
+ * @since 2.10.0
817
+ *
818
+ * @eventPayload
819
+ * ```ts
820
+ * [{
821
+ * id, // The ID of the shipping option type
822
+ * }]
823
+ * ```
824
+ */
82
825
  CREATED: string;
826
+ /**
827
+ * Emitted when shipping option types are deleted.
828
+ *
829
+ * @since 2.10.0
830
+ *
831
+ * @eventPayload
832
+ * ```ts
833
+ * [{
834
+ * id, // The ID of the shipping option type
835
+ * }]
836
+ * ```
837
+ */
83
838
  DELETED: string;
84
839
  };
840
+ /**
841
+ * @category Payment
842
+ * @customNamespace Payment
843
+ */
844
+ export declare const PaymentEvents: {
845
+ /**
846
+ * Emitted when a payment is captured.
847
+ *
848
+ * @eventPayload
849
+ * ```ts
850
+ * {
851
+ * id, // the ID of the payment
852
+ * }
853
+ * ```
854
+ */
855
+ CAPTURED: string;
856
+ /**
857
+ * Emitted when a payment is refunded.
858
+ *
859
+ * @eventPayload
860
+ * ```ts
861
+ * {
862
+ * id, // the ID of the payment
863
+ * }
864
+ * ```
865
+ */
866
+ REFUNDED: string;
867
+ };
85
868
  //# sourceMappingURL=events.d.ts.map