@fonoster/sdk 0.23.0 → 0.25.0

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.
@@ -164,7 +164,8 @@ class Calls {
164
164
  enumMapping: [
165
165
  ["type", calls_pb_1.CallType],
166
166
  ["status", calls_pb_1.CallStatus],
167
- ["direction", calls_pb_1.CallDirection]
167
+ ["direction", calls_pb_1.CallDirection],
168
+ ["amdStatus", calls_pb_1.CallDetailRecord.AmdStatus]
168
169
  ]
169
170
  });
170
171
  }
@@ -198,7 +199,8 @@ class Calls {
198
199
  enumMapping: [
199
200
  ["type", calls_pb_1.CallType],
200
201
  ["status", calls_pb_1.CallStatus],
201
- ["direction", calls_pb_1.CallDirection]
202
+ ["direction", calls_pb_1.CallDirection],
203
+ ["amdStatus", calls_pb_1.CallDetailRecord.AmdStatus]
202
204
  ],
203
205
  repeatableObjectMapping: [["itemsList", calls_pb_1.Call]]
204
206
  });
@@ -24,6 +24,7 @@ var global =
24
24
  var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
25
25
  goog.object.extend(proto, google_protobuf_struct_pb);
26
26
  goog.exportSymbol('proto.fonoster.calls.v1beta2.CallDetailRecord', null, global);
27
+ goog.exportSymbol('proto.fonoster.calls.v1beta2.CallDetailRecord.AmdStatus', null, global);
27
28
  goog.exportSymbol('proto.fonoster.calls.v1beta2.CallDirection', null, global);
28
29
  goog.exportSymbol('proto.fonoster.calls.v1beta2.CallStatus', null, global);
29
30
  goog.exportSymbol('proto.fonoster.calls.v1beta2.CallType', null, global);
@@ -244,7 +245,12 @@ endedAt: jspb.Message.getFieldWithDefault(msg, 6, 0),
244
245
  from: jspb.Message.getFieldWithDefault(msg, 7, ""),
245
246
  to: jspb.Message.getFieldWithDefault(msg, 8, ""),
246
247
  duration: jspb.Message.getFieldWithDefault(msg, 9, 0),
247
- direction: jspb.Message.getFieldWithDefault(msg, 10, 0)
248
+ direction: jspb.Message.getFieldWithDefault(msg, 10, 0),
249
+ amdStatus: jspb.Message.getFieldWithDefault(msg, 11, 0),
250
+ amdConfidence: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
251
+ amdDetector: jspb.Message.getFieldWithDefault(msg, 13, ""),
252
+ amdLatencyMs: jspb.Message.getFieldWithDefault(msg, 14, 0),
253
+ amdCause: jspb.Message.getFieldWithDefault(msg, 15, "")
248
254
  };
249
255
 
250
256
  if (includeInstance) {
@@ -321,6 +327,26 @@ proto.fonoster.calls.v1beta2.CallDetailRecord.deserializeBinaryFromReader = func
321
327
  var value = /** @type {!proto.fonoster.calls.v1beta2.CallDirection} */ (reader.readEnum());
322
328
  msg.setDirection(value);
323
329
  break;
330
+ case 11:
331
+ var value = /** @type {!proto.fonoster.calls.v1beta2.CallDetailRecord.AmdStatus} */ (reader.readEnum());
332
+ msg.setAmdStatus(value);
333
+ break;
334
+ case 12:
335
+ var value = /** @type {number} */ (reader.readFloat());
336
+ msg.setAmdConfidence(value);
337
+ break;
338
+ case 13:
339
+ var value = /** @type {string} */ (reader.readString());
340
+ msg.setAmdDetector(value);
341
+ break;
342
+ case 14:
343
+ var value = /** @type {number} */ (reader.readInt32());
344
+ msg.setAmdLatencyMs(value);
345
+ break;
346
+ case 15:
347
+ var value = /** @type {string} */ (reader.readString());
348
+ msg.setAmdCause(value);
349
+ break;
324
350
  default:
325
351
  reader.skipField();
326
352
  break;
@@ -420,9 +446,56 @@ proto.fonoster.calls.v1beta2.CallDetailRecord.serializeBinaryToWriter = function
420
446
  f
421
447
  );
422
448
  }
449
+ f = message.getAmdStatus();
450
+ if (f !== 0.0) {
451
+ writer.writeEnum(
452
+ 11,
453
+ f
454
+ );
455
+ }
456
+ f = message.getAmdConfidence();
457
+ if (f !== 0.0) {
458
+ writer.writeFloat(
459
+ 12,
460
+ f
461
+ );
462
+ }
463
+ f = message.getAmdDetector();
464
+ if (f.length > 0) {
465
+ writer.writeString(
466
+ 13,
467
+ f
468
+ );
469
+ }
470
+ f = message.getAmdLatencyMs();
471
+ if (f !== 0) {
472
+ writer.writeInt32(
473
+ 14,
474
+ f
475
+ );
476
+ }
477
+ f = message.getAmdCause();
478
+ if (f.length > 0) {
479
+ writer.writeString(
480
+ 15,
481
+ f
482
+ );
483
+ }
423
484
  };
424
485
 
425
486
 
487
+ /**
488
+ * @enum {number}
489
+ */
490
+ proto.fonoster.calls.v1beta2.CallDetailRecord.AmdStatus = {
491
+ AMD_STATUS_UNSPECIFIED: 0,
492
+ HUMAN: 1,
493
+ MACHINE: 2,
494
+ VOICEMAIL: 3,
495
+ IVR: 4,
496
+ UNKNOWN: 5
497
+ };
498
+
426
499
  /**
427
500
  * optional string ref = 1;
428
501
  * @return {string}
@@ -603,6 +676,96 @@ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setDirection = function(
603
676
  };
604
677
 
605
678
 
679
+ /**
680
+ * optional AmdStatus amd_status = 11;
681
+ * @return {!proto.fonoster.calls.v1beta2.CallDetailRecord.AmdStatus}
682
+ */
683
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.getAmdStatus = function() {
684
+ return /** @type {!proto.fonoster.calls.v1beta2.CallDetailRecord.AmdStatus} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
685
+ };
686
+
687
+
688
+ /**
689
+ * @param {!proto.fonoster.calls.v1beta2.CallDetailRecord.AmdStatus} value
690
+ * @return {!proto.fonoster.calls.v1beta2.CallDetailRecord} returns this
691
+ */
692
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setAmdStatus = function(value) {
693
+ return jspb.Message.setProto3EnumField(this, 11, value);
694
+ };
695
+
696
+
697
+ /**
698
+ * optional float amd_confidence = 12;
699
+ * @return {number}
700
+ */
701
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.getAmdConfidence = function() {
702
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
703
+ };
704
+
705
+
706
+ /**
707
+ * @param {number} value
708
+ * @return {!proto.fonoster.calls.v1beta2.CallDetailRecord} returns this
709
+ */
710
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setAmdConfidence = function(value) {
711
+ return jspb.Message.setProto3FloatField(this, 12, value);
712
+ };
713
+
714
+
715
+ /**
716
+ * optional string amd_detector = 13;
717
+ * @return {string}
718
+ */
719
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.getAmdDetector = function() {
720
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
721
+ };
722
+
723
+
724
+ /**
725
+ * @param {string} value
726
+ * @return {!proto.fonoster.calls.v1beta2.CallDetailRecord} returns this
727
+ */
728
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setAmdDetector = function(value) {
729
+ return jspb.Message.setProto3StringField(this, 13, value);
730
+ };
731
+
732
+
733
+ /**
734
+ * optional int32 amd_latency_ms = 14;
735
+ * @return {number}
736
+ */
737
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.getAmdLatencyMs = function() {
738
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
739
+ };
740
+
741
+
742
+ /**
743
+ * @param {number} value
744
+ * @return {!proto.fonoster.calls.v1beta2.CallDetailRecord} returns this
745
+ */
746
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setAmdLatencyMs = function(value) {
747
+ return jspb.Message.setProto3IntField(this, 14, value);
748
+ };
749
+
750
+
751
+ /**
752
+ * optional string amd_cause = 15;
753
+ * @return {string}
754
+ */
755
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.getAmdCause = function() {
756
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
757
+ };
758
+
759
+
760
+ /**
761
+ * @param {string} value
762
+ * @return {!proto.fonoster.calls.v1beta2.CallDetailRecord} returns this
763
+ */
764
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setAmdCause = function(value) {
765
+ return jspb.Message.setProto3StringField(this, 15, value);
766
+ };
767
+
768
+
606
769
 
607
770
 
608
771
 
@@ -34,6 +34,21 @@ export class CallDetailRecord extends jspb.Message {
34
34
  getDirection(): CallDirection;
35
35
  setDirection(value: CallDirection): CallDetailRecord;
36
36
 
37
+ getAmdStatus(): CallDetailRecord.AmdStatus;
38
+ setAmdStatus(value: CallDetailRecord.AmdStatus): CallDetailRecord;
39
+
40
+ getAmdConfidence(): number;
41
+ setAmdConfidence(value: number): CallDetailRecord;
42
+
43
+ getAmdDetector(): string;
44
+ setAmdDetector(value: string): CallDetailRecord;
45
+
46
+ getAmdLatencyMs(): number;
47
+ setAmdLatencyMs(value: number): CallDetailRecord;
48
+
49
+ getAmdCause(): string;
50
+ setAmdCause(value: string): CallDetailRecord;
51
+
37
52
  serializeBinary(): Uint8Array;
38
53
  toObject(includeInstance?: boolean): CallDetailRecord.AsObject;
39
54
  static toObject(includeInstance: boolean, msg: CallDetailRecord): CallDetailRecord.AsObject;
@@ -54,6 +69,20 @@ export namespace CallDetailRecord {
54
69
  to: string,
55
70
  duration: number,
56
71
  direction: CallDirection,
72
+ amdStatus: CallDetailRecord.AmdStatus,
73
+ amdConfidence: number,
74
+ amdDetector: string,
75
+ amdLatencyMs: number,
76
+ amdCause: string,
77
+ }
78
+
79
+ export enum AmdStatus {
80
+ AMD_STATUS_UNSPECIFIED = 0,
81
+ HUMAN = 1,
82
+ MACHINE = 2,
83
+ VOICEMAIL = 3,
84
+ IVR = 4,
85
+ UNKNOWN = 5,
57
86
  }
58
87
  }
59
88
 
@@ -24,6 +24,7 @@ var global =
24
24
  var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
25
25
  goog.object.extend(proto, google_protobuf_struct_pb);
26
26
  goog.exportSymbol('proto.fonoster.calls.v1beta2.CallDetailRecord', null, global);
27
+ goog.exportSymbol('proto.fonoster.calls.v1beta2.CallDetailRecord.AmdStatus', null, global);
27
28
  goog.exportSymbol('proto.fonoster.calls.v1beta2.CallDirection', null, global);
28
29
  goog.exportSymbol('proto.fonoster.calls.v1beta2.CallStatus', null, global);
29
30
  goog.exportSymbol('proto.fonoster.calls.v1beta2.CallType', null, global);
@@ -244,7 +245,12 @@ endedAt: jspb.Message.getFieldWithDefault(msg, 6, 0),
244
245
  from: jspb.Message.getFieldWithDefault(msg, 7, ""),
245
246
  to: jspb.Message.getFieldWithDefault(msg, 8, ""),
246
247
  duration: jspb.Message.getFieldWithDefault(msg, 9, 0),
247
- direction: jspb.Message.getFieldWithDefault(msg, 10, 0)
248
+ direction: jspb.Message.getFieldWithDefault(msg, 10, 0),
249
+ amdStatus: jspb.Message.getFieldWithDefault(msg, 11, 0),
250
+ amdConfidence: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
251
+ amdDetector: jspb.Message.getFieldWithDefault(msg, 13, ""),
252
+ amdLatencyMs: jspb.Message.getFieldWithDefault(msg, 14, 0),
253
+ amdCause: jspb.Message.getFieldWithDefault(msg, 15, "")
248
254
  };
249
255
 
250
256
  if (includeInstance) {
@@ -321,6 +327,26 @@ proto.fonoster.calls.v1beta2.CallDetailRecord.deserializeBinaryFromReader = func
321
327
  var value = /** @type {!proto.fonoster.calls.v1beta2.CallDirection} */ (reader.readEnum());
322
328
  msg.setDirection(value);
323
329
  break;
330
+ case 11:
331
+ var value = /** @type {!proto.fonoster.calls.v1beta2.CallDetailRecord.AmdStatus} */ (reader.readEnum());
332
+ msg.setAmdStatus(value);
333
+ break;
334
+ case 12:
335
+ var value = /** @type {number} */ (reader.readFloat());
336
+ msg.setAmdConfidence(value);
337
+ break;
338
+ case 13:
339
+ var value = /** @type {string} */ (reader.readString());
340
+ msg.setAmdDetector(value);
341
+ break;
342
+ case 14:
343
+ var value = /** @type {number} */ (reader.readInt32());
344
+ msg.setAmdLatencyMs(value);
345
+ break;
346
+ case 15:
347
+ var value = /** @type {string} */ (reader.readString());
348
+ msg.setAmdCause(value);
349
+ break;
324
350
  default:
325
351
  reader.skipField();
326
352
  break;
@@ -420,9 +446,56 @@ proto.fonoster.calls.v1beta2.CallDetailRecord.serializeBinaryToWriter = function
420
446
  f
421
447
  );
