@sildeswj/thechium-schema 4.0.0 → 5.0.0
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/collectionOrder.schema.d.ts +2 -0
- package/dist/collectionOrder.schema.d.ts.map +1 -1
- package/dist/collectionOrder.schema.js +8 -0
- package/dist/collectionOrder.schema.js.map +1 -1
- package/dist/deliveryManCollectionOrder.schema.d.ts +44 -0
- package/dist/deliveryManCollectionOrder.schema.d.ts.map +1 -0
- package/dist/deliveryManCollectionOrder.schema.js +177 -0
- package/dist/deliveryManCollectionOrder.schema.js.map +1 -0
- package/dist/deliveryManRetailStore.schema.d.ts +20 -0
- package/dist/deliveryManRetailStore.schema.d.ts.map +1 -0
- package/dist/deliveryManRetailStore.schema.js +61 -0
- package/dist/deliveryManRetailStore.schema.js.map +1 -0
- package/package.json +1 -1
|
@@ -27,6 +27,8 @@ export declare class CollectionOrder extends Document {
|
|
|
27
27
|
totalPrice: number;
|
|
28
28
|
totalPriceSubtractedNewOilTotalPrice: number;
|
|
29
29
|
kgPerCan: number;
|
|
30
|
+
collectionOrderRequestImage: string;
|
|
31
|
+
collectionOrderConfirmImage: string;
|
|
30
32
|
howThisPriceApplied: string;
|
|
31
33
|
measureOptions: string;
|
|
32
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectionOrder.schema.d.ts","sourceRoot":"","sources":["../src/collectionOrder.schema.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAqB,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAqB,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAA2B,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAAE,WAAW,EAAqB,MAAM,sBAAsB,CAAC;AAEtE,qBACa,eAAgB,SAAQ,QAAQ;IAG3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void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, mongoose_1.Prop)(),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], CollectionOrder.prototype, "collectionOrderRequestImage", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, mongoose_1.Prop)(),
|
|
156
|
+
__metadata("design:type", String)
|
|
157
|
+
], CollectionOrder.prototype, "collectionOrderConfirmImage", void 0);
|
|
150
158
|
__decorate([
|
|
151
159
|
(0, mongoose_1.Prop)({
|
|
152
160
|
required: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectionOrder.schema.js","sourceRoot":"","sources":["../src/collectionOrder.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoC;AACpC,qDAA8C;AAC9C,6DAAsE;AACtE,6DAAsE;AACtE,yEAAwF;AACxF,6DAAsE;AAG/D,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,mBAAQ;
|
|
1
|
+
{"version":3,"file":"collectionOrder.schema.js","sourceRoot":"","sources":["../src/collectionOrder.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoC;AACpC,qDAA8C;AAC9C,6DAAsE;AACtE,6DAAsE;AACtE,yEAAwF;AACxF,6DAAsE;AAG/D,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,mBAAQ;CAiH5C,CAAA;AAjHY,0CAAe;AAG1B;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;oDACtB;AAIpB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACA;AAIzB;IADC,IAAA,eAAI,GAAE;;+DACwB;AAI/B;IADC,IAAA,eAAI,GAAE;;2DACoB;AAI3B;IADC,IAAA,eAAI,G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ADC,IAAA,eAAI,GAAE;;2DACoB;AAG3B;IADC,IAAA,eAAI,GAAE;;gEACyB;AAGhC;IADC,IAAA,eAAI,GAAE;;yDACkB;AAGzB;IADC,IAAA,eAAI,GAAE;;mDACY;AAGnB;IADC,IAAA,eAAI,GAAE;;mDACY;AAGnB;IADC,IAAA,eAAI,GAAE;;6EACsC;AAG7C;IADC,IAAA,eAAI,GAAE;;iDACU;AAGjB;IADC,IAAA,eAAI,GAAE;;oEAC6B;AAGpC;IADC,IAAA,eAAI,GAAE;;oEAC6B;AAMpC;IAJC,IAAA,eAAI,EAAC;QACJ,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;KAClC,CAAC;;4DAC0B;AAO5B;IALC,IAAA,eAAI,EAAC;QACJ,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;QACnB,OAAO,EAAE,KAAK;KACf,CAAC;;uDACqB;0BAhHZ,eAAe;IAD3B,IAAA,iBAAM,EAAC,iBAAO,CAAC;GACH,eAAe,CAiH3B;AAEY,QAAA,qBAAqB,GAAG,wBAAa,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import mongoose, { Document } from 'mongoose';
|
|
2
|
+
import { DeliveryMan } from './deliveryMan.schema';
|
|
3
|
+
import { RetailStore } from './retailStore.schema';
|
|
4
|
+
import { CollectionCompany } from './collectionCompany.schema';
|
|
5
|
+
import { RetailBrand } from './retailBrand.schema';
|
|
6
|
+
export declare class CollectionOrder extends Document {
|
|
7
|
+
requestMemo: string;
|
|
8
|
+
collectionVolume: number;
|
|
9
|
+
actualCollectionVolume: number;
|
|
10
|
+
actualCollectionKg: number;
|
|
11
|
+
pickupDate: Date;
|
|
12
|
+
pickupRequestDate: Date;
|
|
13
|
+
signature: string;
|
|
14
|
+
status: 'active' | 'deleted' | 'completed' | 'booking' | 'canceled';
|
|
15
|
+
deliveryMan2: DeliveryMan;
|
|
16
|
+
retailStore2: RetailStore;
|
|
17
|
+
retailBrand: RetailBrand;
|
|
18
|
+
collectionCompany: CollectionCompany;
|
|
19
|
+
deliveryMan: mongoose.Schema.Types.ObjectId;
|
|
20
|
+
retailStore: mongoose.Schema.Types.ObjectId;
|
|
21
|
+
newOilVolume: number;
|
|
22
|
+
newOilPricePerCan: number;
|
|
23
|
+
newOilActualVolume: number;
|
|
24
|
+
newOilActualPricePerCan: number;
|
|
25
|
+
newOilTotalPrice: number;
|
|
26
|
+
pricePerKg: number;
|
|
27
|
+
totalPrice: number;
|
|
28
|
+
totalPriceSubtractedNewOilTotalPrice: number;
|
|
29
|
+
kgPerCan: number;
|
|
30
|
+
collectionOrderRequestImage: string;
|
|
31
|
+
collectionOrderConfirmImage: string;
|
|
32
|
+
howThisPriceApplied: string;
|
|
33
|
+
measureOptions: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const CollectionOrderSchema: mongoose.Schema<CollectionOrder, mongoose.Model<CollectionOrder, any, any, any, mongoose.Document<unknown, any, CollectionOrder> & CollectionOrder & Required<{
|
|
36
|
+
_id: unknown;
|
|
37
|
+
}> & {
|
|
38
|
+
__v: number;
|
|
39
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, CollectionOrder, mongoose.Document<unknown, {}, mongoose.FlatRecord<CollectionOrder>> & mongoose.FlatRecord<CollectionOrder> & Required<{
|
|
40
|
+
_id: unknown;
|
|
41
|
+
}> & {
|
|
42
|
+
__v: number;
|
|
43
|
+
}>;
|
|
44
|
+
//# sourceMappingURL=deliveryManCollectionOrder.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deliveryManCollectionOrder.schema.d.ts","sourceRoot":"","sources":["../src/deliveryManCollectionOrder.schema.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,WAA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xB;AAED,eAAO,MAAM,qBAAqB;;;;;;;;EAAgD,CAAC"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
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;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
32
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.CollectionOrderSchema = exports.CollectionOrder = void 0;
|
|
36
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
37
|
+
const options_1 = require("./options");
|
|
38
|
+
const mongoose_2 = __importStar(require("mongoose"));
|
|
39
|
+
const deliveryMan_schema_1 = require("./deliveryMan.schema");
|
|
40
|
+
const retailStore_schema_1 = require("./retailStore.schema");
|
|
41
|
+
const collectionCompany_schema_1 = require("./collectionCompany.schema");
|
|
42
|
+
const retailBrand_schema_1 = require("./retailBrand.schema");
|
|
43
|
+
let CollectionOrder = class CollectionOrder extends mongoose_2.Document {
|
|
44
|
+
};
|
|
45
|
+
exports.CollectionOrder = CollectionOrder;
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, mongoose_1.Prop)({ required: false, maxlength: 500 }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CollectionOrder.prototype, "requestMemo", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], CollectionOrder.prototype, "collectionVolume", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, mongoose_1.Prop)(),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], CollectionOrder.prototype, "actualCollectionVolume", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, mongoose_1.Prop)(),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], CollectionOrder.prototype, "actualCollectionKg", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, mongoose_1.Prop)(),
|
|
64
|
+
__metadata("design:type", Date)
|
|
65
|
+
], CollectionOrder.prototype, "pickupDate", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, mongoose_1.Prop)({ required: true, type: Date }),
|
|
68
|
+
__metadata("design:type", Date)
|
|
69
|
+
], CollectionOrder.prototype, "pickupRequestDate", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, mongoose_1.Prop)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], CollectionOrder.prototype, "signature", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, mongoose_1.Prop)({
|
|
76
|
+
required: true,
|
|
77
|
+
enum: ['active', 'deleted', 'completed', 'booking', 'canceled'],
|
|
78
|
+
default: 'booking',
|
|
79
|
+
}),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], CollectionOrder.prototype, "status", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, mongoose_1.Prop)({ type: deliveryMan_schema_1.DeliveryManSchema }),
|
|
84
|
+
__metadata("design:type", deliveryMan_schema_1.DeliveryMan)
|
|
85
|
+
], CollectionOrder.prototype, "deliveryMan2", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, mongoose_1.Prop)({ type: retailStore_schema_1.RetailStoreSchema }),
|
|
88
|
+
__metadata("design:type", retailStore_schema_1.RetailStore)
|
|
89
|
+
], CollectionOrder.prototype, "retailStore2", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, mongoose_1.Prop)({ type: retailBrand_schema_1.RetailBrandSchema }),
|
|
92
|
+
__metadata("design:type", retailBrand_schema_1.RetailBrand)
|
|
93
|
+
], CollectionOrder.prototype, "retailBrand", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, mongoose_1.Prop)({ type: collectionCompany_schema_1.CollectionCompanySchema }),
|
|
96
|
+
__metadata("design:type", collectionCompany_schema_1.CollectionCompany)
|
|
97
|
+
], CollectionOrder.prototype, "collectionCompany", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, mongoose_1.Prop)({
|
|
100
|
+
required: true,
|
|
101
|
+
type: mongoose_2.default.Schema.Types.ObjectId,
|
|
102
|
+
ref: 'DeliveryMan',
|
|
103
|
+
}),
|
|
104
|
+
__metadata("design:type", mongoose_2.default.Schema.Types.ObjectId)
|
|
105
|
+
], CollectionOrder.prototype, "deliveryMan", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, mongoose_1.Prop)({
|
|
108
|
+
required: true,
|
|
109
|
+
type: mongoose_2.default.Schema.Types.ObjectId,
|
|
110
|
+
ref: 'RetailStore',
|
|
111
|
+
}),
|
|
112
|
+
__metadata("design:type", mongoose_2.default.Schema.Types.ObjectId)
|
|
113
|
+
], CollectionOrder.prototype, "retailStore", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, mongoose_1.Prop)(),
|
|
116
|
+
__metadata("design:type", Number)
|
|
117
|
+
], CollectionOrder.prototype, "newOilVolume", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, mongoose_1.Prop)(),
|
|
120
|
+
__metadata("design:type", Number)
|
|
121
|
+
], CollectionOrder.prototype, "newOilPricePerCan", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, mongoose_1.Prop)(),
|
|
124
|
+
__metadata("design:type", Number)
|
|
125
|
+
], CollectionOrder.prototype, "newOilActualVolume", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, mongoose_1.Prop)(),
|
|
128
|
+
__metadata("design:type", Number)
|
|
129
|
+
], CollectionOrder.prototype, "newOilActualPricePerCan", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, mongoose_1.Prop)(),
|
|
132
|
+
__metadata("design:type", Number)
|
|
133
|
+
], CollectionOrder.prototype, "newOilTotalPrice", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, mongoose_1.Prop)(),
|
|
136
|
+
__metadata("design:type", Number)
|
|
137
|
+
], CollectionOrder.prototype, "pricePerKg", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, mongoose_1.Prop)(),
|
|
140
|
+
__metadata("design:type", Number)
|
|
141
|
+
], CollectionOrder.prototype, "totalPrice", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, mongoose_1.Prop)(),
|
|
144
|
+
__metadata("design:type", Number)
|
|
145
|
+
], CollectionOrder.prototype, "totalPriceSubtractedNewOilTotalPrice", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, mongoose_1.Prop)(),
|
|
148
|
+
__metadata("design:type", Number)
|
|
149
|
+
], CollectionOrder.prototype, "kgPerCan", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, mongoose_1.Prop)(),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], CollectionOrder.prototype, "collectionOrderRequestImage", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, mongoose_1.Prop)(),
|
|
156
|
+
__metadata("design:type", String)
|
|
157
|
+
], CollectionOrder.prototype, "collectionOrderConfirmImage", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, mongoose_1.Prop)({
|
|
160
|
+
required: false,
|
|
161
|
+
enum: ['createdAt', 'pickupDate'],
|
|
162
|
+
}),
|
|
163
|
+
__metadata("design:type", String)
|
|
164
|
+
], CollectionOrder.prototype, "howThisPriceApplied", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, mongoose_1.Prop)({
|
|
167
|
+
required: false,
|
|
168
|
+
enum: ['kg', 'can'],
|
|
169
|
+
default: 'can',
|
|
170
|
+
}),
|
|
171
|
+
__metadata("design:type", String)
|
|
172
|
+
], CollectionOrder.prototype, "measureOptions", void 0);
|
|
173
|
+
exports.CollectionOrder = CollectionOrder = __decorate([
|
|
174
|
+
(0, mongoose_1.Schema)(options_1.options)
|
|
175
|
+
], CollectionOrder);
|
|
176
|
+
exports.CollectionOrderSchema = mongoose_1.SchemaFactory.createForClass(CollectionOrder);
|
|
177
|
+
//# sourceMappingURL=deliveryManCollectionOrder.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deliveryManCollectionOrder.schema.js","sourceRoot":"","sources":["../src/deliveryManCollectionOrder.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoC;AACpC,qDAA8C;AAC9C,6DAAsE;AACtE,6DAAsE;AACtE,yEAAwF;AACxF,6DAAsE;AAG/D,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,mBAAQ;CAiH5C,CAAA;AAjHY,0CAAe;AAG1B;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;oDACtB;AAIpB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACA;AAIzB;IADC,IAAA,eAAI,GAAE;;+DACwB;AAI/B;IADC,IAAA,eAAI,GAAE;;2DACoB;AAI3B;IADC,IAAA,eAAI,GAAE;8BACK,IAAI;mDAAC;AAIjB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BAClB,IAAI;0DAAC;AAIxB;IADC,IAAA,eAAI,GAAE;;kDACW;AAQlB;IALC,IAAA,eAAI,EAAC;QACJ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,CAAC;QAC/D,OAAO,EAAE,SAAS;KACnB,CAAC;;+CACkE;AAIpE;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,sCAAiB,EAAE,CAAC;8BACpB,gCAAW;qDAAC;AAI1B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,sCAAiB,EAAE,CAAC;8BACpB,gCAAW;qDAAC;AAG1B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,sCAAiB,EAAE,CAAC;8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BAhHZ,eAAe;IAD3B,IAAA,iBAAM,EAAC,iBAAO,CAAC;GACH,eAAe,CAiH3B;AAEY,QAAA,qBAAqB,GAAG,wBAAa,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
export declare class DeliveryManRetailStore {
|
|
3
|
+
name: string;
|
|
4
|
+
code: string;
|
|
5
|
+
address: string;
|
|
6
|
+
addressDetails: string;
|
|
7
|
+
region: string;
|
|
8
|
+
deliveryMan: mongoose.Schema.Types.ObjectId;
|
|
9
|
+
status: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const DeliveryManRetailStoreSchema: mongoose.Schema<DeliveryManRetailStore, mongoose.Model<DeliveryManRetailStore, any, any, any, mongoose.Document<unknown, any, DeliveryManRetailStore> & DeliveryManRetailStore & {
|
|
12
|
+
_id: mongoose.Types.ObjectId;
|
|
13
|
+
} & {
|
|
14
|
+
__v: number;
|
|
15
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, DeliveryManRetailStore, mongoose.Document<unknown, {}, mongoose.FlatRecord<DeliveryManRetailStore>> & mongoose.FlatRecord<DeliveryManRetailStore> & {
|
|
16
|
+
_id: mongoose.Types.ObjectId;
|
|
17
|
+
} & {
|
|
18
|
+
__v: number;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=deliveryManRetailStore.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deliveryManRetailStore.schema.d.ts","sourceRoot":"","sources":["../src/deliveryManRetailStore.schema.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,qBACa,sBAAsB;IAEjC,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAGhB,cAAc,EAAE,MAAM,CAAC;IAGvB,MAAM,EAAE,MAAM,CAAC;IAMf,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;IAO5C,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,4BAA4B;;;;;;;;EAAuD,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.DeliveryManRetailStoreSchema = exports.DeliveryManRetailStore = void 0;
|
|
16
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
17
|
+
const options_1 = require("./options");
|
|
18
|
+
const mongoose_2 = __importDefault(require("mongoose"));
|
|
19
|
+
let DeliveryManRetailStore = class DeliveryManRetailStore {
|
|
20
|
+
};
|
|
21
|
+
exports.DeliveryManRetailStore = DeliveryManRetailStore;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)({ required: true, maxlength: 150, minlength: 2 }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], DeliveryManRetailStore.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)({ required: false, maxlength: 50, minlength: 2 }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], DeliveryManRetailStore.prototype, "code", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], DeliveryManRetailStore.prototype, "address", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, mongoose_1.Prop)({ maxlength: 50 }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], DeliveryManRetailStore.prototype, "addressDetails", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], DeliveryManRetailStore.prototype, "region", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, mongoose_1.Prop)({
|
|
44
|
+
required: false,
|
|
45
|
+
type: mongoose_2.default.Schema.Types.ObjectId,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", mongoose_2.default.Schema.Types.ObjectId)
|
|
48
|
+
], DeliveryManRetailStore.prototype, "deliveryMan", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)({
|
|
51
|
+
required: true,
|
|
52
|
+
enum: ['active', 'deleted'],
|
|
53
|
+
default: 'active',
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], DeliveryManRetailStore.prototype, "status", void 0);
|
|
57
|
+
exports.DeliveryManRetailStore = DeliveryManRetailStore = __decorate([
|
|
58
|
+
(0, mongoose_1.Schema)(options_1.options)
|
|
59
|
+
], DeliveryManRetailStore);
|
|
60
|
+
exports.DeliveryManRetailStoreSchema = mongoose_1.SchemaFactory.createForClass(DeliveryManRetailStore);
|
|
61
|
+
//# sourceMappingURL=deliveryManRetailStore.schema.js.map
|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