@sildeswj/thechium-schema 5.8.9 → 5.8.12

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.d.ts CHANGED
@@ -6,6 +6,4 @@ export * from './deliveryMan.schema';
6
6
  export * from './retailBrand.schema';
7
7
  export * from './retailStore.schema';
8
8
  export * from './retailStoreEmployee.schema';
9
- export * from './deliveryManRetailStore.schema';
10
- export * from './deliveryManCollectionOrder.schema';
11
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC"}
package/dist/index.js CHANGED
@@ -24,6 +24,4 @@ __exportStar(require("./deliveryMan.schema"), exports);
24
24
  __exportStar(require("./retailBrand.schema"), exports);
25
25
  __exportStar(require("./retailStore.schema"), exports);
26
26
  __exportStar(require("./retailStoreEmployee.schema"), exports);
27
- __exportStar(require("./deliveryManRetailStore.schema"), exports);
28
- __exportStar(require("./deliveryManCollectionOrder.schema"), exports);
29
27
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,4CAA4C;AAC5C,6CAA6C;;;;;;;;;;;;;;;;AAE7C,6DAA2C;AAC3C,iDAA+B;AAC/B,qEAAmD;AACnD,2DAAyC;AACzC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,+DAA6C;AAC7C,kEAAgD;AAChD,sEAAoD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,4CAA4C;AAC5C,6CAA6C;;;;;;;;;;;;;;;;AAE7C,6DAA2C;AAC3C,iDAA+B;AAC/B,qEAAmD;AACnD,2DAAyC;AACzC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,+DAA6C"}
@@ -21,7 +21,7 @@ let RetailStore = class RetailStore {
21
21
  exports.RetailStore = RetailStore;
22
22
  __decorate([
23
23
  (0, mongoose_1.Prop)({
24
- required: true,
24
+ required: false,
25
25
  type: mongoose_2.default.Schema.Types.ObjectId,
26
26
  }),
27
27
  __metadata("design:type", mongoose_2.default.Schema.Types.ObjectId)
@@ -31,7 +31,7 @@ __decorate([
31
31
  __metadata("design:type", String)
32
32
  ], RetailStore.prototype, "name", void 0);
33
33
  __decorate([
34
- (0, mongoose_1.Prop)({ required: true, maxlength: 50, minlength: 2 }),
34
+ (0, mongoose_1.Prop)({ required: false, maxlength: 50, minlength: 2 }),
35
35
  __metadata("design:type", String)
36
36
  ], RetailStore.prototype, "code", void 0);
37
37
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"retailStore.schema.js","sourceRoot":"","sources":["../src/retailStore.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoC;AACpC,wDAAgC;AAGzB,IAAM,WAAW,GAAjB,MAAM,WAAW;CAmDvB,CAAA;AAnDY,kCAAW;AAKtB;IAJC,IAAA,e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KAClB,CAAC;;2CACa;sBAlDJ,WAAW;IADvB,IAAA,iBAAM,EAAC,iBAAO,CAAC;GACH,WAAW,CAmDvB;AAEY,QAAA,iBAAiB,GAAG,wBAAa,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAE3E,yBAAiB,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC;AAC5C,yBAAiB,CAAC,KAAK,CAAC,EAAE,iBAAiB,EAAE,CAAC,EAAE,CAAC,CAAC;AAClD,yBAAiB,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC;AAE5C,uDAAuD;AACvD,yBAAiB,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,IAAI;IAC3C,MAAM,KAAK,GAAG,IAAgC,CAAC;IAC/C,KAAK,CAAC,QAAQ,iCAAM,KAAK,CAAC,SAAS,EAAE,KAAE,MAAM,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,IAAG,CAAC;IACrE,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sildeswj/thechium-schema",
3
- "version": "5.8.9",
3
+ "version": "5.8.12",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -1,40 +0,0 @@
1
- import mongoose, { Document } from 'mongoose';
2
- import { DeliveryMan } from './deliveryMan.schema';
3
- import { DeliveryManRetailStore } from './deliveryManRetailStore.schema';
4
- import { CollectionCompany } from './collectionCompany.schema';
5
- export declare class DeliveryManCollectionOrder 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
- deliveryManRetailStore: DeliveryManRetailStore;
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
- requestImage: string;
26
- confirmImage: string;
27
- howThisPriceApplied: string;
28
- measureOptions: string;
29
- status: 'active' | 'deleted' | 'completed' | 'booking' | 'canceled';
30
- }
31
- export declare const DeliveryManCollectionOrderSchema: mongoose.Schema<DeliveryManCollectionOrder, mongoose.Model<DeliveryManCollectionOrder, any, any, any, mongoose.Document<unknown, any, DeliveryManCollectionOrder> & DeliveryManCollectionOrder & Required<{
32
- _id: unknown;
33
- }> & {
34
- __v: number;
35
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, DeliveryManCollectionOrder, mongoose.Document<unknown, {}, mongoose.FlatRecord<DeliveryManCollectionOrder>> & mongoose.FlatRecord<DeliveryManCollectionOrder> & Required<{
36
- _id: unknown;
37
- }> & {
38
- __v: number;
39
- }>;
40
- //# sourceMappingURL=deliveryManCollectionOrder.schema.d.ts.map
@@ -1 +0,0 @@
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,WAAW,EAAqB,MAAM,sBAAsB,CAAC;AACtE,OAAO,EACL,sBAAsB,EAEvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAA2B,MAAM,4BAA4B,CAAC;AAExF,qBACa,0BAA2B,SAAQ,QAAQ;IAGtD,WAAW,EAAE,MAAM,CAAC;IAIpB,gBAAgB,EAAE,MAAM,CAAC;IAIzB,sBAAsB,EAAE,MAAM,CAAC;IAI/B,kBAAkB,EAAE,MAAM,CAAC;IAI3B,UAAU,EAAE,IAAI,CAAC;IAIjB,iBAAiB,EAAE,IAAI,CAAC;IAIxB,SAAS,EAAE,MAAM,CAAC;IAIlB,WAAW,EAAE,WAAW,CAAC;IAIzB,sBAAsB,EAAE,sBAAsB,CAAC;IAI/C,iBAAiB,EAAE,iBAAiB,CAAC;IAGrC,YAAY,EAAE,MAAM,CAAC;IAGrB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,kBAAkB,EAAE,MAAM,CAAC;IAG3B,uBAAuB,EAAE,MAAM,CAAC;IAGhC,gBAAgB,EAAE,MAAM,CAAC;IAGzB,UAAU,EAAE,MAAM,CAAC;IAGnB,UAAU,EAAE,MAAM,CAAC;IAGnB,oCAAoC,EAAE,MAAM,CAAC;IAG7C,QAAQ,EAAE,MAAM,CAAC;IAGjB,YAAY,EAAE,MAAM,CAAC;IAGrB,YAAY,EAAE,MAAM,CAAC;IAMrB,mBAAmB,EAAE,MAAM,CAAC;IAQ5B,cAAc,EAAE,MAAM,CAAC;IAQvB,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,CAAC;CACrE;AAED,eAAO,MAAM,gCAAgC;;;;;;;;EAE5C,CAAC"}
@@ -1,145 +0,0 @@
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.DeliveryManCollectionOrderSchema = exports.DeliveryManCollectionOrder = 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 deliveryManRetailStore_schema_1 = require("./deliveryManRetailStore.schema");
18
- const collectionCompany_schema_1 = require("./collectionCompany.schema");
19
- let DeliveryManCollectionOrder = class DeliveryManCollectionOrder extends mongoose_2.Document {
20
- };
21
- exports.DeliveryManCollectionOrder = DeliveryManCollectionOrder;
22
- __decorate([
23
- (0, mongoose_1.Prop)({ required: false, maxlength: 500 }),
24
- __metadata("design:type", String)
25
- ], DeliveryManCollectionOrder.prototype, "requestMemo", void 0);
26
- __decorate([
27
- (0, mongoose_1.Prop)({ required: true }),
28
- __metadata("design:type", Number)
29
- ], DeliveryManCollectionOrder.prototype, "collectionVolume", void 0);
30
- __decorate([
31
- (0, mongoose_1.Prop)(),
32
- __metadata("design:type", Number)
33
- ], DeliveryManCollectionOrder.prototype, "actualCollectionVolume", void 0);
34
- __decorate([
35
- (0, mongoose_1.Prop)(),
36
- __metadata("design:type", Number)
37
- ], DeliveryManCollectionOrder.prototype, "actualCollectionKg", void 0);
38
- __decorate([
39
- (0, mongoose_1.Prop)(),
40
- __metadata("design:type", Date)
41
- ], DeliveryManCollectionOrder.prototype, "pickupDate", void 0);
42
- __decorate([
43
- (0, mongoose_1.Prop)({ required: true, type: Date }),
44
- __metadata("design:type", Date)
45
- ], DeliveryManCollectionOrder.prototype, "pickupRequestDate", void 0);
46
- __decorate([
47
- (0, mongoose_1.Prop)(),
48
- __metadata("design:type", String)
49
- ], DeliveryManCollectionOrder.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
- ], DeliveryManCollectionOrder.prototype, "deliveryMan", void 0);
54
- __decorate([
55
- (0, mongoose_1.Prop)({ type: deliveryManRetailStore_schema_1.DeliveryManRetailStoreSchema }),
56
- __metadata("design:type", deliveryManRetailStore_schema_1.DeliveryManRetailStore)
57
- ], DeliveryManCollectionOrder.prototype, "deliveryManRetailStore", void 0);
58
- __decorate([
59
- (0, mongoose_1.Prop)({ type: collectionCompany_schema_1.CollectionCompanySchema }),
60
- __metadata("design:type", collectionCompany_schema_1.CollectionCompany)
61
- ], DeliveryManCollectionOrder.prototype, "collectionCompany", void 0);
62
- __decorate([
63
- (0, mongoose_1.Prop)(),
64
- __metadata("design:type", Number)
65
- ], DeliveryManCollectionOrder.prototype, "newOilVolume", void 0);
66
- __decorate([
67
- (0, mongoose_1.Prop)(),
68
- __metadata("design:type", Number)
69
- ], DeliveryManCollectionOrder.prototype, "newOilPricePerCan", void 0);
70
- __decorate([
71
- (0, mongoose_1.Prop)(),
72
- __metadata("design:type", Number)
73
- ], DeliveryManCollectionOrder.prototype, "newOilActualVolume", void 0);
74
- __decorate([
75
- (0, mongoose_1.Prop)(),
76
- __metadata("design:type", Number)
77
- ], DeliveryManCollectionOrder.prototype, "newOilActualPricePerCan", void 0);
78
- __decorate([
79
- (0, mongoose_1.Prop)(),
80
- __metadata("design:type", Number)
81
- ], DeliveryManCollectionOrder.prototype, "newOilTotalPrice", void 0);
82
- __decorate([
83
- (0, mongoose_1.Prop)(),
84
- __metadata("design:type", Number)
85
- ], DeliveryManCollectionOrder.prototype, "pricePerKg", void 0);
86
- __decorate([
87
- (0, mongoose_1.Prop)(),
88
- __metadata("design:type", Number)
89
- ], DeliveryManCollectionOrder.prototype, "totalPrice", void 0);
90
- __decorate([
91
- (0, mongoose_1.Prop)(),
92
- __metadata("design:type", Number)
93
- ], DeliveryManCollectionOrder.prototype, "totalPriceSubtractedNewOilTotalPrice", void 0);
94
- __decorate([
95
- (0, mongoose_1.Prop)(),
96
- __metadata("design:type", Number)
97
- ], DeliveryManCollectionOrder.prototype, "kgPerCan", void 0);
98
- __decorate([
99
- (0, mongoose_1.Prop)(),
100
- __metadata("design:type", String)
101
- ], DeliveryManCollectionOrder.prototype, "requestImage", void 0);
102
- __decorate([
103
- (0, mongoose_1.Prop)(),
104
- __metadata("design:type", String)
105
- ], DeliveryManCollectionOrder.prototype, "confirmImage", void 0);
106
- __decorate([
107
- (0, mongoose_1.Prop)({
108
- required: false,
109
- enum: ['createdAt', 'pickupDate'],
110
- }),
111
- __metadata("design:type", String)
112
- ], DeliveryManCollectionOrder.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
- ], DeliveryManCollectionOrder.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
- ], DeliveryManCollectionOrder.prototype, "status", void 0);
129
- exports.DeliveryManCollectionOrder = DeliveryManCollectionOrder = __decorate([
130
- (0, mongoose_1.Schema)(options_1.options)
131
- ], DeliveryManCollectionOrder);
132
- exports.DeliveryManCollectionOrderSchema = mongoose_1.SchemaFactory.createForClass(DeliveryManCollectionOrder);
133
- exports.DeliveryManCollectionOrderSchema.index({ pickupRequestDate: -1, status: 1 });
134
- exports.DeliveryManCollectionOrderSchema.index({ 'deliveryMan.name': 1 });
135
- exports.DeliveryManCollectionOrderSchema.index({ 'retailStore.name': 1 });
136
- exports.DeliveryManCollectionOrderSchema.index({ totalPrice: -1 });
137
- exports.DeliveryManCollectionOrderSchema.index({ status: 1 });
138
- exports.DeliveryManCollectionOrderSchema.index({ requestMemo: 'text' }); // Optional for memo search
139
- // Automatically exclude deleted records in all queries
140
- exports.DeliveryManCollectionOrderSchema.pre(/^find/, function (next) {
141
- const query = this;
142
- query.setQuery(Object.assign(Object.assign({}, query.getFilter()), { status: { $ne: 'deleted' } }));
143
- next();
144
- });
145
- //# sourceMappingURL=deliveryManCollectionOrder.schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deliveryManCollectionOrder.schema.js","sourceRoot":"","sources":["../src/deliveryManCollectionOrder.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoC;AACpC,uCAA8C;AAC9C,6DAAsE;AACtE,mFAGyC;AACzC,yEAAwF;AAGjF,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,mBAAQ;CA+FvD,CAAA;AA/FY,gEAA0B;AAGrC;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;+DACtB;AAIpB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACA;AAIzB;IADC,IAAA,eAAI,GAAE;;0EACwB;AAI/B;IADC,IAAA,eAAI,GAAE;;sEACoB;AAI3B;IADC,IAAA,eAAI,GAAE;8BACK,IAAI;8DAAC;AAIjB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BAClB,IAAI;qEAAC;AAIxB;IADC,IAAA,eAAI,GAAE;;6DACW;AAIlB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,sCAAiB,EAAE,CAAC;8BACrB,gCAAW;+DAAC;AAIzB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,4DAA4B,EAAE,CAAC;8BACrB,sDAAsB;0EAAC;AAI/C;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,kDAAuB,EAAE,CAAC;8BACrB,4CAAiB;qEAAC;AAGrC;IADC,IAAA,eAAI,GAAE;;gEACc;AAGrB;IADC,IAAA,eAAI,GAAE;;qEACmB;AAG1B;IADC,IAAA,eAAI,GAAE;;sEACoB;AAG3B;IADC,IAAA,eAAI,GAAE;;2EACyB;AAGhC;IADC,IAAA,eAAI,GAAE;;oEACkB;AAGzB;IADC,IAAA,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AC;AACtD,wCAAgC,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,2BAA2B;AAE5F,uDAAuD;AACvD,wCAAgC,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,IAAI;IAC1D,MAAM,KAAK,GAAG,IAAgC,CAAC;IAC/C,KAAK,CAAC,QAAQ,iCAAM,KAAK,CAAC,SAAS,EAAE,KAAE,MAAM,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,IAAG,CAAC;IACrE,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC"}
@@ -1,20 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,73 +0,0 @@
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
- exports.DeliveryManRetailStoreSchema.index({ deliveryMan: 1 });
62
- exports.DeliveryManRetailStoreSchema.index({ region: 1 });
63
- exports.DeliveryManRetailStoreSchema.index({ code: 1 });
64
- exports.DeliveryManRetailStoreSchema.index({ status: 1 });
65
- exports.DeliveryManRetailStoreSchema.index({ name: 'text' }); // Optional for search
66
- exports.DeliveryManRetailStoreSchema.index({ address: 'text' }); // Optional for search
67
- // Automatically exclude deleted records in all queries
68
- exports.DeliveryManRetailStoreSchema.pre(/^find/, function (next) {
69
- const query = this;
70
- query.setQuery(Object.assign(Object.assign({}, query.getFilter()), { status: { $ne: 'deleted' } }));
71
- next();
72
- });
73
- //# sourceMappingURL=deliveryManRetailStore.schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deliveryManRetailStore.schema.js","sourceRoot":"","sources":["../src/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