@sildeswj/thechium-schema 10.1.13-collectionSummary.0 → 10.1.13-collectionSummary.2

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.
@@ -1,9 +1,9 @@
1
1
  import mongoose from 'mongoose';
2
2
  export declare class DailyCompanyCollectionSummary {
3
3
  collectionCompanyId: mongoose.Schema.Types.ObjectId;
4
- year: string;
5
- month: string;
6
- day: string;
4
+ year: number;
5
+ month: number;
6
+ day: number;
7
7
  totalCollectionKg: number;
8
8
  totalCollectionVolume: number;
9
9
  totalNewOilVolume: number;
@@ -25,15 +25,15 @@ __decorate([
25
25
  ], DailyCompanyCollectionSummary.prototype, "collectionCompanyId", void 0);
26
26
  __decorate([
27
27
  (0, mongoose_1.Prop)({ required: true }),
28
- __metadata("design:type", String)
28
+ __metadata("design:type", Number)
29
29
  ], DailyCompanyCollectionSummary.prototype, "year", void 0);
30
30
  __decorate([
31
31
  (0, mongoose_1.Prop)({ required: true }),
32
- __metadata("design:type", String)
32
+ __metadata("design:type", Number)
33
33
  ], DailyCompanyCollectionSummary.prototype, "month", void 0);
34
34
  __decorate([
35
35
  (0, mongoose_1.Prop)({ required: true }),
36
- __metadata("design:type", String)
36
+ __metadata("design:type", Number)
37
37
  ], DailyCompanyCollectionSummary.prototype, "day", void 0);
38
38
  __decorate([
39
39
  (0, mongoose_1.Prop)(),
@@ -3,8 +3,8 @@ export declare class MonthlyStoreCollectionSummary {
3
3
  collectionCompanyId: mongoose.Schema.Types.ObjectId;
4
4
  retailStoreId: mongoose.Schema.Types.ObjectId;
5
5
  retailBrandId?: mongoose.Schema.Types.ObjectId;
6
- year: string;
7
- month: string;
6
+ year: number;
7
+ month: number;
8
8
  totalCollectionKg: number;
9
9
  totalCollectionVolume: number;
10
10
  totalNewOilVolume: number;
@@ -33,11 +33,11 @@ __decorate([
33
33
  ], MonthlyStoreCollectionSummary.prototype, "retailBrandId", void 0);
34
34
  __decorate([
35
35
  (0, mongoose_1.Prop)({ required: true }),
36
- __metadata("design:type", String)
36
+ __metadata("design:type", Number)
37
37
  ], MonthlyStoreCollectionSummary.prototype, "year", void 0);
38
38
  __decorate([
39
39
  (0, mongoose_1.Prop)({ required: true }),
40
- __metadata("design:type", String)
40
+ __metadata("design:type", Number)
41
41
  ], MonthlyStoreCollectionSummary.prototype, "month", void 0);
42
42
  __decorate([
43
43
  (0, mongoose_1.Prop)(),
@@ -3,9 +3,8 @@ export declare class WeeklyStoreCollectionSummary {
3
3
  collectionCompanyId: mongoose.Schema.Types.ObjectId;
4
4
  retailStoreId: mongoose.Schema.Types.ObjectId;
5
5
  retailBrandId?: mongoose.Schema.Types.ObjectId;
6
- year: string;
7
- month: string;
8
- week: string;
6
+ year: number;
7
+ week: number;
9
8
  totalCollectionKg: number;
10
9
  totalCollectionVolume: number;
11
10
  totalNewOilVolume: number;
@@ -1 +1 @@
1
- {"version":3,"file":"WeeklyStoreCollectionSummary.scehma.d.ts","sourceRoot":"","sources":["../../src/collection-summary/WeeklyStoreCollectionSummary.scehma.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,qBACa,4BAA4B;IAEvC,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;IAGpD,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;IAG9C,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;IAG/C,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;IAGb,iBAAiB,EAAE,MAAM,CAAC;IAG1B,qBAAqB,EAAE,MAAM,CAAC;IAG9B,iBAAiB,EAAE,MAAM,CAAC;IAM1B,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IAO3C,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,kCAAkC;;;;;;;;EAE9C,CAAC"}
1
+ {"version":3,"file":"WeeklyStoreCollectionSummary.scehma.d.ts","sourceRoot":"","sources":["../../src/collection-summary/WeeklyStoreCollectionSummary.scehma.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,qBACa,4BAA4B;IAEvC,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;IAGpD,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;IAG9C,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;IAG/C,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,iBAAiB,EAAE,MAAM,CAAC;IAG1B,qBAAqB,EAAE,MAAM,CAAC;IAG9B,iBAAiB,EAAE,MAAM,CAAC;IAM1B,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IAO3C,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,kCAAkC;;;;;;;;EAE9C,CAAC"}
@@ -33,15 +33,11 @@ __decorate([
33
33
  ], WeeklyStoreCollectionSummary.prototype, "retailBrandId", void 0);
34
34
  __decorate([
35
35
  (0, mongoose_1.Prop)({ required: true }),
36
- __metadata("design:type", String)
36
+ __metadata("design:type", Number)
37
37
  ], WeeklyStoreCollectionSummary.prototype, "year", void 0);
38
38
  __decorate([
39
39
  (0, mongoose_1.Prop)({ required: true }),
40
- __metadata("design:type", String)
41
- ], WeeklyStoreCollectionSummary.prototype, "month", void 0);
42
- __decorate([
43
- (0, mongoose_1.Prop)({ required: true }),
44
- __metadata("design:type", String)
40
+ __metadata("design:type", Number)
45
41
  ], WeeklyStoreCollectionSummary.prototype, "week", void 0);
46
42
  __decorate([
47
43
  (0, mongoose_1.Prop)(),
@@ -74,18 +70,16 @@ exports.WeeklyStoreCollectionSummary = WeeklyStoreCollectionSummary = __decorate
74
70
  (0, mongoose_1.Schema)(options_1.options)
75
71
  ], WeeklyStoreCollectionSummary);
76
72
  exports.WeeklyStoreCollectionSummarySchema = mongoose_1.SchemaFactory.createForClass(WeeklyStoreCollectionSummary);
77
- exports.WeeklyStoreCollectionSummarySchema.index({ collectionCompanyId: 1, retailStoreId: 1, year: 1, month: 1, week: 1 }, { unique: true });
73
+ exports.WeeklyStoreCollectionSummarySchema.index({ collectionCompanyId: 1, retailStoreId: 1, year: 1, week: 1 }, { unique: true });
78
74
  exports.WeeklyStoreCollectionSummarySchema.index({
79
75
  retailStoreId: 1,
80
76
  year: 1,
81
- month: 1,
82
77
  week: 1,
83
78
  status: 1,
84
79
  });
85
80
  exports.WeeklyStoreCollectionSummarySchema.index({
86
81
  collectionCompanyId: 1,
87
82
  year: 1,
88
- month: 1,
89
83
  week: 1,
90
84
  status: 1,
91
85
  });
@@ -1 +1 @@
1
- {"version":3,"file":"WeeklyStoreCollectionSummary.scehma.js","sourceRoot":"","sources":["../../src/collection-summary/WeeklyStoreCollectionSummary.scehma.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA+D;AAC/D,wCAAqC;AACrC,wDAAgC;AAGzB,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CAwCxC,CAAA;AAxCY,oEAA4B;AAEvC;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACJ,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;yEAAC;AAGpD;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;mEAAC;AAG9C;IADC,IAAA,eAAI,GAAE;8BACS,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;mEA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,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;CACV,CAAC,CAAC;AAEH,0CAAkC,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,IAAI;IAC5D,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
+ {"version":3,"file":"WeeklyStoreCollectionSummary.scehma.js","sourceRoot":"","sources":["../../src/collection-summary/WeeklyStoreCollectionSummary.scehma.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA+D;AAC/D,wCAAqC;AACrC,wDAAgC;AAGzB,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CAqCxC,CAAA;AArCY,oEAA4B;AAEvC;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACJ,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;yEAAC;AAGpD;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;mEAAC;AAG9C;IADC,IAAA,eAAI,GAAE;8BACS,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;mEAAC;AAG/C;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACZ;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACZ;AAGb;IADC,IAAA,eAAI,GAAE;;uEACmB;AAG1B;IADC,IAAA,eAAI,GAAE;;2EACuB;AAG9B;IADC,IAAA,eAAI,GAAE;;uEACmB;AAM1B;IAJ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eswj/thechium-schema",
3
- "version": "10.1.13-collectionSummary.0",
3
+ "version": "10.1.13-collectionSummary.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {