@bharatbxhipment/xhipment-models-v2 1.0.37 → 1.0.39

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
@@ -7,6 +7,7 @@ export * from "./schemas/ports/ports.model";
7
7
  export * from "./schemas/amsIsfFiling/ams-isf-filing.timeline.model";
8
8
  export * from "./schemas/call-center/call-center.model";
9
9
  export * from "./schemas/comms-hub/comms-hub.model";
10
+ export * from "./schemas/cogs-gm/cogs-gm.model";
10
11
  export * from "./schemas/container-meta-data/container-meta-data.type";
11
12
  export * from "./schemas/countries/countries.interface";
12
13
  export * from "./schemas/billing-entities/billing-entities.interface";
@@ -16,4 +17,5 @@ export * from "./schemas/ports/ports.interface";
16
17
  export * from "./schemas/amsIsfFiling/ams-isf-filing.timeline.interface";
17
18
  export * from "./schemas/call-center/call-center.interface";
18
19
  export * from "./schemas/comms-hub/comms-hub.interface";
20
+ export * from "./schemas/cogs-gm/cogs-gm.interface";
19
21
  //# sourceMappingURL=index.d.ts.map
@@ -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;AAEpD,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"}
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;AAEhD,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"}
package/dist/index.js CHANGED
@@ -24,6 +24,7 @@ __exportStar(require("./schemas/ports/ports.model"), exports);
24
24
  __exportStar(require("./schemas/amsIsfFiling/ams-isf-filing.timeline.model"), exports);
25
25
  __exportStar(require("./schemas/call-center/call-center.model"), exports);
26
26
  __exportStar(require("./schemas/comms-hub/comms-hub.model"), exports);
27
+ __exportStar(require("./schemas/cogs-gm/cogs-gm.model"), exports);
27
28
  // Types
28
29
  __exportStar(require("./schemas/container-meta-data/container-meta-data.type"), exports);
29
30
  __exportStar(require("./schemas/countries/countries.interface"), exports);
@@ -34,4 +35,5 @@ __exportStar(require("./schemas/ports/ports.interface"), exports);
34
35
  __exportStar(require("./schemas/amsIsfFiling/ams-isf-filing.timeline.interface"), exports);
35
36
  __exportStar(require("./schemas/call-center/call-center.interface"), exports);
36
37
  __exportStar(require("./schemas/comms-hub/comms-hub.interface"), exports);
