@lyxa.ai/core 1.4.4 → 1.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/libraries/mongo/models/embedded/frequency-configuration.model.d.ts +2 -2
  2. package/dist/libraries/mongo/models/embedded/frequency-configuration.model.js +1 -1
  3. package/dist/libraries/mongo/models/embedded/frequency-configuration.model.js.map +1 -1
  4. package/dist/libraries/mongo/models/embedded/profit.model.d.ts +1 -1
  5. package/dist/libraries/mongo/models/embedded/profit.model.js +5 -5
  6. package/dist/libraries/mongo/models/embedded/profit.model.js.map +1 -1
  7. package/dist/libraries/mongo/models/embedded/service-booking-cancel.model.d.ts +5 -0
  8. package/dist/libraries/mongo/models/embedded/{service-order-cance.model.js → service-booking-cancel.model.js} +7 -7
  9. package/dist/libraries/mongo/models/embedded/service-booking-cancel.model.js.map +1 -0
  10. package/dist/libraries/mongo/models/embedded/{service-order-finance.model.d.ts → service-booking-finance.model.d.ts} +7 -7
  11. package/dist/libraries/mongo/models/embedded/{service-order-finance.model.js → service-booking-finance.model.js} +22 -22
  12. package/dist/libraries/mongo/models/embedded/service-booking-finance.model.js.map +1 -0
  13. package/dist/libraries/mongo/models/embedded/service-booking-flag.model.d.ts +8 -0
  14. package/dist/libraries/mongo/models/embedded/{service-order-flag.model.js → service-booking-flag.model.js} +10 -10
  15. package/dist/libraries/mongo/models/embedded/service-booking-flag.model.js.map +1 -0
  16. package/dist/libraries/mongo/models/embedded/{service-order-pricing.model.d.ts → service-booking-pricing.model.d.ts} +1 -1
  17. package/dist/libraries/mongo/models/embedded/{service-order-pricing.model.js → service-booking-pricing.model.js} +20 -20
  18. package/dist/libraries/mongo/models/embedded/service-booking-pricing.model.js.map +1 -0
  19. package/dist/libraries/mongo/models/embedded/{service-order-settings.model.d.ts → service-booking-settings.model.d.ts} +1 -1
  20. package/dist/libraries/mongo/models/embedded/{service-order-settings.model.js → service-booking-settings.model.js} +12 -15
  21. package/dist/libraries/mongo/models/embedded/service-booking-settings.model.js.map +1 -0
  22. package/dist/libraries/mongo/models/embedded/status-timeline.model.d.ts +3 -3
  23. package/dist/libraries/mongo/models/embedded/status-timeline.model.js +5 -5
  24. package/dist/libraries/mongo/models/embedded/status-timeline.model.js.map +1 -1
  25. package/dist/libraries/mongo/models/index.d.ts +6 -6
  26. package/dist/libraries/mongo/models/index.js +7 -7
  27. package/dist/libraries/mongo/models/index.js.map +1 -1
  28. package/dist/libraries/mongo/models/providers/{service-order-review.model.d.ts → service-booking-review.model.d.ts} +3 -3
  29. package/dist/libraries/mongo/models/providers/{service-order-review.model.js → service-booking-review.model.js} +9 -9
  30. package/dist/libraries/mongo/models/providers/service-booking-review.model.js.map +1 -0
  31. package/dist/libraries/mongo/models/review.model.js +1 -1
  32. package/dist/libraries/mongo/models/review.model.js.map +1 -1
  33. package/dist/libraries/mongo/models/{service-order.model.d.ts → service-booking.model.d.ts} +12 -12
  34. package/dist/libraries/mongo/models/{service-order.model.js → service-booking.model.js} +52 -52
  35. package/dist/libraries/mongo/models/service-booking.model.js.map +1 -0
  36. package/dist/libraries/mongo/models/vendor.model.d.ts +2 -3
  37. package/dist/libraries/mongo/models/vendor.model.js +3 -8
  38. package/dist/libraries/mongo/models/vendor.model.js.map +1 -1
  39. package/dist/types/README.md +1 -1
  40. package/dist/types/package.json +1 -1
  41. package/dist/types/utilities/enum.d.ts +8 -7
  42. package/dist/types/utilities/enum.js +35 -34
  43. package/dist/types/utilities/enum.js.map +1 -1
  44. package/dist/utilities/enum.d.ts +8 -7
  45. package/dist/utilities/enum.js +35 -34
  46. package/dist/utilities/enum.js.map +1 -1
  47. package/dist/utilities/map.d.ts +2 -2
  48. package/dist/utilities/map.js +5 -5
  49. package/dist/utilities/map.js.map +1 -1
  50. package/package.json +1 -1
  51. package/dist/libraries/mongo/models/embedded/service-order-cance.model.d.ts +0 -5
  52. package/dist/libraries/mongo/models/embedded/service-order-cance.model.js.map +0 -1
  53. package/dist/libraries/mongo/models/embedded/service-order-finance.model.js.map +0 -1
  54. package/dist/libraries/mongo/models/embedded/service-order-flag.model.d.ts +0 -8
  55. package/dist/libraries/mongo/models/embedded/service-order-flag.model.js.map +0 -1
  56. package/dist/libraries/mongo/models/embedded/service-order-pricing.model.js.map +0 -1
  57. package/dist/libraries/mongo/models/embedded/service-order-settings.model.js.map +0 -1
  58. package/dist/libraries/mongo/models/providers/service-order-review.model.js.map +0 -1
  59. package/dist/libraries/mongo/models/service-order.model.js.map +0 -1
@@ -9,23 +9,23 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ServiceOrder = void 0;
12
+ exports.ServiceBooking = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const user_model_1 = require("./user.model");
15
15
  const vendor_model_1 = require("./vendor.model");
16
16
  const enum_1 = require("../../../utilities/enum");
17
17
  const professional_model_1 = require("./professional.model");
18
- const service_order_flag_model_1 = require("./embedded/service-order-flag.model");
18
+ const service_booking_flag_model_1 = require("./embedded/service-booking-flag.model");
19
19
  const service_cart_model_1 = require("./service-cart.model");
20
- const service_order_finance_model_1 = require("./embedded/service-order-finance.model");
21
- const service_order_cance_model_1 = require("./embedded/service-order-cance.model");
20
+ const service_booking_finance_model_1 = require("./embedded/service-booking-finance.model");
21
+ const service_booking_cancel_model_1 = require("./embedded/service-booking-cancel.model");
22
22
  const status_timeline_model_1 = require("./embedded/status-timeline.model");
23
23
  const id_generator_1 = require("../../../utilities/id-generator");
24
24
  const _1 = require(".");
25
25
  const address_model_1 = require("./shared/address.model");
26
26
  const duration_model_1 = require("./shared/duration.model");
27
27
  const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
