@lyxa.ai/core 1.4.327-alpha.0 → 1.4.327
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/index.d.ts +3 -3
- package/dist/libraries/mongo/models/index.js +6 -6
- package/dist/libraries/mongo/models/index.js.map +1 -1
- package/dist/libraries/mongo/models/order.model.d.ts +1 -0
- package/dist/libraries/mongo/models/order.model.js +5 -0
- package/dist/libraries/mongo/models/order.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/global-coupon.model.d.ts +0 -2
- package/dist/libraries/mongo/models/providers/global-coupon.model.js +0 -20
- package/dist/libraries/mongo/models/providers/global-coupon.model.js.map +1 -1
- package/dist/libraries/mongo/models/shop-orders-last-7-days-snapshot.model.d.ts +13 -0
- package/dist/libraries/mongo/models/shop-orders-last-7-days-snapshot.model.js +53 -0
- package/dist/libraries/mongo/models/shop-orders-last-7-days-snapshot.model.js.map +1 -0
- package/dist/libraries/mongo/models/user.model.d.ts +1 -2
- package/dist/libraries/mongo/models/user.model.js +1 -6
- package/dist/libraries/mongo/models/user.model.js.map +1 -1
- package/dist/libraries/socket/events/chatroom-message-send.socket.event.d.ts +16 -16
- package/dist/libraries/socket/events/order-actions.socket.event.d.ts +32 -32
- package/dist/libraries/socket/events/rider-location-update.socket.event.d.ts +8 -8
- package/dist/libraries/socket/events/ticket-actions.socket.event.d.ts +4 -4
- package/dist/libraries/socket/events/ticket-assign.socket.event.d.ts +24 -24
- package/dist/libraries/trpc/middlewares/auth.d.ts +2 -2
- package/dist/libraries/trpc/middlewares/createRoleProtectedProcedure.d.ts +2 -2
- package/dist/libraries/trpc/middlewares/phone-verified.d.ts +2 -2
- package/dist/libraries/trpc/middlewares/publicUserDecoder.d.ts +2 -2
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
- package/dist/libraries/mongo/models/user-coupon.model.d.ts +0 -11
- package/dist/libraries/mongo/models/user-coupon.model.js +0 -52
- package/dist/libraries/mongo/models/user-coupon.model.js.map +0 -1
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.327
|
|
3
|
+
"version": "1.4.327",
|
|
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",
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Ref } from '@typegoose/typegoose';
|
|
2
|
-
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
3
|
-
import { User } from './user.model';
|
|
4
|
-
import { Coupon } from './coupon.model';
|
|
5
|
-
export declare class UserCoupon extends TimeStamps {
|
|
6
|
-
user: Ref<User>;
|
|
7
|
-
coupon: Ref<Coupon>;
|
|
8
|
-
startDate: Date;
|
|
9
|
-
endDate?: Date;
|
|
10
|
-
isExpired?: boolean;
|
|
11
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UserCoupon = void 0;
|
|
13
|
-
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
-
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
15
|
-
const user_model_1 = require("./user.model");
|
|
16
|
-
const coupon_model_1 = require("./coupon.model");
|
|
17
|
-
let UserCoupon = class UserCoupon extends defaultClasses_1.TimeStamps {
|
|
18
|
-
user;
|
|
19
|
-
coupon;
|
|
20
|
-
startDate;
|
|
21
|
-
endDate;
|
|
22
|
-
isExpired;
|
|
23
|
-
};
|
|
24
|
-
exports.UserCoupon = UserCoupon;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typegoose_1.prop)({ required: true, ref: () => user_model_1.User }),
|
|
27
|
-
__metadata("design:type", Object)
|
|
28
|
-
], UserCoupon.prototype, "user", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typegoose_1.prop)({ required: true, ref: () => coupon_model_1.Coupon }),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], UserCoupon.prototype, "coupon", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typegoose_1.prop)({ required: true, type: Date }),
|
|
35
|
-
__metadata("design:type", Date)
|
|
36
|
-
], UserCoupon.prototype, "startDate", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typegoose_1.prop)({ type: Date }),
|
|
39
|
-
__metadata("design:type", Date)
|
|
40
|
-
], UserCoupon.prototype, "endDate", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
43
|
-
__metadata("design:type", Boolean)
|
|
44
|
-
], UserCoupon.prototype, "isExpired", void 0);
|
|
45
|
-
exports.UserCoupon = UserCoupon = __decorate([
|
|
46
|
-
(0, typegoose_1.modelOptions)({
|
|
47
|
-
schemaOptions: { collection: 'user-coupons' },
|
|
48
|
-
}),
|
|
49
|
-
(0, typegoose_1.index)({ user: 1, deletedAt: 1 }, { partialFilterExpression: { deletedAt: null } }),
|
|
50
|
-
(0, typegoose_1.index)({ coupon: 1, deletedAt: 1 }, { partialFilterExpression: { deletedAt: null } })
|
|
51
|
-
], UserCoupon);
|
|
52
|
-
//# sourceMappingURL=user-coupon.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-coupon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/user-coupon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,6CAAoC;AACpC,iDAAwC;AAOjC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,2BAAU;IAElC,IAAI,CAAa;IAGjB,MAAM,CAAe;IAGrB,SAAS,CAAQ;IAGjB,OAAO,CAAQ;IAGf,SAAS,CAAW;CAC3B,CAAA;AAfY,gCAAU;AAEf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;wCAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;0CAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BAClB,IAAI;6CAAC;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACJ,IAAI;2CAAC;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACb;qBAdf,UAAU;IALtB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE;KAC7C,CAAC;IACD,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;IAClF,IAAA,iBAAK,EAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;GACxE,UAAU,CAetB","sourcesContent":["import { index, modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { User } from './user.model';\nimport { Coupon } from './coupon.model';\n\n@modelOptions({\n\tschemaOptions: { collection: 'user-coupons' },\n})\n@index({ user: 1, deletedAt: 1 }, { partialFilterExpression: { deletedAt: null } })\n@index({ coupon: 1, deletedAt: 1 }, { partialFilterExpression: { deletedAt: null } })\nexport class UserCoupon extends TimeStamps {\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ required: true, ref: () => Coupon })\n\tpublic coupon!: Ref<Coupon>;\n\n\t@prop({ required: true, type: Date })\n\tpublic startDate!: Date;\n\n\t@prop({ type: Date })\n\tpublic endDate?: Date;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isExpired?: boolean;\n}\n"]}
|