@lyxa.ai/core 1.4.111 → 1.4.113
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/providers/custom-coupon.model.d.ts +2 -0
- package/dist/libraries/mongo/models/providers/custom-coupon.model.js +6 -0
- package/dist/libraries/mongo/models/providers/custom-coupon.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/individual-store-coupon.model.d.ts +3 -1
- package/dist/libraries/mongo/models/providers/individual-store-coupon.model.js +6 -0
- package/dist/libraries/mongo/models/providers/individual-store-coupon.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/individual-user-coupon.model.d.ts +2 -0
- package/dist/libraries/mongo/models/providers/individual-user-coupon.model.js +6 -0
- package/dist/libraries/mongo/models/providers/individual-user-coupon.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/shops-categories-coupon.model.d.ts +2 -0
- package/dist/libraries/mongo/models/providers/shops-categories-coupon.model.js +6 -0
- package/dist/libraries/mongo/models/providers/shops-categories-coupon.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/validation/common-validation.d.ts +12 -12
- package/package.json +1 -1
|
@@ -3,9 +3,11 @@ import { CouponType, ItemType } from '../../../../utilities/enum';
|
|
|
3
3
|
import { BaseCoupon } from '../base/base-coupon.model';
|
|
4
4
|
import { Shop } from '../shop.model';
|
|
5
5
|
import { User } from '../user.model';
|
|
6
|
+
import { Vendor } from '../vendor.model';
|
|
6
7
|
export declare class CustomCoupon extends BaseCoupon {
|
|
7
8
|
couponType: CouponType.CUSTOM_COUPON;
|
|
8
9
|
influencer: Ref<User>;
|
|
9
10
|
itemTypes?: ItemType[];
|
|
10
11
|
shops?: Ref<Shop>[];
|
|
12
|
+
vendors?: Ref<Vendor>[];
|
|
11
13
|
}
|
|
@@ -15,11 +15,13 @@ const enum_1 = require("../../../../utilities/enum");
|
|
|
15
15
|
const base_coupon_model_1 = require("../base/base-coupon.model");
|
|
16
16
|
const shop_model_1 = require("../shop.model");
|
|
17
17
|
const user_model_1 = require("../user.model");
|
|
18
|
+
const vendor_model_1 = require("../vendor.model");
|
|
18
19
|
class CustomCoupon extends base_coupon_model_1.BaseCoupon {
|
|
19
20
|
couponType = enum_1.CouponType.CUSTOM_COUPON;
|
|
20
21
|
influencer;
|
|
21
22
|
itemTypes;
|
|
22
23
|
shops;
|
|
24
|
+
vendors;
|
|
23
25
|
}
|
|
24
26
|
exports.CustomCoupon = CustomCoupon;
|
|
25
27
|
__decorate([
|
|
@@ -34,4 +36,8 @@ __decorate([
|
|
|
34
36
|
(0, typegoose_1.prop)({ ref: () => shop_model_1.Shop, default: [] }),
|
|
35
37
|
__metadata("design:type", Array)
|
|
36
38
|
], CustomCoupon.prototype, "shops", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typegoose_1.prop)({ ref: () => vendor_model_1.Vendor, default: [] }),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], CustomCoupon.prototype, "vendors", void 0);
|
|
37
43
|
//# sourceMappingURL=custom-coupon.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-coupon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/custom-coupon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAkE;AAClE,iEAAuD;AACvD,8CAAqC;AACrC,8CAAqC;
|
|
1
|
+
{"version":3,"file":"custom-coupon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/custom-coupon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAkE;AAClE,iEAAuD;AACvD,8CAAqC;AACrC,8CAAqC;AACrC,kDAAyC;AAEzC,MAAa,YAAa,SAAQ,8BAAU;IACpC,UAAU,GAAG,iBAAU,CAAC,aAAsB,CAAC;IAG/C,UAAU,CAAa;IAGvB,SAAS,CAAc;IAGvB,KAAK,CAAe;IAGpB,OAAO,CAAiB;CAC/B;AAdD,oCAcC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;gDACZ;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;+CACxB;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;2CACZ;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;6CACV","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { CouponType, ItemType } from '../../../../utilities/enum';\nimport { BaseCoupon } from '../base/base-coupon.model';\nimport { Shop } from '../shop.model';\nimport { User } from '../user.model';\nimport { Vendor } from '../vendor.model';\n\nexport class CustomCoupon extends BaseCoupon {\n\tpublic couponType = CouponType.CUSTOM_COUPON as const;\n\n\t@prop({ required: true, ref: () => User })\n\tpublic influencer!: Ref<User>;\n\n\t@prop({ type: [String], enum: ItemType, default: [] })\n\tpublic itemTypes?: ItemType[];\n\n\t@prop({ ref: () => Shop, default: [] })\n\tpublic shops?: Ref<Shop>[];\n\n\t@prop({ ref: () => Vendor, default: [] })\n\tpublic vendors?: Ref<Vendor>[];\n}\n"]}
|
|
@@ -2,9 +2,11 @@ import { Ref } from '@typegoose/typegoose';
|
|
|
2
2
|
import { CouponType } from '../../../../utilities/enum';
|
|
3
3
|
import { Shop } from '../shop.model';
|
|
4
4
|
import { BaseCoupon } from '../base/base-coupon.model';
|
|
5
|
+
import { Vendor } from '../vendor.model';
|
|
5
6
|
export declare class IndividualStoreCoupon extends BaseCoupon {
|
|
6
7
|
couponType: CouponType.INDIVIDUAL_STORE;
|
|
7
|
-
shop
|
|
8
|
+
shop?: Ref<Shop>;
|
|
9
|
+
vendor?: Ref<Vendor>;
|
|
8
10
|
isShopCoverExpenses?: boolean;
|
|
9
11
|
firstOrderOnly?: boolean;
|
|
10
12
|
}
|
|
@@ -14,9 +14,11 @@ const typegoose_1 = require("@typegoose/typegoose");
|
|
|
14
14
|
const enum_1 = require("../../../../utilities/enum");
|
|
15
15
|
const shop_model_1 = require("../shop.model");
|
|
16
16
|
const base_coupon_model_1 = require("../base/base-coupon.model");
|
|
17
|
+
const vendor_model_1 = require("../vendor.model");
|
|
17
18
|
class IndividualStoreCoupon extends base_coupon_model_1.BaseCoupon {
|
|
18
19
|
couponType = enum_1.CouponType.INDIVIDUAL_STORE;
|
|
19
20
|
shop;
|
|
21
|
+
vendor;
|
|
20
22
|
isShopCoverExpenses;
|
|
21
23
|
firstOrderOnly;
|
|
22
24
|
}
|
|
@@ -25,6 +27,10 @@ __decorate([
|
|
|
25
27
|
(0, typegoose_1.prop)({ ref: () => shop_model_1.Shop }),
|
|
26
28
|
__metadata("design:type", Object)
|
|
27
29
|
], IndividualStoreCoupon.prototype, "shop", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typegoose_1.prop)({ ref: () => vendor_model_1.Vendor }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], IndividualStoreCoupon.prototype, "vendor", void 0);
|
|
28
34
|
__decorate([
|
|
29
35
|
(0, typegoose_1.prop)({ type: Boolean, default: true }),
|
|
30
36
|
__metadata("design:type", Boolean)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"individual-store-coupon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/individual-store-coupon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAkE;AAClE,8CAAqC;AACrC,iEAAuD;
|
|
1
|
+
{"version":3,"file":"individual-store-coupon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/individual-store-coupon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAkE;AAClE,8CAAqC;AACrC,iEAAuD;AACvD,kDAAyC;AAEzC,MAAa,qBAAsB,SAAQ,8BAAU;IAC7C,UAAU,GAAG,iBAAU,CAAC,gBAAyB,CAAC;IAGlD,IAAI,CAAa;IAGjB,MAAM,CAAe;IAGrB,mBAAmB,CAAW;IAG9B,cAAc,CAAW;CAChC;AAdD,sDAcC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;mDACF;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;qDACA;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;kEACF;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6DACR","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { CouponType, ItemType } from '../../../../utilities/enum';\nimport { Shop } from '../shop.model';\nimport { BaseCoupon } from '../base/base-coupon.model';\nimport { Vendor } from '../vendor.model';\n\nexport class IndividualStoreCoupon extends BaseCoupon {\n\tpublic couponType = CouponType.INDIVIDUAL_STORE as const;\n\n\t@prop({ ref: () => Shop })\n\tpublic shop?: Ref<Shop>;\n\n\t@prop({ ref: () => Vendor })\n\tpublic vendor?: Ref<Vendor>;\n\n\t@prop({ type: Boolean, default: true })\n\tpublic isShopCoverExpenses?: boolean;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic firstOrderOnly?: boolean;\n}\n"]}
|
|
@@ -3,9 +3,11 @@ import { CouponType, ItemType } from '../../../../utilities/enum';
|
|
|
3
3
|
import { BaseCoupon } from '../base/base-coupon.model';
|
|
4
4
|
import { Shop } from '../shop.model';
|
|
5
5
|
import { User } from '../user.model';
|
|
6
|
+
import { Vendor } from '../vendor.model';
|
|
6
7
|
export declare class IndividualUserCoupon extends BaseCoupon {
|
|
7
8
|
couponType: CouponType.INDIVIDUAL_USER;
|
|
8
9
|
users: Ref<User>[];
|
|
9
10
|
itemTypes?: ItemType[];
|
|
10
11
|
shops?: Ref<Shop>[];
|
|
12
|
+
vendors?: Ref<Vendor>[];
|
|
11
13
|
}
|
|
@@ -15,11 +15,13 @@ const enum_1 = require("../../../../utilities/enum");
|
|
|
15
15
|
const base_coupon_model_1 = require("../base/base-coupon.model");
|
|
16
16
|
const shop_model_1 = require("../shop.model");
|
|
17
17
|
const user_model_1 = require("../user.model");
|
|
18
|
+
const vendor_model_1 = require("../vendor.model");
|
|
18
19
|
class IndividualUserCoupon extends base_coupon_model_1.BaseCoupon {
|
|
19
20
|
couponType = enum_1.CouponType.INDIVIDUAL_USER;
|
|
20
21
|
users;
|
|
21
22
|
itemTypes;
|
|
22
23
|
shops;
|
|
24
|
+
vendors;
|
|
23
25
|
}
|
|
24
26
|
exports.IndividualUserCoupon = IndividualUserCoupon;
|
|
25
27
|
__decorate([
|
|
@@ -34,4 +36,8 @@ __decorate([
|
|
|
34
36
|
(0, typegoose_1.prop)({ ref: () => shop_model_1.Shop, default: [] }),
|
|
35
37
|
__metadata("design:type", Array)
|
|
36
38
|
], IndividualUserCoupon.prototype, "shops", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typegoose_1.prop)({ ref: () => vendor_model_1.Vendor, default: [] }),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], IndividualUserCoupon.prototype, "vendors", void 0);
|
|
37
43
|
//# sourceMappingURL=individual-user-coupon.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"individual-user-coupon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/individual-user-coupon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAkE;AAClE,iEAAuD;AACvD,8CAAqC;AACrC,8CAAqC;
|
|
1
|
+
{"version":3,"file":"individual-user-coupon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/individual-user-coupon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAkE;AAClE,iEAAuD;AACvD,8CAAqC;AACrC,8CAAqC;AACrC,kDAAyC;AAEzC,MAAa,oBAAqB,SAAQ,8BAAU;IAC5C,UAAU,GAAG,iBAAU,CAAC,eAAwB,CAAC;IAGjD,KAAK,CAAe;IAGpB,SAAS,CAAc;IAGvB,KAAK,CAAe;IAGpB,OAAO,CAAiB;CAC/B;AAdD,oDAcC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;mDACf;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;uDACxB;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;mDACZ;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;qDACV","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { CouponType, ItemType } from '../../../../utilities/enum';\nimport { BaseCoupon } from '../base/base-coupon.model';\nimport { Shop } from '../shop.model';\nimport { User } from '../user.model';\nimport { Vendor } from '../vendor.model';\n\nexport class IndividualUserCoupon extends BaseCoupon {\n\tpublic couponType = CouponType.INDIVIDUAL_USER as const;\n\n\t@prop({ required: true, ref: () => User })\n\tpublic users!: Ref<User>[];\n\n\t@prop({ type: [String], enum: ItemType, default: [] })\n\tpublic itemTypes?: ItemType[];\n\n\t@prop({ ref: () => Shop, default: [] })\n\tpublic shops?: Ref<Shop>[];\n\n\t@prop({ ref: () => Vendor, default: [] })\n\tpublic vendors?: Ref<Vendor>[];\n}\n"]}
|
|
@@ -2,10 +2,12 @@ import { Ref } from '@typegoose/typegoose';
|
|
|
2
2
|
import { CouponType, ItemType } from '../../../../utilities/enum';
|
|
3
3
|
import { Shop } from '../shop.model';
|
|
4
4
|
import { BaseCoupon } from '../base/base-coupon.model';
|
|
5
|
+
import { Vendor } from '../vendor.model';
|
|
5
6
|
export declare class ShopsCategoriesCoupon extends BaseCoupon {
|
|
6
7
|
couponType: CouponType.SHOPS_CATEGORIES;
|
|
7
8
|
itemTypes?: ItemType[];
|
|
8
9
|
shops?: Ref<Shop>[];
|
|
10
|
+
vendors?: Ref<Vendor>[];
|
|
9
11
|
isShopCoverExpenses?: boolean;
|
|
10
12
|
firstOrderOnly?: boolean;
|
|
11
13
|
}
|
|
@@ -14,10 +14,12 @@ const typegoose_1 = require("@typegoose/typegoose");
|
|
|
14
14
|
const enum_1 = require("../../../../utilities/enum");
|
|
15
15
|
const shop_model_1 = require("../shop.model");
|
|
16
16
|
const base_coupon_model_1 = require("../base/base-coupon.model");
|
|
17
|
+
const vendor_model_1 = require("../vendor.model");
|
|
17
18
|
class ShopsCategoriesCoupon extends base_coupon_model_1.BaseCoupon {
|
|
18
19
|
couponType = enum_1.CouponType.SHOPS_CATEGORIES;
|
|
19
20
|
itemTypes;
|
|
20
21
|
shops;
|
|
22
|
+
vendors;
|
|
21
23
|
isShopCoverExpenses;
|
|
22
24
|
firstOrderOnly;
|
|
23
25
|
}
|
|
@@ -30,6 +32,10 @@ __decorate([
|
|
|
30
32
|
(0, typegoose_1.prop)({ ref: () => shop_model_1.Shop }),
|
|
31
33
|
__metadata("design:type", Array)
|
|
32
34
|
], ShopsCategoriesCoupon.prototype, "shops", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typegoose_1.prop)({ ref: () => vendor_model_1.Vendor, default: [] }),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], ShopsCategoriesCoupon.prototype, "vendors", void 0);
|
|
33
39
|
__decorate([
|
|
34
40
|
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
35
41
|
__metadata("design:type", Boolean)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shops-categories-coupon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/shops-categories-coupon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAkE;AAClE,8CAAqC;AACrC,iEAAuD;
|
|
1
|
+
{"version":3,"file":"shops-categories-coupon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/shops-categories-coupon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAkE;AAClE,8CAAqC;AACrC,iEAAuD;AACvD,kDAAyC;AAEzC,MAAa,qBAAsB,SAAQ,8BAAU;IAC7C,UAAU,GAAG,iBAAU,CAAC,gBAAyB,CAAC;IAGlD,SAAS,CAAc;IAGvB,KAAK,CAAe;IAGpB,OAAO,CAAiB;IAGxB,mBAAmB,CAAW;IAG9B,cAAc,CAAW;CAChC;AAjBD,sDAiBC;AAbO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;wDACxB;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;oDACC;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;sDACV;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;kEACH;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6DACR","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { CouponType, ItemType } from '../../../../utilities/enum';\nimport { Shop } from '../shop.model';\nimport { BaseCoupon } from '../base/base-coupon.model';\nimport { Vendor } from '../vendor.model';\n\nexport class ShopsCategoriesCoupon extends BaseCoupon {\n\tpublic couponType = CouponType.SHOPS_CATEGORIES as const;\n\n\t@prop({ type: [String], enum: ItemType, default: [] })\n\tpublic itemTypes?: ItemType[];\n\n\t@prop({ ref: () => Shop })\n\tpublic shops?: Ref<Shop>[];\n\n\t@prop({ ref: () => Vendor, default: [] })\n\tpublic vendors?: Ref<Vendor>[];\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isShopCoverExpenses?: boolean;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic firstOrderOnly?: boolean;\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;
|
|
8
9
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
9
10
|
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;
|
|
7
8
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
8
9
|
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;
|
|
6
7
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
7
8
|
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;
|
|
8
9
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
9
10
|
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
|
@@ -26,8 +26,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
26
26
|
searchFields?: string[] | undefined;
|
|
27
27
|
} | undefined;
|
|
28
28
|
sort?: Record<string, 1 | -1> | undefined;
|
|
29
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
30
29
|
populate?: any;
|
|
30
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
31
31
|
query?: Record<string, any> | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
search?: {
|
|
@@ -36,8 +36,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
36
36
|
} | undefined;
|
|
37
37
|
sort?: Record<string, 1 | -1> | undefined;
|
|
38
38
|
size?: number | undefined;
|
|
39
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
40
39
|
populate?: any;
|
|
40
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
41
41
|
query?: Record<string, any> | undefined;
|
|
42
42
|
page?: number | undefined;
|
|
43
43
|
}>>;
|
|
@@ -736,12 +736,12 @@ export declare const GetByIdInputSchema: z.ZodObject<{
|
|
|
736
736
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
737
737
|
}, "strip", z.ZodTypeAny, {
|
|
738
738
|
_id: import("mongoose").Types.ObjectId;
|
|
739
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
740
739
|
populate?: any;
|
|
740
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
741
741
|
}, {
|
|
742
742
|
_id: string | import("mongoose").Types.ObjectId;
|
|
743
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
744
743
|
populate?: any;
|
|
744
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
745
745
|
}>;
|
|
746
746
|
export type GetByIdInputDTO = DTO<typeof GetByIdInputSchema>;
|
|
747
747
|
export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
@@ -754,12 +754,12 @@ export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
|
754
754
|
_id: import("mongoose").Types.ObjectId;
|
|
755
755
|
withAttributeHiddenItems: boolean;
|
|
756
756
|
withAddonsHiddenItems: boolean;
|
|
757
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
758
757
|
populate?: any;
|
|
758
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
759
759
|
}, {
|
|
760
760
|
_id: string | import("mongoose").Types.ObjectId;
|
|
761
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
762
761
|
populate?: any;
|
|
762
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
763
763
|
withAttributeHiddenItems?: boolean | undefined;
|
|
764
764
|
withAddonsHiddenItems?: boolean | undefined;
|
|
765
765
|
}>;
|
|
@@ -773,15 +773,15 @@ export declare const GetOrderByIdInputSchema: z.ZodObject<{
|
|
|
773
773
|
userOrderCompletionScope: z.ZodOptional<z.ZodNativeEnum<typeof UserOrderCompletionScope>>;
|
|
774
774
|
}, "strip", z.ZodTypeAny, {
|
|
775
775
|
_id: import("mongoose").Types.ObjectId;
|
|
776
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
777
776
|
populate?: any;
|
|
777
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
778
778
|
groupByCategories?: boolean | undefined;
|
|
779
779
|
getParentCategory?: boolean | undefined;
|
|
780
780
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
781
781
|
}, {
|
|
782
782
|
_id: string | import("mongoose").Types.ObjectId;
|
|
783
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
784
783
|
populate?: any;
|
|
784
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
785
785
|
groupByCategories?: boolean | undefined;
|
|
786
786
|
getParentCategory?: boolean | undefined;
|
|
787
787
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
@@ -791,11 +791,11 @@ export declare const GetByTokenInputSchema: z.ZodOptional<z.ZodObject<{
|
|
|
791
791
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
792
792
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
793
793
|
}, "strip", z.ZodTypeAny, {
|
|
794
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
795
794
|
populate?: any;
|
|
796
|
-
}, {
|
|
797
795
|
select?: Record<string, 0 | 1> | undefined;
|
|
796
|
+
}, {
|
|
798
797
|
populate?: any;
|
|
798
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
799
799
|
}>>;
|
|
800
800
|
export type GetByTokenInputDTO = DTO<typeof GetByTokenInputSchema>;
|
|
801
801
|
export declare const GetOneQuerySchema: z.ZodObject<{
|
|
@@ -803,12 +803,12 @@ export declare const GetOneQuerySchema: z.ZodObject<{
|
|
|
803
803
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
804
804
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
805
805
|
}, "strip", z.ZodTypeAny, {
|
|
806
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
807
806
|
populate?: any;
|
|
807
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
808
808
|
query?: Record<string, any> | undefined;
|
|
809
809
|
}, {
|
|
810
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
811
810
|
populate?: any;
|
|
811
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
812
812
|
query?: Record<string, any> | undefined;
|
|
813
813
|
}>;
|
|
814
814
|
export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
|