@lyxa.ai/core 1.0.37 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js.map +1 -1
- package/dist/libraries/event/test/OrderCreationEvent.js.map +1 -1
- package/dist/libraries/mongo/models/base/base-coupon.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/attribute-item.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/attribute-map.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/business-development-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/charge-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/courier-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/currency-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/currency.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/delivery-info.model.d.ts +4 -0
- package/dist/libraries/mongo/models/embedded/delivery-info.model.js +27 -0
- package/dist/libraries/mongo/models/embedded/delivery-info.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/featured-item.mode.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/package.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/payout-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/product-nutrition.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/referral-discount-config.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/rider-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/service-fee-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/subscription-summary.model.js.map +1 -1
- package/dist/libraries/mongo/models/payout.model.js.map +1 -1
- package/dist/libraries/mongo/models/shared/duration.model.js.map +1 -1
- package/dist/libraries/mongo/models/shop-review.model.js +1 -0
- package/dist/libraries/mongo/models/shop-review.model.js.map +1 -1
- package/dist/libraries/mongo/models/shop.model.d.ts +2 -0
- package/dist/libraries/mongo/models/shop.model.js +6 -0
- package/dist/libraries/mongo/models/shop.model.js.map +1 -1
- package/dist/libraries/mongo/models/transaction.model.js.map +1 -1
- package/dist/libraries/trpc/middlewares/auth.d.ts +3 -3
- package/dist/libraries/trpc/middlewares/phone-verified.d.ts +3 -3
- package/dist/utilities/pagination.d.ts +5 -5
- package/dist/utilities/validation/common-validation.d.ts +106 -106
- package/dist/utilities/validation/global-validation.d.ts +2 -2
- package/package.json +3 -10
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;;;;;AAmBA,sCAyBC;AAED,8CAyDC;AAED,oCAEC;AA3GD,2CAA2C;AAC3C,mCAAiC;AACjC,wDAAgC;AAChC,6DAAqF;AACrF,+GAA0G;AAC1G,+CAA8C;AAC9C,6CAA+C;AAC/C,6CAAuD;AACvD,iDAAyD;AACzD,uDAA8D;AAC9D,+CAAiD;AACjD,mDAAqD;AACrD,6CAAiE;AACjE,0FAAqF;AAGrF,6GAA4G;AAAnG,4IAAA,4BAA4B,OAAA;AACrC,2CAA4G;AAAnG,6GAAA,oBAAoB,OAAA;AAAE,0GAAA,iBAAiB,OAAA;AAAE,uHAAA,8BAA8B,OAAA;AAEzE,KAAK,UAAU,aAAa,CAAC,OAA8B;IACjE,IAAI,CAAC;QACJ,MAAM,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAEjC,YAAY,EAAE,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;QAE/E,MAAM,gBAAgB,GAAG,KAAK,IAAI,EAAE;YACnC,YAAY,EAAE,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,uDAAuD,CAAC,CAAC;YAChG,OAAO,CAAC,IAAI,EAAE,CAAA;QACf,CAAC,CAAC;QAEF,OAA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AQ,GAAG,oBAAoB,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAC3D,IAAI,CAAC,QAAQ,EAAE,CAAC;YACf,QAAQ,GAAG,kBAAS,CAAC,GAAG,CAAC,iBAAwB,CAAC,CAAC;YACnD,oBAAoB,CAAC,GAAG,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;QACvD,CAAC;QAED,MAAM,IAAA,wBAAgB,EAAC,OAAO,EAAE,KAAK,EAAC,OAAO,EAAC,EAAE;YAC/C,OAAO,QAAQ,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC;AAED,SAAgB,YAAY;IAC3B,OAAO,kBAAS,CAAC,GAAG,CAAC,0BAAc,CAAC,CAAC;AACtC,CAAC","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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderCreationEvent.js","sourceRoot":"/","sources":["libraries/event/test/OrderCreationEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAyC;AACzC,qDAAuD;AACvD,oCAAwC;AACxC,uDAAoD;
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-coupon.model.js","sourceRoot":"/","sources":["libraries/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,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';\
|
|
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 +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';\
|
|
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 +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';\
|
|
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 +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';\
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charge-setting.model.js","sourceRoot":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AAG,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gEACA","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
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 +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';\
|
|
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 +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';\
|
|
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 +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';\
|
|
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"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DeliveryInfo = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
class DeliveryInfo {
|
|
15
|
+
totalDeliveries;
|
|
16
|
+
totalDeliveryTime;
|
|
17
|
+
}
|
|
18
|
+
exports.DeliveryInfo = DeliveryInfo;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], DeliveryInfo.prototype, "totalDeliveries", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], DeliveryInfo.prototype, "totalDeliveryTime", void 0);
|
|
27
|
+
//# sourceMappingURL=delivery-info.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delivery-info.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/delivery-info.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAEjB,eAAe,CAAU;IAGzB,iBAAiB,CAAS;CACjC;AAND,oCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACH;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACF","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class DeliveryInfo {\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic totalDeliveries!: string;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic totalDeliveryTime: number; // in seconds\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';\
|
|
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 +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,E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I,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 +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';\
|
|
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 +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';\
|
|
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 +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';\
|
|
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 +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';\
|
|
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 +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';\
|
|
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 +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';\
|
|
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 +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 {}\
|
|
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 +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';\
|
|
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"]}
|
|
@@ -22,6 +22,7 @@ __decorate([
|
|
|
22
22
|
__metadata("design:type", Object)
|
|
23
23
|
], ShopReview.prototype, "shop", void 0);
|
|
24
24
|
exports.ShopReview = ShopReview = __decorate([
|
|
25
|
+
(0, typegoose_1.Index)({ shop: 1 }),
|
|
25
26
|
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'shopReviews' } })
|
|
26
27
|
], ShopReview);
|
|
27
28
|
//# sourceMappingURL=shop-review.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shop-review.model.js","sourceRoot":"/","sources":["libraries/mongo/models/shop-review.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"shop-review.model.js","sourceRoot":"/","sources":["libraries/mongo/models/shop-review.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,gEAAsD;AACtD,6CAAoC;AAI7B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,8BAAU;IAElC,IAAI,CAAa;CACxB,CAAA;AAHY,gCAAU;AAEf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;wCAClB;qBAFZ,UAAU;IAFtB,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IAClB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,CAAC;GAClD,UAAU,CAGtB","sourcesContent":["import { modelOptions, prop, Ref, Index } from '@typegoose/typegoose';\r\nimport { BaseReview } from './base/base-review.model';\r\nimport { Shop } from './shop.model';\r\n\r\n@Index({ shop: 1 })\r\n@modelOptions({ schemaOptions: { collection: 'shopReviews' } })\r\nexport class ShopReview extends BaseReview {\r\n\t@prop({ required: true, ref: () => Shop })\r\n\tpublic shop!: Ref<Shop>;\r\n}\r\n"]}
|
|
@@ -8,6 +8,7 @@ import { Address } from './shared/address.model';
|
|
|
8
8
|
import { StartEndTime, WorkHourSetting } from './shared/work-hour.model';
|
|
9
9
|
import { Tag } from './tag.model';
|
|
10
10
|
import { Zone } from './zone.model';
|
|
11
|
+
import { DeliveryInfo } from './embedded/delivery-info.model';
|
|
11
12
|
export declare class Shop extends TimeStamps {
|
|
12
13
|
slug: string;
|
|
13
14
|
parent: Ref<Parent>;
|
|
@@ -47,4 +48,5 @@ export declare class Shop extends TimeStamps {
|
|
|
47
48
|
isBestSellerCategoryVisible?: boolean;
|
|
48
49
|
bestSellerCategoryTitle?: string;
|
|
49
50
|
sortingOrder?: number;
|
|
51
|
+
deliveryInfo?: DeliveryInfo;
|
|
50
52
|
}
|
|
@@ -20,6 +20,7 @@ const address_model_1 = require("./shared/address.model");
|
|
|
20
20
|
const work_hour_model_1 = require("./shared/work-hour.model");
|
|
21
21
|
const tag_model_1 = require("./tag.model");
|
|
22
22
|
const zone_model_1 = require("./zone.model");
|
|
23
|
+
const delivery_info_model_1 = require("./embedded/delivery-info.model");
|
|
23
24
|
let Shop = class Shop extends defaultClasses_1.TimeStamps {
|
|
24
25
|
slug;
|
|
25
26
|
parent;
|
|
@@ -59,6 +60,7 @@ let Shop = class Shop extends defaultClasses_1.TimeStamps {
|
|
|
59
60
|
isBestSellerCategoryVisible;
|
|
60
61
|
bestSellerCategoryTitle;
|
|
61
62
|
sortingOrder;
|
|
63
|
+
deliveryInfo;
|
|
62
64
|
};
|
|
63
65
|
exports.Shop = Shop;
|
|
64
66
|
__decorate([
|
|
@@ -217,6 +219,10 @@ __decorate([
|
|
|
217
219
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
218
220
|
__metadata("design:type", Number)
|
|
219
221
|
], Shop.prototype, "sortingOrder", void 0);
|
|
222
|
+
__decorate([
|
|
223
|
+
(0, typegoose_1.prop)({ type: delivery_info_model_1.DeliveryInfo }),
|
|
224
|
+
__metadata("design:type", delivery_info_model_1.DeliveryInfo)
|
|
225
|
+
], Shop.prototype, "deliveryInfo", void 0);
|
|
220
226
|
exports.Shop = Shop = __decorate([
|
|
221
227
|
(0, typegoose_1.modelOptions)({
|
|
222
228
|
schemaOptions: { collection: 'shops' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shop.model.js","sourceRoot":"/","sources":["libraries/mongo/models/shop.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAgF;AAChF,4EAAqE;AACrE,kDAA6E;AAC7E,+CAAsC;AACtC,wEAA8D;AAC9D,iDAAwC;AACxC,0DAAiD;AACjD,8DAAyE;AACzE,2CAAkC;AAClC,6CAAoC;
|
|
1
|
+
{"version":3,"file":"shop.model.js","sourceRoot":"/","sources":["libraries/mong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AE,CAAC,OAAO,EAAE,CAAC;;yDACF;AAGtC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC;;qDACN;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0CACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,kCAAY,EAAE,CAAC;8BACP,kCAAY;0CAAC;eAzHvB,IAAI;IARhB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE;QACtC,OAAO,EAAE,EAAE,UAAU,EAAE,oBAAQ,CAAC,KAAK,EAAE;KACvC,CAAC;IACD,IAAA,iBAAK,EACL,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,EACxB,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAC,EAAE,CAC7D;GACY,IAAI,CA0HhB","sourcesContent":["import { modelOptions, prop, Ref, Severity, Index } from '@typegoose/typegoose';\r\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\r\nimport { ItemType, ShopOnlineStatus, Status } from '../../../utilities/enum';\r\nimport { Brand } from './brand.model';\r\nimport { ShopDocument } from './embedded/shop-document.model';\r\nimport { Parent } from './parent.model';\r\nimport { Address } from './shared/address.model';\r\nimport { StartEndTime, WorkHourSetting } from './shared/work-hour.model';\r\nimport { Tag } from './tag.model';\r\nimport { Zone } from './zone.model';\r\nimport { DeliveryInfo } from './embedded/delivery-info.model';\r\n\r\n\r\n@modelOptions({\r\n\tschemaOptions: { collection: 'shops' },\r\n\toptions: { allowMixed: Severity.ALLOW },\r\n})\r\n@Index(\r\n\t{ name: 1, itemType: 1 },\r\n\t{ unique: true, partialFilterExpression: { deletedAt: null} }\r\n)\r\nexport class Shop extends TimeStamps {\r\n\t@prop({ required: true, unique: true, type: String })\r\n\tpublic slug!: string;\r\n\r\n\t@prop({ required: true, ref: () => Parent })\r\n\tpublic parent: Ref<Parent>;\r\n\r\n\t@prop({ required: true, type: String, enum: ItemType })\r\n\tpublic itemType!: ItemType;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic name!: string;\r\n\r\n\t@prop({ required: true, ref: () => Brand })\r\n\tpublic brand: Ref<Brand>;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic ownerName!: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic email!: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic phoneNumber!: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic userPhoneNumber!: string;\r\n\r\n\t@prop({ type: () => [String], default: [] })\r\n\tpublic additionalPhoneNumbers?: string[];\r\n\r\n\t@prop({ required: true, type: Address })\r\n\tpublic address!: Address;\r\n\r\n\t@prop({ required: true, ref: () => Zone })\r\n\tpublic zone!: Ref<Zone>;\r\n\r\n\t@prop({ type: String })\r\n\tpublic logo?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic banner?: string;\r\n\r\n\t@prop({ type: ShopDocument })\r\n\tpublic document?: ShopDocument;\r\n\r\n\t@prop({ required: true, type: Boolean })\r\n\tpublic isBeirutAuthentic!: boolean;\r\n\r\n\t@prop({ required: true, type: Boolean })\r\n\tpublic isVisibleToUser!: boolean;\r\n\r\n\t@prop({ required: true, type: String, enum: Status, default: Status.ACTIVE })\r\n\tpublic status!: Status;\r\n\r\n\t@prop({\r\n\t\ttype: String,\r\n\t\tenum: ShopOnlineStatus,\r\n\t\tdefault: ShopOnlineStatus.OFFLINE,\r\n\t})\r\n\tpublic onlineStatus?: ShopOnlineStatus;\r\n\r\n\t// Setting\r\n\t@prop({ type: Boolean, default: false })\r\n\tpublic allowSpecialInstructions?: boolean;\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tpublic isRiderNoteVisible?: boolean;\r\n\r\n\t@prop({ type: String })\r\n\tpublic riderNote?: string;\r\n\r\n\t@prop({ type: Number, default: 1, min: 1, max: 4 })\r\n\tpublic priceRange?: number;\r\n\r\n\t@prop({ type: () => [String], default: [] })\r\n\tpublic dietaries?: string[];\r\n\r\n\t@prop({ ref: () => Tag, default: [] })\r\n\tpublic tags?: Ref<Tag>[];\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tpublic isShopDelivery?: boolean;\r\n\r\n\t@prop({ type: Number })\r\n\tpublic deliveryFee?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic minimumOrderAmount?: number;\r\n\r\n\t@prop({ type: Number, default: Infinity })\r\n\tpublic orderCapacity?: number;\r\n\r\n\t@prop({ type: Number, default: 10 })\r\n\tpublic defaultPreparationTime?: number;\r\n\r\n\t@prop({ type: Number, default: null })\r\n\texchangeRate?: number;\r\n\r\n\t@prop({ type: WorkHourSetting })\r\n\tpublic workHourSetting?: WorkHourSetting;\r\n\r\n\t@prop({ type: () => [StartEndTime], default: []})\r\n\tpublic shopActiveTimingsOfCurrentDate?: StartEndTime[];\r\n\r\n\t@prop({ required: false, type: () => Boolean })\r\n\tpublic isFavouriteCategoryVisible?: boolean;\r\n\r\n\t@prop({ required: false, type: () => String })\r\n\tpublic favouriteCategoryTitle?: string;\r\n\r\n\t@prop({ required: false, type: () => Boolean })\r\n\tpublic isBestSellerCategoryVisible?: boolean;\r\n\r\n\t@prop({ required: false, type: () => String })\r\n\tpublic bestSellerCategoryTitle?: string;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic sortingOrder?: number;\r\n\r\n\t@prop({ type: DeliveryInfo })\r\n\tpublic deliveryInfo?: DeliveryInfo;\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 {}\
|
|
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"]}
|
|
@@ -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
|
-
|
|
27
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
28
28
|
tokenType: TokenType | undefined;
|
|
29
|
+
entity: import("../context").EntityContext | undefined;
|
|
30
|
+
req: import("http").IncomingMessage;
|
|
29
31
|
usedRefreshToken: boolean | undefined;
|
|
30
32
|
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
|
-
|
|
25
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
26
26
|
tokenType: import("../../auth").TokenType | undefined;
|
|
27
|
+
entity: import("../context").EntityContext | undefined;
|
|
28
|
+
req: import("http").IncomingMessage;
|
|
27
29
|
usedRefreshToken: boolean | undefined;
|
|
28
30
|
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
|
-
size: number;
|
|
13
12
|
page: number;
|
|
13
|
+
size: number;
|
|
14
14
|
totalElements: number;
|
|
15
15
|
totalPages: number;
|
|
16
16
|
}, {
|
|
17
|
-
size: number;
|
|
18
17
|
page: number;
|
|
18
|
+
size: 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
|
-
size: number;
|
|
26
25
|
page: number;
|
|
26
|
+
size: number;
|
|
27
27
|
totalElements: number;
|
|
28
28
|
totalPages: number;
|
|
29
29
|
};
|
|
30
30
|
items: ItemType["_output"][];
|
|
31
31
|
}, {
|
|
32
32
|
metadata: {
|
|
33
|
-
size: number;
|
|
34
33
|
page: number;
|
|
34
|
+
size: 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
|
-
size: number;
|
|
61
60
|
page: number;
|
|
61
|
+
size: 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
|
-
size: number;
|
|
93
92
|
page: number;
|
|
93
|
+
size: number;
|
|
94
94
|
search?: {
|
|
95
95
|
searchKey: string;
|
|
96
96
|
searchFields?: string[] | undefined;
|
|
97
97
|
} | undefined;
|
|
98
|
-
query?: Record<string, any> | undefined;
|
|
99
98
|
sort?: Record<string, 1 | -1> | undefined;
|
|
100
99
|
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,9 +122,11 @@ 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;
|
|
126
125
|
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;
|
|
128
130
|
populate?: {
|
|
129
131
|
path: string;
|
|
130
132
|
match?: Record<string, any> | undefined;
|
|
@@ -144,17 +146,15 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
144
146
|
limit?: number | undefined;
|
|
145
147
|
} | undefined;
|
|
146
148
|
}[] | 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.
|
|
154
|
-
description: z.ZodOptional<z.
|
|
155
|
-
city: z.ZodString | z.
|
|
156
|
-
state: z.ZodString | z.
|
|
157
|
-
country: z.ZodString | z.
|
|
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>>;
|
|
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
|
-
description?: string | null | undefined;
|
|
179
|
-
address?: string | null | undefined;
|
|
180
|
-
city?: string | null | undefined;
|
|
181
178
|
state?: string | null | undefined;
|
|
179
|
+
address?: string | null | undefined;
|
|
182
180
|
country?: string | null | undefined;
|
|
181
|
+
description?: string | null | undefined;
|
|
182
|
+
city?: 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
|
-
description?: string | null | undefined;
|
|
192
|
-
address?: string | null | undefined;
|
|
193
|
-
city?: string | null | undefined;
|
|
194
191
|
state?: string | null | undefined;
|
|
192
|
+
address?: string | null | undefined;
|
|
195
193
|
country?: string | null | undefined;
|
|
194
|
+
description?: string | null | undefined;
|
|
195
|
+
city?: 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.
|
|
200
|
-
description: z.ZodOptional<z.
|
|
201
|
-
city: z.ZodString | z.
|
|
202
|
-
state: z.ZodString | z.
|
|
203
|
-
country: z.ZodString | z.
|
|
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>>;
|
|
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.
|
|
219
|
-
apartment: z.ZodString | z.
|
|
220
|
-
buildingName: z.ZodString | z.
|
|
221
|
-
deliveryOption: z.ZodOptional<z.
|
|
222
|
-
instructions: z.ZodOptional<z.
|
|
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>>>;
|
|
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
|
-
description?: string | null | undefined;
|
|
231
|
-
address?: string | null | undefined;
|
|
232
|
-
city?: string | null | undefined;
|
|
233
230
|
state?: string | null | undefined;
|
|
231
|
+
address?: string | null | undefined;
|
|
234
232
|
country?: string | null | undefined;
|
|
233
|
+
description?: string | null | undefined;
|
|
234
|
+
city?: 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
|
-
description?: string | null | undefined;
|
|
249
|
-
address?: string | null | undefined;
|
|
250
|
-
city?: string | null | undefined;
|
|
251
248
|
state?: string | null | undefined;
|
|
249
|
+
address?: string | null | undefined;
|
|
252
250
|
country?: string | null | undefined;
|
|
251
|
+
description?: string | null | undefined;
|
|
252
|
+
city?: 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.
|
|
262
|
-
description: z.ZodOptional<z.
|
|
263
|
-
city: z.ZodString | z.
|
|
264
|
-
state: z.ZodString | z.
|
|
265
|
-
country: z.ZodString | z.
|
|
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>>;
|
|
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.
|
|
281
|
-
apartment: z.ZodString | z.
|
|
282
|
-
buildingName: z.ZodString | z.
|
|
283
|
-
deliveryOption: z.ZodOptional<z.
|
|
284
|
-
instructions: z.ZodOptional<z.
|
|
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>>>;
|
|
285
285
|
}>, {
|
|
286
|
-
name: z.ZodString | z.
|
|
287
|
-
phoneNumber: z.ZodString | z.
|
|
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>>;
|
|
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;
|
|
296
299
|
description?: string | null | undefined;
|
|
297
300
|
phoneNumber?: string | null | undefined;
|
|
298
|
-
address?: string | null | undefined;
|
|
299
301
|
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;
|
|
316
319
|
description?: string | null | undefined;
|
|
317
320
|
phoneNumber?: string | null | undefined;
|
|
318
|
-
address?: string | null | undefined;
|
|
319
321
|
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.
|
|
344
|
-
end: z.ZodString | z.
|
|
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>>;
|
|
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
|
-
day: WeekDay;
|
|
354
353
|
status: WorkStatus;
|
|
354
|
+
day: WeekDay;
|
|
355
355
|
openingHours: {
|
|
356
356
|
end?: string | null | undefined;
|
|
357
357
|
start?: string | null | undefined;
|
|
358
358
|
}[];
|
|
359
359
|
}, {
|
|
360
|
-
day: WeekDay;
|
|
361
360
|
status: WorkStatus;
|
|
361
|
+
day: WeekDay;
|
|
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.
|
|
372
|
-
end: z.ZodString | z.
|
|
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>>;
|
|
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
|
-
date: Date;
|
|
382
381
|
status: HolidayWorkStatus;
|
|
382
|
+
date: Date;
|
|
383
383
|
closingHour: {
|
|
384
384
|
end?: string | null | undefined;
|
|
385
385
|
start?: string | null | undefined;
|
|
386
386
|
};
|
|
387
387
|
}, {
|
|
388
|
-
date: string | Date;
|
|
389
388
|
status: HolidayWorkStatus;
|
|
389
|
+
date: string | Date;
|
|
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.
|
|
401
|
-
end: z.ZodString | z.
|
|
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>>;
|
|
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
|
-
day: WeekDay;
|
|
411
410
|
status: WorkStatus;
|
|
411
|
+
day: WeekDay;
|
|
412
412
|
openingHours: {
|
|
413
413
|
end?: string | null | undefined;
|
|
414
414
|
start?: string | null | undefined;
|
|
415
415
|
}[];
|
|
416
416
|
}, {
|
|
417
|
-
day: WeekDay;
|
|
418
417
|
status: WorkStatus;
|
|
418
|
+
day: WeekDay;
|
|
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.
|
|
429
|
-
end: z.ZodString | z.
|
|
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>>;
|
|
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
|
-
date: Date;
|
|
439
438
|
status: HolidayWorkStatus;
|
|
439
|
+
date: Date;
|
|
440
440
|
closingHour: {
|
|
441
441
|
end?: string | null | undefined;
|
|
442
442
|
start?: string | null | undefined;
|
|
443
443
|
};
|
|
444
444
|
}, {
|
|
445
|
-
date: string | Date;
|
|
446
445
|
status: HolidayWorkStatus;
|
|
446
|
+
date: string | Date;
|
|
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
|
-
day: WeekDay;
|
|
455
454
|
status: WorkStatus;
|
|
455
|
+
day: WeekDay;
|
|
456
456
|
openingHours: {
|
|
457
457
|
end?: string | null | undefined;
|
|
458
458
|
start?: string | null | undefined;
|
|
459
459
|
}[];
|
|
460
460
|
}[];
|
|
461
461
|
holidayHours: {
|
|
462
|
-
date: Date;
|
|
463
462
|
status: HolidayWorkStatus;
|
|
463
|
+
date: Date;
|
|
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
|
-
day: WeekDay;
|
|
472
471
|
status: WorkStatus;
|
|
472
|
+
day: WeekDay;
|
|
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
|
-
date: string | Date;
|
|
480
479
|
status: HolidayWorkStatus;
|
|
480
|
+
date: string | Date;
|
|
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.
|
|
489
|
-
password: z.ZodString | z.
|
|
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>>;
|
|
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
|
-
size: number;
|
|
506
505
|
page: number;
|
|
506
|
+
size: number;
|
|
507
507
|
totalElements: number;
|
|
508
508
|
totalPages: number;
|
|
509
509
|
}, {
|
|
510
|
-
size: number;
|
|
511
510
|
page: number;
|
|
511
|
+
size: 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
|
-
size: number;
|
|
520
519
|
page: number;
|
|
520
|
+
size: number;
|
|
521
521
|
totalElements: number;
|
|
522
522
|
totalPages: number;
|
|
523
523
|
} | undefined;
|
|
524
524
|
}, {
|
|
525
525
|
documents: T[];
|
|
526
526
|
metadata?: {
|
|
527
|
-
size: number;
|
|
528
527
|
page: number;
|
|
528
|
+
size: 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.
|
|
535
|
+
message: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<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
|
-
size: number;
|
|
544
543
|
page: number;
|
|
544
|
+
size: number;
|
|
545
545
|
totalElements: number;
|
|
546
546
|
totalPages: number;
|
|
547
547
|
}, {
|
|
548
|
-
size: number;
|
|
549
548
|
page: number;
|
|
549
|
+
size: 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
|
-
size: number;
|
|
558
557
|
page: number;
|
|
558
|
+
size: number;
|
|
559
559
|
totalElements: number;
|
|
560
560
|
totalPages: number;
|
|
561
561
|
} | undefined;
|
|
562
562
|
}, {
|
|
563
563
|
documents: T[];
|
|
564
564
|
metadata?: {
|
|
565
|
-
size: number;
|
|
566
565
|
page: number;
|
|
566
|
+
size: 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.
|
|
573
|
+
message: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<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
|
-
size: number;
|
|
582
581
|
page: number;
|
|
582
|
+
size: number;
|
|
583
583
|
totalElements: number;
|
|
584
584
|
totalPages: number;
|
|
585
585
|
}, {
|
|
586
|
-
size: number;
|
|
587
586
|
page: number;
|
|
587
|
+
size: 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
|
-
size: number;
|
|
596
595
|
page: number;
|
|
596
|
+
size: number;
|
|
597
597
|
totalElements: number;
|
|
598
598
|
totalPages: number;
|
|
599
599
|
} | undefined;
|
|
600
600
|
}, {
|
|
601
601
|
documents: T[];
|
|
602
602
|
metadata?: {
|
|
603
|
-
size: number;
|
|
604
603
|
page: number;
|
|
604
|
+
size: 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.
|
|
611
|
+
message: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<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
|
-
size: number;
|
|
620
619
|
page: number;
|
|
620
|
+
size: number;
|
|
621
621
|
totalElements: number;
|
|
622
622
|
totalPages: number;
|
|
623
623
|
}, {
|
|
624
|
-
size: number;
|
|
625
624
|
page: number;
|
|
625
|
+
size: 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
|
-
size: number;
|
|
634
633
|
page: number;
|
|
634
|
+
size: number;
|
|
635
635
|
totalElements: number;
|
|
636
636
|
totalPages: number;
|
|
637
637
|
} | undefined;
|
|
638
638
|
}, {
|
|
639
639
|
documents: T[];
|
|
640
640
|
metadata?: {
|
|
641
|
-
size: number;
|
|
642
641
|
page: number;
|
|
642
|
+
size: 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.
|
|
649
|
+
message: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<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
|
-
size: number;
|
|
658
657
|
page: number;
|
|
658
|
+
size: number;
|
|
659
659
|
totalElements: number;
|
|
660
660
|
totalPages: number;
|
|
661
661
|
}, {
|
|
662
|
-
size: number;
|
|
663
662
|
page: number;
|
|
663
|
+
size: 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
|
-
size: number;
|
|
672
671
|
page: number;
|
|
672
|
+
size: number;
|
|
673
673
|
totalElements: number;
|
|
674
674
|
totalPages: number;
|
|
675
675
|
} | undefined;
|
|
676
676
|
}, {
|
|
677
677
|
documents: T[];
|
|
678
678
|
metadata?: {
|
|
679
|
-
size: number;
|
|
680
679
|
page: number;
|
|
680
|
+
size: 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.
|
|
687
|
+
message: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<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
|
-
size: number;
|
|
696
695
|
page: number;
|
|
696
|
+
size: number;
|
|
697
697
|
totalElements: number;
|
|
698
698
|
totalPages: number;
|
|
699
699
|
}, {
|
|
700
|
-
size: number;
|
|
701
700
|
page: number;
|
|
701
|
+
size: 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
|
-
size: number;
|
|
710
709
|
page: number;
|
|
710
|
+
size: number;
|
|
711
711
|
totalElements: number;
|
|
712
712
|
totalPages: number;
|
|
713
713
|
} | undefined;
|
|
714
714
|
}, {
|
|
715
715
|
documents: T[];
|
|
716
716
|
metadata?: {
|
|
717
|
-
size: number;
|
|
718
717
|
page: number;
|
|
718
|
+
size: 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.
|
|
726
|
-
refreshToken: z.ZodString | z.
|
|
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>>;
|
|
727
727
|
}, "strip", z.ZodTypeAny, {
|
|
728
|
-
accessToken?: string | null | undefined;
|
|
729
728
|
refreshToken?: string | null | undefined;
|
|
730
|
-
}, {
|
|
731
729
|
accessToken?: string | null | undefined;
|
|
730
|
+
}, {
|
|
732
731
|
refreshToken?: string | null | undefined;
|
|
732
|
+
accessToken?: 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
|
-
startIndex: number;
|
|
739
738
|
list: import("mongoose").Types.ObjectId[];
|
|
739
|
+
startIndex: number;
|
|
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.
|
|
27
|
+
}): z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<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.
|
|
33
|
+
}): z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<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.
|
|
3
|
+
"version": "1.0.38",
|
|
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,12 +13,7 @@
|
|
|
13
13
|
"build": "tsc",
|
|
14
14
|
"clean": "rimraf dist",
|
|
15
15
|
"prepare": "npm run build",
|
|
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"
|
|
16
|
+
"start": "npx ts-node src/index.ts"
|
|
22
17
|
},
|
|
23
18
|
"dependencies": {
|
|
24
19
|
"@google-cloud/secret-manager": "^5.6.0",
|
|
@@ -50,8 +45,6 @@
|
|
|
50
45
|
},
|
|
51
46
|
"devDependencies": {
|
|
52
47
|
"@types/mime-types": "^2.1.4",
|
|
53
|
-
"
|
|
54
|
-
"prettier": "3.5.3",
|
|
55
|
-
"rimraf": "^5.0.5"
|
|
48
|
+
"prettier": "3.5.3"
|
|
56
49
|
}
|
|
57
50
|
}
|