@lyxa.ai/core 1.0.36 → 1.0.37

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 (27) hide show
  1. package/dist/index.js.map +1 -1
  2. package/dist/libraries/event/test/OrderCreationEvent.js.map +1 -1
  3. package/dist/libraries/mongo/models/base/base-coupon.model.js.map +1 -1
  4. package/dist/libraries/mongo/models/embedded/attribute-item.model.js.map +1 -1
  5. package/dist/libraries/mongo/models/embedded/attribute-map.model.js.map +1 -1
  6. package/dist/libraries/mongo/models/embedded/business-development-setting.model.js.map +1 -1
  7. package/dist/libraries/mongo/models/embedded/charge-setting.model.js.map +1 -1
  8. package/dist/libraries/mongo/models/embedded/courier-setting.model.js.map +1 -1
  9. package/dist/libraries/mongo/models/embedded/currency-setting.model.js.map +1 -1
  10. package/dist/libraries/mongo/models/embedded/currency.model.js.map +1 -1
  11. package/dist/libraries/mongo/models/embedded/featured-item.mode.js.map +1 -1
  12. package/dist/libraries/mongo/models/embedded/package.model.js.map +1 -1
  13. package/dist/libraries/mongo/models/embedded/payout-setting.model.js.map +1 -1
  14. package/dist/libraries/mongo/models/embedded/product-nutrition.model.js.map +1 -1
  15. package/dist/libraries/mongo/models/embedded/referral-discount-config.model.js.map +1 -1
  16. package/dist/libraries/mongo/models/embedded/rider-setting.model.js.map +1 -1
  17. package/dist/libraries/mongo/models/embedded/service-fee-setting.model.js.map +1 -1
  18. package/dist/libraries/mongo/models/embedded/subscription-summary.model.js.map +1 -1
  19. package/dist/libraries/mongo/models/payout.model.js.map +1 -1
  20. package/dist/libraries/mongo/models/shared/duration.model.js.map +1 -1
  21. package/dist/libraries/mongo/models/transaction.model.js.map +1 -1
  22. package/dist/libraries/trpc/middlewares/auth.d.ts +3 -3
  23. package/dist/libraries/trpc/middlewares/phone-verified.d.ts +3 -3
  24. package/dist/utilities/pagination.d.ts +5 -5
  25. package/dist/utilities/validation/common-validation.d.ts +106 -106
  26. package/dist/utilities/validation/global-validation.d.ts +2 -2
  27. package/package.json +10 -3
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"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","sourcesContent":["import {LibraryManager} from './libraries';\r\nimport {Container} from 'typedi';\r\nimport mongoose from 'mongoose';\r\nimport {ConfigurationOptions, ConfigurationService} from './libraries/configuration';\r\nimport {EnvironmentConfigurationType} from './libraries/configuration/types/EnvironmentConfigurationType';\r\nimport {LyxaLogger} from './libraries/logger';\r\nimport {RedisService} from './libraries/redis';\r\nimport {initGlobalConnection} from './libraries/mongo';\r\nimport {SecretManagerService} from './libraries/secrets';\r\nimport {MicroServiceDispatcher} from './libraries/dispatcher';\r\nimport {TwilioService} from './libraries/twilio';\r\nimport {FirebaseService} from './libraries/firebase';\r\nimport {initEventBus, subscribeToEvent} from './libraries/event';\r\nimport {SubscriptionRegistry} from './libraries/event/registry/SubscriptionRegistry';\r\n\r\nexport { ConfigurationOptions } from './libraries/configuration';\r\nexport { EnvironmentConfigurationType } from './libraries/configuration/types/EnvironmentConfigurationType';\r\nexport { initGlobalConnection, createGlobalModel, createGlobalDiscriminatorModel } from './libraries/mongo';\r\n\r\nexport async function bootstrapCore(options?: ConfigurationOptions) {\r\n\ttry {\r\n\t\tawait registerLibraries(options);\r\n\r\n\t\tgetLibraries().getLogger().logger.info('Successfully bootstrapped lyxa-core.');\r\n\r\n\t\tconst gracefulShutdown = async () => {\r\n\t\t\tgetLibraries().getLogger().logger.info('Received shutdown signal, shutting down gracefully...');\r\n\t\t\tprocess.exit()\r\n\t\t};\r\n\r\n\t\tprocess.on('SIGTERM', gracefulShutdown);\r\n\t\tprocess.on('SIGINT', gracefulShutdown);\r\n\t\tprocess.on('uncaughtException', err => {\r\n\t\t\tgetLibraries().getLogger().logger.error('Uncaught exception, shutting down...', err);\r\n\t\t\tgracefulShutdown();\r\n\t\t});\r\n\t\tprocess.on('exit', (code) => {\r\n\t\t\tgetLibraries().getLogger().logger.info(`Exiting with code: ${code}`);\r\n\t\t});\r\n\r\n\t\tconsole.log('Created hooks.');\r\n\t} catch (e) {\r\n\t\tconsole.error(e);\r\n\t}\r\n}\r\n\r\nexport async function registerLibraries(options?: ConfigurationOptions) {\r\n\t// Setup configuration.\r\n\tconst configurationInstance = new ConfigurationService(options);\r\n\tContainer.set(ConfigurationService, configurationInstance);\r\n\r\n\t// Setup redis.\r\n\tconst redisInstance = new RedisService(configurationInstance.options.redisURL!);\r\n\tContainer.set(RedisService, redisInstance);\r\n\r\n\t// Setup secret\r\n\tconst secretInstance = new SecretManagerService(configurationInstance, redisInstance);\r\n\tContainer.set(SecretManagerService, secretInstance);\r\n\r\n\tconst mongoUrl = await getLibraries().getSecretsService().getKey('MONGO_URL');\r\n\r\n\tawait mongoose.connect(mongoUrl!, { dbName: `lyxa-${options!.environment}-${options!.tenet}` });\r\n\tmongoose.set(\r\n\t\t'debug',\r\n\t\tgetLibraries().getConfigurationService().options.environment == EnvironmentConfigurationType.DEV\r\n\t);\r\n\r\n\tawait initGlobalConnection(mongoUrl!, options!.environment);\r\n\r\n\t// Setup logger\r\n\tconst loggerInstance = new LyxaLogger(options!.instanceType!, mongoUrl!);\r\n\tContainer.set(LyxaLogger, loggerInstance);\r\n\r\n\t// Setup firebase\r\n\tconst firebaseInstance = new FirebaseService(configurationInstance!);\r\n\tContainer.set(FirebaseService, firebaseInstance);\r\n\r\n\t// Setup microservice dispatcher\r\n\tconst microserviceDispatcherInstance = new MicroServiceDispatcher(secretInstance);\r\n\tContainer.set(MicroServiceDispatcher, microserviceDispatcherInstance);\r\n\r\n\t// Setup twilio\r\n\tconst twilioServiceInstance = new TwilioService();\r\n\tContainer.set(TwilioService, twilioServiceInstance);\r\n\r\n\tconsole.log('Initialized everything');\r\n\r\n\tawait initEventBus('amqps://vgyuplrd:wto6vUYnb4zeBI5lntKT4gj7rT8n1vwg@dog.lmq.cloudamqp.com/vgyuplrd');\r\n\tconst allSubscriptions = SubscriptionRegistry.getAllSubscriptions();\r\n\r\n\tconst instantiatedServices = new Map<Function, any>();\r\n\r\n\tfor (const { eventId, targetConstructor, methodName } of allSubscriptions) {\r\n\t\tlet instance = instantiatedServices.get(targetConstructor);\r\n\t\tif (!instance) {\r\n\t\t\tinstance = Container.get(targetConstructor as any);\r\n\t\t\tinstantiatedServices.set(targetConstructor, instance);\r\n\t\t}\r\n\r\n\t\tawait subscribeToEvent(eventId, async payload => {\r\n\t\t\treturn instance[methodName](payload);\r\n\t\t});\r\n\t}\r\n}\r\n\r\nexport function getLibraries(): LibraryManager {\r\n\treturn Container.get(LibraryManager);\r\n}\r\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"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","sourcesContent":["import {LibraryManager} from './libraries';\r\nimport {Container} from 'typedi';\r\nimport mongoose from 'mongoose';\r\nimport {ConfigurationOptions, ConfigurationService} from './libraries/configuration';\r\nimport {EnvironmentConfigurationType} from './libraries/configuration/types/EnvironmentConfigurationType';\r\nimport {LyxaLogger} from './libraries/logger';\r\nimport {RedisService} from './libraries/redis';\r\nimport {initGlobalConnection} from './libraries/mongo';\r\nimport {SecretManagerService} from './libraries/secrets';\r\nimport {MicroServiceDispatcher} from './libraries/dispatcher';\r\nimport {TwilioService} from './libraries/twilio';\r\nimport {FirebaseService} from './libraries/firebase';\r\nimport {initEventBus, subscribeToEvent} from './libraries/event';\r\nimport {SubscriptionRegistry} from './libraries/event/registry/SubscriptionRegistry';\r\nimport {CoreAppleAuthIdentity, CoreAppleAuthIdentityModel} from \"./libraries/mongo/models\";\r\n\r\nexport { ConfigurationOptions } from './libraries/configuration';\r\nexport { EnvironmentConfigurationType } from './libraries/configuration/types/EnvironmentConfigurationType';\r\nexport { initGlobalConnection, createGlobalModel, createGlobalDiscriminatorModel } from './libraries/mongo';\r\n\r\nexport async function bootstrapCore(options?: ConfigurationOptions) {\r\n\ttry {\r\n\t\tawait registerLibraries(options);\r\n\r\n\t\tgetLibraries().getLogger().logger.info('Successfully bootstrapped lyxa-core.');\r\n\r\n\t\tconst gracefulShutdown = async () => {\r\n\t\t\tgetLibraries().getLogger().logger.info('Received shutdown signal, shutting down gracefully...');\r\n\t\t\tprocess.exit()\r\n\t\t};\r\n\r\n\t\tprocess.on('SIGTERM', gracefulShutdown);\r\n\t\tprocess.on('SIGINT', gracefulShutdown);\r\n\t\tprocess.on('uncaughtException', err => {\r\n\t\t\tgetLibraries().getLogger().logger.error('Uncaught exception, shutting down...', err);\r\n\t\t\tgracefulShutdown();\r\n\t\t});\r\n\t\tprocess.on('exit', (code) => {\r\n\t\t\tgetLibraries().getLogger().logger.info(`Exiting with code: ${code}`);\r\n\t\t});\r\n\r\n\t\tconsole.log('Created hooks.');\r\n\t} catch (e) {\r\n\t\tconsole.error(e);\r\n\t}\r\n}\r\n\r\nexport async function registerLibraries(options?: ConfigurationOptions) {\r\n\t// Setup configuration.\r\n\tconst configurationInstance = new ConfigurationService(options);\r\n\tContainer.set(ConfigurationService, configurationInstance);\r\n\r\n\t// Setup redis.\r\n\tconst redisInstance = new RedisService(configurationInstance.options.redisURL!);\r\n\tContainer.set(RedisService, redisInstance);\r\n\r\n\t// Setup secret\r\n\tconst secretInstance = new SecretManagerService(configurationInstance, redisInstance);\r\n\tContainer.set(SecretManagerService, secretInstance);\r\n\r\n\tconst mongoUrl = await getLibraries().getSecretsService().getKey('MONGO_URL');\r\n\r\n\tawait mongoose.connect(mongoUrl!, { dbName: `lyxa-${options!.environment}-${options!.tenet}` });\r\n\tmongoose.set(\r\n\t\t'debug',\r\n\t\tgetLibraries().getConfigurationService().options.environment == EnvironmentConfigurationType.DEV\r\n\t);\r\n\r\n\tawait initGlobalConnection(mongoUrl!, options!.environment);\r\n\r\n\t// Setup logger\r\n\tconst loggerInstance = new LyxaLogger(options!.instanceType!, mongoUrl!);\r\n\tContainer.set(LyxaLogger, loggerInstance);\r\n\r\n\t// Setup firebase\r\n\tconst firebaseInstance = new FirebaseService(configurationInstance!);\r\n\tContainer.set(FirebaseService, firebaseInstance);\r\n\r\n\t// Setup microservice dispatcher\r\n\tconst microserviceDispatcherInstance = new MicroServiceDispatcher(secretInstance);\r\n\tContainer.set(MicroServiceDispatcher, microserviceDispatcherInstance);\r\n\r\n\t// Setup twilio\r\n\tconst twilioServiceInstance = new TwilioService();\r\n\tContainer.set(TwilioService, twilioServiceInstance);\r\n\r\n\tconsole.log('Initialized everything');\r\n\r\n\tawait initEventBus('amqps://vgyuplrd:wto6vUYnb4zeBI5lntKT4gj7rT8n1vwg@dog.lmq.cloudamqp.com/vgyuplrd');\r\n\tconst allSubscriptions = SubscriptionRegistry.getAllSubscriptions();\r\n\r\n\tconst instantiatedServices = new Map<Function, any>();\r\n\r\n\tfor (const { eventId, targetConstructor, methodName } of allSubscriptions) {\r\n\t\tlet instance = instantiatedServices.get(targetConstructor);\r\n\t\tif (!instance) {\r\n\t\t\tinstance = Container.get(targetConstructor as any);\r\n\t\t\tinstantiatedServices.set(targetConstructor, instance);\r\n\t\t}\r\n\r\n\t\tawait subscribeToEvent(eventId, async payload => {\r\n\t\t\treturn instance[methodName](payload);\r\n\t\t});\r\n\t}\r\n}\r\n\r\nexport function getLibraries(): LibraryManager {\r\n\treturn Container.get(LibraryManager);\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"OrderCreationEvent.js","sourceRoot":"/","sources":["libraries/event/test/OrderCreationEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAyC;AACzC,qDAAuD;AACvD,oCAAwC;AACxC,uDAAoD;AAW7C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,qBAAmC;IAC1E,YAAY,UAAoC;QAC/C,KAAK,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;IACrC,CAAC;CACD,CAAA;AAJY,gDAAkB;6BAAlB,kBAAkB;IAJ9B,IAAA,wBAAa,EAAC,gBAAgB,EAAE;QAChC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;QAChC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;KAChC,CAAC;;GACW,kBAAkB,CAI9B;AAED,IAAA,oBAAY,EACX,IAAI,kBAAkB,CAAC;IACtB,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;CACR,CAAC,CACF,CAAC;AAEF,MAAa,gBAAgB;IAErB,4BAA4B,CAAC,UAAmC;QACtE,UAAU,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;CACD;AALD,4CAKC;AAHO;IADN,IAAA,qBAAS,EAAC,gBAAgB,CAAC;;;;oEAG3B","sourcesContent":["import { BaseEvent } from '../BaseEvent';\r\nimport { EventMetadata } from '../decorators/metadata';\r\nimport { publishEvent } from '../index';\r\nimport { Subscribe } from '../decorators/subscribe';\r\n\r\nexport type OrderCreationEventParams = {\r\n\tuser: string;\r\n\tshop: string;\r\n};\r\n\r\n@EventMetadata('order.creation', [\r\n\t{ name: 'user', type: 'string' },\r\n\t{ name: 'shop', type: 'string' },\r\n])\r\nexport class OrderCreationEvent extends BaseEvent<OrderCreationEventParams> {\r\n\tconstructor(parameters: OrderCreationEventParams) {\r\n\t\tsuper('order.creation', parameters);\r\n\t}\r\n}\r\n\r\npublishEvent(\r\n\tnew OrderCreationEvent({\r\n\t\tuser: '',\r\n\t\tshop: '',\r\n\t})\r\n);\r\n\r\nexport class OrderListenEvent {\r\n\t@Subscribe('order.creation')\r\n\tpublic doSomethingWithOrderCreation(parameters: Record<string, unknown>) {\r\n\t\tparameters[''];\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"OrderCreationEvent.js","sourceRoot":"/","sources":["libraries/event/test/OrderCreationEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAyC;AACzC,qDAAuD;AACvD,oCAAwC;AACxC,uDAAoD;AAY7C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,qBAAmC;IAC1E,YAAY,UAAoC;QAC/C,KAAK,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;IACrC,CAAC;CACD,CAAA;AAJY,gDAAkB;6BAAlB,kBAAkB;IAJ9B,IAAA,wBAAa,EAAC,gBAAgB,EAAE;QAChC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;QAChC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;KAChC,CAAC;;GACW,kBAAkB,CAI9B;AAED,IAAA,oBAAY,EACX,IAAI,kBAAkB,CAAC;IACtB,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;CACR,CAAC,CACF,CAAC;AAGF,MAAa,gBAAgB;IAErB,4BAA4B,CAAC,UAAmC;QACtE,UAAU,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;CACD;AALD,4CAKC;AAHO;IADN,IAAA,qBAAS,EAAC,gBAAgB,CAAC;;;;oEAG3B","sourcesContent":["import { BaseEvent } from '../BaseEvent';\r\nimport { EventMetadata } from '../decorators/metadata';\r\nimport { publishEvent } from '../index';\r\nimport { Subscribe } from '../decorators/subscribe';\r\n\r\nexport type OrderCreationEventParams = {\r\n\tuser: string;\r\n\tshop: string;\r\n};\r\n\r\n// MIC-1\r\n@EventMetadata('order.creation', [\r\n\t{ name: 'user', type: 'string' },\r\n\t{ name: 'shop', type: 'string' },\r\n])\r\nexport class OrderCreationEvent extends BaseEvent<OrderCreationEventParams> {\r\n\tconstructor(parameters: OrderCreationEventParams) {\r\n\t\tsuper('order.creation', parameters);\r\n\t}\r\n}\r\n\r\npublishEvent(\r\n\tnew OrderCreationEvent({\r\n\t\tuser: '',\r\n\t\tshop: '',\r\n\t})\r\n);\r\n\r\n// MIC-2\r\nexport class OrderListenEvent {\r\n\t@Subscribe('order.creation')\r\n\tpublic doSomethingWithOrderCreation(parameters: Record<string, unknown>) {\r\n\t\tparameters[''];\r\n\t}\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"base-coupon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/base/base-coupon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuF;AACvF,6DAAoD;AACpD,kDAAyC;AAEzC,MAAa,UAAW,SAAQ,qBAAM;IAE9B,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,gBAAgB,CAAiB;IAGjC,QAAQ,CAAY;IAGpB,UAAU,CAAiB;IAG3B,eAAe,CAAiB;IAGhC,aAAa,CAAiB;IAG9B,cAAc,CAAW;IAGzB,MAAM,CAAU;IAGhB,gBAAgB,CAA0B;CACjD;AA9BD,gCA8BC;AA5BO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;6CAC3B;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oDACE;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,yBAAQ,EAAE,CAAC;8BACvB,yBAAQ;4CAAC;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;8CACJ;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;mDACC;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACD;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;kDACR;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;0CACtC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,6BAAsB,EAAE,CAAC;;oDACJ","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { CouponExpirationReason, Status, ValueType } from '../../../../utilities/enum';\nimport { Duration } from '../shared/duration.model';\nimport { Coupon } from '../coupon.model';\n\nexport class BaseCoupon extends Coupon {\n\t@prop({ required: true, type: String, enum: ValueType })\n\tpublic valueType!: ValueType;\n\n\t@prop({ required: true, type: Number })\n\tpublic value!: number;\n\n\t@prop({ type: Number, default: null }) // applicable when valueType percentage\n\tpublic maxDiscountLimit?: number | null;\n\n\t@prop({ required: true, type: Duration })\n\tpublic duration!: Duration;\n\n\t@prop({ type: Number, default: null })\n\tpublic spendLimit?: number | null;\n\n\t@prop({ type: Number, default: null })\n\tpublic totalOrderLimit?: number | null;\n\n\t@prop({ type: Number, default: null })\n\tpublic minOrderValue?: number | null;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic forNewUserOnly?: boolean;\n\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status?: Status;\n\n\t@prop({ type: String, enum: CouponExpirationReason })\n\tpublic expirationReason?: CouponExpirationReason;\n}\n"]}
1
+ {"version":3,"file":"base-coupon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/base/base-coupon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuF;AACvF,6DAAoD;AACpD,kDAAyC;AAEzC,MAAa,UAAW,SAAQ,qBAAM;IAE9B,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,gBAAgB,CAAiB;IAGjC,QAAQ,CAAY;IAGpB,UAAU,CAAiB;IAG3B,eAAe,CAAiB;IAGhC,aAAa,CAAiB;IAG9B,cAAc,CAAW;IAGzB,MAAM,CAAU;IAGhB,gBAAgB,CAA0B;CACjD;AA9BD,gCA8BC;AA5BO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;6CAC3B;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oDACE;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,yBAAQ,EAAE,CAAC;8BACvB,yBAAQ;4CAAC;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;8CACJ;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;mDACC;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACD;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;kDACR;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;0CACtC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,6BAAsB,EAAE,CAAC;;oDACJ","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { CouponExpirationReason, Status, ValueType } from '../../../../utilities/enum';\r\nimport { Duration } from '../shared/duration.model';\r\nimport { Coupon } from '../coupon.model';\r\n\r\nexport class BaseCoupon extends Coupon {\r\n\t@prop({ required: true, type: String, enum: ValueType })\r\n\tpublic valueType!: ValueType;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tpublic value!: number;\r\n\r\n\t@prop({ type: Number, default: null }) // applicable when valueType percentage\r\n\tpublic maxDiscountLimit?: number | null;\r\n\r\n\t@prop({ required: true, type: Duration })\r\n\tpublic duration!: Duration;\r\n\r\n\t@prop({ type: Number, default: null })\r\n\tpublic spendLimit?: number | null;\r\n\r\n\t@prop({ type: Number, default: null })\r\n\tpublic totalOrderLimit?: number | null;\r\n\r\n\t@prop({ type: Number, default: null })\r\n\tpublic minOrderValue?: number | null;\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tpublic forNewUserOnly?: boolean;\r\n\r\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\r\n\tpublic status?: Status;\r\n\r\n\t@prop({ type: String, enum: CouponExpirationReason })\r\n\tpublic expirationReason?: CouponExpirationReason;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"attribute-item.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/attribute-item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,aAAa;IAElB,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,SAAS,CAAW;CAC3B;AATD,sCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDACZ","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class AttributeItem {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: Number })\n\tpublic price!: number;\n\n\t@prop({ type: Boolean, default: true })\n\tpublic isVisible?: boolean;\n}\n"]}
1
+ {"version":3,"file":"attribute-item.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/attribute-item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,aAAa;IAElB,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,SAAS,CAAW;CAC3B;AATD,sCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDACZ","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class AttributeItem {\r\n\t@prop({ required: true, type: String })\r\n\tpublic name!: string;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tpublic price!: number;\r\n\r\n\t@prop({ type: Boolean, default: true })\r\n\tpublic isVisible?: boolean;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"attribute-map.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/attribute-map.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAiC;AACjC,oDAAiD;AACjD,wDAA+C;AAE/C,MAAa,YAAY;IAEjB,SAAS,CAAkB;IAG3B,WAAW,CAAoB;CACtC;AAND,oCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,2BAAS,EAAE,CAAC;;+CACb;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,gBAAK,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;iDACd","sourcesContent":["import { Types } from 'mongoose';\nimport { prop, Ref } from '@typegoose/typegoose';\nimport { Attribute } from '../attribute.model';\n\nexport class AttributeMap {\n\t@prop({ required: true, ref: () => Attribute })\n\tpublic attribute!: Ref<Attribute>;\n\n\t@prop({ type: () => [Types.ObjectId], default: [] })\n\tpublic hiddenItems?: Types.ObjectId[];\n}\n"]}
1
+ {"version":3,"file":"attribute-map.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/attribute-map.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAiC;AACjC,oDAAiD;AACjD,wDAA+C;AAE/C,MAAa,YAAY;IAEjB,SAAS,CAAkB;IAG3B,WAAW,CAAoB;CACtC;AAND,oCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,2BAAS,EAAE,CAAC;;+CACb;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,gBAAK,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;iDACd","sourcesContent":["import { Types } from 'mongoose';\r\nimport { prop, Ref } from '@typegoose/typegoose';\r\nimport { Attribute } from '../attribute.model';\r\n\r\nexport class AttributeMap {\r\n\t@prop({ required: true, ref: () => Attribute })\r\n\tpublic attribute!: Ref<Attribute>;\r\n\r\n\t@prop({ type: () => [Types.ObjectId], default: [] })\r\n\tpublic hiddenItems?: Types.ObjectId[];\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"business-development-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/business-development-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,0BAA0B;IAEtC,iBAAiB,CAAU;IAG3B,kBAAkB,CAAU;CAC5B;AAND,gEAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;qEACvB;AAG3B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sEACf","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class BusinessDevelopmentSetting {\n\t@prop({ type: Number, default: Infinity, min: 0 })\n\tmonthlyShopTarget?: number;\n\n\t@prop({ type: Number, default: 0, min: 0 })\n\tmonthlyRewardPrize?: number;\n}\n"]}
1
+ {"version":3,"file":"business-development-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/business-development-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,0BAA0B;IAEtC,iBAAiB,CAAU;IAG3B,kBAAkB,CAAU;CAC5B;AAND,gEAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;qEACvB;AAG3B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sEACf","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class BusinessDevelopmentSetting {\r\n\t@prop({ type: Number, default: Infinity, min: 0 })\r\n\tmonthlyShopTarget?: number;\r\n\r\n\t@prop({ type: Number, default: 0, min: 0 })\r\n\tmonthlyRewardPrize?: number;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"charge-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/charge-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAM,cAAc;IAEZ,IAAI,CAAU;IAGd,EAAE,CAAU;IAGZ,MAAM,CAAU;IAGhB,QAAQ,CAAU;CACzB;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;4CAC1B;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;0CAC5B;AAGZ;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;8CACxB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;gDACtB;AAG1B,MAAa,aAAa;IAElB,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,eAAe,CAAoB;IAGnC,yBAAyB,CAAoB;CACpD;AAZD,sCAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;gDAC1C;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;4CACT;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;sDACV;AAGnC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gEACA","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ValueType } from '../../../../utilities/enum';\n\nclass DeliveryCharge {\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic from!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic to!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic charge!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic riderCut!: number;\n}\n\nexport class ChargeSetting {\n\t@prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\n\tpublic valueType?: ValueType;\n\n\t@prop({ type: Number, min: 0 })\n\tpublic value?: number;\n\n\t@prop({ type: () => [DeliveryCharge], default: [] })\n\tpublic deliveryCharges?: DeliveryCharge[];\n\n\t@prop({ type: () => [DeliveryCharge], default: [] })\n\tpublic deliveryChargesForCourier?: DeliveryCharge[];\n}\n"]}
1
+ {"version":3,"file":"charge-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/charge-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAM,cAAc;IAEZ,IAAI,CAAU;IAGd,EAAE,CAAU;IAGZ,MAAM,CAAU;IAGhB,QAAQ,CAAU;CACzB;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;4CAC1B;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;0CAC5B;AAGZ;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;8CACxB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;gDACtB;AAG1B,MAAa,aAAa;IAElB,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,eAAe,CAAoB;IAGnC,yBAAyB,CAAoB;CACpD;AAZD,sCAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;gDAC1C;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;4CACT;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;sDACV;AAGnC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gEACA","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { ValueType } from '../../../../utilities/enum';\r\n\r\nclass DeliveryCharge {\r\n\t@prop({ required: true, type: Number, min: 0 })\r\n\tpublic from!: number;\r\n\r\n\t@prop({ required: true, type: Number, min: 0 })\r\n\tpublic to!: number;\r\n\r\n\t@prop({ required: true, type: Number, min: 0 })\r\n\tpublic charge!: number;\r\n\r\n\t@prop({ required: true, type: Number, min: 0 })\r\n\tpublic riderCut!: number;\r\n}\r\n\r\nexport class ChargeSetting {\r\n\t@prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\r\n\tpublic valueType?: ValueType;\r\n\r\n\t@prop({ type: Number, min: 0 })\r\n\tpublic value?: number;\r\n\r\n\t@prop({ type: () => [DeliveryCharge], default: [] })\r\n\tpublic deliveryCharges?: DeliveryCharge[];\r\n\r\n\t@prop({ type: () => [DeliveryCharge], default: [] })\r\n\tpublic deliveryChargesForCourier?: DeliveryCharge[];\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"courier-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/courier-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,cAAc;IAE1B,qBAAqB,CAAU;IAG/B,WAAW,CAAU;CACrB;AAND,wCAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;6DACX;AAG/B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACF","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class CourierSetting {\n\t@prop({ type: Number, default: Infinity })\n\tmaxTotalEstItemsPrice?: number;\n\n\t@prop({ type: Number })\n\tmaxDistance?: number;\n}\n"]}
1
+ {"version":3,"file":"courier-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/courier-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,cAAc;IAE1B,qBAAqB,CAAU;IAG/B,WAAW,CAAU;CACrB;AAND,wCAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;6DACX;AAG/B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACF","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class CourierSetting {\r\n\t@prop({ type: Number, default: Infinity })\r\n\tmaxTotalEstItemsPrice?: number;\r\n\r\n\t@prop({ type: Number })\r\n\tmaxDistance?: number;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"currency-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/currency-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAA4C;AAE5C,MAAa,eAAe;IAE3B,YAAY,CAAY;IAGxB,iBAAiB,CAAY;IAG7B,qBAAqB,CAAW;IAGhC,YAAY,CAAU;CACtB;AAZD,0CAYC;AAVA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,yBAAQ,EAAE,CAAC;8BAC1B,yBAAQ;qDAAC;AAGxB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,yBAAQ,EAAE,CAAC;8BACL,yBAAQ;0DAAC;AAG7B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8DACR;AAGhC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACb","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { Currency } from './currency.model';\n\nexport class CurrencySetting {\n\t@prop({ required: true, type: Currency })\n\tbaseCurrency!: Currency;\n\n\t@prop({ type: Currency })\n\tsecondaryCurrency?: Currency;\n\n\t@prop({ type: Boolean, default: false })\n\tisDualCurrencyEnabled?: boolean;\n\n\t@prop({ type: Number, default: 0 })\n\texchangeRate?: number;\n}\n"]}
1
+ {"version":3,"file":"currency-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/currency-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAA4C;AAE5C,MAAa,eAAe;IAE3B,YAAY,CAAY;IAGxB,iBAAiB,CAAY;IAG7B,qBAAqB,CAAW;IAGhC,YAAY,CAAU;CACtB;AAZD,0CAYC;AAVA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,yBAAQ,EAAE,CAAC;8BAC1B,yBAAQ;qDAAC;AAGxB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,yBAAQ,EAAE,CAAC;8BACL,yBAAQ;0DAAC;AAG7B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8DACR;AAGhC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACb","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { Currency } from './currency.model';\r\n\r\nexport class CurrencySetting {\r\n\t@prop({ required: true, type: Currency })\r\n\tbaseCurrency!: Currency;\r\n\r\n\t@prop({ type: Currency })\r\n\tsecondaryCurrency?: Currency;\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tisDualCurrencyEnabled?: boolean;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\texchangeRate?: number;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"currency.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/currency.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,QAAQ;IAEb,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,YAAY,CAAU;IAGtB,aAAa,CAAU;IAGvB,QAAQ,CAAU;IAGlB,IAAI,CAAU;IAGd,UAAU,CAAU;IAGpB,IAAI,CAAU;CACrB;AAxBD,4BAwBC;AAtBO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCAChB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACV;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACT;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACZ;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class Currency {\n\t@prop({ required: true, type: String })\n\tpublic symbol!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic symbolNative!: string;\n\n\t@prop({ required: true, type: Number })\n\tpublic decimalDigits!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic rounding!: number;\n\n\t@prop({ required: true, type: String })\n\tpublic code!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic namePlural!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic flag!: string;\n}\n"]}
1
+ {"version":3,"file":"currency.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/currency.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,QAAQ;IAEb,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,YAAY,CAAU;IAGtB,aAAa,CAAU;IAGvB,QAAQ,CAAU;IAGlB,IAAI,CAAU;IAGd,UAAU,CAAU;IAGpB,IAAI,CAAU;CACrB;AAxBD,4BAwBC;AAtBO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCAChB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACV;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACT;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACZ;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class Currency {\r\n\t@prop({ required: true, type: String })\r\n\tpublic symbol!: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic name!: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic symbolNative!: string;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tpublic decimalDigits!: number;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tpublic rounding!: number;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic code!: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic namePlural!: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic flag!: string;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"featured-item.mode.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/featured-item.mode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAoD;AAEpD,MAAa,YAAY;IAEjB,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,MAAM,CAAU;CACvB;AATD,oCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACR;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CAChB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;4CACtC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { Status } from '../../../../utilities/enum';\n\nexport class FeaturedItem {\n\t@prop({ required: true, type: Number })\n\tpublic durationInDays!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic amount!: number;\n\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status?: Status;\n}\n"]}
1
+ {"version":3,"file":"featured-item.mode.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/featured-item.mode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAoD;AAEpD,MAAa,YAAY;IAEjB,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,MAAM,CAAU;CACvB;AATD,oCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACR;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CAChB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;4CACtC","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { Status } from '../../../../utilities/enum';\r\n\r\nexport class FeaturedItem {\r\n\t@prop({ required: true, type: Number })\r\n\tpublic durationInDays!: number;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tpublic amount!: number;\r\n\r\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\r\n\tpublic status?: Status;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"package.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/package.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,8CAAqC;AAErC,MAAM,eAAe;IAEb,IAAI,CAAa;IAGjB,4BAA4B,CAAY;CAC/C;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;6CAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;;qEACA;AAGhD,MAAM,YAAY;IAEV,IAAI,CAAU;IAGd,MAAM,CAAqB;CAClC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC;;4CACtB;AAGnC,MAAM,YAAY;IAEV,IAAI,CAAU;IAGd,EAAE,CAAU;CACnB;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACpB;AAGpB,MAAM,YAAY;IAEV,KAAK,CAAU;IAGf,YAAY,CAAgB;IAG5B,KAAK,CAAU;IAGf,UAAU,CAAkB;CACnC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACvB,YAAY;kDAAC;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gDAC/B;AAGpC,MAAa,OAAO;IAEZ,IAAI,CAAU;IAGd,MAAM,CAAkB;CAC/B;AAND,0BAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC;;uCACtB","sourcesContent":["import { mongoose, prop, Ref } from '@typegoose/typegoose';\nimport { Dish } from '../dish.model';\n\nclass DishWithPortion {\n\t@prop({ required: true, ref: () => Dish })\n\tpublic dish!: Ref<Dish>;\n\n\t@prop({ required: true, type: () => [Number] })\n\tpublic portionPercentageForPackages?: number[];\n}\n\nclass MealCategory {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: () => [DishWithPortion] })\n\tpublic dishes!: DishWithPortion[];\n}\n\nclass CalorieRange {\n\t@prop({ required: true, type: Number })\n\tpublic from!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic to!: number;\n}\n\nclass PackageRange {\n\t@prop({ required: true, type: String })\n\tpublic title!: string;\n\n\t@prop({ required: true, type: CalorieRange })\n\tpublic calorieRange!: CalorieRange;\n\n\t@prop({ required: true, type: Number })\n\tpublic price!: number;\n\n\t@prop({ required: true, type: () => [MealCategory], default: [] })\n\tpublic categories!: MealCategory[];\n}\n\nexport class Package {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: () => [PackageRange] })\n\tpublic ranges?: PackageRange[];\n}\n"]}
1
+ {"version":3,"file":"package.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/package.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,8CAAqC;AAErC,MAAM,eAAe;IAEb,IAAI,CAAa;IAGjB,4BAA4B,CAAY;CAC/C;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;6CAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;;qEACA;AAGhD,MAAM,YAAY;IAEV,IAAI,CAAU;IAGd,MAAM,CAAqB;CAClC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC;;4CACtB;AAGnC,MAAM,YAAY;IAEV,IAAI,CAAU;IAGd,EAAE,CAAU;CACnB;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACpB;AAGpB,MAAM,YAAY;IAEV,KAAK,CAAU;IAGf,YAAY,CAAgB;IAG5B,KAAK,CAAU;IAGf,UAAU,CAAkB;CACnC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACvB,YAAY;kDAAC;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gDAC/B;AAGpC,MAAa,OAAO;IAEZ,IAAI,CAAU;IAGd,MAAM,CAAkB;CAC/B;AAND,0BAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC;;uCACtB","sourcesContent":["import { mongoose, prop, Ref } from '@typegoose/typegoose';\r\nimport { Dish } from '../dish.model';\r\n\r\nclass DishWithPortion {\r\n\t@prop({ required: true, ref: () => Dish })\r\n\tpublic dish!: Ref<Dish>;\r\n\r\n\t@prop({ required: true, type: () => [Number] })\r\n\tpublic portionPercentageForPackages?: number[];\r\n}\r\n\r\nclass MealCategory {\r\n\t@prop({ required: true, type: String })\r\n\tpublic name!: string;\r\n\r\n\t@prop({ required: true, type: () => [DishWithPortion] })\r\n\tpublic dishes!: DishWithPortion[];\r\n}\r\n\r\nclass CalorieRange {\r\n\t@prop({ required: true, type: Number })\r\n\tpublic from!: number;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tpublic to!: number;\r\n}\r\n\r\nclass PackageRange {\r\n\t@prop({ required: true, type: String })\r\n\tpublic title!: string;\r\n\r\n\t@prop({ required: true, type: CalorieRange })\r\n\tpublic calorieRange!: CalorieRange;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tpublic price!: number;\r\n\r\n\t@prop({ required: true, type: () => [MealCategory], default: [] })\r\n\tpublic categories!: MealCategory[];\r\n}\r\n\r\nexport class Package {\r\n\t@prop({ required: true, type: String })\r\n\tpublic name!: string;\r\n\r\n\t@prop({ required: true, type: () => [PackageRange] })\r\n\tpublic ranges?: PackageRange[];\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"payout-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payout-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAqD;AAErD,MAAa,aAAa;IAEzB,WAAW,CAAW;IAGtB,cAAc,CAAU;CACxB;AAND,sCAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,cAAO,EAAE,CAAC;;kDAChC;AAGtB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACnB","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { WeekDay } from '../../../../utilities/enum';\n\nexport class PayoutSetting {\n\t@prop({ required: true, type: Number, enum: WeekDay })\n\tissuanceDay!: WeekDay;\n\n\t@prop({ type: Number, min: 1, default: 1 })\n\toverDuePeriods?: number;\n}\n"]}
1
+ {"version":3,"file":"payout-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payout-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAqD;AAErD,MAAa,aAAa;IAEzB,WAAW,CAAW;IAGtB,cAAc,CAAU;CACxB;AAND,sCAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,cAAO,EAAE,CAAC;;kDAChC;AAGtB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACnB","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { WeekDay } from '../../../../utilities/enum';\r\n\r\nexport class PayoutSetting {\r\n\t@prop({ required: true, type: Number, enum: WeekDay })\r\n\tissuanceDay!: WeekDay;\r\n\r\n\t@prop({ type: Number, min: 1, default: 1 })\r\n\toverDuePeriods?: number;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"product-nutrition.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/product-nutrition.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,gBAAgB;IAE5B,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,SAAS,CAAS;CAClB;AATD,4CASC;AAPA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAC1B;AAGb;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAC1B;AAGb;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACrB","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class ProductNutrition {\n\t@prop({ required: true, type: String })\n\tname: string;\n\n\t@prop({ required: true, type: String })\n\tunit: string;\n\n\t@prop({ required: true, type: Number })\n\tunitValue: number;\n}\n"]}
1
+ {"version":3,"file":"product-nutrition.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/product-nutrition.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,gBAAgB;IAE5B,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,SAAS,CAAS;CAClB;AATD,4CASC;AAPA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAC1B;AAGb;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAC1B;AAGb;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACrB","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class ProductNutrition {\r\n\t@prop({ required: true, type: String })\r\n\tname: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tunit: string;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tunitValue: number;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"referral-discount-config.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/referral-discount-config.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAa,sBAAsB;IAO3B,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,iBAAiB,CAAU;CAClC;AAdD,wDAcC;AAPO;IANN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,gBAAS;QACf,OAAO,EAAE,gBAAS,CAAC,UAAU;KAC7B,CAAC;;yDAC2B;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iEACD","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ValueType } from '../../../../utilities/enum';\n\nexport class ReferralDiscountConfig {\n\t@prop({\n\t\trequired: true,\n\t\ttype: String,\n\t\tenum: ValueType,\n\t\tdefault: ValueType.PERCENTAGE,\n\t})\n\tpublic valueType!: ValueType;\n\n\t@prop({ required: true, type: Number })\n\tpublic value!: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic minimumOrderValue?: number;\n}\n"]}
1
+ {"version":3,"file":"referral-discount-config.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/referral-discount-config.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAa,sBAAsB;IAO3B,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,iBAAiB,CAAU;CAClC;AAdD,wDAcC;AAPO;IANN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,gBAAS;QACf,OAAO,EAAE,gBAAS,CAAC,UAAU;KAC7B,CAAC;;yDAC2B;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iEACD","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { ValueType } from '../../../../utilities/enum';\r\n\r\nexport class ReferralDiscountConfig {\r\n\t@prop({\r\n\t\trequired: true,\r\n\t\ttype: String,\r\n\t\tenum: ValueType,\r\n\t\tdefault: ValueType.PERCENTAGE,\r\n\t})\r\n\tpublic valueType!: ValueType;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tpublic value!: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic minimumOrderValue?: number;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"rider-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/rider-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAExB,iBAAiB,CAAU;IAG3B,sBAAsB,CAAU;IAGhC,IAAI,CAAY;IAGhB,UAAU,CAAY;CACtB;AAZD,oCAYC;AAVA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;uDAChB;AAG3B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;4DAClB;AAGhC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;0CAC5B;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gDACtB","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class RiderSetting {\n\t@prop({ type: Number, default: 8, min: 0 })\n\tdailyWorkingHours?: number;\n\n\t@prop({ type: Number, default: Infinity, min: 0 })\n\tbobCashSettlementLimit?: number;\n\n\t@prop({ type: () => [Number], default: [] })\n\ttips?: number[];\n\n\t@prop({ type: () => [String], default: [] })\n\tequipments?: string[];\n}\n"]}
1
+ {"version":3,"file":"rider-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/rider-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAExB,iBAAiB,CAAU;IAG3B,sBAAsB,CAAU;IAGhC,IAAI,CAAY;IAGhB,UAAU,CAAY;CACtB;AAZD,oCAYC;AAVA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;uDAChB;AAG3B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;4DAClB;AAGhC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;0CAC5B;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gDACtB","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class RiderSetting {\r\n\t@prop({ type: Number, default: 8, min: 0 })\r\n\tdailyWorkingHours?: number;\r\n\r\n\t@prop({ type: Number, default: Infinity, min: 0 })\r\n\tbobCashSettlementLimit?: number;\r\n\r\n\t@prop({ type: () => [Number], default: [] })\r\n\ttips?: number[];\r\n\r\n\t@prop({ type: () => [String], default: [] })\r\n\tequipments?: string[];\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"service-fee-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-fee-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAa,iBAAiB;IAEtB,SAAS,CAAa;IAGtB,KAAK,CAAU;CACtB;AAND,8CAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;oDAC1C;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;gDACT","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ValueType } from '../../../../utilities/enum';\n\nexport class ServiceFeeSetting {\n\t@prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\n\tpublic valueType?: ValueType;\n\n\t@prop({ type: Number, min: 0 })\n\tpublic value?: number;\n}\n"]}
1
+ {"version":3,"file":"service-fee-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-fee-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAa,iBAAiB;IAEtB,SAAS,CAAa;IAGtB,KAAK,CAAU;CACtB;AAND,8CAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;oDAC1C;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;gDACT","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { ValueType } from '../../../../utilities/enum';\r\n\r\nexport class ServiceFeeSetting {\r\n\t@prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\r\n\tpublic valueType?: ValueType;\r\n\r\n\t@prop({ type: Number, min: 0 })\r\n\tpublic value?: number;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-summary.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/subscription-summary.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,mBAAmB;IAExB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,IAAI,CAAU;IAGd,aAAa,CAAU;IAGvB,IAAI,CAAU;IAGd,aAAa,CAAU;CAC9B;AAlBD,kDAkBC;AAhBO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACZ;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACH;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACd;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACL;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACd;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACL","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class SubscriptionSummary {\n\t@prop({ type: Number, default: 0 })\n\tpublic wallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic card?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCard?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic cash?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCash?: number;\n}\n"]}
1
+ {"version":3,"file":"subscription-summary.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/subscription-summary.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,mBAAmB;IAExB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,IAAI,CAAU;IAGd,aAAa,CAAU;IAGvB,IAAI,CAAU;IAGd,aAAa,CAAU;CAC9B;AAlBD,kDAkBC;AAhBO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACZ;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACH;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACd;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACL;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACd;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACL","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class SubscriptionSummary {\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic wallet?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryWallet?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic card?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryCard?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic cash?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryCash?: number;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"payout.model.js","sourceRoot":"/","sources":["libraries/mongo/models/payout.model.ts"],"names":[],"mappings":";;;AAAA,MAAa,MAAM;CAAG;AAAtB,wBAAsB","sourcesContent":["export class Payout {}\n"]}
1
+ {"version":3,"file":"payout.model.js","sourceRoot":"/","sources":["libraries/mongo/models/payout.model.ts"],"names":[],"mappings":";;;AAAA,MAAa,MAAM;CAAG;AAAtB,wBAAsB","sourcesContent":["export class Payout {}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"duration.model.js","sourceRoot":"/","sources":["libraries/mongo/models/shared/duration.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,QAAQ;IAEb,KAAK,CAAQ;IAGb,GAAG,CAAQ;CAClB;AAND,4BAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;8BAC3C,IAAI;uCAAC;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;qCAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class Duration {\n\t@prop({ required: true, type: Date, default: new Date() })\n\tpublic start!: Date;\n\n\t@prop({ type: Date })\n\tpublic end?: Date;\n}\n"]}
1
+ {"version":3,"file":"duration.model.js","sourceRoot":"/","sources":["libraries/mongo/models/shared/duration.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,QAAQ;IAEb,KAAK,CAAQ;IAGb,GAAG,CAAQ;CAClB;AAND,4BAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;8BAC3C,IAAI;uCAAC;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;qCAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class Duration {\r\n\t@prop({ required: true, type: Date, default: new Date() })\r\n\tpublic start!: Date;\r\n\r\n\t@prop({ type: Date })\r\n\tpublic end?: Date;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.model.js","sourceRoot":"/","sources":["libraries/mongo/models/transaction.model.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;CAAG;AAA3B,kCAA2B","sourcesContent":["export class Transaction {}\n"]}
1
+ {"version":3,"file":"transaction.model.js","sourceRoot":"/","sources":["libraries/mongo/models/transaction.model.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;CAAG;AAA3B,kCAA2B","sourcesContent":["export class Transaction {}\r\n"]}
@@ -24,12 +24,12 @@ export declare function createAuthenticatedProcedure(options: AuthOptions): impo
24
24
  _meta: object;
25
25
  _ctx_out: {
26
26
  requestId: string | undefined;
27
- res: import("http").ServerResponse<import("http").IncomingMessage>;
28
- tokenType: TokenType | undefined;
29
27
  entity: import("../context").EntityContext | undefined;
30
- req: import("http").IncomingMessage;
28
+ tokenType: TokenType | undefined;
31
29
  usedRefreshToken: boolean | undefined;
32
30
  tokenRenewed: boolean | undefined;
31
+ req: import("http").IncomingMessage;
32
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
33
33
  };
34
34
  _input_in: typeof import("@trpc/server").unsetMarker;
35
35
  _input_out: typeof import("@trpc/server").unsetMarker;
@@ -22,12 +22,12 @@ export declare function createPhoneVerifiedProcedure(options: PhoneVerifiedOptio
22
22
  _meta: object;
23
23
  _ctx_out: {
24
24
  requestId: string | undefined;
25
- res: import("http").ServerResponse<import("http").IncomingMessage>;
26
- tokenType: import("../../auth").TokenType | undefined;
27
25
  entity: import("../context").EntityContext | undefined;
28
- req: import("http").IncomingMessage;
26
+ tokenType: import("../../auth").TokenType | undefined;
29
27
  usedRefreshToken: boolean | undefined;
30
28
  tokenRenewed: boolean | undefined;
29
+ req: import("http").IncomingMessage;
30
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
31
31
  };
32
32
  _input_in: typeof import("@trpc/server").unsetMarker;
33
33
  _input_out: typeof import("@trpc/server").unsetMarker;
@@ -9,29 +9,29 @@ export declare function createPaginatedSchema<ItemType extends z.ZodTypeAny>(ite
9
9
  totalElements: z.ZodNumber;
10
10
  totalPages: z.ZodNumber;
11
11
  }, "strip", z.ZodTypeAny, {
12
- page: number;
13
12
  size: number;
13
+ page: number;
14
14
  totalElements: number;
15
15
  totalPages: number;
16
16
  }, {
17
- page: number;
18
17
  size: number;
18
+ page: number;
19
19
  totalElements: number;
20
20
  totalPages: number;
21
21
  }>;
22
22
  items: z.ZodArray<ItemType, "many">;
23
23
  }, "strip", z.ZodTypeAny, {
24
24
  metadata: {
25
- page: number;
26
25
  size: number;
26
+ page: number;
27
27
  totalElements: number;
28
28
  totalPages: number;
29
29
  };
30
30
  items: ItemType["_output"][];
31
31
  }, {
32
32
  metadata: {
33
- page: number;
34
33
  size: number;
34
+ page: number;
35
35
  totalElements: number;
36
36
  totalPages: number;
37
37
  };
@@ -57,8 +57,8 @@ export interface PaginatorOptions<TClass extends AnyParamConstructor<any>> {
57
57
  export declare function createRawDocumentPaginatorObject<T extends AnyParamConstructor<any>>(model: ReturnModelType<T>): (options: PaginatorOptions<T>) => Promise<RawPaginatedResult<T>>;
58
58
  export declare function createPaginatorObject<T extends AnyParamConstructor<any>>(model: ReturnModelType<T>, itemSchema: z.ZodTypeAny, transformFn?: (doc: DocumentType<T>) => z.infer<typeof itemSchema>): (options: PaginatorOptions<T>) => Promise<{
59
59
  metadata: {
60
- page: number;
61
60
  size: number;
61
+ page: number;
62
62
  totalElements: number;
63
63
  totalPages: number;
64
64
  };
@@ -89,15 +89,15 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
89
89
  searchFields?: string[] | undefined;
90
90
  }>>;
91
91
  }, "strip", z.ZodTypeAny, {
92
- page: number;
93
92
  size: number;
93
+ page: number;
94
94
  search?: {
95
95
  searchKey: string;
96
96
  searchFields?: string[] | undefined;
97
97
  } | undefined;
98
+ query?: Record<string, any> | undefined;
98
99
  sort?: Record<string, 1 | -1> | undefined;
99
100
  select?: Record<string, 0 | 1> | undefined;
100
- query?: Record<string, any> | undefined;
101
101
  populate?: {
102
102
  path: string;
103
103
  match?: Record<string, any> | undefined;
@@ -122,11 +122,9 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
122
122
  searchKey: string;
123
123
  searchFields?: string[] | undefined;
124
124
  } | undefined;
125
+ query?: Record<string, any> | undefined;
125
126
  sort?: Record<string, 1 | -1> | undefined;
126
- page?: number | undefined;
127
127
  select?: Record<string, 0 | 1> | undefined;
128
- size?: number | undefined;
129
- query?: Record<string, any> | undefined;
130
128
  populate?: {
131
129
  path: string;
132
130
  match?: Record<string, any> | undefined;
@@ -146,15 +144,17 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
146
144
  limit?: number | undefined;
147
145
  } | undefined;
148
146
  }[] | undefined;
147
+ size?: number | undefined;
148
+ page?: number | undefined;
149
149
  }>>;
150
150
  export type FilterDTO = z.infer<typeof FilterSchema>;
151
151
  export declare const StringSchema: z.ZodString;
152
152
  export declare const AddressSchema: z.ZodObject<{
153
- address: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
- description: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
155
- city: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- state: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
- country: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ address: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
154
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
155
+ city: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
156
+ state: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
157
+ country: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
158
158
  location: z.ZodObject<{
159
159
  type: z.ZodDefault<z.ZodNativeEnum<typeof GeoLocationType>>;
160
160
  coordinates: z.ZodArray<z.ZodNumber, "many">;
@@ -175,11 +175,11 @@ export declare const AddressSchema: z.ZodObject<{
175
175
  };
176
176
  latitude: number;
177
177
  longitude: number;
178
- state?: string | null | undefined;
179
- address?: string | null | undefined;
180
- country?: string | null | undefined;
181
178
  description?: string | null | undefined;
179
+ address?: string | null | undefined;
182
180
  city?: string | null | undefined;
181
+ state?: string | null | undefined;
182
+ country?: string | null | undefined;
183
183
  zone?: import("mongoose").Types.ObjectId | undefined;
184
184
  }, {
185
185
  location: {
@@ -188,19 +188,19 @@ export declare const AddressSchema: z.ZodObject<{
188
188
  };
189
189
  latitude: number;
190
190
  longitude: number;
191
- state?: string | null | undefined;
192
- address?: string | null | undefined;
193
- country?: string | null | undefined;
194
191
  description?: string | null | undefined;
192
+ address?: string | null | undefined;
195
193
  city?: string | null | undefined;
194
+ state?: string | null | undefined;
195
+ country?: string | null | undefined;
196
196
  zone?: string | import("mongoose").Types.ObjectId | undefined;
197
197
  }>;
198
198
  export declare const UserAddressSchema: z.ZodObject<z.objectUtil.extendShape<{
199
- address: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
- description: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
201
- city: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
- state: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
- country: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ address: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
200
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
201
+ city: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
202
+ state: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
203
+ country: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
204
204
  location: z.ZodObject<{
205
205
  type: z.ZodDefault<z.ZodNativeEnum<typeof GeoLocationType>>;
206
206
  coordinates: z.ZodArray<z.ZodNumber, "many">;
@@ -215,11 +215,11 @@ export declare const UserAddressSchema: z.ZodObject<z.objectUtil.extendShape<{
215
215
  longitude: z.ZodNumber;
216
216
  zone: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
217
217
  }, {
218
- addressLabel: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
- apartment: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
- buildingName: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
- deliveryOption: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
222
- instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
218
+ addressLabel: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
219
+ apartment: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
220
+ buildingName: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
221
+ deliveryOption: z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
222
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
223
223
  }>, "strip", z.ZodTypeAny, {
224
224
  location: {
225
225
  type: GeoLocationType;
@@ -227,11 +227,11 @@ export declare const UserAddressSchema: z.ZodObject<z.objectUtil.extendShape<{
227
227
  };
228
228
  latitude: number;
229
229
  longitude: number;
230
- state?: string | null | undefined;
231
- address?: string | null | undefined;
232
- country?: string | null | undefined;
233
230
  description?: string | null | undefined;
231
+ address?: string | null | undefined;
234
232
  city?: string | null | undefined;
233
+ state?: string | null | undefined;
234
+ country?: string | null | undefined;
235
235
  zone?: import("mongoose").Types.ObjectId | undefined;
236
236
  addressLabel?: string | null | undefined;
237
237
  apartment?: string | null | undefined;
@@ -245,11 +245,11 @@ export declare const UserAddressSchema: z.ZodObject<z.objectUtil.extendShape<{
245
245
  };
246
246
  latitude: number;
247
247
  longitude: number;
248
- state?: string | null | undefined;
249
- address?: string | null | undefined;
250
- country?: string | null | undefined;
251
248
  description?: string | null | undefined;
249
+ address?: string | null | undefined;
252
250
  city?: string | null | undefined;
251
+ state?: string | null | undefined;
252
+ country?: string | null | undefined;
253
253
  zone?: string | import("mongoose").Types.ObjectId | undefined;
254
254
  addressLabel?: string | null | undefined;
255
255
  apartment?: string | null | undefined;
@@ -258,11 +258,11 @@ export declare const UserAddressSchema: z.ZodObject<z.objectUtil.extendShape<{
258
258
  instructions?: string | null | undefined;
259
259
  }>;
260
260
  export declare const CourierAddressSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
261
- address: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
- description: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
263
- city: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
- state: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
- country: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
+ address: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
262
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
263
+ city: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
264
+ state: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
265
+ country: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
266
266
  location: z.ZodObject<{
267
267
  type: z.ZodDefault<z.ZodNativeEnum<typeof GeoLocationType>>;
268
268
  coordinates: z.ZodArray<z.ZodNumber, "many">;
@@ -277,14 +277,14 @@ export declare const CourierAddressSchema: z.ZodObject<z.objectUtil.extendShape<
277
277
  longitude: z.ZodNumber;
278
278
  zone: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
279
279
  }, {
280
- addressLabel: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
- apartment: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
- buildingName: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
283
- deliveryOption: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
284
- instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
280
+ addressLabel: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
281
+ apartment: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
282
+ buildingName: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
283
+ deliveryOption: z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
284
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
285
285
  }>, {
286
- name: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
287
- phoneNumber: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
286
+ name: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
287
+ phoneNumber: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
288
288
  }>, "strip", z.ZodTypeAny, {
289
289
  location: {
290
290
  type: GeoLocationType;
@@ -293,12 +293,12 @@ export declare const CourierAddressSchema: z.ZodObject<z.objectUtil.extendShape<
293
293
  latitude: number;
294
294
  longitude: number;
295
295
  name?: string | null | undefined;
296
- state?: string | null | undefined;
297
- address?: string | null | undefined;
298
- country?: string | null | undefined;
299
296
  description?: string | null | undefined;
300
297
  phoneNumber?: string | null | undefined;
298
+ address?: string | null | undefined;
301
299
  city?: string | null | undefined;
300
+ state?: string | null | undefined;
301
+ country?: string | null | undefined;
302
302
  zone?: import("mongoose").Types.ObjectId | undefined;
303
303
  addressLabel?: string | null | undefined;
304
304
  apartment?: string | null | undefined;
@@ -313,12 +313,12 @@ export declare const CourierAddressSchema: z.ZodObject<z.objectUtil.extendShape<
313
313
  latitude: number;
314
314
  longitude: number;
315
315
  name?: string | null | undefined;
316
- state?: string | null | undefined;
317
- address?: string | null | undefined;
318
- country?: string | null | undefined;
319
316
  description?: string | null | undefined;
320
317
  phoneNumber?: string | null | undefined;
318
+ address?: string | null | undefined;
321
319
  city?: string | null | undefined;
320
+ state?: string | null | undefined;
321
+ country?: string | null | undefined;
322
322
  zone?: string | import("mongoose").Types.ObjectId | undefined;
323
323
  addressLabel?: string | null | undefined;
324
324
  apartment?: string | null | undefined;
@@ -340,8 +340,8 @@ export declare const NormalHourSchema: z.ZodObject<{
340
340
  day: z.ZodNativeEnum<typeof WeekDay>;
341
341
  status: z.ZodNativeEnum<typeof WorkStatus>;
342
342
  openingHours: z.ZodDefault<z.ZodArray<z.ZodObject<{
343
- start: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
344
- end: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
+ start: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
344
+ end: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
345
345
  }, "strip", z.ZodTypeAny, {
346
346
  end?: string | null | undefined;
347
347
  start?: string | null | undefined;
@@ -350,15 +350,15 @@ export declare const NormalHourSchema: z.ZodObject<{
350
350
  start?: string | null | undefined;
351
351
  }>, "many">>;
352
352
  }, "strip", z.ZodTypeAny, {
353
- status: WorkStatus;
354
353
  day: WeekDay;
354
+ status: WorkStatus;
355
355
  openingHours: {
356
356
  end?: string | null | undefined;
357
357
  start?: string | null | undefined;
358
358
  }[];
359
359
  }, {
360
- status: WorkStatus;
361
360
  day: WeekDay;
361
+ status: WorkStatus;
362
362
  openingHours?: {
363
363
  end?: string | null | undefined;
364
364
  start?: string | null | undefined;
@@ -368,8 +368,8 @@ export declare const HolidayHourSchema: z.ZodObject<{
368
368
  date: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
369
369
  status: z.ZodNativeEnum<typeof HolidayWorkStatus>;
370
370
  closingHour: z.ZodObject<{
371
- start: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
- end: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
+ start: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
372
+ end: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
373
373
  }, "strip", z.ZodTypeAny, {
374
374
  end?: string | null | undefined;
375
375
  start?: string | null | undefined;
@@ -378,15 +378,15 @@ export declare const HolidayHourSchema: z.ZodObject<{
378
378
  start?: string | null | undefined;
379
379
  }>;
380
380
  }, "strip", z.ZodTypeAny, {
381
- status: HolidayWorkStatus;
382
381
  date: Date;
382
+ status: HolidayWorkStatus;
383
383
  closingHour: {
384
384
  end?: string | null | undefined;
385
385
  start?: string | null | undefined;
386
386
  };
387
387
  }, {
388
- status: HolidayWorkStatus;
389
388
  date: string | Date;
389
+ status: HolidayWorkStatus;
390
390
  closingHour: {
391
391
  end?: string | null | undefined;
392
392
  start?: string | null | undefined;
@@ -397,8 +397,8 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
397
397
  day: z.ZodNativeEnum<typeof WeekDay>;
398
398
  status: z.ZodNativeEnum<typeof WorkStatus>;
399
399
  openingHours: z.ZodDefault<z.ZodArray<z.ZodObject<{
400
- start: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
401
- end: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
+ start: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
401
+ end: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
402
402
  }, "strip", z.ZodTypeAny, {
403
403
  end?: string | null | undefined;
404
404
  start?: string | null | undefined;
@@ -407,15 +407,15 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
407
407
  start?: string | null | undefined;
408
408
  }>, "many">>;
409
409
  }, "strip", z.ZodTypeAny, {
410
- status: WorkStatus;
411
410
  day: WeekDay;
411
+ status: WorkStatus;
412
412
  openingHours: {
413
413
  end?: string | null | undefined;
414
414
  start?: string | null | undefined;
415
415
  }[];
416
416
  }, {
417
- status: WorkStatus;
418
417
  day: WeekDay;
418
+ status: WorkStatus;
419
419
  openingHours?: {
420
420
  end?: string | null | undefined;
421
421
  start?: string | null | undefined;
@@ -425,8 +425,8 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
425
425
  date: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
426
426
  status: z.ZodNativeEnum<typeof HolidayWorkStatus>;
427
427
  closingHour: z.ZodObject<{
428
- start: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
429
- end: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
+ start: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
429
+ end: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
430
430
  }, "strip", z.ZodTypeAny, {
431
431
  end?: string | null | undefined;
432
432
  start?: string | null | undefined;
@@ -435,15 +435,15 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
435
435
  start?: string | null | undefined;
436
436
  }>;
437
437
  }, "strip", z.ZodTypeAny, {
438
- status: HolidayWorkStatus;
439
438
  date: Date;
439
+ status: HolidayWorkStatus;
440
440
  closingHour: {
441
441
  end?: string | null | undefined;
442
442
  start?: string | null | undefined;
443
443
  };
444
444
  }, {
445
- status: HolidayWorkStatus;
446
445
  date: string | Date;
446
+ status: HolidayWorkStatus;
447
447
  closingHour: {
448
448
  end?: string | null | undefined;
449
449
  start?: string | null | undefined;
@@ -451,16 +451,16 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
451
451
  }>, "many">>;
452
452
  }, "strip", z.ZodTypeAny, {
453
453
  normalHours: {
454
- status: WorkStatus;
455
454
  day: WeekDay;
455
+ status: WorkStatus;
456
456
  openingHours: {
457
457
  end?: string | null | undefined;
458
458
  start?: string | null | undefined;
459
459
  }[];
460
460
  }[];
461
461
  holidayHours: {
462
- status: HolidayWorkStatus;
463
462
  date: Date;
463
+ status: HolidayWorkStatus;
464
464
  closingHour: {
465
465
  end?: string | null | undefined;
466
466
  start?: string | null | undefined;
@@ -468,16 +468,16 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
468
468
  }[];
469
469
  }, {
470
470
  normalHours?: {
471
- status: WorkStatus;
472
471
  day: WeekDay;
472
+ status: WorkStatus;
473
473
  openingHours?: {
474
474
  end?: string | null | undefined;
475
475
  start?: string | null | undefined;
476
476
  }[] | undefined;
477
477
  }[] | undefined;
478
478
  holidayHours?: {
479
- status: HolidayWorkStatus;
480
479
  date: string | Date;
480
+ status: HolidayWorkStatus;
481
481
  closingHour: {
482
482
  end?: string | null | undefined;
483
483
  start?: string | null | undefined;
@@ -485,8 +485,8 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
485
485
  }[] | undefined;
486
486
  }>;
487
487
  export declare const LoginSchema: z.ZodObject<{
488
- email: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
- password: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
488
+ email: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
489
+ password: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
490
490
  }, "strip", z.ZodTypeAny, {
491
491
  email?: string | null | undefined;
492
492
  password?: string | null | undefined;
@@ -502,13 +502,13 @@ export declare const createPaginatedSchema: <T>(documentSchema: z.ZodSchema<T>)
502
502
  totalElements: z.ZodNumber;
503
503
  totalPages: z.ZodNumber;
504
504
  }, "strip", z.ZodTypeAny, {
505
- page: number;
506
505
  size: number;
506
+ page: number;
507
507
  totalElements: number;
508
508
  totalPages: number;
509
509
  }, {
510
- page: number;
511
510
  size: number;
511
+ page: number;
512
512
  totalElements: number;
513
513
  totalPages: number;
514
514
  }>>;
@@ -516,23 +516,23 @@ export declare const createPaginatedSchema: <T>(documentSchema: z.ZodSchema<T>)
516
516
  }, "strip", z.ZodTypeAny, {
517
517
  documents: T[];
518
518
  metadata?: {
519
- page: number;
520
519
  size: number;
520
+ page: number;
521
521
  totalElements: number;
522
522
  totalPages: number;
523
523
  } | undefined;
524
524
  }, {
525
525
  documents: T[];
526
526
  metadata?: {
527
- page: number;
528
527
  size: number;
528
+ page: number;
529
529
  totalElements: number;
530
530
  totalPages: number;
531
531
  } | undefined;
532
532
  }>;
533
533
  export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodObject<{
534
534
  success: z.ZodBoolean;
535
- message: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
535
+ message: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
536
536
  data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
537
537
  metadata: z.ZodOptional<z.ZodObject<{
538
538
  page: z.ZodNumber;
@@ -540,13 +540,13 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
540
540
  totalElements: z.ZodNumber;
541
541
  totalPages: z.ZodNumber;
542
542
  }, "strip", z.ZodTypeAny, {
543
- page: number;
544
543
  size: number;
544
+ page: number;
545
545
  totalElements: number;
546
546
  totalPages: number;
547
547
  }, {
548
- page: number;
549
548
  size: number;
549
+ page: number;
550
550
  totalElements: number;
551
551
  totalPages: number;
552
552
  }>>;
@@ -554,23 +554,23 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
554
554
  }, "strip", z.ZodTypeAny, {
555
555
  documents: T[];
556
556
  metadata?: {
557
- page: number;
558
557
  size: number;
558
+ page: number;
559
559
  totalElements: number;
560
560
  totalPages: number;
561
561
  } | undefined;
562
562
  }, {
563
563
  documents: T[];
564
564
  metadata?: {
565
- page: number;
566
565
  size: number;
566
+ page: number;
567
567
  totalElements: number;
568
568
  totalPages: number;
569
569
  } | undefined;
570
570
  }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
571
571
  }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
572
572
  success: z.ZodBoolean;
573
- message: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
573
+ message: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
574
574
  data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
575
575
  metadata: z.ZodOptional<z.ZodObject<{
576
576
  page: z.ZodNumber;
@@ -578,13 +578,13 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
578
578
  totalElements: z.ZodNumber;
579
579
  totalPages: z.ZodNumber;
580
580
  }, "strip", z.ZodTypeAny, {
581
- page: number;
582
581
  size: number;
582
+ page: number;
583
583
  totalElements: number;
584
584
  totalPages: number;
585
585
  }, {
586
- page: number;
587
586
  size: number;
587
+ page: number;
588
588
  totalElements: number;
589
589
  totalPages: number;
590
590
  }>>;
@@ -592,23 +592,23 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
592
592
  }, "strip", z.ZodTypeAny, {
593
593
  documents: T[];
594
594
  metadata?: {
595
- page: number;
596
595
  size: number;
596
+ page: number;
597
597
  totalElements: number;
598
598
  totalPages: number;
599
599
  } | undefined;
600
600
  }, {
601
601
  documents: T[];
602
602
  metadata?: {
603
- page: number;
604
603
  size: number;
604
+ page: number;
605
605
  totalElements: number;
606
606
  totalPages: number;
607
607
  } | undefined;
608
608
  }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
609
609
  }>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
610
610
  success: z.ZodBoolean;
611
- message: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
611
+ message: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
612
612
  data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
613
613
  metadata: z.ZodOptional<z.ZodObject<{
614
614
  page: z.ZodNumber;
@@ -616,13 +616,13 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
616
616
  totalElements: z.ZodNumber;
617
617
  totalPages: z.ZodNumber;
618
618
  }, "strip", z.ZodTypeAny, {
619
- page: number;
620
619
  size: number;
620
+ page: number;
621
621
  totalElements: number;
622
622
  totalPages: number;
623
623
  }, {
624
- page: number;
625
624
  size: number;
625
+ page: number;
626
626
  totalElements: number;
627
627
  totalPages: number;
628
628
  }>>;
@@ -630,23 +630,23 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
630
630
  }, "strip", z.ZodTypeAny, {
631
631
  documents: T[];
632
632
  metadata?: {
633
- page: number;
634
633
  size: number;
634
+ page: number;
635
635
  totalElements: number;
636
636
  totalPages: number;
637
637
  } | undefined;
638
638
  }, {
639
639
  documents: T[];
640
640
  metadata?: {
641
- page: number;
642
641
  size: number;
642
+ page: number;
643
643
  totalElements: number;
644
644
  totalPages: number;
645
645
  } | undefined;
646
646
  }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
647
647
  }>, any>[k]; } : never, z.baseObjectInputType<{
648
648
  success: z.ZodBoolean;
649
- message: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
649
+ message: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
650
650
  data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
651
651
  metadata: z.ZodOptional<z.ZodObject<{
652
652
  page: z.ZodNumber;
@@ -654,13 +654,13 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
654
654
  totalElements: z.ZodNumber;
655
655
  totalPages: z.ZodNumber;
656
656
  }, "strip", z.ZodTypeAny, {
657
- page: number;
658
657
  size: number;
658
+ page: number;
659
659
  totalElements: number;
660
660
  totalPages: number;
661
661
  }, {
662
- page: number;
663
662
  size: number;
663
+ page: number;
664
664
  totalElements: number;
665
665
  totalPages: number;
666
666
  }>>;
@@ -668,23 +668,23 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
668
668
  }, "strip", z.ZodTypeAny, {
669
669
  documents: T[];
670
670
  metadata?: {
671
- page: number;
672
671
  size: number;
672
+ page: number;
673
673
  totalElements: number;
674
674
  totalPages: number;
675
675
  } | undefined;
676
676
  }, {
677
677
  documents: T[];
678
678
  metadata?: {
679
- page: number;
680
679
  size: number;
680
+ page: number;
681
681
  totalElements: number;
682
682
  totalPages: number;
683
683
  } | undefined;
684
684
  }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
685
685
  }> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
686
686
  success: z.ZodBoolean;
687
- message: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
687
+ message: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
688
688
  data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
689
689
  metadata: z.ZodOptional<z.ZodObject<{
690
690
  page: z.ZodNumber;
@@ -692,13 +692,13 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
692
692
  totalElements: z.ZodNumber;
693
693
  totalPages: z.ZodNumber;
694
694
  }, "strip", z.ZodTypeAny, {
695
- page: number;
696
695
  size: number;
696
+ page: number;
697
697
  totalElements: number;
698
698
  totalPages: number;
699
699
  }, {
700
- page: number;
701
700
  size: number;
701
+ page: number;
702
702
  totalElements: number;
703
703
  totalPages: number;
704
704
  }>>;
@@ -706,37 +706,37 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
706
706
  }, "strip", z.ZodTypeAny, {
707
707
  documents: T[];
708
708
  metadata?: {
709
- page: number;
710
709
  size: number;
710
+ page: number;
711
711
  totalElements: number;
712
712
  totalPages: number;
713
713
  } | undefined;
714
714
  }, {
715
715
  documents: T[];
716
716
  metadata?: {
717
- page: number;
718
717
  size: number;
718
+ page: number;
719
719
  totalElements: number;
720
720
  totalPages: number;
721
721
  } | undefined;
722
722
  }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
723
723
  }>[k_1]; } : never>;
724
724
  export declare const TokenSchema: z.ZodObject<{
725
- accessToken: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
726
- refreshToken: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
725
+ accessToken: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
726
+ refreshToken: z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
727
727
  }, "strip", z.ZodTypeAny, {
728
- refreshToken?: string | null | undefined;
729
728
  accessToken?: string | null | undefined;
730
- }, {
731
729
  refreshToken?: string | null | undefined;
730
+ }, {
732
731
  accessToken?: string | null | undefined;
732
+ refreshToken?: string | null | undefined;
733
733
  }>;
734
734
  export declare const UpdateSortingOrderSchema: z.ZodObject<{
735
735
  startIndex: z.ZodDefault<z.ZodNumber>;
736
736
  list: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">;
737
737
  }, "strip", z.ZodTypeAny, {
738
- list: import("mongoose").Types.ObjectId[];
739
738
  startIndex: number;
739
+ list: import("mongoose").Types.ObjectId[];
740
740
  }, {
741
741
  list: (string | import("mongoose").Types.ObjectId)[];
742
742
  startIndex?: number | undefined;
@@ -24,13 +24,13 @@ export declare class ZodValidation {
24
24
  pattern: RegExp;
25
25
  message: string;
26
26
  };
27
- }): z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ }): z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
28
28
  static email(field?: string, options?: {
29
29
  requiredMessage?: string;
30
30
  invalidMessage?: string;
31
31
  optional?: boolean;
32
32
  nullable?: boolean;
33
- }): z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ }): z.ZodString | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodString>;
34
34
  static url(field?: string): z.ZodString;
35
35
  static phoneNumber(field?: string): z.ZodString;
36
36
  static date(field?: string, minDate?: Date, maxDate?: Date): z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -13,7 +13,12 @@
13
13
  "build": "tsc",
14
14
  "clean": "rimraf dist",
15
15
  "prepare": "npm run build",
16
- "start": "npx ts-node src/index.ts"
16
+ "start": "npx ts-node src/index.ts",
17
+ "test:memory": "node --expose-gc memory-leak-test.js",
18
+ "test:memory:doctor": "clinic doctor -- node --expose-gc memory-leak-test.js",
19
+ "test:memory:heap": "clinic heap -- node --expose-gc memory-leak-test.js",
20
+ "test:memory:flame": "clinic flame -- node --expose-gc memory-leak-test.js",
21
+ "test:memory:bubble": "clinic bubbleprof -- node --expose-gc memory-leak-test.js"
17
22
  },
18
23
  "dependencies": {
19
24
  "@google-cloud/secret-manager": "^5.6.0",
@@ -45,6 +50,8 @@
45
50
  },
46
51
  "devDependencies": {
47
52
  "@types/mime-types": "^2.1.4",
48
- "prettier": "3.5.3"
53
+ "clinic": "^13.0.0",
54
+ "prettier": "3.5.3",
55
+ "rimraf": "^5.0.5"
49
56
  }
50
57
  }