38
+ __exportStar(require("./schemas/cogs-gm/cogs-gm.interface"), exports);
37
39
  //# 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,QAAQ;AACR,yFAAuE;AACvE,0EAAwD;AACxD,wFAAsE;AACtE,6FAA2E;AAC3E,kFAAgE;AAChE,kEAAgD;AAChD,2FAAyE;AACzE,8EAA4D;AAC5D,0EAAwD"}
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,QAAQ;AACR,yFAAuE;AACvE,0EAAwD;AACxD,wFAAsE;AACtE,6FAA2E;AAC3E,kFAAgE;AAChE,kEAAgD;AAChD,2FAAyE;AACzE,8EAA4D;AAC5D,0EAAwD;AACxD,sEAAoD"}
@@ -3,11 +3,13 @@ export interface ICallCenter {
3
3
  isNewCustomer: boolean;
4
4
  callFrom: string;
5
5
  callTo: string;
6
- status: 'missed' | 'answered' | 'busy' | 'not-answered';
6
+ status: 'pending' | 'completed' | 'failed';
7
+ callStatus: 'missed' | 'answered' | 'busy' | 'not-answered';
7
8
  owner: string;
8
9
  comments: string;
9
10
  isFollowUpRequired: boolean;
10
- callFlow: string;
11
+ callFlow: ICallFlow[] | null;
12
+ callDescription: string;
11
13
  numberOfCallsUnanswered: number;
12
14
  callDuration?: number;
13
15
  callType: 'inbound' | 'outbound';
@@ -15,4 +17,15 @@ export interface ICallCenter {
15
17
  lisaReferenceUrl: string;
16
18
  externalCallId: string;
17
19
  }
20
+ export interface ICallFlow {
21
+ step: number;
22
+ legId: string;
23
+ role: 'from' | 'to';
24
+ name: string | null;
25
+ contact: string;
26
+ status: 'completed' | 'pending' | 'failed';
27
+ group: string | null;
28
+ startedAt: Date;
29
+ endedAt: Date;
30
+ }
18
31
  //# sourceMappingURL=call-center.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"call-center.interface.d.ts","sourceRoot":"","sources":["../../../src/schemas/call-center/call-center.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,IAAI,CAAC;IACX,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,cAAc,CAAC;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,uBAAuB,EAAE,MAAM,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,SAAS,GAAG,UAAU,CAAC;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;CAC1B"}
1
+ {"version":3,"file":"call-center.interface.d.ts","sourceRoot":"","sources":["../../../src/schemas/call-center/call-center.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,IAAI,CAAC;IACX,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IAC3C,UAAU,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,cAAc,CAAC;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,EAAE,MAAM,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,SAAS,GAAG,UAAU,CAAC;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;CAC1B;AAGD,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC3C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;CACjB"}
@@ -1,4 +1,6 @@
1
1
  import { Schema } from "mongoose";
2
- import { ICallCenter } from "./call-center.interface";
3
- export declare const callCenterSchema: Schema<ICallCenter, import("mongoose").Model<ICallCenter, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ICallCenter>;
2
+ import { ICallCenter, ICallFlow } from "./call-center.interface";
3
+ export declare const callFlowSchema: Schema<ICallFlow, import("mongoose").Model<ICallFlow, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ICallFlow>;
4
+ declare const callCenterSchema: Schema<ICallCenter, import("mongoose").Model<ICallCenter, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ICallCenter>;
5
+ export { callCenterSchema };
4
6
  //# sourceMappingURL=call-center.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"call-center.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/call-center/call-center.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,sJAgB3B,CAAC"}
1
+ {"version":3,"file":"call-center.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/call-center/call-center.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEjE,eAAO,MAAM,cAAc,gJAYzB,CAAC;AACH,QAAA,MAAM,gBAAgB,sJAoBpB,CAAC;AAKH,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,22 +1,42 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.callCenterSchema = void 0;
3
+ exports.callCenterSchema = exports.callFlowSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
- exports.callCenterSchema = new mongoose_1.Schema({
5
+ exports.callFlowSchema = new mongoose_1.Schema({
6
+ step: { type: Number },
7
+ legId: { type: String },
8
+ role: { type: String },
9
+ name: { type: String },
10
+ contact: { type: String },
11
+ status: { type: String },
12
+ group: { type: String },
13
+ startedAt: { type: Date },
14
+ endedAt: { type: Date },
15
+ }, {
16
+ _id: false,
17
+ });
18
+ const callCenterSchema = new mongoose_1.Schema({
6
19
  time: { type: Date, required: true, default: Date.now },
7
20
  isNewCustomer: { type: Boolean, required: true },
8
21
  callFrom: { type: String, required: true },
9
22
  callTo: { type: String },
10
- status: { type: String },
23
+ status: { type: String, enum: ['pending', 'completed', 'failed'] },
11
24
  owner: { type: String },
12
25
  comments: { type: String },
13
26
  isFollowUpRequired: { type: Boolean },
14
- callFlow: { type: String },
27
+ callFlow: [exports.callFlowSchema],
28
+ callDescription: { type: String },
15
29
  numberOfCallsUnanswered: { type: Number },
30
+ callStatus: { type: String, enum: ['missed', 'answered', 'busy', 'not-answered'] },
16
31
  callDuration: { type: Number },
17
- callType: { type: String },
32
+ callType: { type: String, enum: ['inbound', 'outbound'] },
18
33
  callRecordingUrl: { type: String },
19
34
  lisaReferenceUrl: { type: String },
20
35
  externalCallId: { type: String, required: true },
36
+ }, {
37
+ timestamps: true,
21
38
  });
39
+ exports.callCenterSchema = callCenterSchema;
40
+ callCenterSchema.index({ externalCallId: 1 }, { unique: true });
41
+ callCenterSchema.index({ callStatus: 1, callType: 1 });
22
42
  //# sourceMappingURL=call-center.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"call-center.model.js","sourceRoot":"","sources":["../../../src/schemas/call-center/call-center.model.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAGrB,QAAA,gBAAgB,GAAG,IAAI,iBAAM,CAAc;IACpD,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;IACvD,aAAa,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;IAChD,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1C,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACxB,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACxB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACvB,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC1B,kBAAkB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACrC,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC1B,uBAAuB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACzC,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;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s: number;
7
+ portToPortCogs: number;
8
+ destinationCogs: number;
9
+ createdAt?: Date;
10
+ updatedAt?: Date;
11
+ _id?: Types.ObjectId;
12
+ }
13
+ //# sourceMappingURL=cogs-gm.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cogs-gm.interface.d.ts","sourceRoot":"","sources":["../../../src/schemas/cogs-gm/cogs-gm.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,OAAO;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,GAAG,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;CACxB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=cogs-gm.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cogs-gm.interface.js","sourceRoot":"","sources":["../../../src/schemas/cogs-gm/cogs-gm.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Schema } from "mongoose";
2
+ import { ICogsGM } from "./cogs-gm.interface";
3
+ export declare const cogsGMSchema: Schema<ICogsGM, import("mongoose").Model<ICogsGM, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ICogsGM>;
4
+ //# sourceMappingURL=cogs-gm.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cogs-gm.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/cogs-gm/cogs-gm.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,eAAO,MAAM,YAAY,0IASvB,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cogsGMSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ exports.cogsGMSchema = new mongoose_1.Schema({
6
+ quoteIdentity: { type: String, required: true },
7
+ totalCogs: { type: Number, required: true },
8
+ originCogs: { type: Number, required: true },
9
+ portToPortCogs: { type: Number, required: true },
10
+ destinationCogs: { type: Number, required: true },
11
+ gm: { type: Number },
12
+ }, {
13
+ timestamps: true,
14
+ });
15
+ exports.cogsGMSchema.index({ quoteIdentity: 1 }, { unique: true });
16
+ exports.cogsGMSchema.index({ totalCogs: 1, originCogs: 1, portToPortCogs: 1, destinationCogs: 1 });
17
+ //# sourceMappingURL=cogs-gm.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cogs-gm.model.js","sourceRoot":"","sources":["../../../src/schemas/cogs-gm/cogs-gm.model.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAGrB,QAAA,YAAY,GAAG,IAAI,iBAAM,CAAU;IAC5C,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC/C,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC3C,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC5C,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAChD,eAAe,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACjD,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;CACvB,EAAE;IACC,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAEH,oBAAY,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAC3D,oBAAY,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bharatbxhipment/xhipment-models-v2",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "Mongoose schemas and TypeScript types for Xhipment application",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",