@bharatbxhipment/xhipment-models-v2 1.0.35 → 1.0.36

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,6 +1,8 @@
1
1
  export interface ICallCenter {
2
2
  time: Date;
3
3
  isNewCustomer: boolean;
4
+ callFrom: string;
5
+ callTo: string;
4
6
  status: 'missed' | 'answered' | 'busy' | 'not-answered';
5
7
  owner: string;
6
8
  comments: string;
@@ -11,5 +13,6 @@ export interface ICallCenter {
11
13
  callType: 'inbound' | 'outbound';
12
14
  callRecordingUrl: string;
13
15
  lisaReferenceUrl: string;
16
+ externalCallId: string;
14
17
  }
15
18
  //# 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,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;CAC5B"}
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 +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,sJAS3B,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,MAAM,yBAAyB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,sJAgB3B,CAAC"}
@@ -3,13 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.callCenterSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  exports.callCenterSchema = new mongoose_1.Schema({
6
- time: { type: Date, required: true },
6
+ time: { type: Date, required: true, default: Date.now },
7
7
  isNewCustomer: { type: Boolean, required: true },
8
- status: { type: String, required: true },
9
- owner: { type: String, required: true },
10
- comments: { type: String, required: true },
11
- isFollowUpRequired: { type: Boolean, required: true },
12
- callFlow: { type: String, required: true },
13
- numberOfCallsUnanswered: { type: Number, required: true },
8
+ callFrom: { type: String, required: true },
9
+ callTo: { type: String },
10
+ status: { type: String },
11
+ owner: { type: String },
12
+ comments: { type: String },
13
+ isFollowUpRequired: { type: Boolean },
14
+ callFlow: { type: String },
15
+ numberOfCallsUnanswered: { type: Number },
16
+ callDuration: { type: Number },
17
+ callType: { type: String },
18
+ callRecordingUrl: { type: String },
19
+ lisaReferenceUrl: { type: String },
20
+ externalCallId: { type: String, required: true },
14
21
  });
15
22
  //# 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;IACpC,aAAa,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;IAChD,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACxC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvC,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1C,kBAAkB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;IACrD,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1C,uBAAuB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;CAC5D,CAAC,CAAC"}
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;IAC9B,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC1B,gBAAgB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAClC,gBAAgB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAClC,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;CACnD,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bharatbxhipment/xhipment-models-v2",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "Mongoose schemas and TypeScript types for Xhipment application",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",