@lyxa.ai/core 1.2.93-beta.2 → 1.2.94
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.
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
2
1
|
import { PaymentMethod } from '../../../utilities/enum';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { WorkHourSetting } from './shared/work-hour.model';
|
|
3
|
+
import { PlusSettings } from './embedded/plus-settings.model';
|
|
4
|
+
import { RiderSetting } from './embedded/rider-setting.model';
|
|
5
|
+
import { PayoutSetting } from './embedded/payout-setting.model';
|
|
5
6
|
import { CourierSetting } from './embedded/courier-setting.model';
|
|
6
7
|
import { CurrencySetting } from './embedded/currency-setting.model';
|
|
7
|
-
import {
|
|
8
|
-
import { RiderSetting } from './embedded/rider-setting.model';
|
|
9
|
-
import { ServiceFeeSetting } from './embedded/service-fee-setting.model';
|
|
10
|
-
import { WorkHourSetting } from './shared/work-hour.model';
|
|
8
|
+
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
11
9
|
import { RiderBatchesSettings } from './embedded/rider-batches.model';
|
|
10
|
+
import { ServiceFeeSetting } from './embedded/service-fee-setting.model';
|
|
11
|
+
import { DeliveryCharge } from './embedded/delivery-charge-setting.model';
|
|
12
12
|
import { CustomerSupport } from './embedded/customer-support-numbers.model';
|
|
13
|
-
import { CustomerSupportBatchesSettings } from './embedded/customer-support-batches.model';
|
|
14
|
-
import { PlusSettings } from './embedded/plus-settings.model';
|
|
15
|
-
import { AgentNotificationSetting } from './embedded/agent-notification-setting.model';
|
|
16
13
|
import { DistanceExtraTimeSettings } from './embedded/distance-extra-time.settings';
|
|
14
|
+
import { AgentNotificationSetting } from './embedded/agent-notification-setting.model';
|
|
15
|
+
import { BusinessDevelopmentSetting } from './embedded/business-development-setting.model';
|
|
16
|
+
import { CustomerSupportBatchesSettings } from './embedded/customer-support-batches.model';
|
|
17
17
|
export declare class Setting extends TimeStamps {
|
|
18
18
|
deliveryCharges: DeliveryCharge[];
|
|
19
19
|
serviceFeeSetting?: ServiceFeeSetting;
|
|
@@ -38,4 +38,5 @@ export declare class Setting extends TimeStamps {
|
|
|
38
38
|
agentNotificationSetting?: AgentNotificationSetting;
|
|
39
39
|
cashbackAmount?: number;
|
|
40
40
|
distanceExtraTimeSettings?: DistanceExtraTimeSettings[];
|
|
41
|
+
timezone?: string;
|
|
41
42
|
}
|
|
@@ -10,23 +10,23 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Setting = void 0;
|
|
13
|
-
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
-
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
15
13
|
const enum_1 = require("../../../utilities/enum");
|
|
16
|
-
const
|
|
17
|
-
const
|
|
14
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
15
|
+
const work_hour_model_1 = require("./shared/work-hour.model");
|
|
16
|
+
const plus_settings_model_1 = require("./embedded/plus-settings.model");
|
|
17
|
+
const rider_setting_model_1 = require("./embedded/rider-setting.model");
|
|
18
|
+
const payout_setting_model_1 = require("./embedded/payout-setting.model");
|
|
18
19
|
const courier_setting_model_1 = require("./embedded/courier-setting.model");
|
|
19
20
|
const currency_setting_model_1 = require("./embedded/currency-setting.model");
|
|
20
|
-
const
|
|
21
|
-
const rider_setting_model_1 = require("./embedded/rider-setting.model");
|
|
22
|
-
const service_fee_setting_model_1 = require("./embedded/service-fee-setting.model");
|
|
23
|
-
const work_hour_model_1 = require("./shared/work-hour.model");
|
|
21
|
+
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
24
22
|
const rider_batches_model_1 = require("./embedded/rider-batches.model");
|
|
23
|
+
const service_fee_setting_model_1 = require("./embedded/service-fee-setting.model");
|
|
24
|
+
const delivery_charge_setting_model_1 = require("./embedded/delivery-charge-setting.model");
|
|
25
25
|
const customer_support_numbers_model_1 = require("./embedded/customer-support-numbers.model");
|
|
26
|
-
const customer_support_batches_model_1 = require("./embedded/customer-support-batches.model");
|
|
27
|
-
const plus_settings_model_1 = require("./embedded/plus-settings.model");
|
|
28
|
-
const agent_notification_setting_model_1 = require("./embedded/agent-notification-setting.model");
|
|
29
26
|
const distance_extra_time_settings_1 = require("./embedded/distance-extra-time.settings");
|
|
27
|
+
const agent_notification_setting_model_1 = require("./embedded/agent-notification-setting.model");
|
|
28
|
+
const business_development_setting_model_1 = require("./embedded/business-development-setting.model");
|
|
29
|
+
const customer_support_batches_model_1 = require("./embedded/customer-support-batches.model");
|
|
30
30
|
let Setting = class Setting extends defaultClasses_1.TimeStamps {
|
|
31
31
|
deliveryCharges;
|
|
32
32
|
serviceFeeSetting;
|
|
@@ -51,6 +51,7 @@ let Setting = class Setting extends defaultClasses_1.TimeStamps {
|
|
|
51
51
|
agentNotificationSetting;
|
|
52
52
|
cashbackAmount;
|
|
53
53
|
distanceExtraTimeSettings;
|
|
54
|
+
timezone;
|
|
54
55
|
};
|
|
55
56
|
exports.Setting = Setting;
|
|
56
57
|
__decorate([
|
|
@@ -145,6 +146,10 @@ __decorate([
|
|
|
145
146
|
(0, typegoose_1.prop)({ type: () => [distance_extra_time_settings_1.DistanceExtraTimeSettings], default: [] }),
|
|
146
147
|
__metadata("design:type", Array)
|
|
147
148
|
], Setting.prototype, "distanceExtraTimeSettings", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
151
|
+
__metadata("design:type", String)
|
|
152
|
+
], Setting.prototype, "timezone", void 0);
|
|
148
153
|
exports.Setting = Setting = __decorate([
|
|
149
154
|
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'settings' } })
|
|
150
155
|
], Setting);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,oDAA0D;AAC1D,8DAA2D;AAC3D,wEAA8D;AAC9D,wEAA8D;AAC9D,0EAAgE;AAChE,4EAAkE;AAClE,8EAAoE;AACpE,4EAAqE;AACrE,wEAAsE;AACtE,oFAAyE;AACzE,4FAA0E;AAC1E,8FAA4E;AAC5E,0FAAoF;AACpF,kGAAuF;AACvF,sGAA2F;AAC3F,8FAA2F;AAGpF,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,2BAAU;IAE/B,eAAe,CAAmB;IAGlC,iBAAiB,CAAqB;IAGtC,aAAa,CAAiB;IAG9B,eAAe,CAAmB;IAGlC,cAAc,CAAkB;IAGhC,YAAY,CAAgB;IAG5B,0BAA0B,CAA8B;IAGxD,eAAe,CAAU;IAGzB,aAAa,CAAU;IAGvB,iBAAiB,CAAY;IAG7B,YAAY,CAA0B;IAGtC,kBAAkB,CAAU;IAG5B,8BAA8B,CAAU;IAGxC,KAAK,CAAY;IAGjB,eAAe,CAAmB;IAGlC,cAAc,CAAmB;IAGjC,mBAAmB,CAAW;IAG9B,eAAe,CAAmB;IAGlC,sBAAsB,CAAoC;IAG1D,YAAY,CAAkB;IAG9B,wBAAwB,CAA4B;IAGpD,cAAc,CAAU;IAGvB,yBAAyB,CAA+B;IAGzD,QAAQ,CAAU;CACzB,CAAA;AAxEY,0BAAO;AAEZ;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,8CAAc,CAAC,EAAE,CAAC;;gDACE;AAGlC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,6CAAiB,EAAE,CAAC;8BACP,6CAAiB;kDAAC;AAGtC;I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../../utilities/enum';\nimport { modelOptions, prop } from '@typegoose/typegoose';\nimport { WorkHourSetting } from './shared/work-hour.model';\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 { CustomerSupport } from './embedded/customer-support-numbers.model';\nimport { DistanceExtraTimeSettings } from './embedded/distance-extra-time.settings';\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: 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: () => [DistanceExtraTimeSettings], default: [] })\n\tpublic distanceExtraTimeSettings?: DistanceExtraTimeSettings[];\n\n\t@prop({ type: String })\n\tpublic timezone?: string;\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.2.
|
|
3
|
+
"version": "1.2.94",
|
|
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",
|