@sildeswj/thechium-schema 4.1.0 → 5.2.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.
@@ -0,0 +1,40 @@
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
+ export declare class CollectionOrder extends Document {
6
+ requestMemo: string;
7
+ collectionVolume: number;
8
+ actualCollectionVolume: number;
9
+ actualCollectionKg: number;
10
+ pickupDate: Date;
11
+ pickupRequestDate: Date;
12
+ signature: string;
13
+ deliveryMan: DeliveryMan;
14
+ retailStore: RetailStore;
15
+ collectionCompany: CollectionCompany;
16
+ newOilVolume: number;
17
+ newOilPricePerCan: number;
18
+ newOilActualVolume: number;
19
+ newOilActualPricePerCan: number;
20
+ newOilTotalPrice: number;
21
+ pricePerKg: number;
22
+ totalPrice: number;
23
+ totalPriceSubtractedNewOilTotalPrice: number;
24
+ kgPerCan: number;
25
+ collectionOrderRequestImage: string;
26
+ collectionOrderConfirmImage: string;
27
+ howThisPriceApplied: string;
28
+ measureOptions: string;
29
+ status: 'active' | 'deleted' | 'completed' | 'booking' | 'canceled';
30
+ }
31
+ export declare const CollectionOrderSchema: mongoose.Schema<CollectionOrder, mongoose.Model<CollectionOrder, any, any, any, mongoose.Document<unknown, any, CollectionOrder> & CollectionOrder & Required<{
32
+ _id: unknown;
33
+ }> & {
34
+ __v: number;
35
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, CollectionOrder, mongoose.Document<unknown, {}, mongoose.FlatRecord<CollectionOrder>> & mongoose.FlatRecord<CollectionOrder> & Required<{
36
+ _id: unknown;
37
+ }> & {
38
+ __v: number;
39
+ }>;
40
+ //# sourceMappingURL=deliveryManCollectionOrder.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deliveryManCollectionOrder.schema.d.ts","sourceRoot":"","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orate = (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.CollectionOrderSchema = exports.CollectionOrder = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ const options_1 = require("./options");
15
+ const mongoose_2 = require("mongoose");
16
+ const deliveryMan_schema_1 = require("./deliveryMan.schema");
17
+ const retailStore_schema_1 = require("./retailStore.schema");
18
+ const collectionCompany_schema_1 = require("./collectionCompany.schema");
19
+ let CollectionOrder = class CollectionOrder extends mongoose_2.Document {
20
+ };
21
+ exports.CollectionOrder = CollectionOrder;
22
+ __decorate([
23
+ (0, mongoose_1.Prop)({ required: false, maxlength: 500 }),
24
+ __metadata("design:type", String)
25
+ ], CollectionOrder.prototype, "requestMemo", void 0);
26
+ __decorate([
27
+ (0, mongoose_1.Prop)({ required: true }),
28
+ __metadata("design:type", Number)
29
+ ], CollectionOrder.prototype, "collectionVolume", void 0);
30
+ __decorate([
31
+ (0, mongoose_1.Prop)(),
32
+ __metadata("design:type", Number)
33
+ ], CollectionOrder.prototype, "actualCollectionVolume", void 0);
34
+ __decorate([
35
+ (0, mongoose_1.Prop)(),
36
+ __metadata("design:type", Number)
37
+ ], CollectionOrder.prototype, "actualCollectionKg", void 0);
38
+ __decorate([
39
+ (0, mongoose_1.Prop)(),
40
+ __metadata("design:type", Date)
41
+ ], CollectionOrder.prototype, "pickupDate", void 0);
42
+ __decorate([
43
+ (0, mongoose_1.Prop)({ required: true, type: Date }),
44
+ __metadata("design:type", Date)
45
+ ], CollectionOrder.prototype, "pickupRequestDate", void 0);
46
+ __decorate([
47
+ (0, mongoose_1.Prop)(),
48
+ __metadata("design:type", String)
49
+ ], CollectionOrder.prototype, "signature", void 0);
50
+ __decorate([
51
+ (0, mongoose_1.Prop)({ type: deliveryMan_schema_1.DeliveryManSchema }),
52
+ __metadata("design:type", deliveryMan_schema_1.DeliveryMan)
53
+ ], CollectionOrder.prototype, "deliveryMan", void 0);
54
+ __decorate([
55
+ (0, mongoose_1.Prop)({ type: retailStore_schema_1.RetailStoreSchema }),
56
+ __metadata("design:type", retailStore_schema_1.RetailStore)
57
+ ], CollectionOrder.prototype, "retailStore", void 0);
58
+ __decorate([
59
+ (0, mongoose_1.Prop)({ type: collectionCompany_schema_1.CollectionCompanySchema }),
60
+ __metadata("design:type", collectionCompany_schema_1.CollectionCompany)
61
+ ], CollectionOrder.prototype, "collectionCompany", void 0);
62
+ __decorate([
63
+ (0, mongoose_1.Prop)(),
64
+ __metadata("design:type", Number)
65
+ ], CollectionOrder.prototype, "newOilVolume", void 0);
66
+ __decorate([
67
+ (0, mongoose_1.Prop)(),
68
+ __metadata("design:type", Number)
69
+ ], CollectionOrder.prototype, "newOilPricePerCan", void 0);
70
+ __decorate([
71
+ (0, mongoose_1.Prop)(),
72
+ __metadata("design:type", Number)
73
+ ], CollectionOrder.prototype, "newOilActualVolume", void 0);
74
+ __decorate([
75
+ (0, mongoose_1.Prop)(),
76
+ __metadata("design:type", Number)
77
+ ], CollectionOrder.prototype, "newOilActualPricePerCan", void 0);
78
+ __decorate([
79
+ (0, mongoose_1.Prop)(),
80
+ __metadata("design:type", Number)
81
+ ], CollectionOrder.prototype, "newOilTotalPrice", void 0);
82
+ __decorate([
83
+ (0, mongoose_1.Prop)(),
84
+ __metadata("design:type", Number)
85
+ ], CollectionOrder.prototype, "pricePerKg", void 0);
86
+ __decorate([
87
+ (0, mongoose_1.Prop)(),
88
+ __metadata("design:type", Number)
89
+ ], CollectionOrder.prototype, "totalPrice", void 0);
90
+ __decorate([
91
+ (0, mongoose_1.Prop)(),
92
+ __metadata("design:type", Number)
93
+ ], CollectionOrder.prototype, "totalPriceSubtractedNewOilTotalPrice", void 0);
94
+ __decorate([
95
+ (0, mongoose_1.Prop)(),
96
+ __metadata("design:type", Number)
97
+ ], CollectionOrder.prototype, "kgPerCan", void 0);
98
+ __decorate([
99
+ (0, mongoose_1.Prop)(),
100
+ __metadata("design:type", String)
101
+ ], CollectionOrder.prototype, "collectionOrderRequestImage", void 0);
102
+ __decorate([
103
+ (0, mongoose_1.Prop)(),
104
+ __metadata("design:type", String)
105
+ ], CollectionOrder.prototype, "collectionOrderConfirmImage", void 0);
106
+ __decorate([
107
+ (0, mongoose_1.Prop)({
108
+ required: false,
109
+ enum: ['createdAt', 'pickupDate'],
110
+ }),
111
+ __metadata("design:type", String)
112
+ ], CollectionOrder.prototype, "howThisPriceApplied", void 0);
113
+ __decorate([
114
+ (0, mongoose_1.Prop)({
115
+ required: false,
116
+ enum: ['kg', 'can'],
117
+ default: 'can',
118
+ }),
119
+ __metadata("design:type", String)
120
+ ], CollectionOrder.prototype, "measureOptions", void 0);
121
+ __decorate([
122
+ (0, mongoose_1.Prop)({
123
+ required: true,
124
+ enum: ['active', 'deleted', 'completed', 'booking', 'canceled'],
125
+ default: 'booking',
126
+ }),
127
+ __metadata("design:type", String)
128
+ ], CollectionOrder.prototype, "status", void 0);
129
+ exports.CollectionOrder = CollectionOrder = __decorate([
130
+ (0, mongoose_1.Schema)(options_1.options)
131
+ ], CollectionOrder);
132
+ exports.CollectionOrderSchema = mongoose_1.SchemaFactory.createForClass(CollectionOrder);
133
+ //# sourceMappingURL=deliveryManCollectionOrder.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deliveryManCollectionOrder.schema.js","sourceRoot":"","sources":["../src/deliveryManCollectionOrder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C;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;AAQ5B;IALC,IAAA,eAAI,EAAC;QACJ,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;QACnB,OAAO,EAAE,KAAK;KACf,CAAC;;uDACqB;AAQvB;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;0BA9FzD,eAAe;IAD3B,IAAA,iBAAM,EAAC,iBAAO,CAAC;GACH,eAAe,CA+F3B;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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deliveryManRetailStore.schema.js","sourceRoot":"","sources":["../src/deliveryManRetailStore.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoC;AACpC,wDAAgC;AAGzB,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CA4BlC,CAAA;AA5BY,wDAAsB;AAEjC;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;;oDAC1C;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;;oDAC1C;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACT;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;;8DACD;AAGvB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACV;AAMf;IAJC,IAAA,eAAI,EAAC;QACJ,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;KACrC,CAAC;8BACW,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;2DAAC;AAO5C;IALC,IAAA,eAAI,EAAC;QACJ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;QAC3B,OAAO,EAAE,QAAQ;KAClB,CAAC;;sDACa;iCA3BJ,sBAAsB;IADlC,IAAA,iBAAM,EAAC,iBAAO,CAAC;GACH,sBAAsB,CA4BlC;AAEY,QAAA,4BAA4B,GAAG,wBAAa,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import mongoose from 'mongoose';
2
2
  export declare class RetailStoreEmployee {
3
3
  name: string;
4
- phoneNumber: string;
4
+ phoneNumber: number;
5
5
  password: string;
6
6
  expoPushToken: string[];
7
7
  firebasePushToken: string[];
@@ -24,8 +24,8 @@ __decorate([
24
24
  __metadata("design:type", String)
25
25
  ], RetailStoreEmployee.prototype, "name", void 0);
26
26
  __decorate([
27
- (0, mongoose_1.Prop)({ required: true, unique: true }),
28
- __metadata("design:type", String)
27
+ (0, mongoose_1.Prop)({ required: true, unique: true, maxlength: 15, minlength: 8 }),
28
+ __metadata("design:type", Number)
29
29
  ], RetailStoreEmployee.prototype, "phoneNumber", void 0);
30
30
  __decorate([
31
31
  (0, mongoose_1.Prop)({ required: true }),
@@ -1 +1 @@
1
- {"version":3,"file":"retailStoreEmployee.schema.js","sourceRoot":"","sources":["../src/retailStoreEmployee.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoC;AACpC,wDAAgC;AAGzB,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CA+B/B,CAAA;AA/BY,kDAAmB;AAE9B;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACZ;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wDACnB;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACR;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0DACF;AAGxB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;8DACE;AAM5B;IAJC,IAAA,eAAI,EAAC;QACJ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;KACrC,CAAC;8BACW,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,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