@lyxa.ai/core 1.4.297-test-1 → 1.4.297
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/libraries/mongo/models/embedded/rider-setting.model.d.ts +1 -0
- package/dist/libraries/mongo/models/embedded/rider-setting.model.js +5 -0
- package/dist/libraries/mongo/models/embedded/rider-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/setting.model.d.ts +0 -1
- package/dist/libraries/mongo/models/setting.model.js +0 -5
- package/dist/libraries/mongo/models/setting.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -18,6 +18,7 @@ class RiderSetting {
|
|
|
18
18
|
cashHoldPeriodLimitInMinutes;
|
|
19
19
|
tips;
|
|
20
20
|
equipments;
|
|
21
|
+
isProximityCheckEnabled;
|
|
21
22
|
}
|
|
22
23
|
exports.RiderSetting = RiderSetting;
|
|
23
24
|
__decorate([
|
|
@@ -44,4 +45,8 @@ __decorate([
|
|
|
44
45
|
(0, typegoose_1.prop)({ type: () => [String], default: [] }),
|
|
45
46
|
__metadata("design:type", Array)
|
|
46
47
|
], RiderSetting.prototype, "equipments", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typegoose_1.prop)({ type: Boolean, default: true }),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], RiderSetting.prototype, "isProximityCheckEnabled", void 0);
|
|
47
52
|
//# sourceMappingURL=rider-setting.model.js.map
|
|
@@ -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,0BAA0B,CAAU;IAGpC,4BAA4B,CAAU;IAGtC,IAAI,CAAY;IAGhB,UAAU,CAAY;
|
|
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,0BAA0B,CAAU;IAGpC,4BAA4B,CAAU;IAGtC,IAAI,CAAY;IAGhB,UAAU,CAAY;IAGtB,uBAAuB,CAAW;CAClC;AArBD,oCAqBC;AAnBA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;uDACnB;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,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;gEACd;AAGpC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;kEACT;AAGtC;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;AAGtB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;6DACL","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class RiderSetting {\n\t@prop({ type: Number, default: null, 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: Infinity, min: 1 })\n\tmaxCashBalanceForBobPayout?: number;\n\n\t@prop({ type: Number, default: 10080, min: 1 }) // default 7 days\n\tcashHoldPeriodLimitInMinutes?: number;\n\n\t@prop({ type: () => [Number], default: [] })\n\ttips?: number[];\n\n\t@prop({ type: () => [String], default: [] })\n\tequipments?: string[];\n\n\t@prop({ type: Boolean, default: true })\n\tisProximityCheckEnabled?: boolean;\n}\n"]}
|
|
@@ -60,7 +60,6 @@ let Setting = class Setting extends defaultClasses_1.TimeStamps {
|
|
|
60
60
|
enableFlags;
|
|
61
61
|
companyInfo;
|
|
62
62
|
showAreebaDefaultOtpPage;
|
|
63
|
-
isProximityCheckEnabled;
|
|
64
63
|
};
|
|
65
64
|
exports.Setting = Setting;
|
|
66
65
|
__decorate([
|
|
@@ -191,10 +190,6 @@ __decorate([
|
|
|
191
190
|
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
192
191
|
__metadata("design:type", Boolean)
|
|
193
192
|
], Setting.prototype, "showAreebaDefaultOtpPage", void 0);
|
|
194
|
-
__decorate([
|
|
195
|
-
(0, typegoose_1.prop)({ type: Boolean, default: true }),
|
|
196
|
-
__metadata("design:type", Boolean)
|
|
197
|
-
], Setting.prototype, "isProximityCheckEnabled", void 0);
|
|
198
193
|
exports.Setting = Setting = __decorate([
|
|
199
194
|
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'settings' } })
|
|
200
195
|
], Setting);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,8DAA2D;AAC3D,sEAA4D;AAC5D,kEAA6D;AAC7D,wEAA8D;AAC9D,wEAA8D;AAC9D,0EAAgE;AAChE,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,GAAG,EAAE,CAAC,GAAG;QACf,EAAE,EAAE,MAAa;QACjB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,GAAG,EAAE;KACxB,CAAC;8BACmB,GAAG;4CAAc;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,gCAAW,EAAE,CAAC;8BACP,gCAAW;4CAAC;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yDACE;kBAhG9B,OAAO;IADnB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,CAAC;GAC/C,OAAO,CAiGnB","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\nimport { WorkHourSetting } from './shared/work-hour.model';\nimport { CompanyInfo } from './embedded/company-info.model';\nimport { AppForceUpdate } from './embedded/app-force-update';\nimport { PlusSettings } from './embedded/plus-settings.model';\nimport { RiderSetting } from './embedded/rider-setting.model';\nimport { PayoutSetting } from './embedded/payout-setting.model';\nimport { CourierSetting } from './embedded/courier-setting.model';\nimport { CurrencySetting } from './embedded/currency-setting.model';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { RiderBatchesSettings } from './embedded/rider-batches.model';\nimport { ServiceFeeSetting } from './embedded/service-fee-setting.model';\nimport { DeliveryCharge } from './embedded/delivery-charge-setting.model';\nimport { LyxaTimeZoneEnum, PaymentMethod } from '../../../utilities/enum';\nimport { CustomerSupport } from './embedded/customer-support-numbers.model';\nimport { AgentNotificationSetting } from './embedded/agent-notification-setting.model';\nimport { BusinessDevelopmentSetting } from './embedded/business-development-setting.model';\nimport { CustomerSupportBatchesSettings } from './embedded/customer-support-batches.model';\n\n@modelOptions({ schemaOptions: { collection: 'settings' } })\nexport class Setting extends TimeStamps {\n\t@prop({ type: () => [DeliveryCharge] })\n\tpublic deliveryCharges: DeliveryCharge[];\n\n\t@prop({ type: ServiceFeeSetting })\n\tpublic serviceFeeSetting?: ServiceFeeSetting;\n\n\t@prop({ type: PayoutSetting })\n\tpublic payoutSetting?: PayoutSetting;\n\n\t@prop({ type: WorkHourSetting })\n\tpublic workHourSetting?: WorkHourSetting;\n\n\t@prop({ type: CourierSetting })\n\tpublic courierSetting?: CourierSetting;\n\n\t@prop({ type: RiderSetting })\n\tpublic riderSetting?: RiderSetting;\n\n\t@prop({ type: BusinessDevelopmentSetting })\n\tpublic businessDevelopmentSetting?: BusinessDevelopmentSetting;\n\n\t@prop({ type: Number, default: Infinity })\n\tpublic payLimitForUser?: number;\n\n\t@prop({ type: Number, default: Infinity })\n\tpublic concurrentOrderLimitForUser?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic vatPercentage?: number;\n\n\t@prop({ type: () => [Number], default: [] })\n\tpublic riderSearchRanges?: number[];\n\n\t@prop({ type: () => [RiderBatchesSettings], default: [] })\n\tpublic riderBatches?: RiderBatchesSettings[];\n\n\t@prop({ type: Number, default: Infinity })\n\tpublic nearByShopDistance?: number;\n\n\t@prop({ type: Number, default: Infinity })\n\tpublic nearByShopDistanceInHomeScreen?: number;\n\n\t@prop({ type: () => [String], default: [] })\n\tpublic units?: string[];\n\n\t@prop({ type: CurrencySetting })\n\tpublic currencySetting?: CurrencySetting;\n\n\t@prop({ type: () => [String], enum: PaymentMethod, default: [] })\n\tpublic paymentMethods?: PaymentMethod[];\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isGroupOrderEnabled?: boolean;\n\n\t@prop({ type: CustomerSupport })\n\tpublic customerSupport?: CustomerSupport;\n\n\t@prop({ type: () => [CustomerSupportBatchesSettings], default: [] })\n\tpublic customerSupportBatches?: CustomerSupportBatchesSettings[];\n\n\t@prop({ type: () => [PlusSettings], default: [] })\n\tpublic plusSettings?: PlusSettings[];\n\n\t@prop({ type: AgentNotificationSetting })\n\tpublic agentNotificationSetting?: AgentNotificationSetting;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic cashbackAmount?: number;\n\n\t@prop({ type: String, enum: LyxaTimeZoneEnum })\n\tpublic timezone?: LyxaTimeZoneEnum;\n\n\t@prop({ type: Number, min: 0, default: 600 })\n\tpublic bufferTimeInSeconds!: number;\n\n\t@prop({ type: AppForceUpdate })\n\tpublic userAppForceUpdate?: AppForceUpdate;\n\n\t@prop({ type: AppForceUpdate })\n\tpublic shopAppForceUpdate?: AppForceUpdate;\n\n\t@prop({ type: AppForceUpdate })\n\tpublic riderAppForceUpdate?: AppForceUpdate;\n\n\t@prop({\n\t\ttype: () => Map,\n\t\tof: Object as any,\n\t\tdefault: () => new Map(),\n\t})\n\tpublic enableFlags!: Map<string, any>;\n\n\t@prop({ type: CompanyInfo })\n\tpublic companyInfo?: CompanyInfo;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic showAreebaDefaultOtpPage?: boolean;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/types",
|
|
3
|
-
"version": "1.4.297
|
|
3
|
+
"version": "1.4.297",
|
|
4
4
|
"description": "Lyxa type definitions and validation schemas for both frontend and backend",
|
|
5
5
|
"author": "elie <42282499+Internalizable@users.noreply.github.com>",
|
|
6
6
|
"license": "MIT",
|