@bharatbxhipment/xhipment-models-v2 1.0.4 → 1.0.6
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/amsIsfFiling/ams-isf-filing.interface.d.ts +53 -0
- package/dist/amsIsfFiling/ams-isf-filing.interface.d.ts.map +1 -0
- package/dist/amsIsfFiling/ams-isf-filing.interface.js +3 -0
- package/dist/amsIsfFiling/ams-isf-filing.interface.js.map +1 -0
- package/dist/amsIsfFiling/ams-isf-filing.model.d.ts +6 -0
- package/dist/amsIsfFiling/ams-isf-filing.model.d.ts.map +1 -0
- package/dist/amsIsfFiling/ams-isf-filing.model.js +65 -0
- package/dist/amsIsfFiling/ams-isf-filing.model.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/billing-entities/billing-entities.interface.d.ts +54 -0
- package/dist/schemas/billing-entities/billing-entities.interface.d.ts.map +1 -0
- package/dist/schemas/billing-entities/billing-entities.interface.js +3 -0
- package/dist/schemas/billing-entities/billing-entities.interface.js.map +1 -0
- package/dist/schemas/billing-entities/billing-entities.model.d.ts +4 -0
- package/dist/schemas/billing-entities/billing-entities.model.d.ts.map +1 -0
- package/dist/schemas/billing-entities/billing-entities.model.js +213 -0
- package/dist/schemas/billing-entities/billing-entities.model.js.map +1 -0
- package/dist/schemas/container-meta-data/container-meta-data.model.d.ts +2 -18
- package/dist/schemas/container-meta-data/container-meta-data.model.d.ts.map +1 -1
- package/dist/schemas/countries/countries.interface.d.ts +25 -0
- package/dist/schemas/countries/countries.interface.d.ts.map +1 -0
- package/dist/schemas/countries/countries.interface.js +3 -0
- package/dist/schemas/countries/countries.interface.js.map +1 -0
- package/dist/schemas/countries/countries.model.d.ts +4 -0
- package/dist/schemas/countries/countries.model.d.ts.map +1 -0
- package/dist/schemas/countries/countries.model.js +90 -0
- package/dist/schemas/countries/countries.model.js.map +1 -0
- package/dist/schemas/shipment-executions/air-freight-executions/air-freight-execution.intreface.d.ts +137 -0
- package/dist/schemas/shipment-executions/air-freight-executions/air-freight-execution.intreface.d.ts.map +1 -0
- package/dist/schemas/shipment-executions/air-freight-executions/air-freight-execution.intreface.js +4 -0
- package/dist/schemas/shipment-executions/air-freight-executions/air-freight-execution.intreface.js.map +1 -0
- package/dist/schemas/shipment-executions/air-freight-executions/air-freight-execution.model.d.ts +4 -0
- package/dist/schemas/shipment-executions/air-freight-executions/air-freight-execution.model.d.ts.map +1 -0
- package/dist/schemas/shipment-executions/air-freight-executions/air-freight-execution.model.js +231 -0
- package/dist/schemas/shipment-executions/air-freight-executions/air-freight-execution.model.js.map +1 -0
- package/dist/schemas/shipment-executions/cargo-details/cargo-deatails.interface.d.ts +44 -0
- package/dist/schemas/shipment-executions/cargo-details/cargo-deatails.interface.d.ts.map +1 -0
- package/dist/schemas/shipment-executions/cargo-details/cargo-deatails.interface.js +3 -0
- package/dist/schemas/shipment-executions/cargo-details/cargo-deatails.interface.js.map +1 -0
- package/dist/schemas/shipment-executions/cargo-details/cargo-details.model.d.ts +4 -0
- package/dist/schemas/shipment-executions/cargo-details/cargo-details.model.d.ts.map +1 -0
- package/dist/schemas/shipment-executions/cargo-details/cargo-details.model.js +84 -0
- package/dist/schemas/shipment-executions/cargo-details/cargo-details.model.js.map +1 -0
- package/dist/schemas/shipment-executions/shipment-execution.interface.d.ts +18 -0
- package/dist/schemas/shipment-executions/shipment-execution.interface.d.ts.map +1 -0
- package/dist/schemas/shipment-executions/shipment-execution.interface.js +3 -0
- package/dist/schemas/shipment-executions/shipment-execution.interface.js.map +1 -0
- package/dist/schemas/shipment-executions/shipment-execution.model.d.ts +4 -0
- package/dist/schemas/shipment-executions/shipment-execution.model.d.ts.map +1 -0
- package/dist/schemas/shipment-executions/shipment-execution.model.js +66 -0
- package/dist/schemas/shipment-executions/shipment-execution.model.js.map +1 -0
- package/dist/shared-interface/common-interface.d.ts +17 -0
- package/dist/shared-interface/common-interface.d.ts.map +1 -0
- package/dist/shared-interface/common-interface.js +3 -0
- package/dist/shared-interface/common-interface.js.map +1 -0
- package/package.json +8 -5
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Types } from "mongoose";
|
|
2
|
+
import { IAddress, IValueWithCurrency, IValueWithUnit } from "../shared-interface/common-interface";
|
|
3
|
+
export interface AmsIsfFilingBase {
|
|
4
|
+
_id?: Types.ObjectId;
|
|
5
|
+
shipmentExecutionId: Types.ObjectId;
|
|
6
|
+
bookingId: Types.ObjectId;
|
|
7
|
+
quoteId: Types.ObjectId;
|
|
8
|
+
quoteIdentity: string;
|
|
9
|
+
consigneeName: string;
|
|
10
|
+
consigneeAddress: IAddress;
|
|
11
|
+
totalCartons: number;
|
|
12
|
+
totalWeight: IValueWithUnit;
|
|
13
|
+
linerName: string;
|
|
14
|
+
mblNumber: string;
|
|
15
|
+
containerType: string;
|
|
16
|
+
createdAt?: Date;
|
|
17
|
+
updatedAt?: Date;
|
|
18
|
+
}
|
|
19
|
+
export interface IAmsFiling extends AmsIsfFilingBase {
|
|
20
|
+
portOfLoading: string;
|
|
21
|
+
portOfDischarge: string;
|
|
22
|
+
etaPod: Date;
|
|
23
|
+
linerScac: string;
|
|
24
|
+
vesselName: string;
|
|
25
|
+
voyageNumber: string;
|
|
26
|
+
containerNumber: string;
|
|
27
|
+
sealNumber: string;
|
|
28
|
+
commodityDescription: string;
|
|
29
|
+
marksAndLabels: string;
|
|
30
|
+
kind: 'AMS';
|
|
31
|
+
}
|
|
32
|
+
export interface IIfsFiling extends AmsIsfFilingBase {
|
|
33
|
+
invoiceNumber: string;
|
|
34
|
+
invoiceValue: IValueWithCurrency;
|
|
35
|
+
hblNumber: string;
|
|
36
|
+
importerName: string;
|
|
37
|
+
importerAddress: IAddress;
|
|
38
|
+
buyingPartyName: string;
|
|
39
|
+
buyingPartyAddress: IAddress;
|
|
40
|
+
shipToPartyName: string;
|
|
41
|
+
shipToPartyAddress: IAddress;
|
|
42
|
+
containerStuffingLocationName: string;
|
|
43
|
+
containerStuffingLocationAddress: IAddress;
|
|
44
|
+
consolidatorName: string;
|
|
45
|
+
consolidatorAddress: IAddress;
|
|
46
|
+
sellingPartyName: string;
|
|
47
|
+
sellingPartyAddress: IAddress;
|
|
48
|
+
manufacturerName: string;
|
|
49
|
+
manufacturerAddress: IAddress;
|
|
50
|
+
kind: 'IFS';
|
|
51
|
+
}
|
|
52
|
+
export type IAmsIsfFiling = IAmsFiling | IIfsFiling;
|
|
53
|
+
//# sourceMappingURL=ams-isf-filing.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ams-isf-filing.interface.d.ts","sourceRoot":"","sources":["../../src/amsIsfFiling/ams-isf-filing.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAGpG,MAAM,WAAW,gBAAgB;IAC7B,GAAG,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC;IACpC,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC1B,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,QAAQ,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,cAAc,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,UAAW,SAAQ,gBAAgB;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,IAAI,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,KAAK,CAAA;CACd;AAED,MAAM,WAAW,UAAW,SAAQ,gBAAgB;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,kBAAkB,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,QAAQ,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,QAAQ,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,QAAQ,CAAC;IAC7B,6BAA6B,EAAE,MAAM,CAAC;IACtC,gCAAgC,EAAE,QAAQ,CAAC;IAC3C,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,QAAQ,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,QAAQ,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,QAAQ,CAAC;IAC9B,IAAI,EAAE,KAAK,CAAA;CACd;AAGD,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ams-isf-filing.interface.js","sourceRoot":"","sources":["../../src/amsIsfFiling/ams-isf-filing.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Schema } from "mongoose";
|
|
2
|
+
import { IAmsFiling, IIfsFiling, IAmsIsfFiling } from "./ams-isf-filing.interface";
|
|
3
|
+
export declare const amsIsfFilingSchema: Schema<IAmsIsfFiling, import("mongoose").Model<IAmsIsfFiling, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAmsIsfFiling>;
|
|
4
|
+
export declare const ifsFilingSchema: Schema<IIfsFiling, import("mongoose").Model<IIfsFiling, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IIfsFiling>;
|
|
5
|
+
export declare const amsFilingSchema: Schema<IAmsFiling, import("mongoose").Model<IAmsFiling, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAmsFiling>;
|
|
6
|
+
//# sourceMappingURL=ams-isf-filing.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ams-isf-filing.model.d.ts","sourceRoot":"","sources":["../../src/amsIsfFiling/ams-isf-filing.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAWnF,eAAO,MAAM,kBAAkB,4JAemB,CAAC;AAEnD,eAAO,MAAM,eAAe,mJAqB1B,CAAC;AAEH,eAAO,MAAM,eAAe,mJAW1B,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.amsFilingSchema = exports.ifsFilingSchema = exports.amsIsfFilingSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const addressSchema = new mongoose_1.Schema({
|
|
6
|
+
addressLineOne: { type: String },
|
|
7
|
+
addressLineTwo: { type: String },
|
|
8
|
+
city: { type: String },
|
|
9
|
+
state: { type: String },
|
|
10
|
+
country: { type: String },
|
|
11
|
+
pincode: { type: String }
|
|
12
|
+
}, { _id: false });
|
|
13
|
+
exports.amsIsfFilingSchema = new mongoose_1.Schema({
|
|
14
|
+
shipmentExecutionId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'ShipmentExecution' },
|
|
15
|
+
bookingId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Booking' },
|
|
16
|
+
quoteId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Quote' },
|
|
17
|
+
quoteIdentity: { type: String },
|
|
18
|
+
consigneeName: { type: String },
|
|
19
|
+
consigneeAddress: addressSchema,
|
|
20
|
+
totalCartons: { type: Number },
|
|
21
|
+
totalWeight: {
|
|
22
|
+
value: { type: Number },
|
|
23
|
+
unit: { type: String }
|
|
24
|
+
},
|
|
25
|
+
linerName: { type: String },
|
|
26
|
+
mblNumber: { type: String },
|
|
27
|
+
containerType: { type: String }
|
|
28
|
+
}, { timestamps: true, discriminatorKey: 'kind' });
|
|
29
|
+
exports.ifsFilingSchema = new mongoose_1.Schema({
|
|
30
|
+
invoiceNumber: { type: String },
|
|
31
|
+
invoiceValue: {
|
|
32
|
+
value: { type: Number },
|
|
33
|
+
currency: { type: String }
|
|
34
|
+
},
|
|
35
|
+
hblNumber: { type: String },
|
|
36
|
+
importerName: { type: String },
|
|
37
|
+
importerAddress: addressSchema,
|
|
38
|
+
buyingPartyName: { type: String },
|
|
39
|
+
buyingPartyAddress: addressSchema,
|
|
40
|
+
shipToPartyName: { type: String },
|
|
41
|
+
shipToPartyAddress: addressSchema,
|
|
42
|
+
containerStuffingLocationName: { type: String },
|
|
43
|
+
containerStuffingLocationAddress: addressSchema,
|
|
44
|
+
consolidatorName: { type: String },
|
|
45
|
+
consolidatorAddress: addressSchema,
|
|
46
|
+
sellingPartyName: { type: String },
|
|
47
|
+
sellingPartyAddress: addressSchema,
|
|
48
|
+
manufacturerName: { type: String },
|
|
49
|
+
manufacturerAddress: addressSchema
|
|
50
|
+
});
|
|
51
|
+
exports.amsFilingSchema = new mongoose_1.Schema({
|
|
52
|
+
portOfLoading: { type: String },
|
|
53
|
+
portOfDischarge: { type: String },
|
|
54
|
+
etaPod: { type: Date },
|
|
55
|
+
linerScac: { type: String },
|
|
56
|
+
vesselName: { type: String },
|
|
57
|
+
voyageNumber: { type: String },
|
|
58
|
+
containerNumber: { type: String },
|
|
59
|
+
sealNumber: { type: String },
|
|
60
|
+
commodityDescription: { type: String },
|
|
61
|
+
marksAndLabels: { type: String },
|
|
62
|
+
});
|
|
63
|
+
exports.amsIsfFilingSchema.discriminator('AMS', exports.amsFilingSchema);
|
|
64
|
+
exports.amsIsfFilingSchema.discriminator('IFS', exports.ifsFilingSchema);
|
|
65
|
+
//# sourceMappingURL=ams-isf-filing.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ams-isf-filing.model.js","sourceRoot":"","sources":["../../src/amsIsfFiling/ams-isf-filing.model.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAGlC,MAAM,aAAa,GAAG,IAAI,iBAAM,CAAC;IAC7B,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAChC,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAChC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACtB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACvB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACzB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;CAC5B,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;AAEN,QAAA,kBAAkB,GAAG,IAAI,iBAAM,CAAgB;IACxD,mBAAmB,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,mBAAmB,EAAE;IAC9E,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE;IAC1D,OAAO,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAA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AAE,IAAI,EAAE,MAAM,EAAE;IAClC,mBAAmB,EAAE,aAAa;IAClC,gBAAgB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAClC,mBAAmB,EAAE,aAAa;CACrC,CAAC,CAAC;AAEU,QAAA,eAAe,GAAG,IAAI,iBAAM,CAAa;IAClD,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC/B,eAAe,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACjC,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IACtB,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC3B,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5B,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC9B,eAAe,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACjC,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5B,oBAAoB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACtC,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;CACnC,CAAC,CAAC;AAEH,0BAAkB,CAAC,aAAa,CAAC,KAAK,EAAE,uBAAe,CAAC,CAAC;AACzD,0BAAkB,CAAC,aAAa,CAAC,KAAK,EAAE,uBAAe,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
export * from "./schemas/container-meta-data/container-meta-data.model";
|
|
2
|
+
export * from "./schemas/billing-entities/billing-entities.model";
|
|
3
|
+
export * from "./schemas/countries/countries.model";
|
|
4
|
+
export * from "./schemas/shipment-executions/shipment-execution.model";
|
|
5
|
+
export * from "./amsIsfFiling/ams-isf-filing.model";
|
|
2
6
|
export * from "./schemas/container-meta-data/container-meta-data.type";
|
|
7
|
+
export * from "./schemas/countries/countries.interface";
|
|
8
|
+
export * from "./schemas/billing-entities/billing-entities.interface";
|
|
9
|
+
export * from "./schemas/shipment-executions/shipment-execution.interface";
|
|
10
|
+
export * from "./amsIsfFiling/ams-isf-filing.interface";
|
|
3
11
|
//# 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;
|
|
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,qCAAqC,CAAC;AAEpD,cAAc,wDAAwD,CAAC;AACvE,cAAc,yCAAyC,CAAC;AACxD,cAAc,uDAAuD,CAAC;AACtE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yCAAyC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
// Schemas
|
|
18
18
|
__exportStar(require("./schemas/container-meta-data/container-meta-data.model"), exports);
|
|
19
|
+
__exportStar(require("./schemas/billing-entities/billing-entities.model"), exports);
|
|
20
|
+
__exportStar(require("./schemas/countries/countries.model"), exports);
|
|
21
|
+
__exportStar(require("./schemas/shipment-executions/shipment-execution.model"), exports);
|
|
22
|
+
__exportStar(require("./amsIsfFiling/ams-isf-filing.model"), exports);
|
|
19
23
|
// Types
|
|
20
24
|
__exportStar(require("./schemas/container-meta-data/container-meta-data.type"), exports);
|
|
25
|
+
__exportStar(require("./schemas/countries/countries.interface"), exports);
|
|
26
|
+
__exportStar(require("./schemas/billing-entities/billing-entities.interface"), exports);
|
|
27
|
+
__exportStar(require("./schemas/shipment-executions/shipment-execution.interface"), exports);
|
|
28
|
+
__exportStar(require("./amsIsfFiling/ams-isf-filing.interface"), exports);
|
|
21
29
|
//# 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;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,UAAU;AACV,0FAAwE;AACxE,oFAAkE;AAClE,sEAAoD;AACpD,yFAAuE;AACvE,sEAAoD;AACpD,QAAQ;AACR,yFAAuE;AACvE,0EAAwD;AACxD,wFAAsE;AACtE,6FAA2E;AAC3E,0EAAwD"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
export interface IBillingEntities {
|
|
3
|
+
_id?: mongoose.Types.ObjectId;
|
|
4
|
+
organizationId: mongoose.Types.ObjectId;
|
|
5
|
+
entityName: string;
|
|
6
|
+
country: string;
|
|
7
|
+
currency: string;
|
|
8
|
+
billingAddress: {
|
|
9
|
+
addressLineOne: string;
|
|
10
|
+
addressLineTwo: string;
|
|
11
|
+
city: string;
|
|
12
|
+
state: string;
|
|
13
|
+
pincode: string;
|
|
14
|
+
country: string;
|
|
15
|
+
};
|
|
16
|
+
shippingAddress: {
|
|
17
|
+
addressLineOne: string;
|
|
18
|
+
addressLineTwo: string;
|
|
19
|
+
city: string;
|
|
20
|
+
state: string;
|
|
21
|
+
pincode: string;
|
|
22
|
+
country: string;
|
|
23
|
+
};
|
|
24
|
+
isShippingAddressSameAsBillingAddress: boolean;
|
|
25
|
+
gstInfo?: {
|
|
26
|
+
gstinNo: string;
|
|
27
|
+
gstTreatment: string;
|
|
28
|
+
};
|
|
29
|
+
zohoEmail: string;
|
|
30
|
+
zohoContactIdIndia: {
|
|
31
|
+
zohoId: string;
|
|
32
|
+
currencyPreference: string;
|
|
33
|
+
}[];
|
|
34
|
+
zohoContactIdUs: {
|
|
35
|
+
zohoId: string;
|
|
36
|
+
currencyPreference: string;
|
|
37
|
+
}[];
|
|
38
|
+
isEntityCreatedOnZoho: boolean;
|
|
39
|
+
alsoForZohoUs?: boolean;
|
|
40
|
+
entityApproval: 'PENDING' | 'APPROVED' | 'REJECTED';
|
|
41
|
+
verificationDocuments: {
|
|
42
|
+
documentName: string;
|
|
43
|
+
documentUrl: string;
|
|
44
|
+
}[];
|
|
45
|
+
isVerified: boolean;
|
|
46
|
+
status: 'ACTIVE' | 'INACTIVE';
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
updatedAt: Date;
|
|
49
|
+
createdBy: string;
|
|
50
|
+
updatedBy: string;
|
|
51
|
+
lastUpdatedAt: Date;
|
|
52
|
+
lastUpdatedBy: string;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=billing-entities.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-entities.interface.d.ts","sourceRoot":"","sources":["../../../src/schemas/billing-entities/billing-entities.interface.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,MAAM,WAAW,gBAAgB;IAC/B,GAAG,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC9B,cAAc,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE;QACd,cAAc,EAAE,MAAM,CAAC;QACvB,cAAc,EAAE,MAAM,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,eAAe,EAAE;QACf,cAAc,EAAE,MAAM,CAAC;QACvB,cAAc,EAAE,MAAM,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,qCAAqC,EAAE,OAAO,CAAC;IAC/C,OAAO,CAAC,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,kBAAkB,EAAE,MAAM,CAAC;KAC5B,EAAE,CAAC;IACJ,eAAe,EAAE;QACf,MAAM,EAAE,MAAM,CAAC;QACf,kBAAkB,EAAE,MAAM,CAAC;KAC5B,EAAE,CAAC;IACJ,qBAAqB,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;IACpD,qBAAqB,EAAE;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;KACrB,EAAE,CAAC;IACJ,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC9B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,IAAI,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-entities.interface.js","sourceRoot":"","sources":["../../../src/schemas/billing-entities/billing-entities.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
import { IBillingEntities } from './billing-entities.interface';
|
|
3
|
+
export declare const billingEntitySchema: Schema<IBillingEntities, import("mongoose").Model<IBillingEntities, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IBillingEntities>;
|
|
4
|
+
//# sourceMappingURL=billing-entities.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-entities.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/billing-entities/billing-entities.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,eAAO,MAAM,mBAAmB,qKA8M9B,CAAC"}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.billingEntitySchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.billingEntitySchema = new mongoose_1.Schema({
|
|
6
|
+
organizationId: {
|
|
7
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
+
ref: 'Organization',
|
|
9
|
+
required: true
|
|
10
|
+
},
|
|
11
|
+
entityName: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
country: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: true
|
|
18
|
+
},
|
|
19
|
+
currency: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: false
|
|
22
|
+
},
|
|
23
|
+
billingAddress: {
|
|
24
|
+
_id: false,
|
|
25
|
+
addressLineOne: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: true
|
|
28
|
+
},
|
|
29
|
+
addressLineTwo: {
|
|
30
|
+
type: String,
|
|
31
|
+
required: true
|
|
32
|
+
},
|
|
33
|
+
city: {
|
|
34
|
+
type: String,
|
|
35
|
+
required: true
|
|
36
|
+
},
|
|
37
|
+
state: {
|
|
38
|
+
type: String,
|
|
39
|
+
required: true
|
|
40
|
+
},
|
|
41
|
+
pincode: {
|
|
42
|
+
type: String,
|
|
43
|
+
required: true
|
|
44
|
+
},
|
|
45
|
+
country: {
|
|
46
|
+
type: String,
|
|
47
|
+
required: true
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
shippingAddress: {
|
|
51
|
+
_id: false,
|
|
52
|
+
addressLineOne: {
|
|
53
|
+
type: String,
|
|
54
|
+
required: true
|
|
55
|
+
},
|
|
56
|
+
addressLineTwo: {
|
|
57
|
+
type: String,
|
|
58
|
+
required: true
|
|
59
|
+
},
|
|
60
|
+
city: {
|
|
61
|
+
type: String,
|
|
62
|
+
required: true
|
|
63
|
+
},
|
|
64
|
+
state: {
|
|
65
|
+
type: String,
|
|
66
|
+
required: true
|
|
67
|
+
},
|
|
68
|
+
pincode: {
|
|
69
|
+
type: String,
|
|
70
|
+
required: true
|
|
71
|
+
},
|
|
72
|
+
country: {
|
|
73
|
+
type: String,
|
|
74
|
+
required: true
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
isShippingAddressSameAsBillingAddress: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
required: true,
|
|
80
|
+
default: false
|
|
81
|
+
},
|
|
82
|
+
gstInfo: {
|
|
83
|
+
_id: false,
|
|
84
|
+
gstinNo: {
|
|
85
|
+
type: String,
|
|
86
|
+
required: false,
|
|
87
|
+
validate: {
|
|
88
|
+
validator: function (value) {
|
|
89
|
+
if (!value)
|
|
90
|
+
return true; // Allow empty if not required
|
|
91
|
+
const gstregex = /^[0-9]{2}[A-Z]{3}[ABCFGHLJPTF][A-Z][0-9]{4}[A-Z][1-9A-Z]Z[0-9A-Z]$/;
|
|
92
|
+
return gstregex.test(value);
|
|
93
|
+
},
|
|
94
|
+
message: 'Invalid GST Number'
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
gstTreatment: {
|
|
98
|
+
type: String,
|
|
99
|
+
required: false
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
zohoEmail: {
|
|
103
|
+
type: String,
|
|
104
|
+
required: false,
|
|
105
|
+
default: ''
|
|
106
|
+
},
|
|
107
|
+
zohoContactIdIndia: {
|
|
108
|
+
type: [{
|
|
109
|
+
_id: false,
|
|
110
|
+
zohoId: {
|
|
111
|
+
type: String,
|
|
112
|
+
required: true
|
|
113
|
+
},
|
|
114
|
+
currencyPreference: {
|
|
115
|
+
type: String,
|
|
116
|
+
required: true
|
|
117
|
+
}
|
|
118
|
+
}],
|
|
119
|
+
required: true,
|
|
120
|
+
validate: {
|
|
121
|
+
validator: function (arr) {
|
|
122
|
+
const combinations = new Set();
|
|
123
|
+
for (const item of arr) {
|
|
124
|
+
const combination = `${item.zohoId}-${item.currencyPreference}`;
|
|
125
|
+
if (combinations.has(combination)) {
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
combinations.add(combination);
|
|
129
|
+
}
|
|
130
|
+
return true;
|
|
131
|
+
},
|
|
132
|
+
message: 'The combination of zohoId and currencyPreference must be unique within zohoContactIdIndia array'
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
zohoContactIdUs: {
|
|
136
|
+
type: [{
|
|
137
|
+
_id: false,
|
|
138
|
+
zohoId: {
|
|
139
|
+
type: String,
|
|
140
|
+
required: true
|
|
141
|
+
},
|
|
142
|
+
currencyPreference: {
|
|
143
|
+
type: String,
|
|
144
|
+
required: true
|
|
145
|
+
}
|
|
146
|
+
}],
|
|
147
|
+
required: true,
|
|
148
|
+
validate: {
|
|
149
|
+
validator: function (arr) {
|
|
150
|
+
const combinations = new Set();
|
|
151
|
+
for (const item of arr) {
|
|
152
|
+
const combination = `${item.zohoId}-${item.currencyPreference}`;
|
|
153
|
+
if (combinations.has(combination)) {
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
combinations.add(combination);
|
|
157
|
+
}
|
|
158
|
+
return true;
|
|
159
|
+
},
|
|
160
|
+
message: 'The combination of zohoId and currencyPreference must be unique within zohoContactIdUs array'
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
isEntityCreatedOnZoho: {
|
|
164
|
+
type: Boolean,
|
|
165
|
+
required: [true, 'isEntityCreatedOnZoho is required'],
|
|
166
|
+
default: false
|
|
167
|
+
},
|
|
168
|
+
entityApproval: {
|
|
169
|
+
type: String,
|
|
170
|
+
enum: ['PENDING', 'APPROVED', 'REJECTED'],
|
|
171
|
+
required: true,
|
|
172
|
+
default: 'PENDING'
|
|
173
|
+
},
|
|
174
|
+
verificationDocuments: {
|
|
175
|
+
type: [{
|
|
176
|
+
_id: false,
|
|
177
|
+
documentName: {
|
|
178
|
+
type: String,
|
|
179
|
+
required: true
|
|
180
|
+
},
|
|
181
|
+
documentUrl: {
|
|
182
|
+
type: String,
|
|
183
|
+
required: true
|
|
184
|
+
}
|
|
185
|
+
}],
|
|
186
|
+
required: false,
|
|
187
|
+
default: []
|
|
188
|
+
},
|
|
189
|
+
isVerified: {
|
|
190
|
+
type: Boolean,
|
|
191
|
+
required: true,
|
|
192
|
+
default: false
|
|
193
|
+
},
|
|
194
|
+
status: {
|
|
195
|
+
type: String,
|
|
196
|
+
enum: ['ACTIVE', 'INACTIVE'],
|
|
197
|
+
required: true,
|
|
198
|
+
default: 'ACTIVE'
|
|
199
|
+
},
|
|
200
|
+
lastUpdatedAt: {
|
|
201
|
+
type: Date,
|
|
202
|
+
required: true,
|
|
203
|
+
default: Date.now
|
|
204
|
+
},
|
|
205
|
+
lastUpdatedBy: {
|
|
206
|
+
type: String,
|
|
207
|
+
required: true,
|
|
208
|
+
default: 'system'
|
|
209
|
+
}
|
|
210
|
+
}, {
|
|
211
|
+
timestamps: true
|
|
212
|
+
});
|
|
213
|
+
//# sourceMappingURL=billing-entities.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-entities.model.js","sourceRoot":"","sources":["../../../src/schemas/billing-entities/billing-entities.model.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAGrB,QAAA,mBAAmB,GAAG,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EAAE,KAAK;gBACV,YAAY,EAAE;oBACZ,IAAI,EAAE,MAAM;oBACZ,QAAQ,EAAE,IAAI;iBACf;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,MAAM;oBACZ,QAAQ,EAAE,IAAI;iBACf;aACF,CAAC;QACF,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,EAAE;KACZ;IACD,UAAU,EAAE;QACV,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,KAAK;KACf;IACD,MAAM,EAAE;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;QAC5B,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,QAAQ;KAClB;IACD,aAAa,EAAE;QACb,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI,CAAC,GAAG;KAClB;IACD,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,QAAQ;KAClB;CACF,EAAE;IACD,UAAU,EAAE,IAAI;CACjB,CAAC,CAAC"}
|
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
2
|
import { IContainerMetadata, IRolledOverHistory } from './container-meta-data.type';
|
|
3
|
-
export declare const rolledOverHistorySchema: Schema<IRolledOverHistory, import("mongoose").Model<IRolledOverHistory, any, any, any,
|
|
4
|
-
|
|
5
|
-
} & {
|
|
6
|
-
__v: number;
|
|
7
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IRolledOverHistory, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IRolledOverHistory>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<IRolledOverHistory> & {
|
|
8
|
-
_id: import("mongoose").Types.ObjectId;
|
|
9
|
-
} & {
|
|
10
|
-
__v: number;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const containerMetadataSchema: Schema<IContainerMetadata, import("mongoose").Model<IContainerMetadata, any, any, any, import("mongoose").Document<unknown, any, IContainerMetadata, any, {}> & IContainerMetadata & {
|
|
13
|
-
_id: import("mongoose").Types.ObjectId;
|
|
14
|
-
} & {
|
|
15
|
-
__v: number;
|
|
16
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IContainerMetadata, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IContainerMetadata>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<IContainerMetadata> & {
|
|
17
|
-
_id: import("mongoose").Types.ObjectId;
|
|
18
|
-
} & {
|
|
19
|
-
__v: number;
|
|
20
|
-
}>;
|
|
3
|
+
export declare const rolledOverHistorySchema: Schema<IRolledOverHistory, import("mongoose").Model<IRolledOverHistory, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IRolledOverHistory>;
|
|
4
|
+
export declare const containerMetadataSchema: Schema<IContainerMetadata, import("mongoose").Model<IContainerMetadata, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IContainerMetadata>;
|
|
21
5
|
//# sourceMappingURL=container-meta-data.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-meta-data.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/container-meta-data/container-meta-data.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIpF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"container-meta-data.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/container-meta-data/container-meta-data.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIpF,eAAO,MAAM,uBAAuB,2KAclB,CAAC;AAEnB,eAAO,MAAM,uBAAuB,2KAkJlC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface ICountry {
|
|
2
|
+
countryName: string;
|
|
3
|
+
iso2Code: string;
|
|
4
|
+
iso3Code?: string;
|
|
5
|
+
numericCode?: string;
|
|
6
|
+
currency: string;
|
|
7
|
+
currencySymbol?: string;
|
|
8
|
+
currencyISOCode: string;
|
|
9
|
+
taxIdFormat?: string;
|
|
10
|
+
taxIdRegex?: string;
|
|
11
|
+
pincodeRegex: string;
|
|
12
|
+
postalCodeExample?: string;
|
|
13
|
+
phoneCode?: string;
|
|
14
|
+
phoneNumberRegex?: string;
|
|
15
|
+
timeZones?: string[];
|
|
16
|
+
primaryTimeZone?: string;
|
|
17
|
+
weekStartDay?: "SUNDAY" | "MONDAY";
|
|
18
|
+
locale?: string;
|
|
19
|
+
timezoneOffsetHours?: number;
|
|
20
|
+
displayOnCustomerPortal?: boolean;
|
|
21
|
+
displayOnAdminPortal?: boolean;
|
|
22
|
+
validForProducts?: ["fcl", "lcl", 'air_freight', 'dd', 'bonds', 'trucking', 'warehousing', 'fcl-transloading', 'lcl-transloading', 'dd-transloading'];
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=countries.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countries.interface.d.ts","sourceRoot":"","sources":["../../../src/schemas/countries/countries.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IAErB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAGzB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,YAAY,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,CAAC,CAAA;IACrJ,QAAQ,EAAE,OAAO,CAAA;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countries.interface.js","sourceRoot":"","sources":["../../../src/schemas/countries/countries.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
import { ICountry } from './countries.interface';
|
|
3
|
+
export declare const countrySchema: Schema<ICountry, import("mongoose").Model<ICountry, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ICountry>;
|
|
4
|
+
//# sourceMappingURL=countries.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countries.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/countries/countries.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAEhD,eAAO,MAAM,aAAa,6IAuFxB,CAAA"}
|