28
- let ServiceOrder = class ServiceOrder extends defaultClasses_1.TimeStamps {
28
+ let ServiceBooking = class ServiceBooking extends defaultClasses_1.TimeStamps {
29
29
  orderId;
30
30
  user;
31
31
  vendor;
@@ -58,141 +58,141 @@ let ServiceOrder = class ServiceOrder extends defaultClasses_1.TimeStamps {
58
58
  isReviewNotificationSent;
59
59
  reviews;
60
60
  };
61
- exports.ServiceOrder = ServiceOrder;
61
+ exports.ServiceBooking = ServiceBooking;
62
62
  __decorate([
63
63
  (0, typegoose_1.prop)({ type: String, unique: true }),
64
64
  __metadata("design:type", String)
65
- ], ServiceOrder.prototype, "orderId", void 0);
65
+ ], ServiceBooking.prototype, "orderId", void 0);
66
66
  __decorate([
67
67
  (0, typegoose_1.prop)({ required: true, ref: () => user_model_1.User }),
68
68
  __metadata("design:type", Object)
69
- ], ServiceOrder.prototype, "user", void 0);
69
+ ], ServiceBooking.prototype, "user", void 0);
70
70
  __decorate([
71
71
  (0, typegoose_1.prop)({ required: true, ref: () => vendor_model_1.Vendor }),
72
72
  __metadata("design:type", Object)
73
- ], ServiceOrder.prototype, "vendor", void 0);
73
+ ], ServiceBooking.prototype, "vendor", void 0);
74
74
  __decorate([
75
75
  (0, typegoose_1.prop)({ required: true, ref: () => _1.VendorParent }),
76
76
  __metadata("design:type", Object)
77
- ], ServiceOrder.prototype, "parent", void 0);
77
+ ], ServiceBooking.prototype, "parent", void 0);
78
78
  __decorate([
79
79
  (0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.ServiceType }),
80
80
  __metadata("design:type", String)
81
- ], ServiceOrder.prototype, "serviceType", void 0);
81
+ ], ServiceBooking.prototype, "serviceType", void 0);
82
82
  __decorate([
83
83
  (0, typegoose_1.prop)({ type: String, enum: enum_1.SubServiceType }),
84
84
  __metadata("design:type", String)
85
- ], ServiceOrder.prototype, "subServiceType", void 0);
85
+ ], ServiceBooking.prototype, "subServiceType", void 0);
86
86
  __decorate([
87
87
  (0, typegoose_1.prop)({ required: true, ref: () => service_cart_model_1.ServiceCart }),
88
88
  __metadata("design:type", Object)
89
- ], ServiceOrder.prototype, "cart", void 0);
89
+ ], ServiceBooking.prototype, "cart", void 0);
90
90
  __decorate([
91
91
  (0, typegoose_1.prop)({ required: true, type: () => address_model_1.RegularOrderAddress }),
92
92
  __metadata("design:type", address_model_1.RegularOrderAddress)
93
- ], ServiceOrder.prototype, "userAddress", void 0);
93
+ ], ServiceBooking.prototype, "userAddress", void 0);
94
94
  __decorate([
95
95
  (0, typegoose_1.prop)({ required: true, type: duration_model_1.OrderSlotRange, _id: false }),
96
96
  __metadata("design:type", duration_model_1.OrderSlotRange)
97
- ], ServiceOrder.prototype, "slotRange", void 0);
97
+ ], ServiceBooking.prototype, "slotRange", void 0);
98
98
  __decorate([
99
- (0, typegoose_1.prop)({ type: String, enum: enum_1.ServiceOrderStatus, default: enum_1.ServiceOrderStatus.PENDING }),
99
+ (0, typegoose_1.prop)({ type: String, enum: enum_1.ServiceBookingStatus, default: enum_1.ServiceBookingStatus.PENDING }),
100
100
  __metadata("design:type", String)
101
- ], ServiceOrder.prototype, "status", void 0);
101
+ ], ServiceBooking.prototype, "status", void 0);
102
102
  __decorate([
103
103
  (0, typegoose_1.prop)({ ref: () => professional_model_1.Professional }),
104
104
  __metadata("design:type", Array)
105
- ], ServiceOrder.prototype, "professionals", void 0);
105
+ ], ServiceBooking.prototype, "professionals", void 0);
106
106
  __decorate([
107
107
  (0, typegoose_1.prop)({ ref: () => professional_model_1.Professional }),
108
108
  __metadata("design:type", Object)
109
- ], ServiceOrder.prototype, "responsibleProfessional", void 0);
109
+ ], ServiceBooking.prototype, "responsibleProfessional", void 0);
110
110
  __decorate([
111
- (0, typegoose_1.prop)({ type: () => service_order_flag_model_1.ServiceOrderFlag, _id: false }),
112
- __metadata("design:type", service_order_flag_model_1.ServiceOrderFlag)
113
- ], ServiceOrder.prototype, "flag", void 0);
111
+ (0, typegoose_1.prop)({ type: () => service_booking_flag_model_1.ServiceBookingFlag, _id: false }),
112
+ __metadata("design:type", service_booking_flag_model_1.ServiceBookingFlag)
113
+ ], ServiceBooking.prototype, "flag", void 0);
114
114
  __decorate([
115
115
  (0, typegoose_1.prop)({ type: Date, default: new Date() }),
116
116
  __metadata("design:type", Date)
117
- ], ServiceOrder.prototype, "processedAt", void 0);
117
+ ], ServiceBooking.prototype, "processedAt", void 0);
118
118
  __decorate([
119
119
  (0, typegoose_1.prop)({ type: Date }),
120
120
  __metadata("design:type", Date)
121
- ], ServiceOrder.prototype, "placedAt", void 0);
121
+ ], ServiceBooking.prototype, "placedAt", void 0);
122
122
  __decorate([
123
123
  (0, typegoose_1.prop)({ type: Date }),
124
124
  __metadata("design:type", Date)
125
- ], ServiceOrder.prototype, "startedAt", void 0);
125
+ ], ServiceBooking.prototype, "startedAt", void 0);
126
126
  __decorate([
127
127
  (0, typegoose_1.prop)({ type: Date }),
128
128
  __metadata("design:type", Date)
129
- ], ServiceOrder.prototype, "estimatedCompletionTime", void 0);
129
+ ], ServiceBooking.prototype, "estimatedCompletionTime", void 0);
130
130
  __decorate([
131
131
  (0, typegoose_1.prop)({ type: Date }),
132
132
  __metadata("design:type", Date)
133
- ], ServiceOrder.prototype, "completedAt", void 0);
133
+ ], ServiceBooking.prototype, "completedAt", void 0);
134
134
  __decorate([
135
135
  (0, typegoose_1.prop)({ type: Number }),
136
136
  __metadata("design:type", Number)
137
- ], ServiceOrder.prototype, "completionTimeInMinutes", void 0);
137
+ ], ServiceBooking.prototype, "completionTimeInMinutes", void 0);
138
138
  __decorate([
139
139
  (0, typegoose_1.prop)({ type: Boolean, default: false }),
140
140
  __metadata("design:type", Boolean)
141
- ], ServiceOrder.prototype, "isUrgentOrder", void 0);
141
+ ], ServiceBooking.prototype, "isUrgentOrder", void 0);
142
142
  __decorate([
143
143
  (0, typegoose_1.prop)({ type: Date }),
144
144
  __metadata("design:type", Date)
145
- ], ServiceOrder.prototype, "urgentAt", void 0);
145
+ ], ServiceBooking.prototype, "urgentAt", void 0);
146
146
  __decorate([
147
147
  (0, typegoose_1.prop)({ type: Boolean, default: false }),
148
148
  __metadata("design:type", Boolean)
149
- ], ServiceOrder.prototype, "isOverdue", void 0);
149
+ ], ServiceBooking.prototype, "isOverdue", void 0);
150
150
  __decorate([
151
151
  (0, typegoose_1.prop)({ type: Date }),
152
152
  __metadata("design:type", Date)
153
- ], ServiceOrder.prototype, "overdueAt", void 0);
153
+ ], ServiceBooking.prototype, "overdueAt", void 0);
154
154
  __decorate([
155
- (0, typegoose_1.prop)({ required: true, type: service_order_finance_model_1.ServiceOrderFinance, _id: false }),
156
- __metadata("design:type", service_order_finance_model_1.ServiceOrderFinance)
157
- ], ServiceOrder.prototype, "finance", void 0);
155
+ (0, typegoose_1.prop)({ required: true, type: service_booking_finance_model_1.ServiceBookingFinance, _id: false }),
156
+ __metadata("design:type", service_booking_finance_model_1.ServiceBookingFinance)
157
+ ], ServiceBooking.prototype, "finance", void 0);
158
158
  __decorate([
159
- (0, typegoose_1.prop)({ required: true, type: service_order_finance_model_1.ServiceOrderFinance, _id: false }),
160
- __metadata("design:type", service_order_finance_model_1.ServiceOrderFinance)
161
- ], ServiceOrder.prototype, "adjustedFinance", void 0);
159
+ (0, typegoose_1.prop)({ required: true, type: service_booking_finance_model_1.ServiceBookingFinance, _id: false }),
160
+ __metadata("design:type", service_booking_finance_model_1.ServiceBookingFinance)
161
+ ], ServiceBooking.prototype, "adjustedFinance", void 0);
162
162
  __decorate([
163
- (0, typegoose_1.prop)({ type: () => service_order_cance_model_1.ServiceOrderCancel, _id: false }),
164
- __metadata("design:type", service_order_cance_model_1.ServiceOrderCancel)
165
- ], ServiceOrder.prototype, "orderCancel", void 0);
163
+ (0, typegoose_1.prop)({ type: () => service_booking_cancel_model_1.ServiceBookingCancel, _id: false }),
164
+ __metadata("design:type", service_booking_cancel_model_1.ServiceBookingCancel)
165
+ ], ServiceBooking.prototype, "orderCancel", void 0);
166
166
  __decorate([
167
- (0, typegoose_1.prop)({ type: () => [status_timeline_model_1.ServiceOrderStatusTimeline], default: [] }),
167
+ (0, typegoose_1.prop)({ type: () => [status_timeline_model_1.ServiceBookingStatusTimeline], default: [] }),
168
168
  __metadata("design:type", Array)
169
- ], ServiceOrder.prototype, "statusTimeline", void 0);
169
+ ], ServiceBooking.prototype, "statusTimeline", void 0);
170
170
  __decorate([
171
171
  (0, typegoose_1.prop)({ type: Number }),
172
172
  __metadata("design:type", Number)
173
- ], ServiceOrder.prototype, "bufferTime", void 0);
173
+ ], ServiceBooking.prototype, "bufferTime", void 0);
174
174
  __decorate([
175
175
  (0, typegoose_1.prop)({ type: Boolean, default: false }),
176
176
  __metadata("design:type", Boolean)
177
- ], ServiceOrder.prototype, "isOrderReviewed", void 0);
177
+ ], ServiceBooking.prototype, "isOrderReviewed", void 0);
178
178
  __decorate([
179
179
  (0, typegoose_1.prop)({ type: Boolean, default: false }),
180
180
  __metadata("design:type", Boolean)
181
- ], ServiceOrder.prototype, "isReviewNotificationSent", void 0);
181
+ ], ServiceBooking.prototype, "isReviewNotificationSent", void 0);
182
182
  __decorate([
183
183
  (0, typegoose_1.prop)({
184
184
  ref: () => _1.Review,
185
- foreignField: 'serviceOrder',
185
+ foreignField: 'serviceBooking',
186
186
  localField: '_id',
187
187
  }),
188
188
  __metadata("design:type", Array)
189
- ], ServiceOrder.prototype, "reviews", void 0);
190
- exports.ServiceOrder = ServiceOrder = __decorate([
191
- (0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'serviceOrders', timestamps: true } }),
189
+ ], ServiceBooking.prototype, "reviews", void 0);
190
+ exports.ServiceBooking = ServiceBooking = __decorate([
191
+ (0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'serviceBookings', timestamps: true } }),
192
192
  (0, typegoose_1.pre)('save', async function () {
193
193
  if (this.isNew) {
194
194
  this.orderId = await (0, id_generator_1.generateId)(_1.CounterModel, enum_1.CounterType.BOOKING);
195
195
  }
196
196
  })
