@sildeswj/thechium-schema 10.0.7-shipment-log.0 → 10.0.7-shipment-log.1
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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/warehouse/driverShipmentLog.schema.d.ts +37 -18
- package/dist/warehouse/driverShipmentLog.schema.d.ts.map +1 -1
- package/dist/warehouse/driverShipmentLog.schema.js +119 -38
- package/dist/warehouse/driverShipmentLog.schema.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './warehouse/driverShipment.schema';
|
|
|
27
27
|
export * from './warehouse/shipmentStatus.enum';
|
|
28
28
|
export * from './warehouse/warehouse.schema';
|
|
29
29
|
export * from './warehouse/scale.schema';
|
|
30
|
+
export * from './warehouse/driverShipmentLog.schema';
|
|
30
31
|
export * from './sub/collectionOrder/subSchemaFactory';
|
|
31
32
|
export * from './relationships/buyerRequest.schema';
|
|
32
33
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,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,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAA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CAAC;AACzC,cAAc,sCAAsC,CAAC;AAGrD,cAAc,wCAAwC,CAAC;AAGvD,cAAc,qCAAqC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -45,6 +45,7 @@ __exportStar(require("./warehouse/driverShipment.schema"), exports);
|
|
|
45
45
|
__exportStar(require("./warehouse/shipmentStatus.enum"), exports);
|
|
46
46
|
__exportStar(require("./warehouse/warehouse.schema"), exports);
|
|
47
47
|
__exportStar(require("./warehouse/scale.schema"), exports);
|
|
48
|
+
__exportStar(require("./warehouse/driverShipmentLog.schema"), exports);
|
|
48
49
|
// Sub
|
|
49
50
|
__exportStar(require("./sub/collectionOrder/subSchemaFactory"), exports);
|
|
50
51
|
// Relationships
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,iDAA+B;AAC/B,qEAAmD;AACnD,2DAAyC;AACzC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,+DAA6C;AAC7C,kEAAgD;AAChD,iDAA+B;AAC/B,mDAAiC;AACjC,iEAA+C;AAC/C,6DAA2C;AAC3C,kEAAgD;AAChD,yDAAuC;AACvC,oDAAkC;AAClC,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AAEtC,QAAQ;AACR,6DAA2C;AAC3C,yDAAuC;AACvC,iEAA+C;AAC/C,iEAA+C;AAC/C,mEAAiD;AACjD,+EAA6D;AAE7D,YAAY;AACZ,oEAAkD;AAClD,kEAAgD;AAChD,+DAA6C;AAC7C,2DAAyC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,iDAA+B;AAC/B,qEAAmD;AACnD,2DAAyC;AACzC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,+DAA6C;AAC7C,kEAAgD;AAChD,iDAA+B;AAC/B,mDAAiC;AACjC,iEAA+C;AAC/C,6DAA2C;AAC3C,kEAAgD;AAChD,yDAAuC;AACvC,oDAAkC;AAClC,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AAEtC,QAAQ;AACR,6DAA2C;AAC3C,yDAAuC;AACvC,iEAA+C;AAC/C,iEAA+C;AAC/C,mEAAiD;AACjD,+EAA6D;AAE7D,YAAY;AACZ,oEAAkD;AAClD,kEAAgD;AAChD,+DAA6C;AAC7C,2DAAyC;AACzC,uEAAqD;AAErD,MAAM;AACN,yEAAuD;AAEvD,gBAAgB;AAChB,sEAAoD"}
|
|
@@ -1,28 +1,47 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import mongoose, { Document } from 'mongoose';
|
|
2
2
|
export type WarehouseDriverShipmentLogAction = 'create' | 'update' | 'delete';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export declare class WarehouseDriverShipmentLogPerformedBy {
|
|
4
|
+
userId?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const WarehouseDriverShipmentLogPerformedBySchema: mongoose.Schema<WarehouseDriverShipmentLogPerformedBy, mongoose.Model<WarehouseDriverShipmentLogPerformedBy, any, any, any, mongoose.Document<unknown, any, WarehouseDriverShipmentLogPerformedBy, any, {}> & WarehouseDriverShipmentLogPerformedBy & {
|
|
10
|
+
_id: mongoose.Types.ObjectId;
|
|
11
|
+
} & {
|
|
12
|
+
__v: number;
|
|
13
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, WarehouseDriverShipmentLogPerformedBy, mongoose.Document<unknown, {}, mongoose.FlatRecord<WarehouseDriverShipmentLogPerformedBy>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<WarehouseDriverShipmentLogPerformedBy> & {
|
|
14
|
+
_id: mongoose.Types.ObjectId;
|
|
15
|
+
} & {
|
|
16
|
+
__v: number;
|
|
17
|
+
}>;
|
|
18
|
+
export declare class WarehouseDriverShipmentLogChanges {
|
|
19
|
+
before?: Record<string, unknown> | null;
|
|
20
|
+
after?: Record<string, unknown> | null;
|
|
21
|
+
}
|
|
22
|
+
export declare const WarehouseDriverShipmentLogChangesSchema: mongoose.Schema<WarehouseDriverShipmentLogChanges, mongoose.Model<WarehouseDriverShipmentLogChanges, any, any, any, mongoose.Document<unknown, any, WarehouseDriverShipmentLogChanges, any, {}> & WarehouseDriverShipmentLogChanges & {
|
|
23
|
+
_id: mongoose.Types.ObjectId;
|
|
24
|
+
} & {
|
|
25
|
+
__v: number;
|
|
26
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, WarehouseDriverShipmentLogChanges, mongoose.Document<unknown, {}, mongoose.FlatRecord<WarehouseDriverShipmentLogChanges>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<WarehouseDriverShipmentLogChanges> & {
|
|
27
|
+
_id: mongoose.Types.ObjectId;
|
|
28
|
+
} & {
|
|
29
|
+
__v: number;
|
|
30
|
+
}>;
|
|
31
|
+
export declare class WarehouseDriverShipmentLog extends Document {
|
|
32
|
+
shipmentId: mongoose.Schema.Types.ObjectId;
|
|
6
33
|
action: WarehouseDriverShipmentLogAction;
|
|
7
34
|
description?: string;
|
|
8
|
-
performedBy?:
|
|
9
|
-
|
|
10
|
-
email?: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
role?: string;
|
|
13
|
-
};
|
|
14
|
-
changes?: {
|
|
15
|
-
before?: Record<string, any> | null;
|
|
16
|
-
after?: Record<string, any> | null;
|
|
17
|
-
};
|
|
35
|
+
performedBy?: WarehouseDriverShipmentLogPerformedBy;
|
|
36
|
+
changes?: WarehouseDriverShipmentLogChanges;
|
|
18
37
|
createdAt: Date;
|
|
19
38
|
}
|
|
20
|
-
export declare const WarehouseDriverShipmentLogSchema: Schema<WarehouseDriverShipmentLog,
|
|
21
|
-
_id:
|
|
39
|
+
export declare const WarehouseDriverShipmentLogSchema: mongoose.Schema<WarehouseDriverShipmentLog, mongoose.Model<WarehouseDriverShipmentLog, any, any, any, mongoose.Document<unknown, any, WarehouseDriverShipmentLog, any, {}> & WarehouseDriverShipmentLog & Required<{
|
|
40
|
+
_id: unknown;
|
|
22
41
|
}> & {
|
|
23
42
|
__v: number;
|
|
24
|
-
}, any>, {}, {}, {}, {},
|
|
25
|
-
_id:
|
|
43
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, WarehouseDriverShipmentLog, mongoose.Document<unknown, {}, mongoose.FlatRecord<WarehouseDriverShipmentLog>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<WarehouseDriverShipmentLog> & Required<{
|
|
44
|
+
_id: unknown;
|
|
26
45
|
}> & {
|
|
27
46
|
__v: number;
|
|
28
47
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driverShipmentLog.schema.d.ts","sourceRoot":"","sources":["../../src/warehouse/driverShipmentLog.schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"driverShipmentLog.schema.d.ts","sourceRoot":"","sources":["../../src/warehouse/driverShipmentLog.schema.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAG9C,MAAM,MAAM,gCAAgC,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9E,qBACa,qCAAqC;IAEhD,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,2CAA2C;;;;;;;;EAEvD,CAAC;AAEF,qBACa,iCAAiC;IAE5C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAGxC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CACxC;AAED,eAAO,MAAM,uCAAuC;;;;;;;;EAEnD,CAAC;AAEF,qBACa,0BAA2B,SAAQ,QAAQ;IAOtD,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;IAM3C,MAAM,EAAE,gCAAgC,CAAC;IAGzC,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,WAAW,CAAC,EAAE,qCAAqC,CAAC;IAGpD,OAAO,CAAC,EAAE,iCAAiC,CAAC;IAG5C,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,eAAO,MAAM,gCAAgC;;;;;;;;EAE5C,CAAC"}
|
|
@@ -1,46 +1,127 @@
|
|
|
1
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 () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
|
+
};
|
|
2
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WarehouseDriverShipmentLogSchema = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
45
|
+
exports.WarehouseDriverShipmentLogSchema = exports.WarehouseDriverShipmentLog = exports.WarehouseDriverShipmentLogChangesSchema = exports.WarehouseDriverShipmentLogChanges = exports.WarehouseDriverShipmentLogPerformedBySchema = exports.WarehouseDriverShipmentLogPerformedBy = void 0;
|
|
46
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
47
|
+
const mongoose_2 = __importStar(require("mongoose"));
|
|
48
|
+
const options_1 = require("../options");
|
|
49
|
+
let WarehouseDriverShipmentLogPerformedBy = class WarehouseDriverShipmentLogPerformedBy {
|
|
50
|
+
};
|
|
51
|
+
exports.WarehouseDriverShipmentLogPerformedBy = WarehouseDriverShipmentLogPerformedBy;
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, mongoose_1.Prop)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], WarehouseDriverShipmentLogPerformedBy.prototype, "userId", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, mongoose_1.Prop)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], WarehouseDriverShipmentLogPerformedBy.prototype, "email", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, mongoose_1.Prop)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], WarehouseDriverShipmentLogPerformedBy.prototype, "name", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, mongoose_1.Prop)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], WarehouseDriverShipmentLogPerformedBy.prototype, "role", void 0);
|
|
68
|
+
exports.WarehouseDriverShipmentLogPerformedBy = WarehouseDriverShipmentLogPerformedBy = __decorate([
|
|
69
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
70
|
+
], WarehouseDriverShipmentLogPerformedBy);
|
|
71
|
+
exports.WarehouseDriverShipmentLogPerformedBySchema = mongoose_1.SchemaFactory.createForClass(WarehouseDriverShipmentLogPerformedBy);
|
|
72
|
+
let WarehouseDriverShipmentLogChanges = class WarehouseDriverShipmentLogChanges {
|
|
73
|
+
};
|
|
74
|
+
exports.WarehouseDriverShipmentLogChanges = WarehouseDriverShipmentLogChanges;
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.default.Schema.Types.Mixed, default: null }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], WarehouseDriverShipmentLogChanges.prototype, "before", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.default.Schema.Types.Mixed, default: null }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], WarehouseDriverShipmentLogChanges.prototype, "after", void 0);
|
|
83
|
+
exports.WarehouseDriverShipmentLogChanges = WarehouseDriverShipmentLogChanges = __decorate([
|
|
84
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
85
|
+
], WarehouseDriverShipmentLogChanges);
|
|
86
|
+
exports.WarehouseDriverShipmentLogChangesSchema = mongoose_1.SchemaFactory.createForClass(WarehouseDriverShipmentLogChanges);
|
|
87
|
+
let WarehouseDriverShipmentLog = class WarehouseDriverShipmentLog extends mongoose_2.Document {
|
|
88
|
+
};
|
|
89
|
+
exports.WarehouseDriverShipmentLog = WarehouseDriverShipmentLog;
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, mongoose_1.Prop)({
|
|
92
|
+
type: mongoose_2.default.Schema.Types.ObjectId,
|
|
8
93
|
ref: 'WarehouseDriverShipment',
|
|
9
94
|
required: true,
|
|
10
95
|
index: true,
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
96
|
+
}),
|
|
97
|
+
__metadata("design:type", mongoose_2.default.Schema.Types.ObjectId)
|
|
98
|
+
], WarehouseDriverShipmentLog.prototype, "shipmentId", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, mongoose_1.Prop)({
|
|
15
101
|
required: true,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
}, {
|
|
42
|
-
timestamps: { createdAt: true, updatedAt: false },
|
|
43
|
-
collection: 'warehousedrivershipmentlogs',
|
|
44
|
-
});
|
|
102
|
+
enum: ['create', 'update', 'delete'],
|
|
103
|
+
}),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], WarehouseDriverShipmentLog.prototype, "action", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, mongoose_1.Prop)(),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], WarehouseDriverShipmentLog.prototype, "description", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, mongoose_1.Prop)({ type: exports.WarehouseDriverShipmentLogPerformedBySchema }),
|
|
112
|
+
__metadata("design:type", WarehouseDriverShipmentLogPerformedBy)
|
|
113
|
+
], WarehouseDriverShipmentLog.prototype, "performedBy", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, mongoose_1.Prop)({ type: exports.WarehouseDriverShipmentLogChangesSchema }),
|
|
116
|
+
__metadata("design:type", WarehouseDriverShipmentLogChanges)
|
|
117
|
+
], WarehouseDriverShipmentLog.prototype, "changes", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, mongoose_1.Prop)({ type: Date, default: () => new Date(), index: true }),
|
|
120
|
+
__metadata("design:type", Date)
|
|
121
|
+
], WarehouseDriverShipmentLog.prototype, "createdAt", void 0);
|
|
122
|
+
exports.WarehouseDriverShipmentLog = WarehouseDriverShipmentLog = __decorate([
|
|
123
|
+
(0, mongoose_1.Schema)(options_1.options)
|
|
124
|
+
], WarehouseDriverShipmentLog);
|
|
125
|
+
exports.WarehouseDriverShipmentLogSchema = mongoose_1.SchemaFactory.createForClass(WarehouseDriverShipmentLog);
|
|
45
126
|
exports.WarehouseDriverShipmentLogSchema.index({ shipmentId: 1, createdAt: -1 });
|
|
46
127
|
//# sourceMappingURL=driverShipmentLog.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driverShipmentLog.schema.js","sourceRoot":"","sources":["../../src/warehouse/driverShipmentLog.schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"driverShipmentLog.schema.js","sourceRoot":"","sources":["../../src/warehouse/driverShipmentLog.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+D;AAC/D,qDAA8C;AAC9C,wCAAqC;AAK9B,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;CAYjD,CAAA;AAZY,sFAAqC;AAEhD;IADC,IAAA,eAAI,GAAE;;qEACS;AAGhB;IADC,IAAA,eAAI,GAAE;;oEACQ;AAGf;IADC,IAAA,eAAI,GAAE;;mEACO;AAGd;IADC,IAAA,eAAI,GAAE;;mEACO;gDAXH,qCAAqC;IADjD,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,qCAAqC,CAYjD;AAEY,QAAA,2CAA2C,GAAG,wBAAa,CAAC,cAAc,CACrF,qCAAqC,CACtC,CAAC;AAGK,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;CAM7C,CAAA;AANY,8EAAiC;AAE5C;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iEACnB;AAGxC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gEACpB;4CAL5B,iCAAiC;IAD7C,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,iCAAiC,CAM7C;AAEY,QAAA,uCAAuC,GAAG,wBAAa,CA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echium-schema",
|
|
3
|
-
"version": "10.0.7-shipment-log.
|
|
3
|
+
"version": "10.0.7-shipment-log.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
"rxjs": "^7.8.2",
|
|
27
27
|
"typescript": "^5.9.2"
|
|
28
28
|
}
|
|
29
|
-
}
|
|
29
|
+
}
|