@bharatbxhipment/xhipment-models-v2 1.0.63 → 1.0.64
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 +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/credit-note-master/credit-note-master.interface.d.ts +28 -0
- package/dist/schemas/credit-note-master/credit-note-master.interface.d.ts.map +1 -0
- package/dist/schemas/credit-note-master/credit-note-master.interface.js +3 -0
- package/dist/schemas/credit-note-master/credit-note-master.interface.js.map +1 -0
- package/dist/schemas/credit-note-master/credit-note-master.model.d.ts +4 -0
- package/dist/schemas/credit-note-master/credit-note-master.model.d.ts.map +1 -0
- package/dist/schemas/credit-note-master/credit-note-master.model.js +32 -0
- package/dist/schemas/credit-note-master/credit-note-master.model.js.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./schemas/cogs-gm/cogs-reconciliation.model";
|
|
|
13
13
|
export * from "./schemas/exchangeRate/exchange-rate.model";
|
|
14
14
|
export * from "./schemas/vendors/vendor.model";
|
|
15
15
|
export * from "./schemas/vendor-payables/vendor-payable.model";
|
|
16
|
+
export * from "./schemas/credit-note-master/credit-note-master.model";
|
|
16
17
|
export * from "./schemas/container-meta-data/container-meta-data.type";
|
|
17
18
|
export * from "./schemas/countries/countries.interface";
|
|
18
19
|
export * from "./schemas/billing-entities/billing-entities.interface";
|
|
@@ -28,4 +29,5 @@ export * from "./schemas/cogs-gm/cogs-reconciliation.interface";
|
|
|
28
29
|
export * from "./schemas/exchangeRate/exchange-rate.interface";
|
|
29
30
|
export * from "./schemas/vendors/vendor.interface";
|
|
30
31
|
export * from "./schemas/vendor-payables/vendor-payable.interface";
|
|
32
|
+
export * from "./schemas/credit-note-master/credit-note-master.interface";
|
|
31
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":"AACA,cAAc,yDAAyD,CAAC;AACxE,cAAc,mDAAmD,CAAC;AAClE,cAAc,qCAAqC,CAAC;AACpD,cAAc,wDAAwD,CAAC;AACvE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sDAAsD,CAAC;AACrE,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,yDAAyD,CAAC;AACxE,cAAc,mDAAmD,CAAC;AAClE,cAAc,qCAAqC,CAAC;AACpD,cAAc,wDAAwD,CAAC;AACvE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sDAAsD,CAAC;AACrE,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AAEtE,cAAc,wDAAwD,CAAC;AACvE,cAAc,yCAAyC,CAAC;AACxD,cAAc,uDAAuD,CAAC;AACtE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,iDAAiD,CAAC;AAChE,cAAc,iCAAiC,CAAC;AAChD,cAAc,0DAA0D,CAAC;AACzE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AACnD,cAAc,oDAAoD,CAAC;AACnE,cAAc,2DAA2D,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __exportStar(require("./schemas/cogs-gm/cogs-reconciliation.model"), exports);
|
|
|
30
30
|
__exportStar(require("./schemas/exchangeRate/exchange-rate.model"), exports);
|
|
31
31
|
__exportStar(require("./schemas/vendors/vendor.model"), exports);
|
|
32
32
|
__exportStar(require("./schemas/vendor-payables/vendor-payable.model"), exports);
|
|
33
|
+
__exportStar(require("./schemas/credit-note-master/credit-note-master.model"), exports);
|
|
33
34
|
// Types
|
|
34
35
|
__exportStar(require("./schemas/container-meta-data/container-meta-data.type"), exports);
|
|
35
36
|
__exportStar(require("./schemas/countries/countries.interface"), exports);
|
|
@@ -46,4 +47,5 @@ __exportStar(require("./schemas/cogs-gm/cogs-reconciliation.interface"), exports
|
|
|
46
47
|
__exportStar(require("./schemas/exchangeRate/exchange-rate.interface"), exports);
|
|
47
48
|
__exportStar(require("./schemas/vendors/vendor.interface"), exports);
|
|
48
49
|
__exportStar(require("./schemas/vendor-payables/vendor-payable.interface"), exports);
|
|
50
|
+
__exportStar(require("./schemas/credit-note-master/credit-note-master.interface"), exports);
|
|
49
51
|
//# 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,UAAU;AACV,0FAAwE;AACxE,oFAAkE;AAClE,sEAAoD;AACpD,yFAAuE;AACvE,8EAA4D;AAC5D,8DAA4C;AAC5C,uFAAqE;AACrE,0EAAwD;AACxD,sEAAoD;AACpD,kEAAgD;AAChD,uEAAqD;AACrD,8EAA4D;AAC5D,6EAA2D;AAC3D,iEAA+C;AAC/C,iFAA+D;AAC/D,QAAQ;AACR,yFAAuE;AACvE,0EAAwD;AACxD,wFAAsE;AACtE,6FAA2E;AAC3E,kFAAgE;AAChE,kEAAgD;AAChD,2FAAyE;AACzE,8EAA4D;AAC5D,0EAAwD;AACxD,sEAAoD;AACpD,2EAAyD;AACzD,kFAAgE;AAChE,iFAA+D;AAC/D,qEAAmD;AACnD,qFAAmE"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,UAAU;AACV,0FAAwE;AACxE,oFAAkE;AAClE,sEAAoD;AACpD,yFAAuE;AACvE,8EAA4D;AAC5D,8DAA4C;AAC5C,uFAAqE;AACrE,0EAAwD;AACxD,sEAAoD;AACpD,kEAAgD;AAChD,uEAAqD;AACrD,8EAA4D;AAC5D,6EAA2D;AAC3D,iEAA+C;AAC/C,iFAA+D;AAC/D,wFAAsE;AACtE,QAAQ;AACR,yFAAuE;AACvE,0EAAwD;AACxD,wFAAsE;AACtE,6FAA2E;AAC3E,kFAAgE;AAChE,kEAAgD;AAChD,2FAAyE;AACzE,8EAA4D;AAC5D,0EAAwD;AACxD,sEAAoD;AACpD,2EAAyD;AACzD,kFAAgE;AAChE,iFAA+D;AAC/D,qEAAmD;AACnD,qFAAmE;AACnE,4FAA0E"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Types } from "mongoose";
|
|
2
|
+
import { IValueWithCurrency } from "../../shared-interface/common-interface";
|
|
3
|
+
export interface ICreditNoteAllocation {
|
|
4
|
+
invoiceId: Types.ObjectId;
|
|
5
|
+
invoiceNumber: string;
|
|
6
|
+
allocatedAmount: number;
|
|
7
|
+
currency: string;
|
|
8
|
+
allocatedAt?: Date;
|
|
9
|
+
allocatedBy?: Types.ObjectId;
|
|
10
|
+
_id?: Types.ObjectId;
|
|
11
|
+
}
|
|
12
|
+
export interface ICreditNoteMaster {
|
|
13
|
+
creditNoteNumber: string;
|
|
14
|
+
vendorId: Types.ObjectId;
|
|
15
|
+
vendorName: string;
|
|
16
|
+
totalAmount: IValueWithCurrency;
|
|
17
|
+
allocatedAmount: number;
|
|
18
|
+
remainingAmount: number;
|
|
19
|
+
documentUrl?: string;
|
|
20
|
+
allocations: ICreditNoteAllocation[];
|
|
21
|
+
addedBy?: Types.ObjectId;
|
|
22
|
+
addedAt: Date;
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
createdAt?: Date;
|
|
25
|
+
updatedAt?: Date;
|
|
26
|
+
_id?: Types.ObjectId;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=credit-note-master.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit-note-master.interface.d.ts","sourceRoot":"","sources":["../../../src/schemas/credit-note-master/credit-note-master.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC7B,GAAG,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,kBAAkB,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,qBAAqB,EAAE,CAAC;IACrC,OAAO,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACzB,OAAO,EAAE,IAAI,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,GAAG,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit-note-master.interface.js","sourceRoot":"","sources":["../../../src/schemas/credit-note-master/credit-note-master.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Schema } from "mongoose";
|
|
2
|
+
import { ICreditNoteMaster } from "./credit-note-master.interface";
|
|
3
|
+
export declare const creditNoteMasterSchema: Schema<ICreditNoteMaster, import("mongoose").Model<ICreditNoteMaster, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ICreditNoteMaster>;
|
|
4
|
+
//# sourceMappingURL=credit-note-master.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit-note-master.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/credit-note-master/credit-note-master.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAyB,MAAM,gCAAgC,CAAC;AAW1F,eAAO,MAAM,sBAAsB,wKAesB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.creditNoteMasterSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const creditNoteAllocationSchema = new mongoose_1.Schema({
|
|
6
|
+
invoiceId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'VendorPayable', required: true },
|
|
7
|
+
invoiceNumber: { type: String, required: true },
|
|
8
|
+
allocatedAmount: { type: Number, required: true },
|
|
9
|
+
currency: { type: String, required: true },
|
|
10
|
+
allocatedAt: { type: Date, default: Date.now },
|
|
11
|
+
allocatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }
|
|
12
|
+
}, { _id: true });
|
|
13
|
+
exports.creditNoteMasterSchema = new mongoose_1.Schema({
|
|
14
|
+
creditNoteNumber: { type: String, required: true },
|
|
15
|
+
vendorId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Vendor', required: true },
|
|
16
|
+
vendorName: { type: String, required: true },
|
|
17
|
+
totalAmount: {
|
|
18
|
+
value: { type: Number, required: true },
|
|
19
|
+
currency: { type: String, required: true }
|
|
20
|
+
},
|
|
21
|
+
allocatedAmount: { type: Number, default: 0 },
|
|
22
|
+
remainingAmount: { type: Number, default: 0 },
|
|
23
|
+
documentUrl: { type: String },
|
|
24
|
+
allocations: [creditNoteAllocationSchema],
|
|
25
|
+
addedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
26
|
+
addedAt: { type: Date, default: Date.now },
|
|
27
|
+
isActive: { type: Boolean, default: true }
|
|
28
|
+
}, { timestamps: true, collection: 'creditnotemasters' });
|
|
29
|
+
exports.creditNoteMasterSchema.index({ vendorId: 1 });
|
|
30
|
+
exports.creditNoteMasterSchema.index({ creditNoteNumber: 1, vendorId: 1 }, { unique: true });
|
|
31
|
+
exports.creditNoteMasterSchema.index({ 'allocations.invoiceId': 1 });
|
|
32
|
+
//# sourceMappingURL=credit-note-master.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit-note-master.model.js","sourceRoot":"","sources":["../../../src/schemas/credit-note-master/credit-note-master.model.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAGlC,MAAM,0BAA0B,GAAG,IAAI,iBAAM,CAAwB;IACnE,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,K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