@lyxa.ai/core 1.4.201 → 1.4.202
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/shared/address.model.d.ts +6 -1
- package/dist/libraries/mongo/models/shared/address.model.js +26 -1
- package/dist/libraries/mongo/models/shared/address.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -22,7 +22,12 @@ export declare class UserAddress extends BaseAddress {
|
|
|
22
22
|
deliveryOption?: string;
|
|
23
23
|
instructions?: string;
|
|
24
24
|
}
|
|
25
|
-
export declare class CourierAddress extends
|
|
25
|
+
export declare class CourierAddress extends BaseAddress {
|
|
26
|
+
addressLabel: string;
|
|
27
|
+
apartment?: string;
|
|
28
|
+
buildingName?: string;
|
|
29
|
+
deliveryOption?: string;
|
|
30
|
+
instructions?: string;
|
|
26
31
|
name: string;
|
|
27
32
|
phoneNumber: string;
|
|
28
33
|
zone?: Ref<Zone>;
|
|
@@ -99,12 +99,37 @@ __decorate([
|
|
|
99
99
|
(0, typegoose_1.prop)({ type: String }),
|
|
100
100
|
__metadata("design:type", String)
|
|
101
101
|
], UserAddress.prototype, "instructions", void 0);
|
|
102
|
-
class CourierAddress extends
|
|
102
|
+
class CourierAddress extends BaseAddress {
|
|
103
|
+
addressLabel;
|
|
104
|
+
apartment;
|
|
105
|
+
buildingName;
|
|
106
|
+
deliveryOption;
|
|
107
|
+
instructions;
|
|
103
108
|
name;
|
|
104
109
|
phoneNumber;
|
|
105
110
|
zone;
|
|
106
111
|
}
|
|
107
112
|
exports.CourierAddress = CourierAddress;
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], CourierAddress.prototype, "addressLabel", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], CourierAddress.prototype, "apartment", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], CourierAddress.prototype, "buildingName", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], CourierAddress.prototype, "deliveryOption", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
131
|
+
__metadata("design:type", String)
|
|
132
|
+
], CourierAddress.prototype, "instructions", void 0);
|
|
108
133
|
__decorate([
|
|
109
134
|
(0, typegoose_1.prop)({ type: String }),
|
|
110
135
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.model.js","sourceRoot":"/","sources":["libraries/mongo/models/shared/address.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAAgC;AAChC,8CAAqC;AACrC,6DAAmD;AACnD,oDAAwD;AAGjD,IAAM,WAAW,GAAjB,MAAM,WAAW;IAEhB,OAAO,CAAU;IAGjB,WAAW,CAAU;IAGrB,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,OAAO,CAAU;IAGjB,QAAQ,CAAe;IAGvB,QAAQ,CAAU;IAGlB,SAAS,CAAU;CAC1B,CAAA;AAxBY,kCAAW;AAEhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACf;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACK;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACF;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACD;AAGf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EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACM;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDACQ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACM;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACH;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACZ;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;4CACF;AAGzB,MAAa,mBAAoB,SAAQ,WAAW;IAE5C,GAAG,CAA0B;IAG7B,IAAI,CAAa;CACxB;AAND,kDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,kBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC5C,kBAAQ,CAAC,KAAK,CAAC,QAAQ;gDAAC;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;iDACF","sourcesContent":["import mongoose from 'mongoose';\nimport { Zone } from '../zone.model';\nimport { GeoLocation } from './geo-location.model';\nimport { index, prop, Ref } from '@typegoose/typegoose';\n\n@index({ location: '2dsphere' })\nexport class BaseAddress {\n\t@prop({ required: true, type: String })\n\tpublic address!: string;\n\n\t@prop({ type: String })\n\tpublic description?: string;\n\n\t@prop({ type: String })\n\tpublic city?: string;\n\n\t@prop({ type: String })\n\tpublic state?: string;\n\n\t@prop({ required: true, type: String })\n\tpublic country!: string;\n\n\t@prop({ type: GeoLocation })\n\tpublic location!: GeoLocation;\n\n\t@prop({ required: true, type: Number })\n\tpublic latitude!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic longitude!: number;\n}\n\nexport class Address extends BaseAddress {\n\t@prop({ ref: () => Zone })\n\tpublic zone?: Ref<Zone>;\n}\n\nexport class UserAddress extends BaseAddress {\n\t@prop({ required: true, type: String })\n\tpublic addressLabel!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic apartment!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic buildingName!: string;\n\n\t@prop({ type: String })\n\tpublic deliveryOption?: string;\n\n\t@prop({ type: String })\n\tpublic instructions?: string;\n}\n\nexport class CourierAddress extends BaseAddress {\n\t@prop({ required: true, type: String })\n\tpublic addressLabel!: string;\n\n\t@prop({ type: String })\n\tpublic apartment?: string;\n\n\t@prop({ type: String })\n\tpublic buildingName?: string;\n\n\t@prop({ type: String })\n\tpublic deliveryOption?: string;\n\n\t@prop({ type: String })\n\tpublic instructions?: string;\n\n\t@prop({ type: String })\n\tpublic name: string;\n\n\t@prop({ required: true, type: String })\n\tpublic phoneNumber: string;\n\n\t@prop({ ref: () => Zone })\n\tpublic zone?: Ref<Zone>;\n}\n\nexport class RegularOrderAddress extends UserAddress {\n\t@prop({ type: mongoose.Types.ObjectId, required: true })\n\tpublic _id: mongoose.Types.ObjectId;\n\n\t@prop({ ref: () => Zone })\n\tpublic zone?: Ref<Zone>;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED