@94ai/nf-softphone 6.1.30 → 7.0.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.
package/lib/index.d.ts CHANGED
@@ -1,6 +1,22 @@
1
1
  import { PluginObject } from 'vue-demi';
2
2
  import softphoneManager, { SoftphoneManager } from './softphone';
3
3
  declare const _default: import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{}, Readonly<import("vue-demi").ExtractPropTypes<{
4
+ sgGateway: {
5
+ type: import("vue-demi").PropType<string>;
6
+ default: undefined;
7
+ };
8
+ sgBase: {
9
+ type: import("vue-demi").PropType<string>;
10
+ default: undefined;
11
+ };
12
+ sgOpen: {
13
+ type: import("vue-demi").PropType<string>;
14
+ default: undefined;
15
+ };
16
+ sgDomain: {
17
+ type: import("vue-demi").PropType<string>;
18
+ default: undefined;
19
+ };
4
20
  scrollingText: {
5
21
  type: import("vue-demi").PropType<string>;
6
22
  default: string;
@@ -43,6 +59,14 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
43
59
  type: import("vue-demi").PropType<string>;
44
60
  default: string;
45
61
  };
62
+ timestamp: {
63
+ type: import("vue-demi").PropType<string | number>;
64
+ default: undefined;
65
+ };
66
+ sign: {
67
+ type: import("vue-demi").PropType<string>;
68
+ default: undefined;
69
+ };
46
70
  origin: {
47
71
  type: import("vue-demi").PropType<string>;
48
72
  default: string;
@@ -88,6 +112,22 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
88
112
  default: string;
89
113
  };
90
114
  }>>, Readonly<import("vue-demi").ExtractPropTypes<{
115
+ sgGateway: {
116
+ type: import("vue-demi").PropType<string>;
117
+ default: undefined;
118
+ };
119
+ sgBase: {
120
+ type: import("vue-demi").PropType<string>;
121
+ default: undefined;
122
+ };
123
+ sgOpen: {
124
+ type: import("vue-demi").PropType<string>;
125
+ default: undefined;
126
+ };
127
+ sgDomain: {
128
+ type: import("vue-demi").PropType<string>;
129
+ default: undefined;
130
+ };
91
131
  scrollingText: {
92
132
  type: import("vue-demi").PropType<string>;
93
133
  default: string;
@@ -130,6 +170,14 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
130
170
  type: import("vue-demi").PropType<string>;
131
171
  default: string;
132
172
  };
173
+ timestamp: {
174
+ type: import("vue-demi").PropType<string | number>;
175
+ default: undefined;
176
+ };
177
+ sign: {
178
+ type: import("vue-demi").PropType<string>;
179
+ default: undefined;
180
+ };
133
181
  origin: {
134
182
  type: import("vue-demi").PropType<string>;
135
183
  default: string;
@@ -186,6 +234,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
186
234
  "softphone-incoming": (event: any) => void;
187
235
  "softphone-connect-registered": (event: any) => void;
188
236
  }, {
237
+ sgGateway: string;
238
+ sgBase: string;
239
+ sgOpen: string;
240
+ sgDomain: string;
189
241
  scrollingText: string;
190
242
  scrollview: string;
191
243
  envMap: Partial<Record<import("./type").Env, string>>;
@@ -195,6 +247,8 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
195
247
  appKey: string;
196
248
  appSecret: string;
197
249
  extStatus: string;
250
+ timestamp: string | number;
251
+ sign: string;
198
252
  origin: string;
199
253
  ancestorOrigin: string;
200
254
  destinationOrigin: string;
@@ -207,6 +261,22 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
207
261
  timingShow: "0" | "1";
208
262
  signShow: "0" | "1";
209
263
  }, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{
264
+ sgGateway: {
265
+ type: import("vue-demi").PropType<string>;
266
+ default: undefined;
267
+ };
268
+ sgBase: {
269
+ type: import("vue-demi").PropType<string>;
270
+ default: undefined;
271
+ };
272
+ sgOpen: {
273
+ type: import("vue-demi").PropType<string>;
274
+ default: undefined;
275
+ };
276
+ sgDomain: {
277
+ type: import("vue-demi").PropType<string>;
278
+ default: undefined;
279
+ };
210
280
  scrollingText: {
211
281
  type: import("vue-demi").PropType<string>;
212
282
  default: string;
@@ -249,6 +319,14 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
249
319
  type: import("vue-demi").PropType<string>;
250
320
  default: string;
251
321
  };
322
+ timestamp: {
323
+ type: import("vue-demi").PropType<string | number>;
324
+ default: undefined;
325
+ };
326
+ sign: {
327
+ type: import("vue-demi").PropType<string>;
328
+ default: undefined;
329
+ };
252
330
  origin: {
253
331
  type: import("vue-demi").PropType<string>;
254
332
  default: string;
@@ -306,6 +384,22 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
306
384
  container: import("vue-demi").Ref<any>;
307
385
  containerScrolling: import("vue-demi").Ref<any>;
308
386
  }> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
387
+ sgGateway: {
388
+ type: import("vue-demi").PropType<string>;
389
+ default: undefined;
390
+ };
391
+ sgBase: {
392
+ type: import("vue-demi").PropType<string>;
393
+ default: undefined;
394
+ };
395
+ sgOpen: {
396
+ type: import("vue-demi").PropType<string>;
397
+ default: undefined;
398
+ };
399
+ sgDomain: {
400
+ type: import("vue-demi").PropType<string>;
401
+ default: undefined;
402
+ };
309
403
  scrollingText: {
310
404
  type: import("vue-demi").PropType<string>;
311
405
  default: string;
@@ -348,6 +442,14 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
348
442
  type: import("vue-demi").PropType<string>;
349
443
  default: string;
350
444
  };
445
+ timestamp: {
446
+ type: import("vue-demi").PropType<string | number>;
447
+ default: undefined;
448
+ };
449
+ sign: {
450
+ type: import("vue-demi").PropType<string>;
451
+ default: undefined;
452
+ };
351
453
  origin: {
352
454
  type: import("vue-demi").PropType<string>;
353
455
  default: string;
@@ -393,6 +495,22 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
393
495
  default: string;
394
496
  };
395
497
  }>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{
498
+ sgGateway: {
499
+ type: import("vue-demi").PropType<string>;
500
+ default: undefined;
501
+ };
502
+ sgBase: {
503
+ type: import("vue-demi").PropType<string>;
504
+ default: undefined;
505
+ };
506
+ sgOpen: {
507
+ type: import("vue-demi").PropType<string>;
508
+ default: undefined;
509
+ };
510
+ sgDomain: {
511
+ type: import("vue-demi").PropType<string>;
512
+ default: undefined;
513
+ };
396
514
  scrollingText: {
397
515
  type: import("vue-demi").PropType<string>;
398
516
  default: string;
@@ -435,6 +553,14 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
435
553
  type: import("vue-demi").PropType<string>;
436
554
  default: string;
437
555
  };
556
+ timestamp: {
557
+ type: import("vue-demi").PropType<string | number>;
558
+ default: undefined;
559
+ };
560
+ sign: {
561
+ type: import("vue-demi").PropType<string>;
562
+ default: undefined;
563
+ };
438
564
  origin: {
439
565
  type: import("vue-demi").PropType<string>;
440
566
  default: string;
@@ -503,6 +629,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
503
629
  "softphone-incoming": (event: any) => void;
504
630
  "softphone-connect-registered": (event: any) => void;
505
631
  }, string, {
632
+ sgGateway: string;
633
+ sgBase: string;
634
+ sgOpen: string;
635
+ sgDomain: string;
506
636
  scrollingText: string;
507
637
  scrollview: string;
508
638
  envMap: Partial<Record<import("./type").Env, string>>;
@@ -512,6 +642,8 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
512
642
  appKey: string;
513
643
  appSecret: string;
514
644
  extStatus: string;
645
+ timestamp: string | number;
646
+ sign: string;
515
647
  origin: string;
516
648
  ancestorOrigin: string;
517
649
  destinationOrigin: string;
@@ -525,6 +657,22 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
525
657
  signShow: "0" | "1";
526
658
  }> & {
527
659
  props: {
660
+ sgGateway: {
661
+ type: import("vue-demi").PropType<string>;
662
+ default: undefined;
663
+ };
664
+ sgBase: {
665
+ type: import("vue-demi").PropType<string>;
666
+ default: undefined;
667
+ };
668
+ sgOpen: {
669
+ type: import("vue-demi").PropType<string>;
670
+ default: undefined;
671
+ };
672
+ sgDomain: {
673
+ type: import("vue-demi").PropType<string>;
674
+ default: undefined;
675
+ };
528
676
  scrollingText: {
529
677
  type: import("vue-demi").PropType<string>;
530
678
  default: string;
@@ -567,6 +715,14 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
567
715
  type: import("vue-demi").PropType<string>;
568
716
  default: string;
569
717
  };
718
+ timestamp: {
719
+ type: import("vue-demi").PropType<string | number>;
720
+ default: undefined;
721
+ };
722
+ sign: {
723
+ type: import("vue-demi").PropType<string>;
724
+ default: undefined;
725
+ };
570
726
  origin: {
571
727
  type: import("vue-demi").PropType<string>;
572
728
  default: string;
@@ -7,6 +7,30 @@ const __sfc_main = vueDemi.defineComponent({
7
7
  name: "nf-softphone"
8
8
  });
9
9
  __sfc_main.props = {
10
+ sgGateway: {
11
+ key: "sgGateway",
12
+ required: false,
13
+ type: String,
14
+ default: void 0
15
+ },
16
+ sgBase: {
17
+ key: "sgBase",
18
+ required: false,
19
+ type: String,
20
+ default: void 0
21
+ },
22
+ sgOpen: {
23
+ key: "sgOpen",
24
+ required: false,
25
+ type: String,
26
+ default: void 0
27
+ },
28
+ sgDomain: {
29
+ key: "sgDomain",
30
+ required: false,
31
+ type: String,
32
+ default: void 0
33
+ },
10
34
  scrollingText: {
11
35
  key: "scrollingText",
12
36
  required: false,
@@ -67,6 +91,18 @@ __sfc_main.props = {
67
91
  type: String,
68
92
  default: "0"
69
93
  },
94
+ timestamp: {
95
+ key: "timestamp",
96
+ required: false,
97
+ type: [String, Number],
98
+ default: void 0
99
+ },
100
+ sign: {
101
+ key: "sign",
102
+ required: false,
103
+ type: String,
104
+ default: void 0
105
+ },
70
106
  origin: {
71
107
  key: "origin",
72
108
  required: false,
@@ -270,12 +306,25 @@ __sfc_main.setup = (__props, __ctx) => {
270
306
  muteShow,
271
307
  logShow,
272
308
  timingShow,
273
- signShow
309
+ signShow,
310
+ sign,
311
+ timestamp,
312
+ sgGateway,
313
+ sgBase,
314
+ sgOpen,
315
+ sgDomain
274
316
  } = props;
275
317
  let url = `${(envMap == null ? void 0 : envMap[env]) ?? env}/#/?cross=1&open=1`;
318
+ url += sgGateway ? `&sgGateway=${sgGateway}` : "";
319
+ url += sgBase ? `&sgBase=${sgBase}` : "";
320
+ url += sgOpen ? `&sgOpen=${sgOpen}` : "";
321
+ url += sgDomain ? `&sgDomain=${sgDomain}` : "";
322
+ url += timestamp ? `&timestamp=${timestamp}` : "";
323
+ url += sign ? `&sign=${sign}` : "";
276
324
  url += agentTag ? `&agentTag=${agentTag}` : "";
277
325
  url += agentId ? `&agentId=${agentId}` : "";
278
- url += `&appKey=${appKey}&appSecret=${appSecret}&extStatus=${extStatus}&paddingTop=${top}px&paddingLeft=${left}px&ancestorOrigin=${ancestorOrigin}&destinationOrigin=${destinationOrigin}`;
326
+ url += appSecret ? `&appSecret=${appSecret}` : "";
327
+ url += `&appKey=${appKey}&extStatus=${extStatus}&paddingTop=${top}px&paddingLeft=${left}px&ancestorOrigin=${ancestorOrigin}&destinationOrigin=${destinationOrigin}`;
279
328
  url += `&callShow=${callShow}`;
280
329
  url += `&transferToLaborShow=${transferToLaborShow}`;
281
330
  url += `&restShow=${restShow}`;
@@ -411,6 +460,12 @@ class SoftphoneManager {
411
460
  agentTag: void 0,
412
461
  appKey: void 0,
413
462
  appSecret: void 0,
463
+ sgGateway: void 0,
464
+ sgBase: void 0,
465
+ sgOpen: void 0,
466
+ sgDomain: void 0,
467
+ timestamp: void 0,
468
+ sign: void 0,
414
469
  extStatus: "0",
415
470
  callShow: "1",
416
471
  transferToLaborShow: "1",
@@ -685,12 +740,25 @@ class SoftphoneManager {
685
740
  muteShow,
686
741
  logShow,
687
742
  timingShow,
688
- signShow
743
+ signShow,
744
+ sign,
745
+ timestamp,
746
+ sgGateway,
747
+ sgBase,
748
+ sgOpen,
749
+ sgDomain
689
750
  } = this.option;
690
751
  let url = `${(envMap == null ? void 0 : envMap[env]) ?? env}/#/?cross=1&open=1`;
691
752
  url += agentTag ? `&agentTag=${agentTag}` : "";
692
753
  url += agentId ? `&agentId=${agentId}` : "";
693
- url += `&appKey=${appKey}&appSecret=${appSecret}&extStatus=${extStatus}&paddingTop=${top}px&paddingLeft=${left}px&ancestorOrigin=${ancestorOrigin}&destinationOrigin=${destinationOrigin}`;
754
+ url += appSecret ? `&appSecret=${appSecret}` : "";
755
+ url += sign ? `&sign=${sign}` : "";
756
+ url += timestamp ? `&timestamp=${timestamp}` : "";
757
+ url += sgGateway ? `&sgGateway=${sgGateway}` : "";
758
+ url += sgBase ? `&sgBase=${sgBase}` : "";
759
+ url += sgOpen ? `&sgOpen=${sgOpen}` : "";
760
+ url += sgDomain ? `&sgDomain=${sgDomain}` : "";
761
+ url += `&appKey=${appKey}&extStatus=${extStatus}&paddingTop=${top}px&paddingLeft=${left}px&ancestorOrigin=${ancestorOrigin}&destinationOrigin=${destinationOrigin}`;
694
762
  url += `&callShow=${callShow}`;
695
763
  url += `&transferToLaborShow=${transferToLaborShow}`;
696
764
  url += `&restShow=${restShow}`;
@@ -5,6 +5,30 @@ const __sfc_main = defineComponent({
5
5
  name: "nf-softphone"
6
6
  });
7
7
  __sfc_main.props = {
8
+ sgGateway: {
9
+ key: "sgGateway",
10
+ required: false,
11
+ type: String,
12
+ default: void 0
13
+ },
14
+ sgBase: {
15
+ key: "sgBase",
16
+ required: false,
17
+ type: String,
18
+ default: void 0
19
+ },
20
+ sgOpen: {
21
+ key: "sgOpen",
22
+ required: false,
23
+ type: String,
24
+ default: void 0
25
+ },
26
+ sgDomain: {
27
+ key: "sgDomain",
28
+ required: false,
29
+ type: String,
30
+ default: void 0
31
+ },
8
32
  scrollingText: {
9
33
  key: "scrollingText",
10
34
  required: false,
@@ -65,6 +89,18 @@ __sfc_main.props = {
65
89
  type: String,
66
90
  default: "0"
67
91
  },
92
+ timestamp: {
93
+ key: "timestamp",
94
+ required: false,
95
+ type: [String, Number],
96
+ default: void 0
97
+ },
98
+ sign: {
99
+ key: "sign",
100
+ required: false,
101
+ type: String,
102
+ default: void 0
103
+ },
68
104
  origin: {
69
105
  key: "origin",
70
106
  required: false,
@@ -268,12 +304,25 @@ __sfc_main.setup = (__props, __ctx) => {
268
304
  muteShow,
269
305
  logShow,
270
306
  timingShow,
271
- signShow
307
+ signShow,
308
+ sign,
309
+ timestamp,
310
+ sgGateway,
311
+ sgBase,
312
+ sgOpen,
313
+ sgDomain
272
314
  } = props;
273
315
  let url = `${(envMap == null ? void 0 : envMap[env]) ?? env}/#/?cross=1&open=1`;
316
+ url += sgGateway ? `&sgGateway=${sgGateway}` : "";
317
+ url += sgBase ? `&sgBase=${sgBase}` : "";
318
+ url += sgOpen ? `&sgOpen=${sgOpen}` : "";
319
+ url += sgDomain ? `&sgDomain=${sgDomain}` : "";
320
+ url += timestamp ? `&timestamp=${timestamp}` : "";
321
+ url += sign ? `&sign=${sign}` : "";
274
322
  url += agentTag ? `&agentTag=${agentTag}` : "";
275
323
  url += agentId ? `&agentId=${agentId}` : "";
276
- url += `&appKey=${appKey}&appSecret=${appSecret}&extStatus=${extStatus}&paddingTop=${top}px&paddingLeft=${left}px&ancestorOrigin=${ancestorOrigin}&destinationOrigin=${destinationOrigin}`;
324
+ url += appSecret ? `&appSecret=${appSecret}` : "";
325
+ url += `&appKey=${appKey}&extStatus=${extStatus}&paddingTop=${top}px&paddingLeft=${left}px&ancestorOrigin=${ancestorOrigin}&destinationOrigin=${destinationOrigin}`;
277
326
  url += `&callShow=${callShow}`;
278
327
  url += `&transferToLaborShow=${transferToLaborShow}`;
279
328
  url += `&restShow=${restShow}`;
@@ -409,6 +458,12 @@ class SoftphoneManager {
409
458
  agentTag: void 0,
410
459
  appKey: void 0,
411
460
  appSecret: void 0,
461
+ sgGateway: void 0,
462
+ sgBase: void 0,
463
+ sgOpen: void 0,
464
+ sgDomain: void 0,
465
+ timestamp: void 0,
466
+ sign: void 0,
412
467
  extStatus: "0",
413
468
  callShow: "1",
414
469
  transferToLaborShow: "1",
@@ -683,12 +738,25 @@ class SoftphoneManager {
683
738
  muteShow,
684
739
  logShow,
685
740
  timingShow,
686
- signShow
741
+ signShow,
742
+ sign,
743
+ timestamp,
744
+ sgGateway,
745
+ sgBase,
746
+ sgOpen,
747
+ sgDomain
687
748
  } = this.option;
688
749
  let url = `${(envMap == null ? void 0 : envMap[env]) ?? env}/#/?cross=1&open=1`;
689
750
  url += agentTag ? `&agentTag=${agentTag}` : "";
690
751
  url += agentId ? `&agentId=${agentId}` : "";
691
- url += `&appKey=${appKey}&appSecret=${appSecret}&extStatus=${extStatus}&paddingTop=${top}px&paddingLeft=${left}px&ancestorOrigin=${ancestorOrigin}&destinationOrigin=${destinationOrigin}`;
752
+ url += appSecret ? `&appSecret=${appSecret}` : "";
753
+ url += sign ? `&sign=${sign}` : "";
754
+ url += timestamp ? `&timestamp=${timestamp}` : "";
755
+ url += sgGateway ? `&sgGateway=${sgGateway}` : "";
756
+ url += sgBase ? `&sgBase=${sgBase}` : "";
757
+ url += sgOpen ? `&sgOpen=${sgOpen}` : "";
758
+ url += sgDomain ? `&sgDomain=${sgDomain}` : "";
759
+ url += `&appKey=${appKey}&extStatus=${extStatus}&paddingTop=${top}px&paddingLeft=${left}px&ancestorOrigin=${ancestorOrigin}&destinationOrigin=${destinationOrigin}`;
692
760
  url += `&callShow=${callShow}`;
693
761
  url += `&transferToLaborShow=${transferToLaborShow}`;
694
762
  url += `&restShow=${restShow}`;
@@ -1,5 +1,9 @@
1
1
  import { Env } from './type';
2
2
  declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ sgGateway?: string | undefined;
4
+ sgBase?: string | undefined;
5
+ sgOpen?: string | undefined;
6
+ sgDomain?: string | undefined;
3
7
  scrollingText?: string | undefined;
4
8
  scrollview?: string | undefined;
5
9
  envMap?: Partial<Record<Env, string>> | undefined;
@@ -9,6 +13,8 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
9
13
  appKey?: string | undefined;
10
14
  appSecret?: string | undefined;
11
15
  extStatus?: string | undefined;
16
+ timestamp?: string | number | undefined;
17
+ sign?: string | undefined;
12
18
  origin?: string | undefined;
13
19
  ancestorOrigin?: string | undefined;
14
20
  destinationOrigin?: string | undefined;
@@ -31,10 +37,16 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
31
37
  prod: string;
32
38
  };
33
39
  env: string;
40
+ sgGateway: undefined;
41
+ sgBase: undefined;
42
+ sgOpen: undefined;
43
+ sgDomain: undefined;
34
44
  agentId: undefined;
35
45
  agentTag: undefined;
36
46
  appKey: undefined;
37
47
  appSecret: undefined;
48
+ timestamp: undefined;
49
+ sign: undefined;
38
50
  extStatus: string;
39
51
  origin: string;
40
52
  ancestorOrigin: string;
@@ -71,6 +83,10 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
71
83
  "softphone-incoming": (event: any) => void;
72
84
  "softphone-connect-registered": (event: any) => void;
73
85
  }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
86
+ sgGateway?: string | undefined;
87
+ sgBase?: string | undefined;
88
+ sgOpen?: string | undefined;
89
+ sgDomain?: string | undefined;
74
90
  scrollingText?: string | undefined;
75
91
  scrollview?: string | undefined;
76
92
  envMap?: Partial<Record<Env, string>> | undefined;
@@ -80,6 +96,8 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
80
96
  appKey?: string | undefined;
81
97
  appSecret?: string | undefined;
82
98
  extStatus?: string | undefined;
99
+ timestamp?: string | number | undefined;
100
+ sign?: string | undefined;
83
101
  origin?: string | undefined;
84
102
  ancestorOrigin?: string | undefined;
85
103
  destinationOrigin?: string | undefined;
@@ -102,10 +120,16 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
102
120
  prod: string;
103
121
  };
104
122
  env: string;
123
+ sgGateway: undefined;
124
+ sgBase: undefined;
125
+ sgOpen: undefined;
126
+ sgDomain: undefined;
105
127
  agentId: undefined;
106
128
  agentTag: undefined;
107
129
  appKey: undefined;
108
130
  appSecret: undefined;
131
+ timestamp: undefined;
132
+ sign: undefined;
109
133
  extStatus: string;
110
134
  origin: string;
111
135
  ancestorOrigin: string;
@@ -119,6 +143,10 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
119
143
  timingShow: string;
120
144
  signShow: string;
121
145
  }>>>, {
146
+ sgGateway: string;
147
+ sgBase: string;
148
+ sgOpen: string;
149
+ sgDomain: string;
122
150
  scrollingText: string;
123
151
  scrollview: string;
124
152
  envMap: Partial<Record<Env, string>>;
@@ -128,6 +156,8 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
128
156
  appKey: string;
129
157
  appSecret: string;
130
158
  extStatus: string;
159
+ timestamp: string | number;
160
+ sign: string;
131
161
  origin: string;
132
162
  ancestorOrigin: string;
133
163
  destinationOrigin: string;
package/lib/type.d.ts CHANGED
@@ -12,6 +12,12 @@ export declare type Option = {
12
12
  agentId: string;
13
13
  appKey: string;
14
14
  appSecret: string;
15
+ timestamp: string | number;
16
+ sign: string;
17
+ sgGateway: string;
18
+ sgBase: string;
19
+ sgOpen: string;
20
+ sgDomain: string;
15
21
  extStatus: '0' | '1';
16
22
  instanceMap: Record<string, any>;
17
23
  callShow: '0' | '1';
@@ -36,6 +36,11 @@ import {
36
36
  import { debounce } from '@94ai/common-utils'
37
37
 
38
38
  const props = withDefaults(defineProps<{
39
+ sgGateway?: string,
40
+ sgBase?: string,
41
+ sgOpen?: string,
42
+ sgDomain?: string,
43
+
39
44
  scrollingText?: string,
40
45
  scrollview?: string,
41
46
 
@@ -47,6 +52,8 @@ const props = withDefaults(defineProps<{
47
52
  appKey?: string,
48
53
  appSecret?: string,
49
54
  extStatus?: string,
55
+ timestamp?: string | number,
56
+ sign?: string,
50
57
 
51
58
  origin?: string,
52
59
  ancestorOrigin?: string,
@@ -73,10 +80,17 @@ const props = withDefaults(defineProps<{
73
80
  }),
74
81
  env: 'prod',
75
82
 
83
+ sgGateway: undefined,
84
+ sgBase: undefined,
85
+ sgOpen: undefined,
86
+ sgDomain: undefined,
87
+
76
88
  agentId: undefined,
77
89
  agentTag: undefined,
78
90
  appKey: undefined,
79
91
  appSecret: undefined,
92
+ timestamp: undefined,
93
+ sign: undefined,
80
94
  extStatus: '0',
81
95
 
82
96
  origin: 'ai-softphone',
@@ -247,11 +261,24 @@ onMounted(async () => {
247
261
  logShow,
248
262
  timingShow,
249
263
  signShow,
264
+ sign,
265
+ timestamp,
266
+ sgGateway,
267
+ sgBase,
268
+ sgOpen,
269
+ sgDomain,
250
270
  } = props
251
271
  let url = `${ envMap?.[env!] ?? env }/#/?cross=1&open=1`
272
+ url += sgGateway ? `&sgGateway=${sgGateway}` : ''
273
+ url += sgBase ? `&sgBase=${sgBase}` : ''
274
+ url += sgOpen ? `&sgOpen=${sgOpen}` : ''
275
+ url += sgDomain ? `&sgDomain=${sgDomain}` : ''
276
+ url += timestamp ? `&timestamp=${timestamp}` : ''
277
+ url += sign ? `&sign=${sign}` : ''
252
278
  url += agentTag ? `&agentTag=${agentTag}` : ''
253
279
  url += agentId ? `&agentId=${agentId}` : ''
254
- url += `&appKey=${appKey}&appSecret=${appSecret}&extStatus=${extStatus}&paddingTop=${top}px&paddingLeft=${left}px&ancestorOrigin=${ancestorOrigin}&destinationOrigin=${destinationOrigin}`
280
+ url += appSecret ? `&appSecret=${appSecret}` : ''
281
+ url += `&appKey=${appKey}&extStatus=${extStatus}&paddingTop=${top}px&paddingLeft=${left}px&ancestorOrigin=${ancestorOrigin}&destinationOrigin=${destinationOrigin}`
255
282
  url += `&callShow=${callShow}`
256
283
  url += `&transferToLaborShow=${transferToLaborShow}`
257
284
  url += `&restShow=${restShow}`
@@ -40,6 +40,15 @@ export class SoftphoneManager {
40
40
  agentTag: undefined,
41
41
  appKey: undefined,
42
42
  appSecret: undefined,
43
+
44
+ sgGateway: undefined,
45
+ sgBase: undefined,
46
+ sgOpen: undefined,
47
+ sgDomain: undefined,
48
+
49
+ timestamp: undefined,
50
+ sign: undefined,
51
+
43
52
  extStatus: '0',
44
53
 
45
54
  callShow: '1',
@@ -342,11 +351,24 @@ export class SoftphoneManager {
342
351
  logShow,
343
352
  timingShow,
344
353
  signShow,
354
+ sign,
355
+ timestamp,
356
+ sgGateway,
357
+ sgBase,
358
+ sgOpen,
359
+ sgDomain,
345
360
  } = this.option
346
361
  let url = `${ envMap?.[env!] ?? env }/#/?cross=1&open=1`
347
362
  url += agentTag ? `&agentTag=${agentTag}` : ''
348
363
  url += agentId ? `&agentId=${agentId}` : ''
349
- url += `&appKey=${appKey}&appSecret=${appSecret}&extStatus=${extStatus}&paddingTop=${top}px&paddingLeft=${left}px&ancestorOrigin=${ancestorOrigin}&destinationOrigin=${destinationOrigin}`
364
+ url += appSecret ? `&appSecret=${appSecret}` : ''
365
+ url += sign ? `&sign=${sign}` : ''
366
+ url += timestamp ? `&timestamp=${timestamp}` : ''
367
+ url += sgGateway ? `&sgGateway=${sgGateway}` : ''
368
+ url += sgBase ? `&sgBase=${sgBase}` : ''
369
+ url += sgOpen ? `&sgOpen=${sgOpen}` : ''
370
+ url += sgDomain ? `&sgDomain=${sgDomain}` : ''
371
+ url += `&appKey=${appKey}&extStatus=${extStatus}&paddingTop=${top}px&paddingLeft=${left}px&ancestorOrigin=${ancestorOrigin}&destinationOrigin=${destinationOrigin}`
350
372
  url += `&callShow=${callShow}`
351
373
  url += `&transferToLaborShow=${transferToLaborShow}`
352
374
  url += `&restShow=${restShow}`
package/package/type.ts CHANGED
@@ -12,6 +12,13 @@ export type Option = {
12
12
  agentId: string
13
13
  appKey: string
14
14
  appSecret: string
15
+ timestamp: string | number
16
+ sign: string
17
+ sgGateway: string
18
+ sgBase: string
19
+ sgOpen: string
20
+ sgDomain: string
21
+
15
22
  extStatus: '0' | '1'
16
23
  instanceMap: Record<string, any>,
17
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-softphone",
3
- "version": "6.1.30",
3
+ "version": "7.0.0",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,7 +14,7 @@
14
14
  "url": "http://94ai.gitlab.com/ui/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/nf-theme-chalk": "^6.1.30",
17
+ "@94ai/nf-theme-chalk": "^7.0.0",
18
18
  "vue-demi": "^0.14.5"
19
19
  },
20
20
  "peerDependenciesMeta": {
@@ -30,5 +30,5 @@
30
30
  "types": "lib/index.d.ts",
31
31
  "main": "lib/nf-softphone.cjs.js",
32
32
  "module": "lib/nf-softphone.esm-bundler.js",
33
- "gitHead": "a9bc8a7b3e9017ff13cede7afcabf135ccd949c5"
33
+ "gitHead": "5fecc6a0815d494bfaa76c4c5d1f34c8dd64a61d"
34
34
  }