@lyxa.ai/core 1.0.19 → 1.0.20
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/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/libraries/mongo/models/admin-access-control.model.js +13 -2
- package/dist/libraries/mongo/models/admin-access-control.model.js.map +1 -1
- package/dist/libraries/mongo/models/areeba-card.model.d.ts +17 -0
- package/dist/libraries/mongo/models/areeba-card.model.js +73 -0
- package/dist/libraries/mongo/models/areeba-card.model.js.map +1 -0
- package/dist/libraries/mongo/models/attribute.model.d.ts +1 -1
- package/dist/libraries/mongo/models/attribute.model.js +3 -2
- package/dist/libraries/mongo/models/attribute.model.js.map +1 -1
- package/dist/libraries/mongo/models/auth-identity.model.d.ts +8 -0
- package/dist/libraries/mongo/models/auth-identity.model.js +33 -0
- package/dist/libraries/mongo/models/auth-identity.model.js.map +1 -0
- package/dist/libraries/mongo/models/base/base-coupon.model.js.map +1 -1
- package/dist/libraries/mongo/models/card.model.d.ts +24 -0
- package/dist/libraries/mongo/models/card.model.js +109 -0
- package/dist/libraries/mongo/models/card.model.js.map +1 -0
- package/dist/libraries/mongo/models/{cart-perticipant.model.d.ts → cart-participant.model.d.ts} +3 -8
- package/dist/libraries/mongo/models/{cart-perticipant.model.js → cart-participant.model.js} +5 -28
- package/dist/libraries/mongo/models/cart-participant.model.js.map +1 -0
- package/dist/libraries/mongo/models/cart.model.d.ts +1 -2
- package/dist/libraries/mongo/models/cart.model.js +3 -4
- package/dist/libraries/mongo/models/cart.model.js.map +1 -1
- package/dist/libraries/mongo/models/category.model.d.ts +1 -2
- package/dist/libraries/mongo/models/category.model.js +2 -7
- package/dist/libraries/mongo/models/category.model.js.map +1 -1
- package/dist/libraries/mongo/models/core-auth-identity.model.d.ts +1 -2
- package/dist/libraries/mongo/models/core-auth-identity.model.js +1 -3
- package/dist/libraries/mongo/models/core-auth-identity.model.js.map +1 -1
- package/dist/libraries/mongo/models/core-user.model.d.ts +0 -2
- package/dist/libraries/mongo/models/core-user.model.js +2 -4
- package/dist/libraries/mongo/models/core-user.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/addon.model.d.ts +8 -0
- package/dist/libraries/mongo/models/embedded/addon.model.js +34 -0
- package/dist/libraries/mongo/models/embedded/addon.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/attribute-item.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/attribute-map.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/business-development-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/charge-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/charge.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/courier-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/currency-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/currency.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/featured-item.mode.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/otp-fields.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/package.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/parent-document.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/payment-infromation.model.d.ts +6 -0
- package/dist/libraries/mongo/models/embedded/payment-infromation.model.js +38 -0
- package/dist/libraries/mongo/models/embedded/payment-infromation.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/payout-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/portion.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/portion.model.js +32 -0
- package/dist/libraries/mongo/models/embedded/portion.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/price.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/product-nutrition.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/referral-discount-config.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/rider-equipment.model.d.ts +4 -0
- package/dist/libraries/mongo/models/embedded/rider-equipment.model.js +27 -0
- package/dist/libraries/mongo/models/embedded/rider-equipment.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/rider-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/service-fee-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/shop-document.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/subscription-summary.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/zone-geometry.mode.d.ts +2 -1
- package/dist/libraries/mongo/models/embedded/zone-geometry.mode.js +2 -1
- package/dist/libraries/mongo/models/embedded/zone-geometry.mode.js.map +1 -1
- package/dist/libraries/mongo/models/faq.model.d.ts +0 -1
- package/dist/libraries/mongo/models/faq.model.js +0 -5
- package/dist/libraries/mongo/models/faq.model.js.map +1 -1
- package/dist/libraries/mongo/models/index.d.ts +46 -29
- package/dist/libraries/mongo/models/index.js +48 -31
- package/dist/libraries/mongo/models/index.js.map +1 -1
- package/dist/libraries/mongo/models/{cart-lineitem.model.d.ts → line-item.model.d.ts} +3 -14
- package/dist/libraries/mongo/models/{cart-lineitem.model.js → line-item.model.js} +7 -44
- package/dist/libraries/mongo/models/line-item.model.js.map +1 -0
- package/dist/libraries/mongo/models/order.model.d.ts +2 -1
- package/dist/libraries/mongo/models/order.model.js +30 -2
- package/dist/libraries/mongo/models/order.model.js.map +1 -1
- package/dist/libraries/mongo/models/payout.model.js.map +1 -1
- package/dist/libraries/mongo/models/product.model.js +1 -3
- package/dist/libraries/mongo/models/product.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/apple-auth-identity.model.d.ts +6 -0
- package/dist/libraries/mongo/models/providers/apple-auth-identity.model.js +25 -0
- package/dist/libraries/mongo/models/providers/apple-auth-identity.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/areeba-card.model.d.ts +14 -0
- package/dist/libraries/mongo/models/providers/areeba-card.model.js +69 -0
- package/dist/libraries/mongo/models/providers/areeba-card.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/core-apple-auth-identity.model.d.ts +0 -2
- package/dist/libraries/mongo/models/providers/core-apple-auth-identity.model.js +1 -4
- package/dist/libraries/mongo/models/providers/core-apple-auth-identity.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/core-email-auth-identity.model.d.ts +0 -2
- package/dist/libraries/mongo/models/providers/core-email-auth-identity.model.js +1 -4
- package/dist/libraries/mongo/models/providers/core-email-auth-identity.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/core-google-auth-identity.model.d.ts +0 -2
- package/dist/libraries/mongo/models/providers/core-google-auth-identity.model.js +1 -4
- package/dist/libraries/mongo/models/providers/core-google-auth-identity.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/core-phone-auth-identity.model.d.ts +0 -2
- package/dist/libraries/mongo/models/providers/core-phone-auth-identity.model.js +1 -4
- package/dist/libraries/mongo/models/providers/core-phone-auth-identity.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/email-auth-identity.model.d.ts +9 -0
- package/dist/libraries/mongo/models/providers/email-auth-identity.model.js +36 -0
- package/dist/libraries/mongo/models/providers/email-auth-identity.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/google-auth-identity.model.d.ts +6 -0
- package/dist/libraries/mongo/models/providers/google-auth-identity.model.js +25 -0
- package/dist/libraries/mongo/models/providers/google-auth-identity.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/phone-auth-identity.model.d.ts +8 -0
- package/dist/libraries/mongo/models/providers/phone-auth-identity.model.js +31 -0
- package/dist/libraries/mongo/models/providers/phone-auth-identity.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/referral-code-coupon.mode.d.ts +10 -0
- package/dist/libraries/mongo/models/providers/referral-code-coupon.mode.js +28 -0
- package/dist/libraries/mongo/models/providers/referral-code-coupon.mode.js.map +1 -0
- package/dist/libraries/mongo/models/request-area.model.d.ts +2 -2
- package/dist/libraries/mongo/models/request-area.model.js +2 -2
- package/dist/libraries/mongo/models/request-area.model.js.map +1 -1
- package/dist/libraries/mongo/models/rider-timeout.model.d.ts +10 -0
- package/dist/libraries/mongo/models/rider-timeout.model.js +47 -0
- package/dist/libraries/mongo/models/rider-timeout.model.js.map +1 -0
- package/dist/libraries/mongo/models/rider-tracking.model.d.ts +10 -0
- package/dist/libraries/mongo/models/rider-tracking.model.js +47 -0
- package/dist/libraries/mongo/models/rider-tracking.model.js.map +1 -0
- package/dist/libraries/mongo/models/rider.model.d.ts +50 -1
- package/dist/libraries/mongo/models/rider.model.js +238 -2
- package/dist/libraries/mongo/models/rider.model.js.map +1 -1
- package/dist/libraries/mongo/models/role.model.ts.d.ts +8 -0
- package/dist/libraries/mongo/models/role.model.ts.js +37 -0
- package/dist/libraries/mongo/models/role.model.ts.js.map +1 -0
- package/dist/libraries/mongo/models/shared/address.model.d.ts +2 -3
- package/dist/libraries/mongo/models/shared/address.model.js +10 -12
- package/dist/libraries/mongo/models/shared/address.model.js.map +1 -1
- package/dist/libraries/mongo/models/shared/duration.model.js.map +1 -1
- package/dist/libraries/mongo/models/shared/geo-location.model.d.ts +4 -0
- package/dist/libraries/mongo/models/shared/geo-location.model.js +27 -0
- package/dist/libraries/mongo/models/shared/geo-location.model.js.map +1 -0
- package/dist/libraries/mongo/models/shop-category.model.d.ts +1 -0
- package/dist/libraries/mongo/models/shop-category.model.js +7 -1
- package/dist/libraries/mongo/models/shop-category.model.js.map +1 -1
- package/dist/libraries/mongo/models/shop-review.d.ts +7 -0
- package/dist/libraries/mongo/models/shop-review.js +28 -0
- package/dist/libraries/mongo/models/shop-review.js.map +1 -0
- package/dist/libraries/mongo/models/transaction.model.js.map +1 -1
- package/dist/libraries/mongo/models/user.model.d.ts +30 -0
- package/dist/libraries/mongo/models/user.model.js +129 -0
- package/dist/libraries/mongo/models/user.model.js.map +1 -0
- package/dist/libraries/mongo/models/zone.model..d.ts +15 -0
- package/dist/libraries/mongo/models/zone.model..js +64 -0
- package/dist/libraries/mongo/models/zone.model..js.map +1 -0
- package/dist/libraries/mongo/models/zone.model.d.ts +5 -5
- package/dist/libraries/mongo/models/zone.model.js +11 -11
- package/dist/libraries/mongo/models/zone.model.js.map +1 -1
- package/dist/libraries/mongo/plugins/soft-delete-plugin.d.ts +8 -5
- package/dist/libraries/mongo/plugins/soft-delete-plugin.js +28 -0
- package/dist/libraries/mongo/plugins/soft-delete-plugin.js.map +1 -1
- package/dist/utilities/enum.d.ts +36 -4
- package/dist/utilities/enum.js +47 -6
- package/dist/utilities/enum.js.map +1 -1
- package/dist/utilities/pagination.d.ts +1 -0
- package/dist/utilities/pagination.js +4 -1
- package/dist/utilities/pagination.js.map +1 -1
- package/dist/utilities/response.js +1 -1
- package/dist/utilities/response.js.map +1 -1
- package/dist/utilities/transformers.d.ts +14 -3
- package/dist/utilities/transformers.js +49 -6
- package/dist/utilities/transformers.js.map +1 -1
- package/dist/utilities/validation/common-validation.d.ts +230 -23
- package/dist/utilities/validation/common-validation.js +25 -7
- package/dist/utilities/validation/common-validation.js.map +1 -1
- package/dist/utilities/validation/global-validation.d.ts +9 -0
- package/dist/utilities/validation/global-validation.js +1 -1
- package/dist/utilities/validation/global-validation.js.map +1 -1
- package/package.json +2 -2
- package/dist/libraries/mongo/models/cart-lineitem.model.js.map +0 -1
- package/dist/libraries/mongo/models/cart-perticipant.model.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.model.js","sourceRoot":"/","sources":["libraries/mongo/models/product.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiE;AACjE,4EAAqE;AACrE,kDAA0F;AAC1F,gFAAsE;
|
|
1
|
+
{"version":3,"file":"product.model.js","sourceRoot":"/","sources":["libraries/mongo/models/product.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiE;AACjE,4EAAqE;AACrE,kDAA0F;AAC1F,gFAAsE;AAU/D,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,2BAAU;IAE/B,IAAI,CAAU;IAGd,OAAO,CAAU;IAGjB,QAAQ,CAAY;IAGpB,SAAS,CAAa;IAGtB,MAAM,CAAY;IAGlB,MAAM,CAAU;IAGhB,oBAAoB,CAAU;IAG9B,oBAAoB,CAAU;IAG9B,gBAAgB,CAAU;IAG1B,iBAAiB,CAAU;IAG3B,UAAU,CAAsB;IAGhC,YAAY,CAAwB;IAGpC,kBAAkB,CAAU;IAG5B,sBAAsB,CAAU;CACvC,CAAA;AA1CY,0BAAO;AAEZ;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACC;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAQ,EAAE,CAAC;;yCAC5B;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;0CACX;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;uCAChB;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;uCACtC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;qDACM;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACc;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;iDACE;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;kDACG;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,0CAAgB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;2CACT;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,yBAAkB,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;6CACrB;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACY;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACgB;kBAzC3B,OAAO;IARnB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,CAAC;IAC3D,IAAA,iBAAK,EACL,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,EACxB;QACC,MAAM,EAAE,IAAI;QACZ,uBAAuB,EAAE,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC,eAAQ,CAAC,OAAO,EAAE,eAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;KACtG,CACD;GACY,OAAO,CA0CnB","sourcesContent":["import { Index, modelOptions, prop } from '@typegoose/typegoose';\r\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\r\nimport { FoodGroup, ItemType, ProductDietaryType, Status } from '../../../utilities/enum';\r\nimport { ProductNutrition } from './embedded/product-nutrition.model';\r\n\r\n@modelOptions({ schemaOptions: { collection: 'products' } })\r\n@Index(\r\n\t{ name: 1, itemType: 1 },\r\n\t{\r\n\t\tunique: true,\r\n\t\tpartialFilterExpression: { itemType: { $in: [ItemType.GROCERY, ItemType.PHARMACY] }, deletedAt: null },\r\n\t}\r\n)\r\nexport class Product extends TimeStamps {\r\n\t@prop({ required: true, type: String })\r\n\tpublic name!: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic barcode?: string;\r\n\r\n\t@prop({ required: true, type: String, enum: ItemType })\r\n\tpublic itemType!: ItemType;\r\n\r\n\t@prop({ type: String, enum: FoodGroup })\r\n\tpublic foodGroup?: FoodGroup;\r\n\r\n\t@prop({ required: true, type: [String] })\r\n\tpublic images!: string[];\r\n\r\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\r\n\tpublic status?: Status;\r\n\r\n\t@prop({ type: Number, min: 0 })\r\n\tpublic nutritionServingSize?: number;\r\n\r\n\t@prop({ type: String })\r\n\tpublic nutritionServingUnit?: string;\r\n\r\n\t@prop({ type: Number, min: 0 })\r\n\tpublic nutritionPerUnit?: number;\r\n\r\n\t@prop({ type: Number, min: 0 })\r\n\tpublic nutritionCalories?: number;\r\n\r\n\t@prop({ type: [ProductNutrition], default: [] })\r\n\tpublic nutritions?: ProductNutrition[];\r\n\r\n\t@prop({ type: [String], enum: ProductDietaryType, default: [] })\r\n\tpublic dietaryTypes?: ProductDietaryType[];\r\n\r\n\t@prop({ type: Number })\r\n\tpublic storingTemperature?: number;\r\n\r\n\t@prop({ type: String })\r\n\tpublic storingTemperatureUnit?: string;\r\n}\r\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { AuthIdentity } from '../auth-identity.model';
|
|
3
|
+
export declare class AppleAuthIdentity extends AuthIdentity {
|
|
4
|
+
token: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const CoreAppleAuthIdentityModel: ReturnModelType<typeof AppleAuthIdentity>;
|
|
@@ -0,0 +1,25 @@
|
|
|
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.CoreAppleAuthIdentityModel = exports.AppleAuthIdentity = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const auth_identity_model_1 = require("../auth-identity.model");
|
|
15
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
16
|
+
class AppleAuthIdentity extends auth_identity_model_1.AuthIdentity {
|
|
17
|
+
token;
|
|
18
|
+
}
|
|
19
|
+
exports.AppleAuthIdentity = AppleAuthIdentity;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], AppleAuthIdentity.prototype, "token", void 0);
|
|
24
|
+
exports.CoreAppleAuthIdentityModel = (0, typegoose_1.getDiscriminatorModelForClass)(auth_identity_model_1.AuthIdentityModel, AppleAuthIdentity, enum_1.AuthIdentityType.APPLE);
|
|
25
|
+
//# sourceMappingURL=apple-auth-identity.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apple-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/apple-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4F;AAC5F,gEAAyE;AACzE,qDAA8D;AAE9D,MAAa,iBAAkB,SAAQ,kCAAY;IAE3C,KAAK,CAAU;CACtB;AAHD,8CAGC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACjB;AAGV,QAAA,0BAA0B,GACtC,IAAA,yCAA6B,EAAC,uCAAiB,EAAE,iBAAiB,EAAE,uBAAgB,CAAC,KAAK,CAAC,CAAC","sourcesContent":["import { getDiscriminatorModelForClass, prop, ReturnModelType } from '@typegoose/typegoose';\r\nimport { AuthIdentity, AuthIdentityModel } from '../auth-identity.model';\r\nimport { AuthIdentityType } from '../../../../utilities/enum';\r\n\r\nexport class AppleAuthIdentity extends AuthIdentity {\r\n\t@prop({ required: true, type: String })\r\n\tpublic token!: string;\r\n}\r\n\r\nexport const CoreAppleAuthIdentityModel: ReturnModelType<typeof AppleAuthIdentity> =\r\n\tgetDiscriminatorModelForClass(AuthIdentityModel, AppleAuthIdentity, AuthIdentityType.APPLE);\r\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Card } from '../card.model';
|
|
2
|
+
import { AreebaCardStatus } from '../../../../utilities/enum';
|
|
3
|
+
export declare class AreebaCard extends Card {
|
|
4
|
+
orderId?: string;
|
|
5
|
+
sessionId?: string;
|
|
6
|
+
brand?: string;
|
|
7
|
+
expiry?: string;
|
|
8
|
+
fundingMethod?: string;
|
|
9
|
+
nameOnCard?: string;
|
|
10
|
+
number?: string;
|
|
11
|
+
scheme?: string;
|
|
12
|
+
token?: string;
|
|
13
|
+
status?: AreebaCardStatus;
|
|
14
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.AreebaCard = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const card_model_1 = require("../card.model");
|
|
15
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
16
|
+
class AreebaCard extends card_model_1.Card {
|
|
17
|
+
orderId;
|
|
18
|
+
sessionId;
|
|
19
|
+
brand;
|
|
20
|
+
expiry;
|
|
21
|
+
fundingMethod;
|
|
22
|
+
nameOnCard;
|
|
23
|
+
number;
|
|
24
|
+
scheme;
|
|
25
|
+
token;
|
|
26
|
+
status;
|
|
27
|
+
}
|
|
28
|
+
exports.AreebaCard = AreebaCard;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], AreebaCard.prototype, "orderId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], AreebaCard.prototype, "sessionId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], AreebaCard.prototype, "brand", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], AreebaCard.prototype, "expiry", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], AreebaCard.prototype, "fundingMethod", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], AreebaCard.prototype, "nameOnCard", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], AreebaCard.prototype, "number", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], AreebaCard.prototype, "scheme", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], AreebaCard.prototype, "token", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.AreebaCardStatus, default: enum_1.AreebaCardStatus.PENDING }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], AreebaCard.prototype, "status", void 0);
|
|
69
|
+
//# sourceMappingURL=areeba-card.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"areeba-card.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/areeba-card.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,8CAAqC;AACrC,qDAA8D;AAE9D,MAAa,UAAW,SAAQ,iBAAI;IAE5B,OAAO,CAAU;IAGjB,SAAS,CAAU;IAGnB,KAAK,CAAU;IAGf,MAAM,CAAU;IAGhB,aAAa,CAAU;IAGvB,UAAU,CAAU;IAGpB,MAAM,CAAU;IAGhB,MAAM,CAAU;IAGhB,KAAK,CAAU;IAGf,MAAM,CAAoB;CACjC;AA9BD,gCA8BC;AA5BO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CACC;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACG;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACA;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACO;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACI;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACA;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACA;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAgB,EAAE,OAAO,EAAE,uBAAgB,CAAC,OAAO,EAAE,CAAC;;0CACjD","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { Card } from '../card.model';\r\nimport { AreebaCardStatus } from '../../../../utilities/enum';\r\n\r\nexport class AreebaCard extends Card {\r\n\t@prop({ type: String })\r\n\tpublic orderId?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic sessionId?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic brand?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic expiry?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic fundingMethod?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic nameOnCard?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic number?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic scheme?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic token?: string;\r\n\r\n\t@prop({ type: String, enum: AreebaCardStatus, default: AreebaCardStatus.PENDING })\r\n\tpublic status?: AreebaCardStatus;\r\n}\r\n"]}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ReturnModelType } from '@typegoose/typegoose';
|
|
2
1
|
import { CoreAuthIdentity } from '../core-auth-identity.model';
|
|
3
2
|
export declare class CoreAppleAuthIdentity extends CoreAuthIdentity {
|
|
4
3
|
token: string;
|
|
5
4
|
}
|
|
6
|
-
export declare const CoreAppleAuthIdentityModel: ReturnModelType<typeof CoreAppleAuthIdentity>;
|
|
@@ -9,11 +9,9 @@ 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.
|
|
12
|
+
exports.CoreAppleAuthIdentity = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const core_auth_identity_model_1 = require("../core-auth-identity.model");
|
|
15
|
-
const enum_1 = require("../../../../utilities/enum");
|
|
16
|
-
const mongo_1 = require("../../../mongo");
|
|
17
15
|
class CoreAppleAuthIdentity extends core_auth_identity_model_1.CoreAuthIdentity {
|
|
18
16
|
token;
|
|
19
17
|
}
|
|
@@ -22,5 +20,4 @@ __decorate([
|
|
|
22
20
|
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
23
21
|
__metadata("design:type", String)
|
|
24
22
|
], CoreAppleAuthIdentity.prototype, "token", void 0);
|
|
25
|
-
exports.CoreAppleAuthIdentityModel = (0, mongo_1.createGlobalDiscriminatorModel)(core_auth_identity_model_1.CoreAuthIdentityModel, CoreAppleAuthIdentity, enum_1.CoreAuthIdentityType.APPLE);
|
|
26
23
|
//# sourceMappingURL=core-apple-auth-identity.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-apple-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/core-apple-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"core-apple-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/core-apple-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,0EAA+D;AAE/D,MAAa,qBAAsB,SAAQ,2CAAgB;IAEnD,KAAK,CAAU;CACtB;AAHD,sDAGC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACjB","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { CoreAuthIdentity } from '../core-auth-identity.model';\r\n\r\nexport class CoreAppleAuthIdentity extends CoreAuthIdentity {\r\n\t@prop({ required: true, type: String })\r\n\tpublic token!: string;\r\n}\r\n"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ReturnModelType } from '@typegoose/typegoose';
|
|
2
1
|
import { CoreAuthIdentity } from '../core-auth-identity.model';
|
|
3
2
|
import { OTPFields } from '../embedded/otp-fields.model';
|
|
4
3
|
export declare class CoreEmailAuthIdentity extends CoreAuthIdentity {
|
|
@@ -6,4 +5,3 @@ export declare class CoreEmailAuthIdentity extends CoreAuthIdentity {
|
|
|
6
5
|
password: string;
|
|
7
6
|
otp: OTPFields;
|
|
8
7
|
}
|
|
9
|
-
export declare const CoreEmailAuthIdentityModel: ReturnModelType<typeof CoreEmailAuthIdentity>;
|
|
@@ -9,12 +9,10 @@ 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.
|
|
12
|
+
exports.CoreEmailAuthIdentity = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const core_auth_identity_model_1 = require("../core-auth-identity.model");
|
|
15
15
|
const otp_fields_model_1 = require("../embedded/otp-fields.model");
|
|
16
|
-
const enum_1 = require("../../../../utilities/enum");
|
|
17
|
-
const mongo_1 = require("../../../mongo");
|
|
18
16
|
class CoreEmailAuthIdentity extends core_auth_identity_model_1.CoreAuthIdentity {
|
|
19
17
|
email;
|
|
20
18
|
password;
|
|
@@ -33,5 +31,4 @@ __decorate([
|
|
|
33
31
|
(0, typegoose_1.prop)({ required: true, type: otp_fields_model_1.OTPFields }),
|
|
34
32
|
__metadata("design:type", otp_fields_model_1.OTPFields)
|
|
35
33
|
], CoreEmailAuthIdentity.prototype, "otp", void 0);
|
|
36
|
-
exports.CoreEmailAuthIdentityModel = (0, mongo_1.createGlobalDiscriminatorModel)(core_auth_identity_model_1.CoreAuthIdentityModel, CoreEmailAuthIdentity, enum_1.CoreAuthIdentityType.EMAIL);
|
|
37
34
|
//# sourceMappingURL=core-email-auth-identity.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-email-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/core-email-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"core-email-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/core-email-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,0EAA+D;AAC/D,mEAAyD;AAEzD,MAAa,qBAAsB,SAAQ,2CAAgB;IAEnD,KAAK,CAAU;IAGf,QAAQ,CAAU;IAGlB,GAAG,CAAa;CACvB;AATD,sDASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,4BAAS,EAAE,CAAC;8BAC7B,4BAAS;kDAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { CoreAuthIdentity } from '../core-auth-identity.model';\r\nimport { OTPFields } from '../embedded/otp-fields.model';\r\n\r\nexport class CoreEmailAuthIdentity extends CoreAuthIdentity {\r\n\t@prop({ required: true, type: String })\r\n\tpublic email!: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic password!: string;\r\n\r\n\t@prop({ required: true, type: OTPFields })\r\n\tpublic otp!: OTPFields;\r\n}\r\n"]}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ReturnModelType } from '@typegoose/typegoose';
|
|
2
1
|
import { CoreAuthIdentity } from '../core-auth-identity.model';
|
|
3
2
|
export declare class CoreGoogleAuthIdentity extends CoreAuthIdentity {
|
|
4
3
|
token: string;
|
|
5
4
|
}
|
|
6
|
-
export declare const CoreGoogleAuthIdentityModel: ReturnModelType<typeof CoreGoogleAuthIdentity>;
|
|
@@ -9,11 +9,9 @@ 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.
|
|
12
|
+
exports.CoreGoogleAuthIdentity = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const core_auth_identity_model_1 = require("../core-auth-identity.model");
|
|
15
|
-
const enum_1 = require("../../../../utilities/enum");
|
|
16
|
-
const mongo_1 = require("../../../mongo");
|
|
17
15
|
class CoreGoogleAuthIdentity extends core_auth_identity_model_1.CoreAuthIdentity {
|
|
18
16
|
token;
|
|
19
17
|
}
|
|
@@ -22,5 +20,4 @@ __decorate([
|
|
|
22
20
|
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
23
21
|
__metadata("design:type", String)
|
|
24
22
|
], CoreGoogleAuthIdentity.prototype, "token", void 0);
|
|
25
|
-
exports.CoreGoogleAuthIdentityModel = (0, mongo_1.createGlobalDiscriminatorModel)(core_auth_identity_model_1.CoreAuthIdentityModel, CoreGoogleAuthIdentity, enum_1.CoreAuthIdentityType.GOOGLE);
|
|
26
23
|
//# sourceMappingURL=core-google-auth-identity.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-google-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/core-google-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"core-google-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/core-google-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,0EAA+D;AAE/D,MAAa,sBAAuB,SAAQ,2CAAgB;IAEpD,KAAK,CAAU;CACtB;AAHD,wDAGC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACjB","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { CoreAuthIdentity } from '../core-auth-identity.model';\r\n\r\nexport class CoreGoogleAuthIdentity extends CoreAuthIdentity {\r\n\t@prop({ required: true, type: String })\r\n\tpublic token!: string;\r\n}\r\n"]}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { ReturnModelType } from '@typegoose/typegoose';
|
|
2
1
|
import { CoreAuthIdentity } from '../core-auth-identity.model';
|
|
3
2
|
import { OTPFields } from '../embedded/otp-fields.model';
|
|
4
3
|
export declare class CorePhoneAuthIdentity extends CoreAuthIdentity {
|
|
5
4
|
phoneNumber: string;
|
|
6
5
|
otp: OTPFields;
|
|
7
6
|
}
|
|
8
|
-
export declare const CorePhoneAuthIdentityModel: ReturnModelType<typeof CorePhoneAuthIdentity>;
|
|
@@ -9,12 +9,10 @@ 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.
|
|
12
|
+
exports.CorePhoneAuthIdentity = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const core_auth_identity_model_1 = require("../core-auth-identity.model");
|
|
15
15
|
const otp_fields_model_1 = require("../embedded/otp-fields.model");
|
|
16
|
-
const enum_1 = require("../../../../utilities/enum");
|
|
17
|
-
const mongo_1 = require("../../../mongo");
|
|
18
16
|
class CorePhoneAuthIdentity extends core_auth_identity_model_1.CoreAuthIdentity {
|
|
19
17
|
phoneNumber;
|
|
20
18
|
otp;
|
|
@@ -28,5 +26,4 @@ __decorate([
|
|
|
28
26
|
(0, typegoose_1.prop)({ required: true, type: otp_fields_model_1.OTPFields }),
|
|
29
27
|
__metadata("design:type", otp_fields_model_1.OTPFields)
|
|
30
28
|
], CorePhoneAuthIdentity.prototype, "otp", void 0);
|
|
31
|
-
exports.CorePhoneAuthIdentityModel = (0, mongo_1.createGlobalDiscriminatorModel)(core_auth_identity_model_1.CoreAuthIdentityModel, CorePhoneAuthIdentity, enum_1.CoreAuthIdentityType.PHONE);
|
|
32
29
|
//# sourceMappingURL=core-phone-auth-identity.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-phone-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/core-phone-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"core-phone-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/core-phone-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,0EAA+D;AAC/D,mEAAyD;AAEzD,MAAa,qBAAsB,SAAQ,2CAAgB;IAEnD,WAAW,CAAU;IAGrB,GAAG,CAAa;CACvB;AAND,sDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0DACX;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,4BAAS,EAAE,CAAC;8BAC7B,4BAAS;kDAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { CoreAuthIdentity } from '../core-auth-identity.model';\r\nimport { OTPFields } from '../embedded/otp-fields.model';\r\n\r\nexport class CorePhoneAuthIdentity extends CoreAuthIdentity {\r\n\t@prop({ required: true, type: String })\r\n\tpublic phoneNumber!: string;\r\n\r\n\t@prop({ required: true, type: OTPFields })\r\n\tpublic otp!: OTPFields;\r\n}\r\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { AuthIdentity } from '../auth-identity.model';
|
|
3
|
+
import { OTPFields } from '../embedded/otp-fields.model';
|
|
4
|
+
export declare class EmailAuthIdentity extends AuthIdentity {
|
|
5
|
+
email: string;
|
|
6
|
+
password: string;
|
|
7
|
+
otp: OTPFields;
|
|
8
|
+
}
|
|
9
|
+
export declare const EmailAuthIdentityModel: ReturnModelType<typeof EmailAuthIdentity>;
|
|
@@ -0,0 +1,36 @@
|
|
|
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.EmailAuthIdentityModel = exports.EmailAuthIdentity = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const auth_identity_model_1 = require("../auth-identity.model");
|
|
15
|
+
const otp_fields_model_1 = require("../embedded/otp-fields.model");
|
|
16
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
17
|
+
class EmailAuthIdentity extends auth_identity_model_1.AuthIdentity {
|
|
18
|
+
email;
|
|
19
|
+
password;
|
|
20
|
+
otp;
|
|
21
|
+
}
|
|
22
|
+
exports.EmailAuthIdentity = EmailAuthIdentity;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], EmailAuthIdentity.prototype, "email", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], EmailAuthIdentity.prototype, "password", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typegoose_1.prop)({ required: true, type: otp_fields_model_1.OTPFields }),
|
|
33
|
+
__metadata("design:type", otp_fields_model_1.OTPFields)
|
|
34
|
+
], EmailAuthIdentity.prototype, "otp", void 0);
|
|
35
|
+
exports.EmailAuthIdentityModel = (0, typegoose_1.getDiscriminatorModelForClass)(auth_identity_model_1.AuthIdentityModel, EmailAuthIdentity, enum_1.AuthIdentityType.EMAIL);
|
|
36
|
+
//# sourceMappingURL=email-auth-identity.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/email-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4F;AAC5F,gEAAyE;AACzE,mEAAyD;AACzD,qDAA8D;AAE9D,MAAa,iBAAkB,SAAQ,kCAAY;IAE3C,KAAK,CAAU;IAGf,QAAQ,CAAU;IAGlB,GAAG,CAAa;CACvB;AATD,8CASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,4BAAS,EAAE,CAAC;8BAC7B,4BAAS;8CAAC;AAGX,QAAA,sBAAsB,GAClC,IAAA,yCAA6B,EAAC,uCAAiB,EAAE,iBAAiB,EAAE,uBAAgB,CAAC,KAAK,CAAC,CAAC","sourcesContent":["import { getDiscriminatorModelForClass, prop, ReturnModelType } from '@typegoose/typegoose';\r\nimport { AuthIdentity, AuthIdentityModel } from '../auth-identity.model';\r\nimport { OTPFields } from '../embedded/otp-fields.model';\r\nimport { AuthIdentityType } from '../../../../utilities/enum';\r\n\r\nexport class EmailAuthIdentity extends AuthIdentity {\r\n\t@prop({ required: true, type: String })\r\n\tpublic email!: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic password!: string;\r\n\r\n\t@prop({ required: true, type: OTPFields })\r\n\tpublic otp!: OTPFields;\r\n}\r\n\r\nexport const EmailAuthIdentityModel: ReturnModelType<typeof EmailAuthIdentity> =\r\n\tgetDiscriminatorModelForClass(AuthIdentityModel, EmailAuthIdentity, AuthIdentityType.EMAIL);\r\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { AuthIdentity } from '../auth-identity.model';
|
|
3
|
+
export declare class GoogleAuthIdentity extends AuthIdentity {
|
|
4
|
+
token: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const GoogleAuthIdentityModel: ReturnModelType<typeof GoogleAuthIdentity>;
|
|
@@ -0,0 +1,25 @@
|
|
|
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.GoogleAuthIdentityModel = exports.GoogleAuthIdentity = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const auth_identity_model_1 = require("../auth-identity.model");
|
|
15
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
16
|
+
class GoogleAuthIdentity extends auth_identity_model_1.AuthIdentity {
|
|
17
|
+
token;
|
|
18
|
+
}
|
|
19
|
+
exports.GoogleAuthIdentity = GoogleAuthIdentity;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], GoogleAuthIdentity.prototype, "token", void 0);
|
|
24
|
+
exports.GoogleAuthIdentityModel = (0, typegoose_1.getDiscriminatorModelForClass)(auth_identity_model_1.AuthIdentityModel, GoogleAuthIdentity, enum_1.AuthIdentityType.GOOGLE);
|
|
25
|
+
//# sourceMappingURL=google-auth-identity.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/google-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4F;AAC5F,gEAAyE;AACzE,qDAA8D;AAE9D,MAAa,kBAAmB,SAAQ,kCAAY;IAE5C,KAAK,CAAU;CACtB;AAHD,gDAGC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACjB;AAGV,QAAA,uBAAuB,GACnC,IAAA,yCAA6B,EAAC,uCAAiB,EAAE,kBAAkB,EAAE,uBAAgB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["import { getDiscriminatorModelForClass, prop, ReturnModelType } from '@typegoose/typegoose';\r\nimport { AuthIdentity, AuthIdentityModel } from '../auth-identity.model';\r\nimport { AuthIdentityType } from '../../../../utilities/enum';\r\n\r\nexport class GoogleAuthIdentity extends AuthIdentity {\r\n\t@prop({ required: true, type: String })\r\n\tpublic token!: string;\r\n}\r\n\r\nexport const GoogleAuthIdentityModel: ReturnModelType<typeof GoogleAuthIdentity> =\r\n\tgetDiscriminatorModelForClass(AuthIdentityModel, GoogleAuthIdentity, AuthIdentityType.GOOGLE);\r\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { AuthIdentity } from '../auth-identity.model';
|
|
3
|
+
import { OTPFields } from '../embedded/otp-fields.model';
|
|
4
|
+
export declare class PhoneAuthIdentity extends AuthIdentity {
|
|
5
|
+
phoneNumber: string;
|
|
6
|
+
otp: OTPFields;
|
|
7
|
+
}
|
|
8
|
+
export declare const PhoneAuthIdentityModel: ReturnModelType<typeof PhoneAuthIdentity>;
|
|
@@ -0,0 +1,31 @@
|
|
|
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.PhoneAuthIdentityModel = exports.PhoneAuthIdentity = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const auth_identity_model_1 = require("../auth-identity.model");
|
|
15
|
+
const otp_fields_model_1 = require("../embedded/otp-fields.model");
|
|
16
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
17
|
+
class PhoneAuthIdentity extends auth_identity_model_1.AuthIdentity {
|
|
18
|
+
phoneNumber;
|
|
19
|
+
otp;
|
|
20
|
+
}
|
|
21
|
+
exports.PhoneAuthIdentity = PhoneAuthIdentity;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], PhoneAuthIdentity.prototype, "phoneNumber", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typegoose_1.prop)({ required: true, type: otp_fields_model_1.OTPFields }),
|
|
28
|
+
__metadata("design:type", otp_fields_model_1.OTPFields)
|
|
29
|
+
], PhoneAuthIdentity.prototype, "otp", void 0);
|
|
30
|
+
exports.PhoneAuthIdentityModel = (0, typegoose_1.getDiscriminatorModelForClass)(auth_identity_model_1.AuthIdentityModel, PhoneAuthIdentity, enum_1.AuthIdentityType.PHONE);
|
|
31
|
+
//# sourceMappingURL=phone-auth-identity.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/phone-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4F;AAC5F,gEAAyE;AACzE,mEAAyD;AACzD,qDAA8D;AAE9D,MAAa,iBAAkB,SAAQ,kCAAY;IAE3C,WAAW,CAAU;IAGrB,GAAG,CAAa;CACvB;AAND,8CAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDACX;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,4BAAS,EAAE,CAAC;8BAC7B,4BAAS;8CAAC;AAGX,QAAA,sBAAsB,GAClC,IAAA,yCAA6B,EAAC,uCAAiB,EAAE,iBAAiB,EAAE,uBAAgB,CAAC,KAAK,CAAC,CAAC","sourcesContent":["import { getDiscriminatorModelForClass, prop, ReturnModelType } from '@typegoose/typegoose';\r\nimport { AuthIdentity, AuthIdentityModel } from '../auth-identity.model';\r\nimport { OTPFields } from '../embedded/otp-fields.model';\r\nimport { AuthIdentityType } from '../../../../utilities/enum';\r\n\r\nexport class PhoneAuthIdentity extends AuthIdentity {\r\n\t@prop({ required: true, type: String })\r\n\tpublic phoneNumber!: string;\r\n\r\n\t@prop({ required: true, type: OTPFields })\r\n\tpublic otp!: OTPFields;\r\n}\r\n\r\nexport const PhoneAuthIdentityModel: ReturnModelType<typeof PhoneAuthIdentity> =\r\n\tgetDiscriminatorModelForClass(AuthIdentityModel, PhoneAuthIdentity, AuthIdentityType.PHONE);\r\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref, ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { CouponType } from '../../../../utilities/enum';
|
|
3
|
+
import { User } from '../user.model';
|
|
4
|
+
import { Coupon } from '../coupon.model';
|
|
5
|
+
export declare class ReferralCodeCoupon extends Coupon {
|
|
6
|
+
couponType: CouponType.REFERRAL_CODE;
|
|
7
|
+
orderLimitPerUser: 1;
|
|
8
|
+
referralUser: Ref<User>;
|
|
9
|
+
}
|
|
10
|
+
export declare const ReferralCodeCouponModel: ReturnModelType<typeof ReferralCodeCoupon>;
|
|
@@ -0,0 +1,28 @@
|
|
|
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.ReferralCodeCouponModel = exports.ReferralCodeCoupon = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
+
const user_model_1 = require("../user.model");
|
|
16
|
+
const coupon_model_1 = require("../coupon.model");
|
|
17
|
+
class ReferralCodeCoupon extends coupon_model_1.Coupon {
|
|
18
|
+
couponType = enum_1.CouponType.REFERRAL_CODE;
|
|
19
|
+
orderLimitPerUser = 1;
|
|
20
|
+
referralUser;
|
|
21
|
+
}
|
|
22
|
+
exports.ReferralCodeCoupon = ReferralCodeCoupon;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typegoose_1.prop)({ required: true, ref: () => user_model_1.User }),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], ReferralCodeCoupon.prototype, "referralUser", void 0);
|
|
27
|
+
exports.ReferralCodeCouponModel = (0, typegoose_1.getDiscriminatorModelForClass)(coupon_model_1.CouponModel, ReferralCodeCoupon, enum_1.CouponType.REFERRAL_CODE);
|
|
28
|
+
//# sourceMappingURL=referral-code-coupon.mode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referral-code-coupon.mode.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/referral-code-coupon.mode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiG;AACjG,qDAAwD;AACxD,8CAAqC;AACrC,kDAAsD;AAEtD,MAAa,kBAAmB,SAAQ,qBAAM;IACtC,UAAU,GAAG,iBAAU,CAAC,aAAsB,CAAC;IAE/C,iBAAiB,GAAG,CAAU,CAAC;IAG/B,YAAY,CAAa;CAChC;AAPD,gDAOC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;wDACV;AAGpB,QAAA,uBAAuB,GACnC,IAAA,yCAA6B,EAAC,0BAAW,EAAE,kBAAkB,EAAE,iBAAU,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import { getDiscriminatorModelForClass, prop, Ref, ReturnModelType } from '@typegoose/typegoose';\r\nimport { CouponType } from '../../../../utilities/enum';\r\nimport { User } from '../user.model';\r\nimport { Coupon, CouponModel } from '../coupon.model';\r\n\r\nexport class ReferralCodeCoupon extends Coupon {\r\n\tpublic couponType = CouponType.REFERRAL_CODE as const;\r\n\r\n\tpublic orderLimitPerUser = 1 as const;\r\n\r\n\t@prop({ required: true, ref: () => User })\r\n\tpublic referralUser!: Ref<User>;\r\n}\r\n\r\nexport const ReferralCodeCouponModel: ReturnModelType<typeof ReferralCodeCoupon> =\r\n\tgetDiscriminatorModelForClass(CouponModel, ReferralCodeCoupon, CouponType.REFERRAL_CODE);\r\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Ref } from '@typegoose/typegoose';
|
|
2
2
|
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
3
|
-
import {
|
|
3
|
+
import { User } from './user.model';
|
|
4
4
|
import { Address } from './shared/address.model';
|
|
5
5
|
export declare class RequestArea extends TimeStamps {
|
|
6
|
-
user?: Ref<
|
|
6
|
+
user?: Ref<User>;
|
|
7
7
|
location: Address;
|
|
8
8
|
}
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.RequestArea = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
15
|
-
const
|
|
15
|
+
const user_model_1 = require("./user.model");
|
|
16
16
|
const address_model_1 = require("./shared/address.model");
|
|
17
17
|
let RequestArea = class RequestArea extends defaultClasses_1.TimeStamps {
|
|
18
18
|
user;
|
|
@@ -20,7 +20,7 @@ let RequestArea = class RequestArea extends defaultClasses_1.TimeStamps {
|
|
|
20
20
|
};
|
|
21
21
|
exports.RequestArea = RequestArea;
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, typegoose_1.prop)({ ref: () =>
|
|
23
|
+
(0, typegoose_1.prop)({ ref: () => user_model_1.User }),
|
|
24
24
|
__metadata("design:type", Object)
|
|
25
25
|
], RequestArea.prototype, "user", void 0);
|
|
26
26
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-area.model.js","sourceRoot":"/","sources":["libraries/mongo/models/request-area.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"request-area.model.js","sourceRoot":"/","sources":["libraries/mongo/models/request-area.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,6CAAoC;AACpC,0DAAiD;AAG1C,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,2BAAU;IAEnC,IAAI,CAAa;IAGjB,QAAQ,CAAW;CAC1B,CAAA;AANY,kCAAW;AAEhB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;yCACF;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,uBAAO,EAAE,CAAC;8BACtB,uBAAO;6CAAC;sBALd,WAAW;IADvB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,EAAE,CAAC;GACnD,WAAW,CAMvB","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\r\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\r\nimport { User } from './user.model';\r\nimport { Address } from './shared/address.model';\r\n\r\n@modelOptions({ schemaOptions: { collection: 'requestAreas' } })\r\nexport class RequestArea extends TimeStamps {\r\n\t@prop({ ref: () => User })\r\n\tpublic user?: Ref<User>;\r\n\r\n\t@prop({ required: true, type: Address })\r\n\tpublic location!: Address;\r\n}\r\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref } from '@typegoose/typegoose';
|
|
2
|
+
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
3
|
+
import { Rider } from './rider.model';
|
|
4
|
+
export declare class RiderTimeout extends TimeStamps {
|
|
5
|
+
rider: Ref<Rider>;
|
|
6
|
+
Date?: Date;
|
|
7
|
+
timeIn?: Date;
|
|
8
|
+
timeOut?: Date;
|
|
9
|
+
activeTotal?: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.RiderTimeout = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
15
|
+
const rider_model_1 = require("./rider.model");
|
|
16
|
+
let RiderTimeout = class RiderTimeout extends defaultClasses_1.TimeStamps {
|
|
17
|
+
rider;
|
|
18
|
+
Date;
|
|
19
|
+
timeIn;
|
|
20
|
+
timeOut;
|
|
21
|
+
activeTotal;
|
|
22
|
+
};
|
|
23
|
+
exports.RiderTimeout = RiderTimeout;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typegoose_1.prop)({ required: true, ref: () => rider_model_1.Rider }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], RiderTimeout.prototype, "rider", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typegoose_1.prop)({ type: Date }),
|
|
30
|
+
__metadata("design:type", Date)
|
|
31
|
+
], RiderTimeout.prototype, "Date", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typegoose_1.prop)({ type: Date }),
|
|
34
|
+
__metadata("design:type", Date)
|
|
35
|
+
], RiderTimeout.prototype, "timeIn", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typegoose_1.prop)({ type: Date }),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], RiderTimeout.prototype, "timeOut", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], RiderTimeout.prototype, "activeTotal", void 0);
|
|
44
|
+
exports.RiderTimeout = RiderTimeout = __decorate([
|
|
45
|
+
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'riderTimeouts', timestamps: true } })
|
|
46
|
+
], RiderTimeout);
|
|
47
|
+
//# sourceMappingURL=rider-timeout.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rider-timeout.model.js","sourceRoot":"/","sources":["libraries/mongo/models/rider-timeout.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,+CAAsC;AAG/B,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,2BAAU;IAEpC,KAAK,CAAc;IAGnB,IAAI,CAAQ;IAGZ,MAAM,CAAQ;IAGd,OAAO,CAAQ;IAGf,WAAW,CAAU;CAC5B,CAAA;AAfY,oCAAY;AAEjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;2CACjB;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACP,IAAI;0CAAC;AAGZ;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACL,IAAI;4CAAC;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACJ,IAAI;6CAAC;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACP;uBAdhB,YAAY;IADxB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;GACtE,YAAY,CAexB","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\r\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\r\nimport { Rider } from './rider.model';\r\n\r\n@modelOptions({ schemaOptions: { collection: 'riderTimeouts', timestamps: true } })\r\nexport class RiderTimeout extends TimeStamps {\r\n\t@prop({ required: true, ref: () => Rider })\r\n\tpublic rider!: Ref<Rider>;\r\n\r\n\t@prop({ type: Date })\r\n\tpublic Date?: Date;\r\n\r\n\t@prop({ type: Date })\r\n\tpublic timeIn?: Date;\r\n\r\n\t@prop({ type: Date })\r\n\tpublic timeOut?: Date;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic activeTotal?: number;\r\n}\r\n"]}
|