@etohq/utils 1.4.0 → 1.5.0
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.
- package/dist/analytics/abstract-analytics-provider.d.ts +110 -0
- package/dist/analytics/abstract-analytics-provider.d.ts.map +1 -0
- package/dist/analytics/abstract-analytics-provider.js +107 -0
- package/dist/analytics/abstract-analytics-provider.js.map +1 -0
- package/dist/analytics/index.d.ts +2 -0
- package/dist/analytics/index.d.ts.map +1 -0
- package/dist/analytics/index.js +18 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/auth/token.d.ts +4 -2
- package/dist/auth/token.d.ts.map +1 -1
- package/dist/auth/token.js +5 -2
- package/dist/auth/token.js.map +1 -1
- package/dist/bundles.d.ts +1 -0
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +2 -1
- package/dist/bundles.js.map +1 -1
- package/dist/common/build-query.d.ts +1 -1
- package/dist/common/build-query.d.ts.map +1 -1
- package/dist/common/compress-name.d.ts +2 -0
- package/dist/common/compress-name.d.ts.map +1 -0
- package/dist/common/compress-name.js +34 -0
- package/dist/common/compress-name.js.map +1 -0
- package/dist/common/container.d.ts +98 -0
- package/dist/common/container.d.ts.map +1 -1
- package/dist/common/container.js +94 -0
- package/dist/common/container.js.map +1 -1
- package/dist/common/create-psql-index-helper.d.ts +1 -1
- package/dist/common/define-config.d.ts +4 -4
- package/dist/common/define-config.d.ts.map +1 -1
- package/dist/common/define-config.js +45 -26
- package/dist/common/define-config.js.map +1 -1
- package/dist/common/errors.d.ts +3 -0
- package/dist/common/errors.d.ts.map +1 -1
- package/dist/common/errors.js +1 -0
- package/dist/common/errors.js.map +1 -1
- package/dist/common/exec-mode.d.ts +2 -0
- package/dist/common/exec-mode.d.ts.map +1 -0
- package/dist/common/exec-mode.js +15 -0
- package/dist/common/exec-mode.js.map +1 -0
- package/dist/common/flatten-object-to-key-value-pairs.d.ts.map +1 -1
- package/dist/common/flatten-object-to-key-value-pairs.js +214 -72
- package/dist/common/flatten-object-to-key-value-pairs.js.map +1 -1
- package/dist/common/get-resolved-plugins.d.ts +4 -0
- package/dist/common/get-resolved-plugins.d.ts.map +1 -0
- package/dist/common/get-resolved-plugins.js +121 -0
- package/dist/common/get-resolved-plugins.js.map +1 -0
- package/dist/common/get-selects-and-relations-from-object-array.d.ts +2 -1
- package/dist/common/get-selects-and-relations-from-object-array.d.ts.map +1 -1
- package/dist/common/get-selects-and-relations-from-object-array.js +7 -5
- package/dist/common/get-selects-and-relations-from-object-array.js.map +1 -1
- package/dist/common/index.d.ts +19 -5
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +19 -5
- package/dist/common/index.js.map +1 -1
- package/dist/common/load-env.d.ts +3 -0
- package/dist/common/load-env.d.ts.map +1 -1
- package/dist/common/load-env.js +7 -4
- package/dist/common/load-env.js.map +1 -1
- package/dist/common/math.d.ts +2 -2
- package/dist/common/math.d.ts.map +1 -1
- package/dist/common/math.js +13 -6
- package/dist/common/math.js.map +1 -1
- package/dist/common/merge-metadata.d.ts +15 -0
- package/dist/common/merge-metadata.d.ts.map +1 -0
- package/dist/common/merge-metadata.js +34 -0
- package/dist/common/merge-metadata.js.map +1 -0
- package/dist/common/normalize-csv-value.d.ts +6 -0
- package/dist/common/normalize-csv-value.d.ts.map +1 -0
- package/dist/common/normalize-csv-value.js +14 -0
- package/dist/common/normalize-csv-value.js.map +1 -0
- package/dist/common/retry-execution.d.ts +18 -0
- package/dist/common/retry-execution.d.ts.map +1 -0
- package/dist/common/retry-execution.js +50 -0
- package/dist/common/retry-execution.js.map +1 -0
- package/dist/common/to-unix-slash.d.ts +2 -0
- package/dist/common/to-unix-slash.d.ts.map +1 -0
- package/dist/common/to-unix-slash.js +11 -0
- package/dist/common/to-unix-slash.js.map +1 -0
- package/dist/common/try-convert-to-boolean.d.ts +7 -0
- package/dist/common/try-convert-to-boolean.d.ts.map +1 -0
- package/dist/common/try-convert-to-boolean.js +15 -0
- package/dist/common/try-convert-to-boolean.js.map +1 -0
- package/dist/common/try-convert-to-number.d.ts +7 -0
- package/dist/common/try-convert-to-number.d.ts.map +1 -0
- package/dist/common/try-convert-to-number.js +10 -0
- package/dist/common/try-convert-to-number.js.map +1 -0
- package/dist/common/unflatten-object-keys.d.ts +29 -0
- package/dist/common/unflatten-object-keys.d.ts.map +1 -0
- package/dist/common/unflatten-object-keys.js +67 -0
- package/dist/common/unflatten-object-keys.js.map +1 -0
- package/dist/common/validate-module-name.d.ts +2 -0
- package/dist/common/validate-module-name.d.ts.map +1 -0
- package/dist/common/validate-module-name.js +27 -0
- package/dist/common/validate-module-name.js.map +1 -0
- package/dist/common/wrap-handler.d.ts +2 -0
- package/dist/common/wrap-handler.d.ts.map +1 -0
- package/dist/common/wrap-handler.js +40 -0
- package/dist/common/wrap-handler.js.map +1 -0
- package/dist/core-flows/events.d.ts +57 -0
- package/dist/core-flows/events.d.ts.map +1 -1
- package/dist/core-flows/events.js +58 -8
- package/dist/core-flows/events.js.map +1 -1
- package/dist/dal/index.d.ts +1 -0
- package/dist/dal/index.d.ts.map +1 -1
- package/dist/dal/index.js +1 -0
- package/dist/dal/index.js.map +1 -1
- package/dist/dal/mikro-orm/big-number-field.d.ts.map +1 -1
- package/dist/dal/mikro-orm/big-number-field.js +36 -21
- package/dist/dal/mikro-orm/big-number-field.js.map +1 -1
- package/dist/dal/mikro-orm/mikro-orm-create-connection.d.ts +10 -4
- package/dist/dal/mikro-orm/mikro-orm-create-connection.d.ts.map +1 -1
- package/dist/dal/mikro-orm/mikro-orm-create-connection.js +53 -11
- package/dist/dal/mikro-orm/mikro-orm-create-connection.js.map +1 -1
- package/dist/dal/mikro-orm/mikro-orm-free-text-search-filter.d.ts +3 -6
- package/dist/dal/mikro-orm/mikro-orm-free-text-search-filter.d.ts.map +1 -1
- package/dist/dal/mikro-orm/mikro-orm-free-text-search-filter.js +16 -21
- package/dist/dal/mikro-orm/mikro-orm-free-text-search-filter.js.map +1 -1
- package/dist/dal/mikro-orm/mikro-orm-repository.d.ts +4 -7
- package/dist/dal/mikro-orm/mikro-orm-repository.d.ts.map +1 -1
- package/dist/dal/mikro-orm/mikro-orm-repository.js +94 -79
- package/dist/dal/mikro-orm/mikro-orm-repository.js.map +1 -1
- package/dist/dal/mikro-orm/mikro-orm-serializer.d.ts +7 -3
- package/dist/dal/mikro-orm/mikro-orm-serializer.d.ts.map +1 -1
- package/dist/dal/mikro-orm/mikro-orm-serializer.js +18 -15
- package/dist/dal/mikro-orm/mikro-orm-serializer.js.map +1 -1
- package/dist/dal/mikro-orm/sql-migration-generator.d.ts +6 -4
- package/dist/dal/mikro-orm/sql-migration-generator.d.ts.map +1 -1
- package/dist/dal/mikro-orm/sql-migration-generator.js +120 -70
- package/dist/dal/mikro-orm/sql-migration-generator.js.map +1 -1
- package/dist/dal/mikro-orm/utils.d.ts +14 -1
- package/dist/dal/mikro-orm/utils.d.ts.map +1 -1
- package/dist/dal/mikro-orm/utils.js +82 -38
- package/dist/dal/mikro-orm/utils.js.map +1 -1
- package/dist/defaults/countries.d.ts.map +1 -1
- package/dist/defaults/countries.js +0 -6
- package/dist/defaults/countries.js.map +1 -1
- package/dist/defaults/currencies.d.ts.map +1 -1
- package/dist/defaults/currencies.js +9 -0
- package/dist/defaults/currencies.js.map +1 -1
- package/dist/dml/entity-builder.d.ts.map +1 -1
- package/dist/dml/entity-builder.js.map +1 -1
- package/dist/dml/entity.d.ts +4 -5
- package/dist/dml/entity.d.ts.map +1 -1
- package/dist/dml/entity.js +0 -2
- package/dist/dml/entity.js.map +1 -1
- package/dist/dml/helpers/create-graphql.d.ts.map +1 -1
- package/dist/dml/helpers/create-graphql.js +27 -2
- package/dist/dml/helpers/create-graphql.js.map +1 -1
- package/dist/dml/helpers/create-mikro-orm-entity.d.ts.map +1 -1
- package/dist/dml/helpers/create-mikro-orm-entity.js +9 -6
- package/dist/dml/helpers/create-mikro-orm-entity.js.map +1 -1
- package/dist/dml/helpers/entity-builder/define-property.d.ts.map +1 -1
- package/dist/dml/helpers/entity-builder/define-property.js +9 -7
- package/dist/dml/helpers/entity-builder/define-property.js.map +1 -1
- package/dist/dml/helpers/entity-builder/define-relationship.d.ts +1 -1
- package/dist/dml/helpers/entity-builder/define-relationship.d.ts.map +1 -1
- package/dist/dml/helpers/entity-builder/define-relationship.js +41 -25
- package/dist/dml/helpers/entity-builder/define-relationship.js.map +1 -1
- package/dist/dml/helpers/entity-builder/index.d.ts +1 -0
- package/dist/dml/helpers/entity-builder/index.d.ts.map +1 -1
- package/dist/dml/helpers/entity-builder/index.js +1 -0
- package/dist/dml/helpers/entity-builder/index.js.map +1 -1
- package/dist/dml/helpers/entity-builder/relationship-helpers.d.ts +6 -0
- package/dist/dml/helpers/entity-builder/relationship-helpers.d.ts.map +1 -0
- package/dist/dml/helpers/entity-builder/relationship-helpers.js +12 -0
- package/dist/dml/helpers/entity-builder/relationship-helpers.js.map +1 -0
- package/dist/dml/helpers/graphql-builder/get-attribute.js +2 -2
- package/dist/dml/helpers/graphql-builder/get-attribute.js.map +1 -1
- package/dist/dml/index.d.ts +1 -1
- package/dist/dml/index.d.ts.map +1 -1
- package/dist/dml/index.js +1 -1
- package/dist/dml/index.js.map +1 -1
- package/dist/dml/integration-tests/utils.js +1 -1
- package/dist/dml/integration-tests/utils.js.map +1 -1
- package/dist/dml/properties/autoincrement.d.ts +20 -1
- package/dist/dml/properties/autoincrement.d.ts.map +1 -1
- package/dist/dml/properties/autoincrement.js +19 -0
- package/dist/dml/properties/autoincrement.js.map +1 -1
- package/dist/dml/properties/number.d.ts +20 -1
- package/dist/dml/properties/number.d.ts.map +1 -1
- package/dist/dml/properties/number.js +19 -0
- package/dist/dml/properties/number.js.map +1 -1
- package/dist/event-bus/index.d.ts +1 -1
- package/dist/event-bus/index.d.ts.map +1 -1
- package/dist/event-bus/index.js +5 -6
- package/dist/event-bus/index.js.map +1 -1
- package/dist/event-bus/message-aggregator.js +1 -1
- package/dist/event-bus/message-aggregator.js.map +1 -1
- package/dist/feature-flags/eto-v2.d.ts +3 -0
- package/dist/feature-flags/eto-v2.d.ts.map +1 -0
- package/dist/feature-flags/eto-v2.js +10 -0
- package/dist/feature-flags/eto-v2.js.map +1 -0
- package/dist/feature-flags/many-to-many-inventory.d.ts +3 -0
- package/dist/feature-flags/many-to-many-inventory.d.ts.map +1 -0
- package/dist/feature-flags/many-to-many-inventory.js +10 -0
- package/dist/feature-flags/many-to-many-inventory.js.map +1 -0
- package/dist/feature-flags/order-editing.d.ts +3 -0
- package/dist/feature-flags/order-editing.d.ts.map +1 -0
- package/dist/feature-flags/order-editing.js +10 -0
- package/dist/feature-flags/order-editing.js.map +1 -0
- package/dist/feature-flags/product-categories.d.ts +3 -0
- package/dist/feature-flags/product-categories.d.ts.map +1 -0
- package/dist/feature-flags/product-categories.js +10 -0
- package/dist/feature-flags/product-categories.js.map +1 -0
- package/dist/feature-flags/sales-channels.d.ts +3 -0
- package/dist/feature-flags/sales-channels.d.ts.map +1 -0
- package/dist/feature-flags/sales-channels.js +10 -0
- package/dist/feature-flags/sales-channels.js.map +1 -0
- package/dist/feature-flags/tax-inclusive-pricing.d.ts +3 -0
- package/dist/feature-flags/tax-inclusive-pricing.d.ts.map +1 -0
- package/dist/feature-flags/tax-inclusive-pricing.js +10 -0
- package/dist/feature-flags/tax-inclusive-pricing.js.map +1 -0
- package/dist/file/abstract-file-provider.d.ts +70 -11
- package/dist/file/abstract-file-provider.d.ts.map +1 -1
- package/dist/file/abstract-file-provider.js +73 -11
- package/dist/file/abstract-file-provider.js.map +1 -1
- package/dist/graphql/graphql-to-ts-types.d.ts.map +1 -1
- package/dist/graphql/graphql-to-ts-types.js +23 -2
- package/dist/graphql/graphql-to-ts-types.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/migrations/index.d.ts +8 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +27 -2
- package/dist/migrations/index.js.map +1 -1
- package/dist/modules-sdk/build-query.d.ts.map +1 -1
- package/dist/modules-sdk/build-query.js +14 -13
- package/dist/modules-sdk/build-query.js.map +1 -1
- package/dist/modules-sdk/create-pg-connection.d.ts +2 -1
- package/dist/modules-sdk/create-pg-connection.d.ts.map +1 -1
- package/dist/modules-sdk/create-pg-connection.js +1 -1
- package/dist/modules-sdk/decorators/inject-manager.d.ts.map +1 -1
- package/dist/modules-sdk/decorators/inject-manager.js +6 -0
- package/dist/modules-sdk/decorators/inject-manager.js.map +1 -1
- package/dist/modules-sdk/decorators/inject-transaction-manager.js +5 -5
- package/dist/modules-sdk/decorators/inject-transaction-manager.js.map +1 -1
- package/dist/modules-sdk/define-link.d.ts +2 -0
- package/dist/modules-sdk/define-link.d.ts.map +1 -1
- package/dist/modules-sdk/define-link.js +16 -0
- package/dist/modules-sdk/define-link.js.map +1 -1
- package/dist/modules-sdk/definition.d.ts +9 -0
- package/dist/modules-sdk/definition.d.ts.map +1 -1
- package/dist/modules-sdk/definition.js +5 -2
- package/dist/modules-sdk/definition.js.map +1 -1
- package/dist/modules-sdk/eto-internal-service.d.ts.map +1 -1
- package/dist/modules-sdk/eto-internal-service.js +35 -37
- package/dist/modules-sdk/eto-internal-service.js.map +1 -1
- package/dist/modules-sdk/eto-service.d.ts.map +1 -1
- package/dist/modules-sdk/eto-service.js +25 -41
- package/dist/modules-sdk/eto-service.js.map +1 -1
- package/dist/modules-sdk/event-builder-factory.js +9 -9
- package/dist/modules-sdk/event-builder-factory.js.map +1 -1
- package/dist/modules-sdk/joiner-config-builder.js +1 -1
- package/dist/modules-sdk/joiner-config-builder.js.map +1 -1
- package/dist/modules-sdk/load-module-database-config.d.ts.map +1 -1
- package/dist/modules-sdk/load-module-database-config.js +3 -0
- package/dist/modules-sdk/load-module-database-config.js.map +1 -1
- package/dist/modules-sdk/loaders/mikro-orm-connection-loader.d.ts.map +1 -1
- package/dist/modules-sdk/loaders/mikro-orm-connection-loader.js +0 -7
- package/dist/modules-sdk/loaders/mikro-orm-connection-loader.js.map +1 -1
- package/dist/modules-sdk/migration-scripts/index.d.ts +1 -0
- package/dist/modules-sdk/migration-scripts/index.d.ts.map +1 -1
- package/dist/modules-sdk/migration-scripts/index.js +1 -0
- package/dist/modules-sdk/migration-scripts/index.js.map +1 -1
- package/dist/modules-sdk/migration-scripts/migration-down.js +2 -2
- package/dist/modules-sdk/migration-scripts/migration-down.js.map +1 -1
- package/dist/modules-sdk/migration-scripts/migration-generate.d.ts.map +1 -1
- package/dist/modules-sdk/migration-scripts/migration-generate.js +7 -3
- package/dist/modules-sdk/migration-scripts/migration-generate.js.map +1 -1
- package/dist/modules-sdk/migration-scripts/migration-up.js +2 -2
- package/dist/modules-sdk/migration-scripts/migration-up.js.map +1 -1
- package/dist/modules-sdk/migration-scripts/service-migration-generate.d.ts +7 -0
- package/dist/modules-sdk/migration-scripts/service-migration-generate.d.ts.map +1 -0
- package/dist/modules-sdk/migration-scripts/service-migration-generate.js +49 -0
- package/dist/modules-sdk/migration-scripts/service-migration-generate.js.map +1 -0
- package/dist/modules-sdk/mikro-orm-cli-config-builder.d.ts +0 -1
- package/dist/modules-sdk/mikro-orm-cli-config-builder.d.ts.map +1 -1
- package/dist/modules-sdk/mikro-orm-cli-config-builder.js +7 -6
- package/dist/modules-sdk/mikro-orm-cli-config-builder.js.map +1 -1
- package/dist/modules-sdk/module.d.ts.map +1 -1
- package/dist/modules-sdk/module.js +12 -14
- package/dist/modules-sdk/module.js.map +1 -1
- package/dist/modules-sdk/modules-to-container-types.d.ts.map +1 -1
- package/dist/modules-sdk/modules-to-container-types.js +30 -3
- package/dist/modules-sdk/modules-to-container-types.js.map +1 -1
- package/dist/modules-sdk/query-context.d.ts +2 -2
- package/dist/modules-sdk/query-context.d.ts.map +1 -1
- package/dist/modules-sdk/query-context.js.map +1 -1
- package/dist/modules-sdk/types/eto-service.d.ts +34 -10
- package/dist/modules-sdk/types/eto-service.d.ts.map +1 -1
- package/dist/notification/abstract-notification-provider.d.ts +10 -0
- package/dist/notification/abstract-notification-provider.d.ts.map +1 -1
- package/dist/notification/abstract-notification-provider.js.map +1 -1
- package/dist/payment/abstract-payment-provider.d.ts +253 -263
- package/dist/payment/abstract-payment-provider.d.ts.map +1 -1
- package/dist/payment/abstract-payment-provider.js +7 -15
- package/dist/payment/abstract-payment-provider.js.map +1 -1
- package/dist/payment/index.d.ts +0 -2
- package/dist/payment/index.d.ts.map +1 -1
- package/dist/payment/index.js +0 -2
- package/dist/payment/index.js.map +1 -1
- package/dist/payment/payment-collection.d.ts +13 -1
- package/dist/payment/payment-collection.d.ts.map +1 -1
- package/dist/payment/payment-collection.js +12 -0
- package/dist/payment/payment-collection.js.map +1 -1
- package/dist/payment/webhook.d.ts +13 -1
- package/dist/payment/webhook.d.ts.map +1 -1
- package/dist/payment/webhook.js +13 -1
- package/dist/payment/webhook.js.map +1 -1
- package/dist/totals/big-number.d.ts +23 -0
- package/dist/totals/big-number.d.ts.map +1 -0
- package/dist/totals/big-number.js +115 -0
- package/dist/totals/big-number.js.map +1 -0
- package/dist/totals/create-raw-properties-from-bignumber.d.ts +5 -0
- package/dist/totals/create-raw-properties-from-bignumber.d.ts.map +1 -0
- package/dist/totals/create-raw-properties-from-bignumber.js +52 -0
- package/dist/totals/create-raw-properties-from-bignumber.js.map +1 -0
- package/dist/totals/index.d.ts +6 -0
- package/dist/totals/index.d.ts.map +1 -0
- package/dist/totals/index.js +22 -0
- package/dist/totals/index.js.map +1 -0
- package/dist/totals/math.d.ts +24 -0
- package/dist/totals/math.d.ts.map +1 -0
- package/dist/totals/math.js +106 -0
- package/dist/totals/math.js.map +1 -0
- package/dist/totals/transform-properties-to-bignumber.d.ts +6 -0
- package/dist/totals/transform-properties-to-bignumber.d.ts.map +1 -0
- package/dist/totals/transform-properties-to-bignumber.js +40 -0
- package/dist/totals/transform-properties-to-bignumber.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/dist/payment/get-smallest-unit.d.ts +0 -17
- package/dist/payment/get-smallest-unit.d.ts.map +0 -1
- package/dist/payment/get-smallest-unit.js +0 -68
- package/dist/payment/get-smallest-unit.js.map +0 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.retryExecution = retryExecution;
|
|
4
|
+
const promises_1 = require("timers/promises");
|
|
5
|
+
const ONE_SECOND = 1000;
|
|
6
|
+
/**
|
|
7
|
+
* Retry the function to be executed until it succeeds or the max retries is reached.
|
|
8
|
+
*
|
|
9
|
+
* @param fn - The function to be executed.
|
|
10
|
+
* @param options - The options for the retry execution.
|
|
11
|
+
* @param options.shouldRetry - The function to determine if the function should be retried based on the error argument.
|
|
12
|
+
* @param options.maxRetries - The maximum number of retries.
|
|
13
|
+
* @param options.retryDelay - The delay between retries. If a function is provided, it will be called with the current retry count and the maximum number of retries and should return the delay in milliseconds.
|
|
14
|
+
* @param options.onRetry - The function to be called when the function fails to execute.
|
|
15
|
+
* @returns The result of the function.
|
|
16
|
+
*/
|
|
17
|
+
async function retryExecution(fn, options = {
|
|
18
|
+
shouldRetry: () => true,
|
|
19
|
+
onRetry: () => { },
|
|
20
|
+
maxRetries: 5,
|
|
21
|
+
retryDelay: ONE_SECOND,
|
|
22
|
+
}) {
|
|
23
|
+
let { shouldRetry, onRetry, maxRetries, retryDelay } = options;
|
|
24
|
+
shouldRetry = shouldRetry ?? (() => true);
|
|
25
|
+
maxRetries = maxRetries ?? 5;
|
|
26
|
+
onRetry = onRetry ?? (() => { });
|
|
27
|
+
const retryDelayFn = typeof retryDelay === "function"
|
|
28
|
+
? retryDelay
|
|
29
|
+
: (retries, maxRetries) => retryDelay;
|
|
30
|
+
let retries = 0;
|
|
31
|
+
while (retries < maxRetries) {
|
|
32
|
+
try {
|
|
33
|
+
return await fn();
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
if (!shouldRetry(error)) {
|
|
37
|
+
throw error;
|
|
38
|
+
}
|
|
39
|
+
retries++;
|
|
40
|
+
if (retries === maxRetries) {
|
|
41
|
+
throw error;
|
|
42
|
+
}
|
|
43
|
+
onRetry(error);
|
|
44
|
+
await (0, promises_1.setTimeout)(retryDelayFn(retries, maxRetries));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// This should never be reached
|
|
48
|
+
throw new Error("Retry execution failed. Max retries reached.");
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=retry-execution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retry-execution.js","sourceRoot":"","sources":["../../src/common/retry-execution.ts"],"names":[],"mappings":";;AAeA,wCA6CC;AA5DD,8CAA4C;AAE5C,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB;;;;;;;;;;GAUG;AACI,KAAK,UAAU,cAAc,CAClC,EAAoB,EACpB,UAKI;IACF,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI;IACvB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;IACjB,UAAU,EAAE,CAAC;IACb,UAAU,EAAE,UAAU;CACvB;IAED,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,OAAO,CAAA;IAC9D,WAAW,GAAG,WAAW,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAA;IACzC,UAAU,GAAG,UAAU,IAAI,CAAC,CAAA;IAC5B,OAAO,GAAG,OAAO,IAAI,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;IAE/B,MAAM,YAAY,GAChB,OAAO,UAAU,KAAK,UAAU;QAC9B,CAAC,CAAC,UAAU;QACZ,CAAC,CAAC,CAAC,OAAe,EAAE,UAAkB,EAAE,EAAE,CAAC,UAAU,CAAA;IAEzD,IAAI,OAAO,GAAG,CAAC,CAAA;IACf,OAAO,OAAO,GAAG,UAAU,EAAE,CAAC;QAC5B,IAAI,CAAC;YACH,OAAO,MAAM,EAAE,EAAE,CAAA;QACnB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,KAAc,CAAC,EAAE,CAAC;gBACjC,MAAM,KAAK,CAAA;YACb,CAAC;YACD,OAAO,EAAE,CAAA;YACT,IAAI,OAAO,KAAK,UAAU,EAAE,CAAC;gBAC3B,MAAM,KAAK,CAAA;YACb,CAAC;YAED,OAAO,CAAC,KAAK,CAAC,CAAA;YAEd,MAAM,IAAA,qBAAU,EAAC,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAA;QACrD,CAAC;IACH,CAAC;IAED,+BAA+B;IAC/B,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAA;AACjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-unix-slash.d.ts","sourceRoot":"","sources":["../../src/common/to-unix-slash.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,UAOvC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toUnixSlash = toUnixSlash;
|
|
4
|
+
function toUnixSlash(path) {
|
|
5
|
+
const isExtendedLengthPath = path.startsWith("\\\\?\\");
|
|
6
|
+
if (isExtendedLengthPath) {
|
|
7
|
+
return path;
|
|
8
|
+
}
|
|
9
|
+
return path.replace(/\\/g, "/");
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=to-unix-slash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-unix-slash.js","sourceRoot":"","sources":["../../src/common/to-unix-slash.ts"],"names":[],"mappings":";;AAAA,kCAOC;AAPD,SAAgB,WAAW,CAAC,IAAY;IACtC,MAAM,oBAAoB,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;IACvD,IAAI,oBAAoB,EAAE,CAAC;QACzB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;AACjC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transforms a value to a boolean or returns the default value
|
|
3
|
+
* when original value cannot be casted to a boolean
|
|
4
|
+
*/
|
|
5
|
+
export declare function tryConvertToBoolean(value: unknown): boolean | undefined;
|
|
6
|
+
export declare function tryConvertToBoolean<T>(value: unknown, defaultValue: T): boolean | T;
|
|
7
|
+
//# sourceMappingURL=try-convert-to-boolean.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"try-convert-to-boolean.d.ts","sourceRoot":"","sources":["../../src/common/try-convert-to-boolean.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAA;AACxE,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,KAAK,EAAE,OAAO,EACd,YAAY,EAAE,CAAC,GACd,OAAO,GAAG,CAAC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tryConvertToBoolean = tryConvertToBoolean;
|
|
4
|
+
function tryConvertToBoolean(value, defaultValue) {
|
|
5
|
+
if (typeof value === "string") {
|
|
6
|
+
const normalizedValue = value.toLowerCase();
|
|
7
|
+
return normalizedValue === "true"
|
|
8
|
+
? true
|
|
9
|
+
: normalizedValue === "false"
|
|
10
|
+
? false
|
|
11
|
+
: defaultValue ?? undefined;
|
|
12
|
+
}
|
|
13
|
+
return defaultValue ?? undefined;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=try-convert-to-boolean.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"try-convert-to-boolean.js","sourceRoot":"","sources":["../../src/common/try-convert-to-boolean.ts"],"names":[],"mappings":";;AASA,kDAaC;AAbD,SAAgB,mBAAmB,CACjC,KAAc,EACd,YAAgB;IAEhB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,eAAe,GAAG,KAAK,CAAC,WAAW,EAAE,CAAA;QAC3C,OAAO,eAAe,KAAK,MAAM;YAC/B,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,eAAe,KAAK,OAAO;gBAC7B,CAAC,CAAC,KAAK;gBACP,CAAC,CAAC,YAAY,IAAI,SAAS,CAAA;IAC/B,CAAC;IACD,OAAO,YAAY,IAAI,SAAS,CAAA;AAClC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transforms a value to number or returns the default value
|
|
3
|
+
* when original value cannot be casted to number
|
|
4
|
+
*/
|
|
5
|
+
export declare function tryConvertToNumber(value: unknown): number | undefined;
|
|
6
|
+
export declare function tryConvertToNumber<T>(value: unknown, defaultValue: T): number | T;
|
|
7
|
+
//# sourceMappingURL=try-convert-to-number.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"try-convert-to-number.d.ts","sourceRoot":"","sources":["../../src/common/try-convert-to-number.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;AACtE,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,KAAK,EAAE,OAAO,EACd,YAAY,EAAE,CAAC,GACd,MAAM,GAAG,CAAC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tryConvertToNumber = tryConvertToNumber;
|
|
4
|
+
function tryConvertToNumber(value, defaultValue) {
|
|
5
|
+
const transformedValue = Number(value);
|
|
6
|
+
return Number.isNaN(transformedValue)
|
|
7
|
+
? defaultValue ?? undefined
|
|
8
|
+
: transformedValue;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=try-convert-to-number.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"try-convert-to-number.js","sourceRoot":"","sources":["../../src/common/try-convert-to-number.ts"],"names":[],"mappings":";;AASA,gDAQC;AARD,SAAgB,kBAAkB,CAChC,KAAc,EACd,YAAgB;IAEhB,MAAM,gBAAgB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC;QACnC,CAAC,CAAC,YAAY,IAAI,SAAS;QAC3B,CAAC,CAAC,gBAAgB,CAAA;AACtB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* unFlatten object keys
|
|
3
|
+
* @example
|
|
4
|
+
* input: {
|
|
5
|
+
* "variants.sku": { $like: "%-1" },
|
|
6
|
+
* "variants.prices.amount": { $gt: 30 },
|
|
7
|
+
* "variants.prices.currency": "USD"
|
|
8
|
+
* }
|
|
9
|
+
*
|
|
10
|
+
* output: {
|
|
11
|
+
* {
|
|
12
|
+
* "variants": {
|
|
13
|
+
* "sku": {
|
|
14
|
+
* "$like": "%-1"
|
|
15
|
+
* },
|
|
16
|
+
* "prices": {
|
|
17
|
+
* "amount": {
|
|
18
|
+
* "$gt": 30
|
|
19
|
+
* },
|
|
20
|
+
* "currency": "USD"
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
*
|
|
26
|
+
* @param input
|
|
27
|
+
*/
|
|
28
|
+
export declare function unflattenObjectKeys(flattened: Record<string, any>): Record<string, any>;
|
|
29
|
+
//# sourceMappingURL=unflatten-object-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unflatten-object-keys.d.ts","sourceRoot":"","sources":["../../src/common/unflatten-object-keys.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC7B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAoCrB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unflattenObjectKeys = unflattenObjectKeys;
|
|
4
|
+
const is_object_1 = require("./is-object");
|
|
5
|
+
/**
|
|
6
|
+
* unFlatten object keys
|
|
7
|
+
* @example
|
|
8
|
+
* input: {
|
|
9
|
+
* "variants.sku": { $like: "%-1" },
|
|
10
|
+
* "variants.prices.amount": { $gt: 30 },
|
|
11
|
+
* "variants.prices.currency": "USD"
|
|
12
|
+
* }
|
|
13
|
+
*
|
|
14
|
+
* output: {
|
|
15
|
+
* {
|
|
16
|
+
* "variants": {
|
|
17
|
+
* "sku": {
|
|
18
|
+
* "$like": "%-1"
|
|
19
|
+
* },
|
|
20
|
+
* "prices": {
|
|
21
|
+
* "amount": {
|
|
22
|
+
* "$gt": 30
|
|
23
|
+
* },
|
|
24
|
+
* "currency": "USD"
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
*
|
|
30
|
+
* @param input
|
|
31
|
+
*/
|
|
32
|
+
function unflattenObjectKeys(flattened) {
|
|
33
|
+
const result = {};
|
|
34
|
+
for (const key in flattened) {
|
|
35
|
+
if (!key.includes(".")) {
|
|
36
|
+
if ((0, is_object_1.isObject)(result[key])) {
|
|
37
|
+
result[key] = { ...result[key], ...flattened[key] };
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
result[key] = flattened[key];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
for (const key in flattened) {
|
|
45
|
+
if (key.includes(".")) {
|
|
46
|
+
const value = flattened[key];
|
|
47
|
+
const keys = key.split(".");
|
|
48
|
+
let current = result;
|
|
49
|
+
for (let i = 0; i < keys.length; i++) {
|
|
50
|
+
const part = keys[i];
|
|
51
|
+
if (i === keys.length - 1) {
|
|
52
|
+
if ((0, is_object_1.isObject)(value) && current[part]) {
|
|
53
|
+
current[part] = { ...current[part], ...value };
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
current[part] = value;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
current = current[part] = current[part] ?? {};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=unflatten-object-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unflatten-object-keys.js","sourceRoot":"","sources":["../../src/common/unflatten-object-keys.ts"],"names":[],"mappings":";;AA6BA,kDAsCC;AAnED,2CAAsC;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,mBAAmB,CACjC,SAA8B;IAE9B,MAAM,MAAM,GAAwB,EAAE,CAAA;IAEtC,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;QAC5B,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACvB,IAAI,IAAA,oBAAQ,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;gBAC1B,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC,EAAE,CAAA;YACrD,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;YAC9B,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;QAC5B,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;YAC5B,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YAC3B,IAAI,OAAO,GAAG,MAAM,CAAA;YAEpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACrC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;gBAEpB,IAAI,CAAC,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBAC1B,IAAI,IAAA,oBAAQ,EAAC,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;wBACrC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,CAAA;oBAChD,CAAC;yBAAM,CAAC;wBACN,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAA;oBACvB,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAA;gBAC/C,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-module-name.d.ts","sourceRoot":"","sources":["../../src/common/validate-module-name.ts"],"names":[],"mappings":"AAkBA,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,QAM9C"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateModuleName = validateModuleName;
|
|
4
|
+
/**
|
|
5
|
+
* Validates the module name to be variable safe. Since we generate
|
|
6
|
+
* a lot of code, types under the hood using the module name we
|
|
7
|
+
* have ensure that each module name is variable safe.
|
|
8
|
+
*
|
|
9
|
+
* Ofcourse, we can transform the module name to a variable safe value,
|
|
10
|
+
* but that might result into naming conflicts. For example: There are
|
|
11
|
+
* two module named as
|
|
12
|
+
*
|
|
13
|
+
* - sanity-products
|
|
14
|
+
* - sanity_products
|
|
15
|
+
*
|
|
16
|
+
* After transforming them, they will endup with the same output. This is
|
|
17
|
+
* a very simple example, but cases like these will lead to naming
|
|
18
|
+
* conflicts, so its better to use the names as it is and restrict
|
|
19
|
+
* them to be variable safe
|
|
20
|
+
*/
|
|
21
|
+
const RE = /^[a-zA-Z_][0-9a-zA-Z_]*$/;
|
|
22
|
+
function validateModuleName(name) {
|
|
23
|
+
if (!RE.test(name)) {
|
|
24
|
+
throw new Error(`Invalid module name "${name}". Module names must be alpha numeric and may contain an underscore`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=validate-module-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-module-name.js","sourceRoot":"","sources":["../../src/common/validate-module-name.ts"],"names":[],"mappings":";;AAkBA,gDAMC;AAxBD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,EAAE,GAAG,0BAA0B,CAAA;AACrC,SAAgB,kBAAkB,CAAC,IAAY;IAC7C,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CACb,wBAAwB,IAAI,qEAAqE,CAClG,CAAA;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrap-handler.d.ts","sourceRoot":"","sources":["../../src/common/wrap-handler.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// import { NextFunction, Request, RequestHandler, Response } from "express"
|
|
4
|
+
//
|
|
5
|
+
// type handler = (req: Request, res: Response) => Promise<void>
|
|
6
|
+
//
|
|
7
|
+
// export const wrapHandler = (fn: handler): RequestHandler => {
|
|
8
|
+
// return async (req: Request, res: Response, next: NextFunction) => {
|
|
9
|
+
// const req_ = req as Request & { errors?: Error[] }
|
|
10
|
+
// if (req_?.errors?.length) {
|
|
11
|
+
// return res.status(400).json({
|
|
12
|
+
// errors: req_.errors,
|
|
13
|
+
// message:
|
|
14
|
+
// "Provided request body contains errors. Please check the data and retry the request",
|
|
15
|
+
// })
|
|
16
|
+
// }
|
|
17
|
+
//
|
|
18
|
+
// try {
|
|
19
|
+
// return await fn(req, res)
|
|
20
|
+
// } catch (err) {
|
|
21
|
+
// next(err)
|
|
22
|
+
// }
|
|
23
|
+
// }
|
|
24
|
+
// }
|
|
25
|
+
//
|
|
26
|
+
// /**
|
|
27
|
+
// * @schema MultipleErrors
|
|
28
|
+
// * title: "Multiple Errors"
|
|
29
|
+
// * type: object
|
|
30
|
+
// * properties:
|
|
31
|
+
// * errors:
|
|
32
|
+
// * type: array
|
|
33
|
+
// * description: Array of errors
|
|
34
|
+
// * items:
|
|
35
|
+
// * $ref: "#/components/schemas/Error"
|
|
36
|
+
// * message:
|
|
37
|
+
// * type: string
|
|
38
|
+
// * default: "Provided request body contains errors. Please check the data and retry the request"
|
|
39
|
+
// */
|
|
40
|
+
//# sourceMappingURL=wrap-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrap-handler.js","sourceRoot":"","sources":["../../src/common/wrap-handler.ts"],"names":[],"mappings":";;AAAA,4EAA4E;AAC5E,EAAE;AACF,gEAAgE;AAChE,EAAE;AACF,gEAAgE;AAChE,wEAAwE;AACxE,yDAAyD;AACzD,kCAAkC;AAClC,sCAAsC;AACtC,+BAA+B;AAC/B,mBAAmB;AACnB,kGAAkG;AAClG,WAAW;AACX,QAAQ;AACR,EAAE;AACF,YAAY;AACZ,kCAAkC;AAClC,sBAAsB;AACtB,kBAAkB;AAClB,QAAQ;AACR,MAAM;AACN,IAAI;AACJ,EAAE;AACF,MAAM;AACN,4BAA4B;AAC5B,8BAA8B;AAC9B,kBAAkB;AAClB,iBAAiB;AACjB,cAAc;AACd,oBAAoB;AACpB,qCAAqC;AACrC,eAAe;AACf,6CAA6C;AAC7C,eAAe;AACf,qBAAqB;AACrB,sGAAsG;AACtG,MAAM"}
|
|
@@ -1,9 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @category User
|
|
3
|
+
* @customNamespace User
|
|
4
|
+
*/
|
|
1
5
|
export declare const UserWorkflowEvents: {
|
|
6
|
+
/**
|
|
7
|
+
* Emitted when users are created.
|
|
8
|
+
*
|
|
9
|
+
* @eventPayload
|
|
10
|
+
* ```ts
|
|
11
|
+
* [{
|
|
12
|
+
* id, // The ID of the user
|
|
13
|
+
* }]
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
2
16
|
CREATED: string;
|
|
17
|
+
/**
|
|
18
|
+
* Emitted when users are updated.
|
|
19
|
+
*
|
|
20
|
+
* @eventPayload
|
|
21
|
+
* ```ts
|
|
22
|
+
* [{
|
|
23
|
+
* id, // The ID of the user
|
|
24
|
+
* }]
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
3
27
|
UPDATED: string;
|
|
28
|
+
/**
|
|
29
|
+
* Emitted when users are deleted.
|
|
30
|
+
*
|
|
31
|
+
* @eventPayload
|
|
32
|
+
* ```ts
|
|
33
|
+
* [{
|
|
34
|
+
* id, // The ID of the user
|
|
35
|
+
* }]
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
4
38
|
DELETED: string;
|
|
5
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* @category Auth
|
|
42
|
+
* @customNamespace Auth
|
|
43
|
+
*/
|
|
6
44
|
export declare const AuthWorkflowEvents: {
|
|
45
|
+
/**
|
|
46
|
+
* Emitted when a reset password token is generated. You can listen to this event
|
|
47
|
+
* to send a reset password email to the user or customer, for example.
|
|
48
|
+
*
|
|
49
|
+
* @eventPayload
|
|
50
|
+
* ```ts
|
|
51
|
+
* {
|
|
52
|
+
* entity_id, // The identifier of the user or customer. For example, an email address.
|
|
53
|
+
* actor_type, // The type of actor. For example, "customer", "user", or custom.
|
|
54
|
+
* token, // The generated token.
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
7
58
|
PASSWORD_RESET: string;
|
|
8
59
|
};
|
|
60
|
+
export declare const InviteWorkflowEvents: {
|
|
61
|
+
ACCEPTED: string;
|
|
62
|
+
CREATED: string;
|
|
63
|
+
DELETED: string;
|
|
64
|
+
RESENT: string;
|
|
65
|
+
};
|
|
9
66
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core-flows/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core-flows/events.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAC7B;;;;;;;;;OASG;;IAEH;;;;;;;;;OASG;;IAEH;;;;;;;;;OASG;;CAEJ,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAC7B;;;;;;;;;;;;OAYG;;CAEJ,CAAA;AAGD,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAA"}
|
|
@@ -1,19 +1,69 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthWorkflowEvents = exports.UserWorkflowEvents = void 0;
|
|
3
|
+
exports.InviteWorkflowEvents = exports.AuthWorkflowEvents = exports.UserWorkflowEvents = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @category User
|
|
6
|
+
* @customNamespace User
|
|
7
|
+
*/
|
|
4
8
|
exports.UserWorkflowEvents = {
|
|
9
|
+
/**
|
|
10
|
+
* Emitted when users are created.
|
|
11
|
+
*
|
|
12
|
+
* @eventPayload
|
|
13
|
+
* ```ts
|
|
14
|
+
* [{
|
|
15
|
+
* id, // The ID of the user
|
|
16
|
+
* }]
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
5
19
|
CREATED: "user.created",
|
|
20
|
+
/**
|
|
21
|
+
* Emitted when users are updated.
|
|
22
|
+
*
|
|
23
|
+
* @eventPayload
|
|
24
|
+
* ```ts
|
|
25
|
+
* [{
|
|
26
|
+
* id, // The ID of the user
|
|
27
|
+
* }]
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
6
30
|
UPDATED: "user.updated",
|
|
31
|
+
/**
|
|
32
|
+
* Emitted when users are deleted.
|
|
33
|
+
*
|
|
34
|
+
* @eventPayload
|
|
35
|
+
* ```ts
|
|
36
|
+
* [{
|
|
37
|
+
* id, // The ID of the user
|
|
38
|
+
* }]
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
7
41
|
DELETED: "user.deleted",
|
|
8
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* @category Auth
|
|
45
|
+
* @customNamespace Auth
|
|
46
|
+
*/
|
|
9
47
|
exports.AuthWorkflowEvents = {
|
|
48
|
+
/**
|
|
49
|
+
* Emitted when a reset password token is generated. You can listen to this event
|
|
50
|
+
* to send a reset password email to the user or customer, for example.
|
|
51
|
+
*
|
|
52
|
+
* @eventPayload
|
|
53
|
+
* ```ts
|
|
54
|
+
* {
|
|
55
|
+
* entity_id, // The identifier of the user or customer. For example, an email address.
|
|
56
|
+
* actor_type, // The type of actor. For example, "customer", "user", or custom.
|
|
57
|
+
* token, // The generated token.
|
|
58
|
+
* }
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
10
61
|
PASSWORD_RESET: "auth.password_reset",
|
|
11
62
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
// }
|
|
63
|
+
exports.InviteWorkflowEvents = {
|
|
64
|
+
ACCEPTED: "invite.accepted",
|
|
65
|
+
CREATED: "invite.created",
|
|
66
|
+
DELETED: "invite.deleted",
|
|
67
|
+
RESENT: "invite.resent",
|
|
68
|
+
};
|
|
19
69
|
//# sourceMappingURL=events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/core-flows/events.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/core-flows/events.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAChC;;;;;;;;;OASG;IACH,OAAO,EAAE,cAAc;IACvB;;;;;;;;;OASG;IACH,OAAO,EAAE,cAAc;IACvB;;;;;;;;;OASG;IACH,OAAO,EAAE,cAAc;CACxB,CAAA;AAED;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAChC;;;;;;;;;;;;OAYG;IACH,cAAc,EAAE,qBAAqB;CACtC,CAAA;AAGY,QAAA,oBAAoB,GAAG;IAClC,QAAQ,EAAE,iBAAiB;IAC3B,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,gBAAgB;IACzB,MAAM,EAAE,eAAe;CACxB,CAAA"}
|
package/dist/dal/index.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export * from "./mikro-orm/mikro-orm-serializer";
|
|
|
7
7
|
export * from "./mikro-orm/base-entity";
|
|
8
8
|
export * from "./mikro-orm/utils";
|
|
9
9
|
export * from "./mikro-orm/decorators/searchable";
|
|
10
|
+
export * from "./mikro-orm/sql-migration-generator";
|
|
10
11
|
export * from "./utils";
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/dal/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dal/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,yCAAyC,CAAA;AACvD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,kCAAkC,CAAA;AAChD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,kCAAkC,CAAA;AAChD,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mCAAmC,CAAA;AACjD,cAAc,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dal/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,yCAAyC,CAAA;AACvD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,kCAAkC,CAAA;AAChD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,kCAAkC,CAAA;AAChD,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mCAAmC,CAAA;AACjD,cAAc,qCAAqC,CAAA;AACnD,cAAc,SAAS,CAAA"}
|
package/dist/dal/index.js
CHANGED
|
@@ -23,5 +23,6 @@ __exportStar(require("./mikro-orm/mikro-orm-serializer"), exports);
|
|
|
23
23
|
__exportStar(require("./mikro-orm/base-entity"), exports);
|
|
24
24
|
__exportStar(require("./mikro-orm/utils"), exports);
|
|
25
25
|
__exportStar(require("./mikro-orm/decorators/searchable"), exports);
|
|
26
|
+
__exportStar(require("./mikro-orm/sql-migration-generator"), exports);
|
|
26
27
|
__exportStar(require("./utils"), exports);
|
|
27
28
|
//# sourceMappingURL=index.js.map
|
package/dist/dal/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA4C;AAC5C,0EAAuD;AACvD,gFAA6D;AAC7D,mEAAgD;AAChD,8EAA2D;AAC3D,mEAAgD;AAChD,0DAAuC;AACvC,oDAAiC;AACjC,oEAAiD;AACjD,0CAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA4C;AAC5C,0EAAuD;AACvD,gFAA6D;AAC7D,mEAAgD;AAChD,8EAA2D;AAC3D,mEAAgD;AAChD,0DAAuC;AACvC,oDAAiC;AACjC,oEAAiD;AACjD,sEAAmD;AACnD,0CAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"big-number-field.d.ts","sourceRoot":"","sources":["../../../src/dal/mikro-orm/big-number-field.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAI1C,wBAAgB,yBAAyB,CACvC,OAAO,GAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG;IACxC,aAAa,CAAC,EAAE,MAAM,CAAA;CAClB,IAEW,QAAQ,GAAG,EAAE,YAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"big-number-field.d.ts","sourceRoot":"","sources":["../../../src/dal/mikro-orm/big-number-field.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAI1C,wBAAgB,yBAAyB,CACvC,OAAO,GAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG;IACxC,aAAa,CAAC,EAAE,MAAM,CAAA;CAClB,IAEW,QAAQ,GAAG,EAAE,YAAY,MAAM,UAwFjD"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MikroOrmBigNumberProperty = MikroOrmBigNumberProperty;
|
|
4
4
|
const core_1 = require("@mikro-orm/core");
|
|
5
5
|
const common_1 = require("../../common");
|
|
6
|
-
const big_number_1 = require("../../
|
|
6
|
+
const big_number_1 = require("../../totals/big-number");
|
|
7
7
|
function MikroOrmBigNumberProperty(options = {}) {
|
|
8
8
|
return function (target, columnName) {
|
|
9
9
|
const rawColumnName = options.rawColumnName ?? `raw_${columnName}`;
|
|
@@ -20,32 +20,46 @@ function MikroOrmBigNumberProperty(options = {}) {
|
|
|
20
20
|
set(value) {
|
|
21
21
|
if (options?.nullable && !(0, common_1.isPresent)(value)) {
|
|
22
22
|
this.__helper.__data[columnName] = null;
|
|
23
|
-
this.__helper.__data[rawColumnName];
|
|
23
|
+
this.__helper.__data[rawColumnName] = null;
|
|
24
24
|
this[rawColumnName] = null;
|
|
25
25
|
}
|
|
26
26
|
else {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
bigNumber = new big_number_1.BigNumber(value, {
|
|
34
|
-
precision,
|
|
35
|
-
});
|
|
27
|
+
// When mikro orm create and hydrate the entity with partial selection it can happen
|
|
28
|
+
// that null value is being passed.
|
|
29
|
+
if (!options?.nullable && value === null) {
|
|
30
|
+
this.__helper.__data[columnName] = undefined;
|
|
31
|
+
this.__helper.__data[rawColumnName] = undefined;
|
|
32
|
+
this[rawColumnName] = undefined;
|
|
36
33
|
}
|
|
37
34
|
else {
|
|
38
|
-
bigNumber
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
35
|
+
let bigNumber;
|
|
36
|
+
try {
|
|
37
|
+
if (value instanceof big_number_1.BigNumber) {
|
|
38
|
+
bigNumber = value;
|
|
39
|
+
}
|
|
40
|
+
else if (this[rawColumnName]) {
|
|
41
|
+
const precision = this[rawColumnName].precision;
|
|
42
|
+
bigNumber = new big_number_1.BigNumber(value, {
|
|
43
|
+
precision,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
bigNumber = new big_number_1.BigNumber(value);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
catch (e) {
|
|
51
|
+
throw new Error(`Cannot set value ${value} for ${columnName}.`);
|
|
52
|
+
}
|
|
53
|
+
const raw = bigNumber.raw;
|
|
54
|
+
raw.value = (0, common_1.trimZeros)(raw.value);
|
|
55
|
+
// Note: this.__helper isn't present when directly working with the entity
|
|
56
|
+
// Adding this in optionally for it not to break.
|
|
57
|
+
if ((0, common_1.isDefined)(this.__helper)) {
|
|
58
|
+
this.__helper.__data[columnName] = bigNumber.numeric;
|
|
59
|
+
this.__helper.__data[rawColumnName] = raw;
|
|
60
|
+
}
|
|
61
|
+
this[rawColumnName] = raw;
|
|
47
62
|
}
|
|
48
|
-
this[rawColumnName] = raw;
|
|
49
63
|
}
|
|
50
64
|
// Note: this.__helper isn't present when directly working with the entity
|
|
51
65
|
// Adding this in optionally for it not to break.
|
|
@@ -69,6 +83,7 @@ function MikroOrmBigNumberProperty(options = {}) {
|
|
|
69
83
|
type: "any",
|
|
70
84
|
columnType: "numeric",
|
|
71
85
|
trackChanges: false,
|
|
86
|
+
runtimeType: "any",
|
|
72
87
|
...options,
|
|
73
88
|
})(target, columnName);
|
|
74
89
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"big-number-field.js","sourceRoot":"","sources":["../../../src/dal/mikro-orm/big-number-field.ts"],"names":[],"mappings":";;AAKA,
|
|
1
|
+
{"version":3,"file":"big-number-field.js","sourceRoot":"","sources":["../../../src/dal/mikro-orm/big-number-field.ts"],"names":[],"mappings":"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"}
|