197
- ], ServiceOrder);
198
- //# sourceMappingURL=service-order.model.js.map
197
+ ], ServiceBooking);
198
+ //# sourceMappingURL=service-booking.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-booking.model.js","sour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AAG,EAAE,KAAK,EAAE,CAAC;8BACzC,qDAAqB;uDAAC;AAGxC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,mDAAoB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BAClC,mDAAoB;mDAAC;AAGnC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,oDAA4B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;sDACX;AAGhD;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACI;AAOpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uDACP;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gEACE;AAOnC;IALN,IAAA,gBAAI,EAAC;QACL,GAAG,EAAE,GAAG,EAAE,CAAC,SAAM;QACjB,YAAY,EAAE,gBAAgB;QAC9B,UAAU,EAAE,KAAK;KACjB,CAAC;;+CAC6B;yBA1GnB,cAAc;IAN1B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,iBAAiB,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;IACpF,IAAA,eAAG,EAAiB,MAAM,EAAE,KAAK;QACjC,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,OAAO,GAAG,MAAM,IAAA,yBAAU,EAAC,eAAY,EAAE,kBAAW,CAAC,OAAO,CAAC,CAAC;QACpE,CAAC;IACF,CAAC,CAAC;GACW,cAAc,CA2G1B","sourcesContent":["import { modelOptions, pre, prop, Ref } from '@typegoose/typegoose';\nimport { User } from './user.model';\nimport { Vendor } from './vendor.model';\nimport { ServiceBookingStatus, CounterType, ServiceType, SubServiceType } from '../../../utilities/enum';\nimport { Professional } from './professional.model';\nimport { ServiceBookingFlag } from './embedded/service-booking-flag.model';\nimport { ServiceCart } from './service-cart.model';\nimport { ServiceBookingFinance } from './embedded/service-booking-finance.model';\nimport { ServiceBookingCancel } from './embedded/service-booking-cancel.model';\nimport { ServiceBookingStatusTimeline } from './embedded/status-timeline.model';\nimport { generateId } from '../../../utilities/id-generator';\nimport { CounterModel, Review, VendorParent } from '.';\nimport { RegularOrderAddress } from './shared/address.model';\nimport { OrderSlotRange } from './shared/duration.model';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\n\n@modelOptions({ schemaOptions: { collection: 'serviceBookings', timestamps: true } })\n@pre<ServiceBooking>('save', async function () {\n\tif (this.isNew) {\n\t\tthis.orderId = await generateId(CounterModel, CounterType.BOOKING);\n\t}\n})\nexport class ServiceBooking extends TimeStamps {\n\t@prop({ type: String, unique: true })\n\tpublic orderId?: string;\n\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ required: true, ref: () => Vendor })\n\tpublic vendor!: Ref<Vendor>;\n\n\t@prop({ required: true, ref: () => VendorParent })\n\tpublic parent!: Ref<VendorParent>;\n\n\t@prop({ required: true, type: String, enum: ServiceType })\n\tpublic serviceType!: ServiceType;\n\n\t@prop({ type: String, enum: SubServiceType })\n\tpublic subServiceType?: SubServiceType;\n\n\t@prop({ required: true, ref: () => ServiceCart })\n\tpublic cart!: Ref<ServiceCart>;\n\n\t@prop({ required: true, type: () => RegularOrderAddress })\n\tpublic userAddress!: RegularOrderAddress;\n\n\t@prop({ required: true, type: OrderSlotRange, _id: false })\n\tpublic slotRange!: OrderSlotRange;\n\n\t@prop({ type: String, enum: ServiceBookingStatus, default: ServiceBookingStatus.PENDING })\n\tpublic status!: ServiceBookingStatus;\n\n\t// @prop({ type: String })\n\t// public userNotes?: string;\n\n\t// @prop({ type: String })\n\t// public vendorNotes?: string;\n\n\t@prop({ ref: () => Professional })\n\tpublic professionals?: Ref<Professional>[];\n\n\t@prop({ ref: () => Professional })\n\tpublic responsibleProfessional?: Ref<Professional>;\n\n\t@prop({ type: () => ServiceBookingFlag, _id: false })\n\tpublic flag?: ServiceBookingFlag;\n\n\t@prop({ type: Date, default: new Date() })\n\tpublic processedAt?: Date;\n\n\t@prop({ type: Date })\n\tpublic placedAt?: Date;\n\n\t@prop({ type: Date })\n\tpublic startedAt?: Date;\n\n\t@prop({ type: Date })\n\tpublic estimatedCompletionTime?: Date;\n\n\t@prop({ type: Date })\n\tpublic completedAt?: Date;\n\n\t@prop({ type: Number })\n\tpublic completionTimeInMinutes?: number;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isUrgentOrder?: boolean;\n\n\t@prop({ type: Date })\n\tpublic urgentAt?: Date;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isOverdue?: boolean;\n\n\t@prop({ type: Date })\n\tpublic overdueAt?: Date;\n\n\t@prop({ required: true, type: ServiceBookingFinance, _id: false })\n\tpublic finance!: ServiceBookingFinance;\n\n\t@prop({ required: true, type: ServiceBookingFinance, _id: false })\n\tpublic adjustedFinance!: ServiceBookingFinance;\n\n\t@prop({ type: () => ServiceBookingCancel, _id: false })\n\tpublic orderCancel?: ServiceBookingCancel;\n\n\t@prop({ type: () => [ServiceBookingStatusTimeline], default: [] })\n\tpublic statusTimeline?: ServiceBookingStatusTimeline[];\n\n\t@prop({ type: Number })\n\tpublic bufferTime?: number; // minutes\n\n\t// @prop({ type: String })\n\t// public instruction?: string;\n\n\t// Review feature\n\t@prop({ type: Boolean, default: false })\n\tpublic isOrderReviewed?: boolean;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isReviewNotificationSent?: boolean;\n\n\t@prop({\n\t\tref: () => Review,\n\t\tforeignField: 'serviceBooking',\n\t\tlocalField: '_id',\n\t})\n\tpublic reviews?: Ref<Review>[];\n}\n"]}
@@ -6,7 +6,7 @@ import { Address } from './shared/address.model';
6
6
  import { WorkHourSetting } from './shared/work-hour.model';
