@lyxa.ai/core 1.4.245 → 1.4.247
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/event/EventEnums.d.ts +2 -1
- package/dist/libraries/event/EventEnums.js +1 -0
- package/dist/libraries/event/EventEnums.js.map +1 -1
- package/dist/libraries/event/events/index.d.ts +1 -0
- package/dist/libraries/event/events/index.js +1 -0
- package/dist/libraries/event/events/index.js.map +1 -1
- package/dist/libraries/event/events/payout/index.d.ts +1 -0
- package/dist/libraries/event/events/payout/index.js +18 -0
- package/dist/libraries/event/events/payout/index.js.map +1 -0
- package/dist/libraries/event/events/payout/payout-schedule.event.d.ts +9 -0
- package/dist/libraries/event/events/payout/payout-schedule.event.js +12 -0
- package/dist/libraries/event/events/payout/payout-schedule.event.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/status-timeline.model.d.ts +1 -0
- package/dist/libraries/mongo/models/embedded/status-timeline.model.js +8 -0
- package/dist/libraries/mongo/models/embedded/status-timeline.model.js.map +1 -1
- package/dist/libraries/mongo/models/service-addon.model.js +1 -0
- package/dist/libraries/mongo/models/service-addon.model.js.map +1 -1
- package/dist/libraries/trpc/middlewares/auth.d.ts +1 -1
- package/dist/libraries/trpc/middlewares/createRoleProtectedProcedure.d.ts +1 -1
- package/dist/libraries/trpc/middlewares/phone-verified.d.ts +1 -1
- package/dist/libraries/trpc/middlewares/publicUserDecoder.d.ts +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/dist/types/utilities/enum.d.ts +1 -0
- package/dist/types/utilities/enum.js +1 -0
- package/dist/types/utilities/enum.js.map +1 -1
- package/dist/types/utilities/validation/common-validation.d.ts +12 -12
- package/dist/utilities/enum.d.ts +1 -0
- package/dist/utilities/enum.js +1 -0
- package/dist/utilities/enum.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,5 +20,6 @@ export declare enum PublishEventEnums {
|
|
|
20
20
|
RIDER_ORDER_COMPLETED_EVENT = "rider_order_completed_event",
|
|
21
21
|
MARKETING_RETURN_PUNCH_COUPON_EVENT = "marketing_return_punch_coupon_event",
|
|
22
22
|
SYNC_ALL_PRODUCTS_PARENT_SUB_CATEGORIES_EVENT = "sync_all_products_parent_sub_categories_event",
|
|
23
|
-
RIDER_CASH_EVENT = "rider_cash_event"
|
|
23
|
+
RIDER_CASH_EVENT = "rider_cash_event",
|
|
24
|
+
PAYOUT_SCHEDULE_EVENT = "payout_schedule_event"
|
|
24
25
|
}
|
|
@@ -25,5 +25,6 @@ var PublishEventEnums;
|
|
|
25
25
|
PublishEventEnums["MARKETING_RETURN_PUNCH_COUPON_EVENT"] = "marketing_return_punch_coupon_event";
|
|
26
26
|
PublishEventEnums["SYNC_ALL_PRODUCTS_PARENT_SUB_CATEGORIES_EVENT"] = "sync_all_products_parent_sub_categories_event";
|
|
27
27
|
PublishEventEnums["RIDER_CASH_EVENT"] = "rider_cash_event";
|
|
28
|
+
PublishEventEnums["PAYOUT_SCHEDULE_EVENT"] = "payout_schedule_event";
|
|
28
29
|
})(PublishEventEnums || (exports.PublishEventEnums = PublishEventEnums = {}));
|
|
29
30
|
//# sourceMappingURL=EventEnums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventEnums.js","sourceRoot":"/","sources":["libraries/event/EventEnums.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"EventEnums.js","sourceRoot":"/","sources":["libraries/event/EventEnums.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAwBX;AAxBD,WAAY,iBAAiB;IAC5B,4EAAuD,CAAA;IACvD,sEAAiD,CAAA;IACjD,4EAAuD,CAAA;IACvD,sEAAiD,CAAA;IACjD,wGAAmF,CAAA;IACnF,sHAAiG,CAAA;IACjG,oGAA+E,CAAA;IAC/E,sFAAiE,CAAA;IACjE,8FAAyE,CAAA;IACzE,sHAAiG,CAAA;IACjG,4GAAuF,CAAA;IACvF,kFAA6D,CAAA;IAC7D,0GAAqF,CAAA;IACrF,oGAA+E,CAAA;IAC/E,oHAA+F,CAAA;IAC/F,8HAAyG,CAAA;IACzG,8HAAyG,CAAA;IACzG,gEAA2C,CAAA;IAC3C,gFAA2D,CAAA;IAC3D,gGAA2E,CAAA;IAC3E,oHAA+F,CAAA;IAC/F,0DAAqC,CAAA;IACrC,oEAA+C,CAAA;AAChD,CAAC,EAxBW,iBAAiB,iCAAjB,iBAAiB,QAwB5B","sourcesContent":["export enum PublishEventEnums {\n\tADMIN_ACTIVITY_LOGS_EVENT = 'admin_activity_logs_event',\n\tMESSAGE_RECEIVED_EVENT = 'message_received_event',\n\tTICKET_NOTIFICATION_EVENT = 'ticket_notification_event',\n\tCART_ITEM_UPSERT_EVENT = 'cart_item_upsert_event',\n\tSHOP_ACTIVE_TIMINGS_BATCH_PROCESS_EVENT = 'shop_active_timings_batch_process_event',\n\tMONGO_STREAM_CHANGES_BATCH_PROCESS_SHOPS_EVENT = 'mongo_stream_changes_batch_process_shops_event',\n\tBULK_UPDATE_SHOPS_SEARCH_FIELDS_EVENT = 'bulk_update_shops_search_fields_event',\n\tSOCKET_PUSH_NOTIFICATION_EVENT = 'socket_push_notification_event',\n\tBULK_UPDATE_SHOP_ZONE_STATUS_EVENT = 'bulk_update_shop_zone_status_event',\n\tSYNC_ALL_PRODUCTS_PRODUCT_MARKETING_INFO_EVENT = 'sync_all_products_product_marketing_info_event',\n\tSYNC_ALL_SHOPS_AVG_PREPARATION_TIME_EVENT = 'sync_all_shops_avg_preperation_time_event',\n\tSYNC_SINGLE_SHOP_CACHE_EVENT = 'sync_single_shop_cache_event',\n\tSYNC_SINGLE_SHOP_ORDER_AGAIN_CACHE_EVENT = 'sync_single_shop_order_again_cache_event',\n\tSYNC_SINGLE_SHOP_SECTIONS_CACHE_EVENT = 'sync_single_shop_sections_cache_event',\n\tSYNC_ALL_CUSTOMIZED_SHOP_SECTIONS_CACHE_EVENT = 'sync_all_customized_shop_sections_cache_event',\n\tSYNC_ALL_USERS_PUNCH_MARKETING_HISTORY_CACHE_EVENT = 'sync_all_users_punch_marketing_history_cache_event',\n\tSYNC_USER_SHOP_PUNCH_MARKETING_HISTORY_CACHE_EVENT = 'sync_user_shop_punch_marketing_history_cache_event',\n\tRIDER_SCORE_EVENT = 'rider.score.calculate',\n\tRIDER_ORDER_COMPLETED_EVENT = 'rider_order_completed_event',\n\tMARKETING_RETURN_PUNCH_COUPON_EVENT = 'marketing_return_punch_coupon_event',\n\tSYNC_ALL_PRODUCTS_PARENT_SUB_CATEGORIES_EVENT = 'sync_all_products_parent_sub_categories_event',\n\tRIDER_CASH_EVENT = 'rider_cash_event',\n\tPAYOUT_SCHEDULE_EVENT = 'payout_schedule_event',\n}\n"]}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./rider"), exports);
|
|
18
|
+
__exportStar(require("./payout"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["libraries/event/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB","sourcesContent":["export * from './rider';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["libraries/event/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB","sourcesContent":["export * from './rider';\nexport * from './payout';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './payout-schedule.event';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./payout-schedule.event"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["libraries/event/events/payout/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC","sourcesContent":["export * from './payout-schedule.event';\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LyxaTimeZoneEnum, WeekDay } from '../../../../utilities/enum';
|
|
2
|
+
import { BaseEvent } from '../../BaseEvent';
|
|
3
|
+
export type PayoutScheduleDTO = {
|
|
4
|
+
issuanceDay: WeekDay;
|
|
5
|
+
timezone: LyxaTimeZoneEnum;
|
|
6
|
+
};
|
|
7
|
+
export declare class PayoutScheduleEvent extends BaseEvent<PayoutScheduleDTO> {
|
|
8
|
+
constructor(payload: PayoutScheduleDTO);
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayoutScheduleEvent = void 0;
|
|
4
|
+
const BaseEvent_1 = require("../../BaseEvent");
|
|
5
|
+
const EventEnums_1 = require("../../EventEnums");
|
|
6
|
+
class PayoutScheduleEvent extends BaseEvent_1.BaseEvent {
|
|
7
|
+
constructor(payload) {
|
|
8
|
+
super(EventEnums_1.PublishEventEnums.PAYOUT_SCHEDULE_EVENT, payload);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.PayoutScheduleEvent = PayoutScheduleEvent;
|
|
12
|
+
//# sourceMappingURL=payout-schedule.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout-schedule.event.js","sourceRoot":"/","sources":["libraries/event/events/payout/payout-schedule.event.ts"],"names":[],"mappings":";;;AACA,+CAA4C;AAC5C,iDAAqD;AAIrD,MAAa,mBAAoB,SAAQ,qBAA4B;IACpE,YAAY,OAA0B;QACrC,KAAK,CAAC,8BAAiB,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;CACD;AAJD,kDAIC","sourcesContent":["import { LyxaTimeZoneEnum, WeekDay } from '../../../../utilities/enum';\nimport { BaseEvent } from '../../BaseEvent';\nimport { PublishEventEnums } from '../../EventEnums';\n\nexport type PayoutScheduleDTO = { issuanceDay: WeekDay; timezone: LyxaTimeZoneEnum };\n\nexport class PayoutScheduleEvent extends BaseEvent<PayoutScheduleDTO> {\n\tconstructor(payload: PayoutScheduleDTO) {\n\t\tsuper(PublishEventEnums.PAYOUT_SCHEDULE_EVENT, payload);\n\t}\n}\n"]}
|
|
@@ -15,6 +15,7 @@ export declare class RegularOrderStatusTimeline extends StatusTimeline {
|
|
|
15
15
|
}
|
|
16
16
|
export declare class CourierOrderStatusTimeline extends StatusTimeline {
|
|
17
17
|
status?: CourierOrderStatus;
|
|
18
|
+
timelineType?: string;
|
|
18
19
|
}
|
|
19
20
|
export declare class ServiceBookingStatusTimeline extends StatusTimeline {
|
|
20
21
|
status?: ServiceBookingStatus;
|
|
@@ -62,12 +62,20 @@ __decorate([
|
|
|
62
62
|
], RegularOrderStatusTimeline.prototype, "user", void 0);
|
|
63
63
|
class CourierOrderStatusTimeline extends StatusTimeline {
|
|
64
64
|
status;
|
|
65
|
+
timelineType;
|
|
65
66
|
}
|
|
66
67
|
exports.CourierOrderStatusTimeline = CourierOrderStatusTimeline;
|
|
67
68
|
__decorate([
|
|
68
69
|
(0, typegoose_1.prop)({ type: String, enum: enum_1.CourierOrderStatus }),
|
|
69
70
|
__metadata("design:type", String)
|
|
70
71
|
], CourierOrderStatusTimeline.prototype, "status", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typegoose_1.prop)({
|
|
74
|
+
type: String,
|
|
75
|
+
enum: enum_1.StatusTimelineType,
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], CourierOrderStatusTimeline.prototype, "timelineType", void 0);
|
|
71
79
|
class ServiceBookingStatusTimeline extends StatusTimeline {
|
|
72
80
|
status;
|
|
73
81
|
timelineType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-timeline.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/status-timeline.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,gDAAuC;AACvC,qDAOoC;AACpC,8CAAqC;AAErC,MAAM,cAAc;IAEZ,SAAS,CAAQ;IAGjB,SAAS,CAAc;IAGvB,KAAK,CAAU;IAGf,WAAW,CAAe;CACjC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;8BACvB,IAAI;iDAAC;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;iDACG;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAW,EAAE,CAAC;;mDACT;AAGlC,MAAa,0BAA2B,SAAQ,cAAc;IAKtD,MAAM,CAAU;IAMhB,YAAY,CAAU;IAGtB,IAAI,CAAa;CACxB;AAfD,gEAeC;AAVO;IAJN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;KACxB,CAAC;;0DACqB;AAMhB;IAJN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;KACxB,CAAC;;gEAC2B;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;wDACF;AAGzB,MAAa,0BAA2B,SAAQ,cAAc;IAEtD,MAAM,CAAsB;
|
|
1
|
+
{"version":3,"file":"status-timeline.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/status-timeline.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,gDAAuC;AACvC,qDAOoC;AACpC,8CAAqC;AAErC,MAAM,cAAc;IAEZ,SAAS,CAAQ;IAGjB,SAAS,CAAc;IAGvB,KAAK,CAAU;IAGf,WAAW,CAAe;CACjC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;8BACvB,IAAI;iDAAC;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;iDACG;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAW,EAAE,CAAC;;mDACT;AAGlC,MAAa,0BAA2B,SAAQ,cAAc;IAKtD,MAAM,CAAU;IAMhB,YAAY,CAAU;IAGtB,IAAI,CAAa;CACxB;AAfD,gEAeC;AAVO;IAJN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;KACxB,CAAC;;0DACqB;AAMhB;IAJN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;KACxB,CAAC;;gEAC2B;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;wDACF;AAGzB,MAAa,0BAA2B,SAAQ,cAAc;IAEtD,MAAM,CAAsB;IAM5B,YAAY,CAAU;CAC7B;AATD,gEASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAkB,EAAE,CAAC;;0DACd;AAM5B;IAJN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;KACxB,CAAC;;gEAC2B;AAG9B,MAAa,4BAA6B,SAAQ,cAAc;IAExD,MAAM,CAAwB;IAG9B,YAAY,CAAoC;IAGhD,OAAO,CAAO;CACrB;AATD,oEASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,2BAAoB,EAAE,CAAC;;4DACd;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,uCAAgC,EAAE,CAAC;;kEACxB;AAGhD;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,oBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;;6DACvB","sourcesContent":["import { mongoose, prop, Ref } from '@typegoose/typegoose';\nimport { Admin } from '../admin.model';\nimport {\n\tCourierOrderStatus,\n\tRegularOrderStatus,\n\tRequestFrom,\n\tServiceBookingStatus,\n\tServiceBookingStatusTimelineType,\n\tStatusTimelineType,\n} from '../../../../utilities/enum';\nimport { User } from '../user.model';\n\nclass StatusTimeline {\n\t@prop({ type: Date, default: new Date() })\n\tpublic timestamp?: Date; // scope for discussion to change the name to date\n\n\t@prop({ ref: () => Admin })\n\tpublic updatedBy?: Ref<Admin>;\n\n\t@prop({ type: String })\n\tpublic notes?: string;\n\n\t@prop({ type: String, enum: RequestFrom })\n\tpublic requestFrom?: RequestFrom;\n}\n\nexport class RegularOrderStatusTimeline extends StatusTimeline {\n\t@prop({\n\t\ttype: String,\n\t\tenum: RegularOrderStatus,\n\t})\n\tpublic status?: string;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: StatusTimelineType,\n\t})\n\tpublic timelineType?: string;\n\n\t@prop({ ref: () => User })\n\tpublic user?: Ref<User>;\n}\n\nexport class CourierOrderStatusTimeline extends StatusTimeline {\n\t@prop({ type: String, enum: CourierOrderStatus })\n\tpublic status?: CourierOrderStatus;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: StatusTimelineType,\n\t})\n\tpublic timelineType?: string;\n}\n\nexport class ServiceBookingStatusTimeline extends StatusTimeline {\n\t@prop({ type: String, enum: ServiceBookingStatus })\n\tpublic status?: ServiceBookingStatus;\n\n\t@prop({ required: true, type: String, enum: ServiceBookingStatusTimelineType })\n\tpublic timelineType!: ServiceBookingStatusTimelineType;\n\n\t@prop({ type: mongoose.Schema.Types.Mixed })\n\tpublic payload?: any;\n}\n"]}
|
|
@@ -80,6 +80,7 @@ exports.ServiceAddon = ServiceAddon = __decorate([
|
|
|
80
80
|
},
|
|
81
81
|
}),
|
|
82
82
|
(0, typegoose_1.index)({ nameNormalized: 1 }, { partialFilterExpression: { deletedAt: null } }),
|
|
83
|
+
(0, typegoose_1.index)({ nameNormalized: 1, vendor: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } }),
|
|
83
84
|
(0, typegoose_1.plugin)(normalize_field_plugin_1.normalizeFieldPlugin, { field: 'name' })
|
|
84
85
|
], ServiceAddon);
|
|
85
86
|
//# sourceMappingURL=service-addon.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-addon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-addon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAA8E;AAC9E,wDAAgC;AAChC,mCAAiC;AACjC,kDAA8E;AAC9E,0EAAgE;AAChE,8EAAyE;
|
|
1
|
+
{"version":3,"file":"service-addon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-addon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAA8E;AAC9E,wDAAgC;AAChC,mCAAiC;AACjC,kDAA8E;AAC9E,0EAAgE;AAChE,8EAAyE;AAWlE,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEjB,IAAI,CAAU;IAGd,cAAc,CAAU;IAGxB,WAAW,CAAe;IAG1B,eAAe,CAAoB;IAGnC,MAAM,CAAe;IAGrB,KAAK,CAAU;IAGf,KAAK,CAAU;IAGf,QAAQ,CAAiB;IAGzB,WAAW,CAAU;IAGrB,MAAM,CAAS;CACtB,CAAA;AA9BY,oCAAY;AAEjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;0CAC9B;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;oDACpC;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAW,EAAE,CAAC;;iDACzB;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,qBAAc,EAAE,CAAC;;qDACL;AAGnC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,cAAM,EAAE,CAAC;;4CACrD;AAGrB;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,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;2CACzB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,oCAAa,EAAE,CAAC;8BAC5B,oCAAa;8CAAC;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;iDACX;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;4CACvC;uBA7BV,YAAY;IATxB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE;YACd,UAAU,EAAE,eAAe;YAC3B,UAAU,EAAE,IAAI;SAChB;KACD,CAAC;IACD,IAAA,iBAAK,EAAC,EAAE,cAAc,EAAE,CAAC,EAAE,EAAE,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;IAC9E,IAAA,iBAAK,EAAC,EAAE,cAAc,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;IACvG,IAAA,kBAAM,EAAC,6CAAoB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;GACnC,YAAY,CA8BxB","sourcesContent":["import { prop, modelOptions, Ref, index, plugin } from '@typegoose/typegoose';\nimport mongoose from 'mongoose';\nimport { Vendor } from './index';\nimport { ServiceType, Status, SubServiceType } from '../../../utilities/enum';\nimport { PreparingTime } from './embedded/preparing-time.model';\nimport { normalizeFieldPlugin } from '../plugins/normalize-field.plugin';\n\n@modelOptions({\n\tschemaOptions: {\n\t\tcollection: 'serviceAddons',\n\t\ttimestamps: true,\n\t},\n})\n@index({ nameNormalized: 1 }, { partialFilterExpression: { deletedAt: null } })\n@index({ nameNormalized: 1, vendor: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\n@plugin(normalizeFieldPlugin, { field: 'name' })\nexport class ServiceAddon {\n\t@prop({ required: true, type: String, trim: true })\n\tpublic name!: string;\n\n\t@prop({ type: String, trim: true, lowercase: true, select: false })\n\tpublic nameNormalized?: string;\n\n\t@prop({ required: true, type: String, enum: ServiceType })\n\tpublic serviceType!: ServiceType;\n\n\t@prop({ type: [String], enum: SubServiceType })\n\tpublic subServiceTypes?: SubServiceType[];\n\n\t@prop({ required: true, type: () => mongoose.Types.ObjectId, ref: () => Vendor })\n\tpublic vendor!: Ref<Vendor>;\n\n\t@prop({ required: true, type: String })\n\tpublic image!: string;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic price!: number;\n\n\t@prop({ required: true, type: PreparingTime })\n\tpublic duration!: PreparingTime;\n\n\t@prop({ type: String, maxlength: 250 })\n\tpublic description?: string;\n\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status: Status;\n}\n"]}
|
|
@@ -5,9 +5,9 @@ interface AuthOptions {
|
|
|
5
5
|
autoRefresh?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function createAuthenticatedProcedure(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
8
|
-
req: import("http").IncomingMessage;
|
|
9
8
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
10
9
|
tokenType: TokenType | undefined;
|
|
10
|
+
req: import("http").IncomingMessage;
|
|
11
11
|
requestId: string | undefined;
|
|
12
12
|
entity: import("../context").EntityContext | undefined;
|
|
13
13
|
usedRefreshToken: boolean | undefined;
|
|
@@ -4,9 +4,9 @@ interface RoleProtectedOptions {
|
|
|
4
4
|
allowedRoles: string[];
|
|
5
5
|
}
|
|
6
6
|
export declare function createRoleProtectedProcedure(options: RoleProtectedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
7
|
-
req: import("http").IncomingMessage;
|
|
8
7
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
9
8
|
tokenType: import("../../auth").TokenType | undefined;
|
|
9
|
+
req: import("http").IncomingMessage;
|
|
10
10
|
requestId: string | undefined;
|
|
11
11
|
entity: import("../context").EntityContext | undefined;
|
|
12
12
|
usedRefreshToken: boolean | undefined;
|
|
@@ -3,9 +3,9 @@ interface PhoneVerifiedOptions {
|
|
|
3
3
|
entityTypes: AuthEntityType[];
|
|
4
4
|
}
|
|
5
5
|
export declare function createPhoneVerifiedProcedure(options: PhoneVerifiedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
6
|
-
req: import("http").IncomingMessage;
|
|
7
6
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
8
7
|
tokenType: import("../../auth").TokenType | undefined;
|
|
8
|
+
req: import("http").IncomingMessage;
|
|
9
9
|
requestId: string | undefined;
|
|
10
10
|
entity: import("../context").EntityContext | undefined;
|
|
11
11
|
usedRefreshToken: boolean | undefined;
|
|
@@ -5,9 +5,9 @@ interface AuthOptions {
|
|
|
5
5
|
autoRefresh?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function publicUserDecoder(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
8
|
-
req: import("http").IncomingMessage;
|
|
9
8
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
10
9
|
tokenType: TokenType | undefined;
|
|
10
|
+
req: import("http").IncomingMessage;
|
|
11
11
|
requestId: string | undefined;
|
|
12
12
|
entity: import("../context").EntityContext | undefined;
|
|
13
13
|
usedRefreshToken: boolean | undefined;
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -634,6 +634,7 @@ export declare enum StatusTimelineType {
|
|
|
634
634
|
USER_REJECTED_SHOP_ADJUSTMENT = "user_rejected_shop_adjustment",
|
|
635
635
|
SYSTEM_FLAGGED_ORDER = "system_flagged_order",
|
|
636
636
|
LATE_ORDER = "late_order",
|
|
637
|
+
RIDER_REASIGNED = "rider_reasigned",
|
|
637
638
|
ADDRESS_CHANGED = "address_changed",
|
|
638
639
|
REQUEST_SEND_TO_RIDER = "request_send_to_rider",
|
|
639
640
|
ORDER_IS_REFUNDED = "order_is_refunded",
|
|
@@ -722,6 +722,7 @@ var StatusTimelineType;
|
|
|
722
722
|
StatusTimelineType["USER_REJECTED_SHOP_ADJUSTMENT"] = "user_rejected_shop_adjustment";
|
|
723
723
|
StatusTimelineType["SYSTEM_FLAGGED_ORDER"] = "system_flagged_order";
|
|
724
724
|
StatusTimelineType["LATE_ORDER"] = "late_order";
|
|
725
|
+
StatusTimelineType["RIDER_REASIGNED"] = "rider_reasigned";
|
|
725
726
|
StatusTimelineType["ADDRESS_CHANGED"] = "address_changed";
|
|
726
727
|
StatusTimelineType["REQUEST_SEND_TO_RIDER"] = "request_send_to_rider";
|
|
727
728
|
StatusTimelineType["ORDER_IS_REFUNDED"] = "order_is_refunded";
|