@94ai/nf-softphone 3.3.17

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/.eslintrc.cjs ADDED
@@ -0,0 +1,49 @@
1
+ module.exports = {
2
+ "root": true,
3
+ "env": {
4
+ "node": true
5
+ },
6
+ "extends": [
7
+ "plugin:vue/essential"
8
+ ],
9
+ "parser": "vue-eslint-parser",
10
+ "parserOptions": {
11
+ "parser": "@typescript-eslint/parser",
12
+ "ecmaVersion": 2020,
13
+ "sourceType": "module"
14
+ },
15
+ "rules": {
16
+ "@typescript-eslint/ban-ts-ignore": "off",
17
+ "@typescript-eslint/explicit-function-return-type": "off",
18
+ "@typescript-eslint/no-explicit-any": "off",
19
+ "@typescript-eslint/no-var-requires": "off",
20
+ "@typescript-eslint/no-empty-function": "off",
21
+ "vue/custom-event-name-casing": "off",
22
+ "no-use-before-define": "off",
23
+ "@typescript-eslint/no-use-before-define": "off",
24
+ "@typescript-eslint/ban-ts-comment": "off",
25
+ "@typescript-eslint/ban-types": "off",
26
+ "@typescript-eslint/no-non-null-assertion": "off",
27
+ "@typescript-eslint/explicit-module-boundary-types": "off",
28
+ "@typescript-eslint/no-unused-vars": "off",
29
+ "vue/multi-word-component-names": [
30
+ "error",
31
+ {
32
+ "ignores": [
33
+ "index"
34
+ ]
35
+ }
36
+ ],
37
+ "no-console": "warn",
38
+ "no-debugger": "warn",
39
+ "prettier/prettier": [
40
+ "error",
41
+ {
42
+ "tabWidth": 2,
43
+ "singleQuote": true,
44
+ "semi": false,
45
+ "endOfLine": "auto"
46
+ }
47
+ ]
48
+ }
49
+ }
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # `@94ai/nf-softphone`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const nfSoftphone = require('@94ai/nf-softphone');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -0,0 +1,8 @@
1
+ export {}
2
+
3
+ declare module 'vue' {
4
+ export interface GlobalComponents {
5
+ NfSoftphone: typeof import('@94ai/nf-softphone/lib/nf-softphone.vue')['default']
6
+
7
+ }
8
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1,397 @@
1
+ import { PluginObject } from 'vue-demi';
2
+ import softphoneManager, { SoftphoneManager } from './softphone';
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
+ scrollview: {
5
+ type: import("vue-demi").PropType<string>;
6
+ default: undefined;
7
+ };
8
+ envMap: {
9
+ type: import("vue-demi").PropType<Partial<Record<import("./type").Env, string>>>;
10
+ default: () => {
11
+ test: string;
12
+ dev: string;
13
+ sg: string;
14
+ gray: string;
15
+ prod: string;
16
+ };
17
+ };
18
+ env: {
19
+ type: import("vue-demi").PropType<import("./type").Env>;
20
+ default: string;
21
+ };
22
+ selector: {
23
+ type: import("vue-demi").PropType<string>;
24
+ default: undefined;
25
+ };
26
+ el: {
27
+ type: import("vue-demi").PropType<string>;
28
+ };
29
+ agentId: {
30
+ type: import("vue-demi").PropType<string>;
31
+ default: undefined;
32
+ };
33
+ agentTag: {
34
+ type: import("vue-demi").PropType<string>;
35
+ default: undefined;
36
+ };
37
+ appKey: {
38
+ type: import("vue-demi").PropType<string>;
39
+ default: undefined;
40
+ };
41
+ appSecret: {
42
+ type: import("vue-demi").PropType<string>;
43
+ default: undefined;
44
+ };
45
+ extStatus: {
46
+ type: import("vue-demi").PropType<string>;
47
+ default: string;
48
+ };
49
+ origin: {
50
+ type: import("vue-demi").PropType<string>;
51
+ default: string;
52
+ };
53
+ ancestorOrigin: {
54
+ type: import("vue-demi").PropType<string>;
55
+ default: string;
56
+ };
57
+ }>>, Readonly<import("vue-demi").ExtractPropTypes<{
58
+ scrollview: {
59
+ type: import("vue-demi").PropType<string>;
60
+ default: undefined;
61
+ };
62
+ envMap: {
63
+ type: import("vue-demi").PropType<Partial<Record<import("./type").Env, string>>>;
64
+ default: () => {
65
+ test: string;
66
+ dev: string;
67
+ sg: string;
68
+ gray: string;
69
+ prod: string;
70
+ };
71
+ };
72
+ env: {
73
+ type: import("vue-demi").PropType<import("./type").Env>;
74
+ default: string;
75
+ };
76
+ selector: {
77
+ type: import("vue-demi").PropType<string>;
78
+ default: undefined;
79
+ };
80
+ el: {
81
+ type: import("vue-demi").PropType<string>;
82
+ };
83
+ agentId: {
84
+ type: import("vue-demi").PropType<string>;
85
+ default: undefined;
86
+ };
87
+ agentTag: {
88
+ type: import("vue-demi").PropType<string>;
89
+ default: undefined;
90
+ };
91
+ appKey: {
92
+ type: import("vue-demi").PropType<string>;
93
+ default: undefined;
94
+ };
95
+ appSecret: {
96
+ type: import("vue-demi").PropType<string>;
97
+ default: undefined;
98
+ };
99
+ extStatus: {
100
+ type: import("vue-demi").PropType<string>;
101
+ default: string;
102
+ };
103
+ origin: {
104
+ type: import("vue-demi").PropType<string>;
105
+ default: string;
106
+ };
107
+ ancestorOrigin: {
108
+ type: import("vue-demi").PropType<string>;
109
+ default: string;
110
+ };
111
+ }>>, {
112
+ "softphone-connect": (event: any) => void;
113
+ "softphone-seats-status-change": (event: any) => void;
114
+ "softphone-accept": (event: any) => void;
115
+ "softphone-ignore": (event: any) => void;
116
+ "softphone-hangup": (event: any) => void;
117
+ "softphone-send-dtmf": (event: any) => void;
118
+ "softphone-call-refresh": (event: any) => void;
119
+ "softphone-session-state-change": (event: any) => void;
120
+ "softphone-incoming": (event: any) => void;
121
+ "softphone-connect-registered": (event: any) => void;
122
+ }, {
123
+ scrollview: string;
124
+ envMap: Partial<Record<import("./type").Env, string>>;
125
+ env: import("./type").Env;
126
+ selector: string;
127
+ agentId: string;
128
+ agentTag: string;
129
+ appKey: string;
130
+ appSecret: string;
131
+ extStatus: string;
132
+ origin: string;
133
+ ancestorOrigin: string;
134
+ }, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{
135
+ scrollview: {
136
+ type: import("vue-demi").PropType<string>;
137
+ default: undefined;
138
+ };
139
+ envMap: {
140
+ type: import("vue-demi").PropType<Partial<Record<import("./type").Env, string>>>;
141
+ default: () => {
142
+ test: string;
143
+ dev: string;
144
+ sg: string;
145
+ gray: string;
146
+ prod: string;
147
+ };
148
+ };
149
+ env: {
150
+ type: import("vue-demi").PropType<import("./type").Env>;
151
+ default: string;
152
+ };
153
+ selector: {
154
+ type: import("vue-demi").PropType<string>;
155
+ default: undefined;
156
+ };
157
+ el: {
158
+ type: import("vue-demi").PropType<string>;
159
+ };
160
+ agentId: {
161
+ type: import("vue-demi").PropType<string>;
162
+ default: undefined;
163
+ };
164
+ agentTag: {
165
+ type: import("vue-demi").PropType<string>;
166
+ default: undefined;
167
+ };
168
+ appKey: {
169
+ type: import("vue-demi").PropType<string>;
170
+ default: undefined;
171
+ };
172
+ appSecret: {
173
+ type: import("vue-demi").PropType<string>;
174
+ default: undefined;
175
+ };
176
+ extStatus: {
177
+ type: import("vue-demi").PropType<string>;
178
+ default: string;
179
+ };
180
+ origin: {
181
+ type: import("vue-demi").PropType<string>;
182
+ default: string;
183
+ };
184
+ ancestorOrigin: {
185
+ type: import("vue-demi").PropType<string>;
186
+ default: string;
187
+ };
188
+ }>>> & import("vue-demi").ShallowUnwrapRef<{
189
+ connect: () => void;
190
+ disconnect: () => void;
191
+ seatsStatusChange: (status: any) => void;
192
+ accept: () => void;
193
+ ignore: () => void;
194
+ hangup: () => void;
195
+ sendDtmf: () => void;
196
+ iframe: import("vue-demi").Ref<any>;
197
+ containerScrolling: import("vue-demi").Ref<any>;
198
+ }> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
199
+ scrollview: {
200
+ type: import("vue-demi").PropType<string>;
201
+ default: undefined;
202
+ };
203
+ envMap: {
204
+ type: import("vue-demi").PropType<Partial<Record<import("./type").Env, string>>>;
205
+ default: () => {
206
+ test: string;
207
+ dev: string;
208
+ sg: string;
209
+ gray: string;
210
+ prod: string;
211
+ };
212
+ };
213
+ env: {
214
+ type: import("vue-demi").PropType<import("./type").Env>;
215
+ default: string;
216
+ };
217
+ selector: {
218
+ type: import("vue-demi").PropType<string>;
219
+ default: undefined;
220
+ };
221
+ el: {
222
+ type: import("vue-demi").PropType<string>;
223
+ };
224
+ agentId: {
225
+ type: import("vue-demi").PropType<string>;
226
+ default: undefined;
227
+ };
228
+ agentTag: {
229
+ type: import("vue-demi").PropType<string>;
230
+ default: undefined;
231
+ };
232
+ appKey: {
233
+ type: import("vue-demi").PropType<string>;
234
+ default: undefined;
235
+ };
236
+ appSecret: {
237
+ type: import("vue-demi").PropType<string>;
238
+ default: undefined;
239
+ };
240
+ extStatus: {
241
+ type: import("vue-demi").PropType<string>;
242
+ default: string;
243
+ };
244
+ origin: {
245
+ type: import("vue-demi").PropType<string>;
246
+ default: string;
247
+ };
248
+ ancestorOrigin: {
249
+ type: import("vue-demi").PropType<string>;
250
+ default: string;
251
+ };
252
+ }>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{
253
+ scrollview: {
254
+ type: import("vue-demi").PropType<string>;
255
+ default: undefined;
256
+ };
257
+ envMap: {
258
+ type: import("vue-demi").PropType<Partial<Record<import("./type").Env, string>>>;
259
+ default: () => {
260
+ test: string;
261
+ dev: string;
262
+ sg: string;
263
+ gray: string;
264
+ prod: string;
265
+ };
266
+ };
267
+ env: {
268
+ type: import("vue-demi").PropType<import("./type").Env>;
269
+ default: string;
270
+ };
271
+ selector: {
272
+ type: import("vue-demi").PropType<string>;
273
+ default: undefined;
274
+ };
275
+ el: {
276
+ type: import("vue-demi").PropType<string>;
277
+ };
278
+ agentId: {
279
+ type: import("vue-demi").PropType<string>;
280
+ default: undefined;
281
+ };
282
+ agentTag: {
283
+ type: import("vue-demi").PropType<string>;
284
+ default: undefined;
285
+ };
286
+ appKey: {
287
+ type: import("vue-demi").PropType<string>;
288
+ default: undefined;
289
+ };
290
+ appSecret: {
291
+ type: import("vue-demi").PropType<string>;
292
+ default: undefined;
293
+ };
294
+ extStatus: {
295
+ type: import("vue-demi").PropType<string>;
296
+ default: string;
297
+ };
298
+ origin: {
299
+ type: import("vue-demi").PropType<string>;
300
+ default: string;
301
+ };
302
+ ancestorOrigin: {
303
+ type: import("vue-demi").PropType<string>;
304
+ default: string;
305
+ };
306
+ }>>, {
307
+ connect: () => void;
308
+ disconnect: () => void;
309
+ seatsStatusChange: (status: any) => void;
310
+ accept: () => void;
311
+ ignore: () => void;
312
+ hangup: () => void;
313
+ sendDtmf: () => void;
314
+ iframe: import("vue-demi").Ref<any>;
315
+ containerScrolling: import("vue-demi").Ref<any>;
316
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
317
+ "softphone-connect": (event: any) => void;
318
+ "softphone-seats-status-change": (event: any) => void;
319
+ "softphone-accept": (event: any) => void;
320
+ "softphone-ignore": (event: any) => void;
321
+ "softphone-hangup": (event: any) => void;
322
+ "softphone-send-dtmf": (event: any) => void;
323
+ "softphone-call-refresh": (event: any) => void;
324
+ "softphone-session-state-change": (event: any) => void;
325
+ "softphone-incoming": (event: any) => void;
326
+ "softphone-connect-registered": (event: any) => void;
327
+ }, string, {
328
+ scrollview: string;
329
+ envMap: Partial<Record<import("./type").Env, string>>;
330
+ env: import("./type").Env;
331
+ selector: string;
332
+ agentId: string;
333
+ agentTag: string;
334
+ appKey: string;
335
+ appSecret: string;
336
+ extStatus: string;
337
+ origin: string;
338
+ ancestorOrigin: string;
339
+ }> & {
340
+ props: {
341
+ scrollview: {
342
+ type: import("vue-demi").PropType<string>;
343
+ default: undefined;
344
+ };
345
+ envMap: {
346
+ type: import("vue-demi").PropType<Partial<Record<import("./type").Env, string>>>;
347
+ default: () => {
348
+ test: string;
349
+ dev: string;
350
+ sg: string;
351
+ gray: string;
352
+ prod: string;
353
+ };
354
+ };
355
+ env: {
356
+ type: import("vue-demi").PropType<import("./type").Env>;
357
+ default: string;
358
+ };
359
+ selector: {
360
+ type: import("vue-demi").PropType<string>;
361
+ default: undefined;
362
+ };
363
+ el: {
364
+ type: import("vue-demi").PropType<string>;
365
+ };
366
+ agentId: {
367
+ type: import("vue-demi").PropType<string>;
368
+ default: undefined;
369
+ };
370
+ agentTag: {
371
+ type: import("vue-demi").PropType<string>;
372
+ default: undefined;
373
+ };
374
+ appKey: {
375
+ type: import("vue-demi").PropType<string>;
376
+ default: undefined;
377
+ };
378
+ appSecret: {
379
+ type: import("vue-demi").PropType<string>;
380
+ default: undefined;
381
+ };
382
+ extStatus: {
383
+ type: import("vue-demi").PropType<string>;
384
+ default: string;
385
+ };
386
+ origin: {
387
+ type: import("vue-demi").PropType<string>;
388
+ default: string;
389
+ };
390
+ ancestorOrigin: {
391
+ type: import("vue-demi").PropType<string>;
392
+ default: string;
393
+ };
394
+ };
395
+ } & PluginObject<undefined>;
396
+ export default _default;
397
+ export { softphoneManager, SoftphoneManager };