422
448
  }
449
+ f = message.getAmdStatus();
450
+ if (f !== 0.0) {
451
+ writer.writeEnum(
452
+ 11,
453
+ f
454
+ );
455
+ }
456
+ f = message.getAmdConfidence();
457
+ if (f !== 0.0) {
458
+ writer.writeFloat(
459
+ 12,
460
+ f
461
+ );
462
+ }
463
+ f = message.getAmdDetector();
464
+ if (f.length > 0) {
465
+ writer.writeString(
466
+ 13,
467
+ f
468
+ );
469
+ }
470
+ f = message.getAmdLatencyMs();
471
+ if (f !== 0) {
472
+ writer.writeInt32(
473
+ 14,
474
+ f
475
+ );
476
+ }
477
+ f = message.getAmdCause();
478
+ if (f.length > 0) {
479
+ writer.writeString(
480
+ 15,
481
+ f
482
+ );
483
+ }
423
484
  };
424
485
 
425
486
 
487
+ /**
488
+ * @enum {number}
489
+ */
490
+ proto.fonoster.calls.v1beta2.CallDetailRecord.AmdStatus = {
491
+ AMD_STATUS_UNSPECIFIED: 0,
492
+ HUMAN: 1,
493
+ MACHINE: 2,
494
+ VOICEMAIL: 3,
495
+ IVR: 4,
496
+ UNKNOWN: 5
497
+ };
498
+
426
499
  /**
427
500
  * optional string ref = 1;
428
501
  * @return {string}
@@ -603,6 +676,96 @@ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setDirection = function(
603
676
  };
604
677
 
605
678
 
679
+ /**
680
+ * optional AmdStatus amd_status = 11;
681
+ * @return {!proto.fonoster.calls.v1beta2.CallDetailRecord.AmdStatus}
682
+ */
683
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.getAmdStatus = function() {
684
+ return /** @type {!proto.fonoster.calls.v1beta2.CallDetailRecord.AmdStatus} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
685
+ };
686
+
687
+
688
+ /**
689
+ * @param {!proto.fonoster.calls.v1beta2.CallDetailRecord.AmdStatus} value
690
+ * @return {!proto.fonoster.calls.v1beta2.CallDetailRecord} returns this
691
+ */
692
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setAmdStatus = function(value) {
693
+ return jspb.Message.setProto3EnumField(this, 11, value);
694
+ };
695
+
696
+
697
+ /**
698
+ * optional float amd_confidence = 12;
699
+ * @return {number}
700
+ */
701
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.getAmdConfidence = function() {
702
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
703
+ };
704
+
705
+
706
+ /**
707
+ * @param {number} value
708
+ * @return {!proto.fonoster.calls.v1beta2.CallDetailRecord} returns this
709
+ */
710
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setAmdConfidence = function(value) {
711
+ return jspb.Message.setProto3FloatField(this, 12, value);
712
+ };
713
+
714
+
715
+ /**
716
+ * optional string amd_detector = 13;
717
+ * @return {string}
718
+ */
719
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.getAmdDetector = function() {
720
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
721
+ };
722
+
723
+
724
+ /**
725
+ * @param {string} value
726
+ * @return {!proto.fonoster.calls.v1beta2.CallDetailRecord} returns this
727
+ */
728
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setAmdDetector = function(value) {
729
+ return jspb.Message.setProto3StringField(this, 13, value);
730
+ };
731
+
732
+
733
+ /**
734
+ * optional int32 amd_latency_ms = 14;
735
+ * @return {number}
736
+ */
737
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.getAmdLatencyMs = function() {
738
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
739
+ };
740
+
741
+
742
+ /**
743
+ * @param {number} value
744
+ * @return {!proto.fonoster.calls.v1beta2.CallDetailRecord} returns this
745
+ */
746
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setAmdLatencyMs = function(value) {
747
+ return jspb.Message.setProto3IntField(this, 14, value);
748
+ };
749
+
750
+
751
+ /**
752
+ * optional string amd_cause = 15;
753
+ * @return {string}
754
+ */
755
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.getAmdCause = function() {
756
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
757
+ };
758
+
759
+
760
+ /**
761
+ * @param {string} value
762
+ * @return {!proto.fonoster.calls.v1beta2.CallDetailRecord} returns this
763
+ */
764
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setAmdCause = function(value) {
765
+ return jspb.Message.setProto3StringField(this, 15, value);
766
+ };
767
+
768
+
606
769
 
607
770
 
608
771