7
7
  import { Zone } from './zone.model';
8
8
  import { VendorParent } from '.';
9
- import { ServiceOrderSettings } from './embedded/service-order-settings.model';
9
+ import { ServiceBookingSettings } from './embedded/service-booking-settings.model';
10
10
  export declare class Vendor extends TimeStamps {
11
11
  vendorId?: string;
12
12
  name: string;
@@ -26,9 +26,8 @@ export declare class Vendor extends TimeStamps {
26
26
  avgRating?: number;
27
27
  isVisibleToUser: boolean;
28
28
  ordersCount?: number;
29
- customersCount?: number;
30
29
  bobContactName?: string;
31
30
  bobContactPhoneNumber?: string;
32
- orderSettings?: ServiceOrderSettings;
31
+ orderSettings?: ServiceBookingSettings;
33
32
  workHourSetting?: WorkHourSetting;
34
33
  }
@@ -18,7 +18,7 @@ const address_model_1 = require("./shared/address.model");
18
18
  const work_hour_model_1 = require("./shared/work-hour.model");
19
19
  const zone_model_1 = require("./zone.model");
20
20
  const _1 = require(".");
21
- const service_order_settings_model_1 = require("./embedded/service-order-settings.model");
21
+ const service_booking_settings_model_1 = require("./embedded/service-booking-settings.model");
22
22
  const id_generator_1 = require("../../../utilities/id-generator");
23
23
  let Vendor = class Vendor extends defaultClasses_1.TimeStamps {
24
24
  vendorId;
@@ -39,7 +39,6 @@ let Vendor = class Vendor extends defaultClasses_1.TimeStamps {
39
39
  avgRating;
40
40
  isVisibleToUser;
41
41
  ordersCount;
42
- customersCount;
43
42
  bobContactName;
44
43
  bobContactPhoneNumber;
45
44
  orderSettings;
@@ -118,10 +117,6 @@ __decorate([
118
117
  (0, typegoose_1.prop)({ default: 0, type: () => Number }),
119
118
  __metadata("design:type", Number)
120
119
  ], Vendor.prototype, "ordersCount", void 0);
121
- __decorate([
122
- (0, typegoose_1.prop)({ default: 0, type: () => Number }),
123
- __metadata("design:type", Number)
124
- ], Vendor.prototype, "customersCount", void 0);
125
120
  __decorate([
126
121
  (0, typegoose_1.prop)({ type: String, maxlength: 100 }),
127
122
  __metadata("design:type", String)
@@ -131,8 +126,8 @@ __decorate([
131
126
  __metadata("design:type", String)
132
127
  ], Vendor.prototype, "bobContactPhoneNumber", void 0);
133
128
  __decorate([
134
- (0, typegoose_1.prop)({ type: () => service_order_settings_model_1.ServiceOrderSettings }),
135
- __metadata("design:type", service_order_settings_model_1.ServiceOrderSettings)
129
+ (0, typegoose_1.prop)({ type: () => service_booking_settings_model_1.ServiceBookingSettings }),
130
+ __metadata("design:type", service_booking_settings_model_1.ServiceBookingSettings)
136
131
  ], Vendor.prototype, "orderSettings", void 0);
137
132
  __decorate([
138
133
  (0, typegoose_1.prop)({ type: work_hour_model_1.WorkHourSetting }),
@@ -1 +1 @@
1
- {"version":3,"file":"vendor.model.js","sourceRoot":"/","sources":["libraries/mongo/models/vendor.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAqF;AACrF,4EAAqE;AACrE,kDAA2E;AAC3E,wEAA8D;AAC9D,0DAAiD;AACjD,8DAA2D;AAC3D,6CAAoC;AACpC,wBAA+C;AAC/C,0FAA+E;AAC/E,kEAA6D;AActD,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,2BAAU;IAE9B,QAAQ,CAAU;IAGlB,IAAI,CAAU;IAGd,SAAS,CAAU;IAGnB,KAAK,CAAU;IAGf,MAAM,CAAqB;IAG3B,WAAW,CAAe;IAG1B,MAAM,CAAU;IAGhB,WAAW,CAAU;IAGrB,eAAe,CAAU;IAGzB,sBAAsB,CAAY;IAGlC,OAAO,CAAW;IAGlB,KAAK,CAAe;IAGpB,IAAI,CAAU;IAGd,MAAM,CAAU;IAGhB,QAAQ,CAAgB;IAGxB,SAAS,CAAU;IAGnB,eAAe,CAAW;IAG1B,WAAW,CAAU;IAGrB,cAAc,CAAU;IAGxB,cAAc,CAAU;IAGxB,qBAAqB,CAAU;IAG/B,aAAa,CAAwB;IAGrC,eAAe,CAAmB;CACzC,CAAA;AArEY,wBAAM;AAEX;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAA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AAQ,CAAC,KAAK,EAAE;KACvC,CAAC;IACD,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;IAClG,IAAA,iBAAK,EAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACjE,IAAA,iBAAK,EAAC,EAAE,WAAW,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;IACnG,IAAA,eAAG,EAAS,MAAM,EAAE,KAAK;QACzB,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,QAAQ,GAAG,MAAM,IAAA,yBAAU,EAAC,eAAY,EAAE,kBAAW,CAAC,MAAM,CAAC,CAAC;QACpE,CAAC;IACF,CAAC,CAAC;GACW,MAAM,CAqElB","sourcesContent":["import { modelOptions, prop, Ref, Severity, Index, pre } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { CounterType, ServiceType, Status } from '../../../utilities/enum';\nimport { ShopDocument } from './embedded/shop-document.model';\nimport { Address } from './shared/address.model';\nimport { WorkHourSetting } from './shared/work-hour.model';\nimport { Zone } from './zone.model';\nimport { VendorParent, CounterModel } from '.';\nimport { ServiceOrderSettings } from './embedded/service-order-settings.model';\nimport { generateId } from '../../../utilities/id-generator';\n\n@modelOptions({\n\tschemaOptions: { collection: 'vendors' },\n\toptions: { allowMixed: Severity.ALLOW },\n})\n@Index({ name: 1, serviceType: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\n@Index({ parent: 1, status: 1, isVisibleToUser: 1, deletedAt: 1 })\n@Index({ serviceType: 1, zones: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\n@pre<Vendor>('save', async function () {\n\tif (this.isNew) {\n\t\tthis.vendorId = await generateId(CounterModel, CounterType.VENDOR);\n\t}\n})\nexport class Vendor extends TimeStamps {\n\t@prop({ type: String, unique: true, index: true })\n\tpublic vendorId?: string;\n\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic ownerName!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic email!: string;\n\n\t@prop({ required: true, ref: () => VendorParent })\n\tpublic parent!: Ref<VendorParent>;\n\n\t@prop({ type: String, enum: ServiceType })\n\tpublic serviceType?: ServiceType;\n\n\t@prop({ required: true, type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status!: Status;\n\n\t@prop({ required: true, type: String })\n\tpublic phoneNumber!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic userPhoneNumber!: string;\n\n\t@prop({ type: () => [String], default: [] })\n\tpublic additionalPhoneNumbers?: string[];\n\n\t@prop({ required: true, type: Address })\n\tpublic address!: Address;\n\n\t@prop({ required: true, ref: () => Zone })\n\tpublic zones!: Ref<Zone>[];\n\n\t@prop({ type: String })\n\tpublic logo?: string;\n\n\t@prop({ type: String })\n\tpublic banner?: string;\n\n\t@prop({ type: ShopDocument })\n\tpublic document?: ShopDocument;\n\n\t@prop({ default: 0, type: () => Number })\n\tpublic avgRating?: number;\n\n\t@prop({ required: true, type: Boolean })\n\tpublic isVisibleToUser!: boolean;\n\n\t@prop({ default: 0, type: () => Number })\n\tpublic ordersCount?: number;\n\n\t@prop({ default: 0, type: () => Number })\n\tpublic customersCount?: number;\n\n\t@prop({ type: String, maxlength: 100 })\n\tpublic bobContactName?: string;\n\n\t@prop({ type: String, maxlength: 15 })\n\tpublic bobContactPhoneNumber?: string;\n\n\t@prop({ type: () => ServiceOrderSettings })\n\tpublic orderSettings?: ServiceOrderSettings;\n\n\t@prop({ type: WorkHourSetting })\n\tpublic workHourSetting?: WorkHourSetting;\n}\n"]}
1
+ {"version":3,"file":"vendor.model.js","sourceRoot":"/","sources":["libraries/mongo/models/vendor.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAqF;AACrF,4EAAqE;AACrE,kDAA2E;AAC3E,wEAA8D;AAC9D,0DAAiD;AACjD,8DAA2D;AAC3D,6CAAoC;AACpC,wBAA+C;AAC/C,8FAAmF;AACnF,kEAA6D;AActD,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,2BAAU;IAE9B,QAAQ,CAAU;IAGlB,IAAI,CAAU;IAGd,SAAS,CAAU;IAGnB,KAAK,CAAU;IAGf,MAAM,CAAqB;IAG3B,WAAW,CAAe;IAG1B,MAAM,CAAU;IAGhB,WAAW,CAAU;IAGrB,eAAe,CAAU;IAGzB,sBAAsB,CAAY;IAGlC,OAAO,CAAW;IAGlB,KAAK,CAAe;IAGpB,IAAI,CAAU;IAGd,MAAM,CAAU;IAGhB,QAAQ,CAAgB;IAGxB,SAAS,CAAU;IAGnB,eAAe,CAAW;IAG1B,WAAW,CAAU;IAGrB,cAAc,CAAU;IAGxB,qBAAqB,CAAU;IAG/B,aAAa,CAA0B;IAGvC,eAAe,CAAmB;CACzC,CAAA;AAlEY,wBAAM;AAEX;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;wCACzB;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACb;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCACjB;AAG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,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;IACnG,IAAA,eAAG,EAAS,MAAM,EAAE,KAAK;QACzB,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,QAAQ,GAAG,MAAM,IAAA,yBAAU,EAAC,eAAY,EAAE,kBAAW,CAAC,MAAM,CAAC,CAAC;QACpE,CAAC;IACF,CAAC,CAAC;GACW,MAAM,CAkElB","sourcesContent":["import { modelOptions, prop, Ref, Severity, Index, pre } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { CounterType, ServiceType, Status } from '../../../utilities/enum';\nimport { ShopDocument } from './embedded/shop-document.model';\nimport { Address } from './shared/address.model';\nimport { WorkHourSetting } from './shared/work-hour.model';\nimport { Zone } from './zone.model';\nimport { VendorParent, CounterModel } from '.';\nimport { ServiceBookingSettings } from './embedded/service-booking-settings.model';\nimport { generateId } from '../../../utilities/id-generator';\n\n@modelOptions({\n\tschemaOptions: { collection: 'vendors' },\n\toptions: { allowMixed: Severity.ALLOW },\n})\n@Index({ name: 1, serviceType: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\n@Index({ parent: 1, status: 1, isVisibleToUser: 1, deletedAt: 1 })\n@Index({ serviceType: 1, zones: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\n@pre<Vendor>('save', async function () {\n\tif (this.isNew) {\n\t\tthis.vendorId = await generateId(CounterModel, CounterType.VENDOR);\n\t}\n})\nexport class Vendor extends TimeStamps {\n\t@prop({ type: String, unique: true, index: true })\n\tpublic vendorId?: string;\n\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic ownerName!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic email!: string;\n\n\t@prop({ required: true, ref: () => VendorParent })\n\tpublic parent!: Ref<VendorParent>;\n\n\t@prop({ type: String, enum: ServiceType })\n\tpublic serviceType?: ServiceType;\n\n\t@prop({ required: true, type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status!: Status;\n\n\t@prop({ required: true, type: String })\n\tpublic phoneNumber!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic userPhoneNumber!: string;\n\n\t@prop({ type: () => [String], default: [] })\n\tpublic additionalPhoneNumbers?: string[];\n\n\t@prop({ required: true, type: Address })\n\tpublic address!: Address;\n\n\t@prop({ required: true, ref: () => Zone })\n\tpublic zones!: Ref<Zone>[];\n\n\t@prop({ type: String })\n\tpublic logo?: string;\n\n\t@prop({ type: String })\n\tpublic banner?: string;\n\n\t@prop({ type: ShopDocument })\n\tpublic document?: ShopDocument;\n\n\t@prop({ default: 0, type: () => Number })\n\tpublic avgRating?: number;\n\n\t@prop({ required: true, type: Boolean })\n\tpublic isVisibleToUser!: boolean;\n\n\t@prop({ default: 0, type: () => Number })\n\tpublic ordersCount?: number;\n\n\t@prop({ type: String, maxlength: 100 })\n\tpublic bobContactName?: string;\n\n\t@prop({ type: String, maxlength: 15 })\n\tpublic bobContactPhoneNumber?: string;\n\n\t@prop({ type: () => ServiceBookingSettings })\n\tpublic orderSettings?: ServiceBookingSettings;\n\n\t@prop({ type: WorkHourSetting })\n\tpublic workHourSetting?: WorkHourSetting;\n}\n"]}
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.4.4
25
+ Version: 1.4.6
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
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",
@@ -45,7 +45,8 @@ export declare enum ServiceItemType {
45
45
  COFFEE = "coffee",
46
46
  FLOWER = "flower",
47
47
  PET = "pet",
48
- COURIER = "courier"
48
+ COURIER = "courier",
49
+ SERVICES = "services"
49
50
  }
50
51
  export declare enum AdjustmentStatus {
51
52
  NONE = "none",
@@ -589,7 +590,7 @@ export declare enum CourierOrderStatus {
589
590
  DELIVERED = "delivered",
590
591
  CANCELLED = "cancelled"
591
592
  }
592
- export declare enum ServiceOrderStatus {
593
+ export declare enum ServiceBookingStatus {
593
594
  PENDING = "pending",
594
595
  CONFIRMED = "confirmed",
595
596
  IN_PROGRESS = "in_progress",
@@ -763,7 +764,7 @@ export declare enum ProfessionalStatus {
763
764
  BUSY = "busy",
764
765
  FULLY_BOOKED = "fully_booked"
765
766
  }
766
- export declare enum ServiceOrderPriority {
767
+ export declare enum ServiceBookingPriority {
767
768
  NORMAL = "normal",
768
769
  URGENT = "urgent",
769
770
  FLAGGED = "flagged"
@@ -773,7 +774,7 @@ export declare enum ProfessionalRecurrencePattern {
773
774
  WEEKLY = "weekly",
774
775
  MONTHLY = "monthly"
775
776
  }
776
- export declare enum ServiceOrderRecurrencePattern {
777
+ export declare enum ServiceBookingRecurrencePattern {
777
778
  ONETIME = "onetime",
778
779
  WEEKLY = "weekly",
779
780
  MONTHLY = "monthly"
@@ -815,7 +816,7 @@ export declare enum TRPCErrorEnum {
815
816
  GATEWAY_TIMEOUT = "GATEWAY_TIMEOUT",
816
817
  SERVICE_UNAVAILABLE = "SERVICE_UNAVAILABLE"
817
818
  }
818
- export declare enum ServiceOrderCanceledBy {
819
+ export declare enum ServiceBookingCanceledBy {
819
820
  USER = "user",
820
821
  SHOP = "vendor",
821
822
  ADMIN = "admin"
@@ -865,7 +866,7 @@ export declare enum ReviewType {
865
866
  SHOP = "shop",
866
867
  RIDER = "rider",
867
868
  PROFESSIONAL = "professional",
868
- SERVICE_ORDER = "service_order"
869
+ SERVICE_BOOKING = "service_booking"
869
870
  }
870
871
  export declare enum OtpMethodType {
871
872
  SMS = "sms",
@@ -957,7 +958,7 @@ export declare enum AppAppearanceType {
957
958
  SPLASH = "splash",
958
959
  HEADERS = "headers"
959
960
  }
960
- export declare enum ServiceOrderActionType {
961
+ export declare enum ServiceBookingActionType {
961
962
  RESCHEDULE = "reschedule",
962
963
  REFUND = "refund"
963
964
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BobType = exports.BobChannelType = exports.BobModel = exports.BobSettlementStatus = exports.BobSettlementType = exports.BobAccountType = exports.ZoneStatus = exports.FaqAccountType = exports.CounterType = exports.BannerUserType = exports.BannerLinkType = exports.BannerClickType = exports.VendorRole = exports.ShopRole = exports.OnlineStatus = exports.ShopOnlineStatus = exports.ChargeType = exports.ClickType = exports.NotificationAccountType = exports.DishCategory = exports.ProductDietaryType = exports.ShopDietaryType = exports.PriceOption = exports.ProductType = exports.CoreAuthIdentityType = exports.UserAppSectionItemType = exports.UserAppSectionType = exports.AdminLogsUpdatedFieldsType = exports.UpdatedField = exports.GeoLocationType = exports.RatingAccountType = exports.SubscriptionStatus = exports.SubscriptionPackage = exports.PaidCurrency = exports.PaymentStatus = exports.ChangeReturnMethod = exports.PaymentMethod = exports.ValueType = exports.HolidayWorkStatus = exports.WorkStatus = exports.WeekDay = exports.GlobalItemType = exports.AdjustmentStatus = exports.ServiceItemType = exports.ItemType = exports.Status = exports.AppPlatform = exports.AccountType = exports.AgentLiveStatus = exports.AuthEntityType = void 0;
4
- exports.RewardedToTypeEnum = exports.ReplacementType = exports.ReplacementReason = exports.OrderCanceledBy = exports.LogUser = exports.PayoutStatus = exports.PayoutType = exports.AddRemoveCreditAccountType = exports.SettingsReasonStatus = exports.CancellationReasonTypeEnum = exports.SupportReasonTypeEnum = exports.PlusSettingsPackageType = exports.AddRemoveCreditSettlementType = exports.SettlementType = exports.MediaType = exports.WorkingHourSettingsType = exports.ZoneGeometryType = exports.RiderAssignmentStatus = exports.CourierServiceType = exports.TripLegStatus = exports.DeliveryStatus = exports.CourierOrderPaymentFrom = exports.ShopCourierOrderStatus = exports.ServiceOrderStatus = exports.CourierOrderStatus = exports.RegularOrderStatus = exports.AdjustmentType = exports.StatusTimelineType = exports.OrderType = exports.Language = exports.OrderSize = exports.RiderBagSize = exports.RiderType = exports.ShiftType = exports.CreatedBy = exports.LiveStatus = exports.PaymentIntentStatus = exports.CardStatus = exports.CardUserType = exports.CardType = exports.PaymentPreference = exports.CartStatus = exports.AdminRole = exports.PunchMarketingStatus = exports.MarketingStatus = exports.ServiceMarketingType = exports.MarketingType = exports.FavouriteType = exports.CouponExpirationReason = exports.CouponType = void 0;
5
- exports.RiderScoreEventTag = exports.AreebaPaymentType = exports.HttpStatus = exports.LogTag = exports.LogLevel = exports.SyncCacheEnumType = exports.DateFormatType = exports.ServiceOrderActionType = exports.AppAppearanceType = exports.GraphType = exports.CalendarEventType = exports.CalendarViewType = exports.LyxaTimeZoneEnum = exports.UserOrderCompletionScope = exports.GroupCartNotificationStatus = exports.Currency = exports.RequestFrom = exports.UploadState = exports.SubServiceType = exports.ServiceType = exports.ActionType = exports.DeviceType = exports.PushNotificationEventType = exports.SocketEventType = exports.SocketServiceQueue = exports.OtpMethodType = exports.ReviewType = exports.FoodNutritionType = exports.AdjustmentReason = exports.UrgentOrderReasons = exports.FlagReasonType = exports.FlagType = exports.PromotionType = exports.ServiceOrderCanceledBy = exports.TRPCErrorEnum = exports.ShopFilterSortByEnum = exports.BookingStatus = exports.ProfessionalScheduleType = exports.ServiceOrderRecurrencePattern = exports.ProfessionalRecurrencePattern = exports.ServiceOrderPriority = exports.ProfessionalStatus = exports.Service = exports.ServiceLineItemType = exports.ServiceCartStatus = exports.ChatroomType = exports.UserRef = exports.TicketStatus = exports.TicketType = void 0;
4
+ exports.RewardedToTypeEnum = exports.ReplacementType = exports.ReplacementReason = exports.OrderCanceledBy = exports.LogUser = exports.PayoutStatus = exports.PayoutType = exports.AddRemoveCreditAccountType = exports.SettingsReasonStatus = exports.CancellationReasonTypeEnum = exports.SupportReasonTypeEnum = exports.PlusSettingsPackageType = exports.AddRemoveCreditSettlementType = exports.SettlementType = exports.MediaType = exports.WorkingHourSettingsType = exports.ZoneGeometryType = exports.RiderAssignmentStatus = exports.CourierServiceType = exports.TripLegStatus = exports.DeliveryStatus = exports.CourierOrderPaymentFrom = exports.ShopCourierOrderStatus = exports.ServiceBookingStatus = exports.CourierOrderStatus = exports.RegularOrderStatus = exports.AdjustmentType = exports.StatusTimelineType = exports.OrderType = exports.Language = exports.OrderSize = exports.RiderBagSize = exports.RiderType = exports.ShiftType = exports.CreatedBy = exports.LiveStatus = exports.PaymentIntentStatus = exports.CardStatus = exports.CardUserType = exports.CardType = exports.PaymentPreference = exports.CartStatus = exports.AdminRole = exports.PunchMarketingStatus = exports.MarketingStatus = exports.ServiceMarketingType = exports.MarketingType = exports.FavouriteType = exports.CouponExpirationReason = exports.CouponType = void 0;
5
+ exports.RiderScoreEventTag = exports.AreebaPaymentType = exports.HttpStatus = exports.LogTag = exports.LogLevel = exports.SyncCacheEnumType = exports.DateFormatType = exports.ServiceBookingActionType = exports.AppAppearanceType = exports.GraphType = exports.CalendarEventType = exports.CalendarViewType = exports.LyxaTimeZoneEnum = exports.UserOrderCompletionScope = exports.GroupCartNotificationStatus = exports.Currency = exports.RequestFrom = exports.UploadState = exports.SubServiceType = exports.ServiceType = exports.ActionType = exports.DeviceType = exports.PushNotificationEventType = exports.SocketEventType = exports.SocketServiceQueue = exports.OtpMethodType = exports.ReviewType = exports.FoodNutritionType = exports.AdjustmentReason = exports.UrgentOrderReasons = exports.FlagReasonType = exports.FlagType = exports.PromotionType = exports.ServiceBookingCanceledBy = exports.TRPCErrorEnum = exports.ShopFilterSortByEnum = exports.BookingStatus = exports.ProfessionalScheduleType = exports.ServiceBookingRecurrencePattern = exports.ProfessionalRecurrencePattern = exports.ServiceBookingPriority = exports.ProfessionalStatus = exports.Service = exports.ServiceLineItemType = exports.ServiceCartStatus = exports.ChatroomType = exports.UserRef = exports.TicketStatus = exports.TicketType = void 0;
6
6
  var AuthEntityType;
7
7
  (function (AuthEntityType) {
8
8
  AuthEntityType["USER"] = "USER";
@@ -58,6 +58,7 @@ var ServiceItemType;
58
58
  ServiceItemType["FLOWER"] = "flower";
59
59
  ServiceItemType["PET"] = "pet";
60
60
  ServiceItemType["COURIER"] = "courier";
61
+ ServiceItemType["SERVICES"] = "services";
61
62
  })(ServiceItemType || (exports.ServiceItemType = ServiceItemType = {}));
62
63
  var AdjustmentStatus;
63
64
  (function (AdjustmentStatus) {
@@ -670,14 +671,14 @@ var CourierOrderStatus;
670
671
  CourierOrderStatus["DELIVERED"] = "delivered";
671
672
  CourierOrderStatus["CANCELLED"] = "cancelled";
672
673
  })(CourierOrderStatus || (exports.CourierOrderStatus = CourierOrderStatus = {}));
673
- var ServiceOrderStatus;
674
- (function (ServiceOrderStatus) {
675
- ServiceOrderStatus["PENDING"] = "pending";
676
- ServiceOrderStatus["CONFIRMED"] = "confirmed";
677
- ServiceOrderStatus["IN_PROGRESS"] = "in_progress";
678
- ServiceOrderStatus["COMPLETED"] = "completed";
679
- ServiceOrderStatus["CANCELLED"] = "cancelled";
680
- })(ServiceOrderStatus || (exports.ServiceOrderStatus = ServiceOrderStatus = {}));
674
+ var ServiceBookingStatus;
675
+ (function (ServiceBookingStatus) {
676
+ ServiceBookingStatus["PENDING"] = "pending";
677
+ ServiceBookingStatus["CONFIRMED"] = "confirmed";
678
+ ServiceBookingStatus["IN_PROGRESS"] = "in_progress";
679
+ ServiceBookingStatus["COMPLETED"] = "completed";
680
+ ServiceBookingStatus["CANCELLED"] = "cancelled";
681
+ })(ServiceBookingStatus || (exports.ServiceBookingStatus = ServiceBookingStatus = {}));
681
682
  var ShopCourierOrderStatus;
682
683
  (function (ShopCourierOrderStatus) {
683
684
  ShopCourierOrderStatus["PLACED"] = "placed";
@@ -876,24 +877,24 @@ var ProfessionalStatus;
876
877
  ProfessionalStatus["BUSY"] = "busy";
877
878
  ProfessionalStatus["FULLY_BOOKED"] = "fully_booked";
878
879
  })(ProfessionalStatus || (exports.ProfessionalStatus = ProfessionalStatus = {}));
879
- var ServiceOrderPriority;
880
- (function (ServiceOrderPriority) {
881
- ServiceOrderPriority["NORMAL"] = "normal";
882
- ServiceOrderPriority["URGENT"] = "urgent";
883
- ServiceOrderPriority["FLAGGED"] = "flagged";
884
- })(ServiceOrderPriority || (exports.ServiceOrderPriority = ServiceOrderPriority = {}));
880
+ var ServiceBookingPriority;
881
+ (function (ServiceBookingPriority) {
882
+ ServiceBookingPriority["NORMAL"] = "normal";
883
+ ServiceBookingPriority["URGENT"] = "urgent";
884
+ ServiceBookingPriority["FLAGGED"] = "flagged";
885
+ })(ServiceBookingPriority || (exports.ServiceBookingPriority = ServiceBookingPriority = {}));
885
886
  var ProfessionalRecurrencePattern;
886
887
  (function (ProfessionalRecurrencePattern) {
887
888
  ProfessionalRecurrencePattern["DAILY"] = "daily";
888
889
  ProfessionalRecurrencePattern["WEEKLY"] = "weekly";
889
890
  ProfessionalRecurrencePattern["MONTHLY"] = "monthly";
890
891
  })(ProfessionalRecurrencePattern || (exports.ProfessionalRecurrencePattern = ProfessionalRecurrencePattern = {}));
891
- var ServiceOrderRecurrencePattern;
892
- (function (ServiceOrderRecurrencePattern) {
893
- ServiceOrderRecurrencePattern["ONETIME"] = "onetime";
894
- ServiceOrderRecurrencePattern["WEEKLY"] = "weekly";
895
- ServiceOrderRecurrencePattern["MONTHLY"] = "monthly";
896
- })(ServiceOrderRecurrencePattern || (exports.ServiceOrderRecurrencePattern = ServiceOrderRecurrencePattern = {}));
892
+ var ServiceBookingRecurrencePattern;
893
+ (function (ServiceBookingRecurrencePattern) {
894
+ ServiceBookingRecurrencePattern["ONETIME"] = "onetime";
895
+ ServiceBookingRecurrencePattern["WEEKLY"] = "weekly";
896
+ ServiceBookingRecurrencePattern["MONTHLY"] = "monthly";
897
+ })(ServiceBookingRecurrencePattern || (exports.ServiceBookingRecurrencePattern = ServiceBookingRecurrencePattern = {}));
897
898
  var ProfessionalScheduleType;
898
899
  (function (ProfessionalScheduleType) {
899
900
  ProfessionalScheduleType["BLOCK"] = "block";
@@ -935,12 +936,12 @@ var TRPCErrorEnum;
935
936
  TRPCErrorEnum["GATEWAY_TIMEOUT"] = "GATEWAY_TIMEOUT";
936
937
  TRPCErrorEnum["SERVICE_UNAVAILABLE"] = "SERVICE_UNAVAILABLE";
937
938
  })(TRPCErrorEnum || (exports.TRPCErrorEnum = TRPCErrorEnum = {}));
938
- var ServiceOrderCanceledBy;
939
- (function (ServiceOrderCanceledBy) {
940
- ServiceOrderCanceledBy["USER"] = "user";
941
- ServiceOrderCanceledBy["SHOP"] = "vendor";
942
- ServiceOrderCanceledBy["ADMIN"] = "admin";
943
- })(ServiceOrderCanceledBy || (exports.ServiceOrderCanceledBy = ServiceOrderCanceledBy = {}));
939
+ var ServiceBookingCanceledBy;
940
+ (function (ServiceBookingCanceledBy) {
941
+ ServiceBookingCanceledBy["USER"] = "user";
942
+ ServiceBookingCanceledBy["SHOP"] = "vendor";
943
+ ServiceBookingCanceledBy["ADMIN"] = "admin";
944
+ })(ServiceBookingCanceledBy || (exports.ServiceBookingCanceledBy = ServiceBookingCanceledBy = {}));
944
945
  var PromotionType;
945
946
  (function (PromotionType) {
946
947
  PromotionType["PACKAGE"] = "package";
@@ -993,7 +994,7 @@ var ReviewType;
993
994
  ReviewType["SHOP"] = "shop";
994
995
  ReviewType["RIDER"] = "rider";
995
996
  ReviewType["PROFESSIONAL"] = "professional";
996
- ReviewType["SERVICE_ORDER"] = "service_order";
997
+ ReviewType["SERVICE_BOOKING"] = "service_booking";
997
998
  })(ReviewType || (exports.ReviewType = ReviewType = {}));
998
999
  var OtpMethodType;
999
1000
  (function (OtpMethodType) {
@@ -1103,11 +1104,11 @@ var AppAppearanceType;
1103
1104
  AppAppearanceType["SPLASH"] = "splash";
1104
1105
  AppAppearanceType["HEADERS"] = "headers";
1105
1106
  })(AppAppearanceType || (exports.AppAppearanceType = AppAppearanceType = {}));
1106
- var ServiceOrderActionType;
1107
- (function (ServiceOrderActionType) {
1108
- ServiceOrderActionType["RESCHEDULE"] = "reschedule";
1109
- ServiceOrderActionType["REFUND"] = "refund";
1110
- })(ServiceOrderActionType || (exports.ServiceOrderActionType = ServiceOrderActionType = {}));
1107
+ var ServiceBookingActionType;
1108
+ (function (ServiceBookingActionType) {
1109
+ ServiceBookingActionType["RESCHEDULE"] = "reschedule";
1110
+ ServiceBookingActionType["REFUND"] = "refund";
1111
+ })(ServiceBookingActionType || (exports.ServiceBookingActionType = ServiceBookingActionType = {}));
1111
1112
  var DateFormatType;
1112
1113
  (function (DateFormatType) {
1113
1114
  DateFormatType["YYYY_MM_DD"] = "YYYY-MM-DD";