@snugdesk/whatsapp-widget 0.2.2 → 0.2.4

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.

Potentially problematic release.


This version of @snugdesk/whatsapp-widget might be problematic. Click here for more details.

package/index.d.ts CHANGED
@@ -1,14 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, ValueProvider, OnInit, AfterViewInit, OnChanges, ElementRef, ChangeDetectorRef, SimpleChanges, EventEmitter, NgZone, OnDestroy, PipeTransform, Renderer2 } from '@angular/core';
2
+ import { OnInit, AfterViewInit, OnChanges, ElementRef, ChangeDetectorRef, SimpleChanges, EventEmitter, NgZone, OnDestroy, PipeTransform, Renderer2 } from '@angular/core';
3
3
  import { MatSnackBar } from '@angular/material/snack-bar';
4
- import * as i25 from '@snugdesk/core';
5
- import { SnugdeskAuthenticationService, S3Object as S3Object$1, PhoneNumber as PhoneNumber$2, Language as Language$1, ModelStringInput as ModelStringInput$1, ModelIDInput as ModelIDInput$1, ModelBooleanInput as ModelBooleanInput$1, ModelIntInput as ModelIntInput$1, ModelStringKeyConditionInput as ModelStringKeyConditionInput$1, ModelSortDirection as ModelSortDirection$1, S3HelperService } from '@snugdesk/core';
6
- import * as rxjs from 'rxjs';
7
- import { Observable, BehaviorSubject } from 'rxjs';
8
- import { GraphQLResult } from '@aws-amplify/api-graphql';
4
+ import * as _snugdesk_core from '@snugdesk/core';
5
+ import { InteractionWidgetService, SnugdeskAuthenticationService, EntityConversationService, InteractionMessage, Entity, EntityService, PhoneNumber as PhoneNumber$1, EntityConversation, InteractionWidget, S3HelperService, UserService, InteractionService, InteractionAttendee, AppSyncHelperService, S3Object } from '@snugdesk/core';
9
6
  import { HttpClient } from '@angular/common/http';
10
7
  import * as i13 from '@angular/forms';
11
8
  import { FormGroup, FormBuilder, FormArray, ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
9
+ import * as rxjs from 'rxjs';
12
10
  import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
13
11
  import * as i24 from '@angular/material/select';
14
12
  import { MatSelectChange } from '@angular/material/select';
@@ -28,1095 +26,6 @@ import * as i27 from 'ngx-infinite-scroll';
28
26
  import * as i28 from 'ngx-skeleton-loader';
29
27
  import * as i29 from '@ctrl/ngx-emoji-mart';
30
28
 
31
- declare enum ModelAttributeTypes {
32
- binary = "binary",
33
- binarySet = "binarySet",
34
- bool = "bool",
35
- list = "list",
36
- map = "map",
37
- number = "number",
38
- numberSet = "numberSet",
39
- string = "string",
40
- stringSet = "stringSet",
41
- _null = "_null"
42
- }
43
- declare enum ModelSortDirection {
44
- ASC = "ASC",
45
- DESC = "DESC"
46
- }
47
- type ModelSizeInput = {
48
- ne?: number | null;
49
- eq?: number | null;
50
- le?: number | null;
51
- lt?: number | null;
52
- ge?: number | null;
53
- gt?: number | null;
54
- between?: Array<number | null> | null;
55
- };
56
- type ModelBooleanInput = {
57
- ne?: boolean | null;
58
- eq?: boolean | null;
59
- attributeExists?: boolean | null;
60
- attributeType?: ModelAttributeTypes | null;
61
- };
62
- type ModelIntInput = {
63
- ne?: number | null;
64
- eq?: number | null;
65
- le?: number | null;
66
- lt?: number | null;
67
- ge?: number | null;
68
- gt?: number | null;
69
- between?: Array<number | null> | null;
70
- attributeExists?: boolean | null;
71
- attributeType?: ModelAttributeTypes | null;
72
- };
73
- type ModelIDInput = {
74
- ne?: string | null;
75
- eq?: string | null;
76
- le?: string | null;
77
- lt?: string | null;
78
- ge?: string | null;
79
- gt?: string | null;
80
- contains?: string | null;
81
- notContains?: string | null;
82
- between?: Array<string | null> | null;
83
- beginsWith?: string | null;
84
- attributeExists?: boolean | null;
85
- attributeType?: ModelAttributeTypes | null;
86
- size?: ModelSizeInput | null;
87
- };
88
- type ModelStringInput = {
89
- ne?: string | null;
90
- eq?: string | null;
91
- le?: string | null;
92
- lt?: string | null;
93
- ge?: string | null;
94
- gt?: string | null;
95
- contains?: string | null;
96
- notContains?: string | null;
97
- between?: Array<string | null> | null;
98
- beginsWith?: string | null;
99
- attributeExists?: boolean | null;
100
- attributeType?: ModelAttributeTypes | null;
101
- size?: ModelSizeInput | null;
102
- };
103
- type ModelIDKeyConditionInput = {
104
- eq?: string | null;
105
- le?: string | null;
106
- lt?: string | null;
107
- ge?: string | null;
108
- gt?: string | null;
109
- between?: Array<string | null> | null;
110
- beginsWith?: string | null;
111
- };
112
- type ModelIntKeyConditionInput = {
113
- eq?: number | null;
114
- le?: number | null;
115
- lt?: number | null;
116
- ge?: number | null;
117
- gt?: number | null;
118
- between?: Array<number | null> | null;
119
- };
120
- type ModelStringKeyConditionInput = {
121
- eq?: string | null;
122
- le?: string | null;
123
- lt?: string | null;
124
- ge?: string | null;
125
- gt?: string | null;
126
- between?: Array<string | null> | null;
127
- beginsWith?: string | null;
128
- };
129
- interface SubscriptionResponse<T> {
130
- value: GraphQLResult<T>;
131
- }
132
- type Language = {
133
- code: string;
134
- nameEn: string;
135
- nameLocal?: string | null;
136
- };
137
- type PhoneNumber$1 = {
138
- countryCode?: string | null;
139
- dialCode?: string | null;
140
- e164Number?: string | null;
141
- internationalNumber?: string | null;
142
- nationalNumber?: string | null;
143
- number?: string | null;
144
- };
145
- type S3Object = {
146
- key: string;
147
- bucket: string;
148
- location: string;
149
- };
150
- type S3ObjectInput = {
151
- key: string;
152
- bucket: string;
153
- location: string;
154
- };
155
-
156
- interface AppSyncGraphqlConfig {
157
- endpoint: string;
158
- region: string;
159
- }
160
- declare const APPSYNC_GRAPHQL_CONFIG: InjectionToken<AppSyncGraphqlConfig>;
161
- declare function provideAppSyncConfig(config: AppSyncGraphqlConfig): ValueProvider;
162
- declare const AMPLIFY_CONFIG: InjectionToken<Record<string, unknown>>;
163
- declare function provideAmplifyConfig(config: Record<string, unknown>): ValueProvider;
164
- declare class AppSyncGraphqlService {
165
- private readonly authenticationService;
166
- private configured;
167
- private authMode;
168
- private readonly config;
169
- private readonly amplifyConfig?;
170
- constructor(config: AppSyncGraphqlConfig | null, amplifyConfig: Record<string, unknown> | null, authenticationService: SnugdeskAuthenticationService);
171
- query<T>(statement: string, variables?: Record<string, unknown>): Promise<GraphQLResult<T>>;
172
- mutate<T>(statement: string, variables?: Record<string, unknown>): Promise<GraphQLResult<T>>;
173
- subscribe<T>(statement: string, variables?: Record<string, unknown>): Observable<GraphQLResult<T>>;
174
- private ensureConfigured;
175
- private getHostConfig;
176
- private normalizeAuthMode;
177
- private getAuthModeFromConfig;
178
- private buildAuthHeaders;
179
- private getToken;
180
- static ɵfac: i0.ɵɵFactoryDeclaration<AppSyncGraphqlService, [{ optional: true; }, { optional: true; }, null]>;
181
- static ɵprov: i0.ɵɵInjectableDeclaration<AppSyncGraphqlService>;
182
- }
183
-
184
- type Entity = {
185
- id: string;
186
- externalId?: string | null;
187
- tenantId: string;
188
- name: string;
189
- image?: S3Object$1 | null;
190
- email?: string | null;
191
- phoneNumber?: PhoneNumber$2 | null;
192
- phoneNumberE164?: string | null;
193
- preferences?: EntityPreferences | null;
194
- contactPreferences?: EntityContactPreferences | null;
195
- createdAt: number;
196
- updatedAt: number;
197
- blockedAt?: number | null;
198
- deletedAt?: number | null;
199
- };
200
- type EntityPreferences = {
201
- timezoneName?: string | null;
202
- language?: Language$1 | null;
203
- };
204
- type EntityContactPreferences = {
205
- allowCall?: boolean | null;
206
- allowEmail?: boolean | null;
207
- allowSMS?: boolean | null;
208
- allowWhatsApp?: boolean | null;
209
- };
210
- type CreateEntityInput = {
211
- id?: string | null;
212
- externalId?: string | null;
213
- tenantId: string;
214
- name: string;
215
- image?: S3Object$1 | null;
216
- email?: string | null;
217
- phoneNumber?: PhoneNumber$2 | null;
218
- phoneNumberE164?: string | null;
219
- isOrganization: boolean;
220
- createdAt: number;
221
- updatedAt: number;
222
- blockedAt?: number | null;
223
- deletedAt?: number | null;
224
- updatedByUserId: string;
225
- updatedByUserSessionId?: string | null;
226
- };
227
- type UpdateEntityInput = {
228
- id: string;
229
- externalId?: string | null;
230
- tenantId?: string | null;
231
- name?: string | null;
232
- image?: S3Object$1 | null;
233
- email?: string | null;
234
- phoneNumber?: PhoneNumber$2 | null;
235
- phoneNumberE164?: string | null;
236
- isOrganization?: boolean | null;
237
- createdAt?: number | null;
238
- updatedAt: number;
239
- blockedAt?: number | null;
240
- deletedAt?: number | null;
241
- updatedByUserId?: string | null;
242
- updatedByUserSessionId?: string | null;
243
- };
244
- type ModelEntityConditionInput = {
245
- externalId?: ModelStringInput$1 | null;
246
- tenantId?: ModelIDInput$1 | null;
247
- entityTypeId?: ModelIDInput$1 | null;
248
- parentId?: ModelIDInput$1 | null;
249
- name?: ModelStringInput$1 | null;
250
- email?: ModelStringInput$1 | null;
251
- phoneNumberE164?: ModelStringInput$1 | null;
252
- isOrganization?: ModelBooleanInput$1 | null;
253
- createdAt?: ModelIntInput$1 | null;
254
- updatedAt?: ModelIntInput$1 | null;
255
- blockedAt?: ModelIntInput$1 | null;
256
- deletedAt?: ModelIntInput$1 | null;
257
- and?: Array<ModelEntityConditionInput | null> | null;
258
- or?: Array<ModelEntityConditionInput | null> | null;
259
- not?: ModelEntityConditionInput | null;
260
- };
261
- type ModelEntityFilterInput = {
262
- id?: ModelIDInput$1 | null;
263
- externalId?: ModelStringInput$1 | null;
264
- tenantId?: ModelIDInput$1 | null;
265
- entityTypeId?: ModelIDInput$1 | null;
266
- parentId?: ModelIDInput$1 | null;
267
- name?: ModelStringInput$1 | null;
268
- email?: ModelStringInput$1 | null;
269
- phoneNumberE164?: ModelStringInput$1 | null;
270
- isOrganization?: ModelBooleanInput$1 | null;
271
- createdAt?: ModelIntInput$1 | null;
272
- updatedAt?: ModelIntInput$1 | null;
273
- blockedAt?: ModelIntInput$1 | null;
274
- deletedAt?: ModelIntInput$1 | null;
275
- and?: Array<ModelEntityFilterInput | null> | null;
276
- or?: Array<ModelEntityFilterInput | null> | null;
277
- not?: ModelEntityFilterInput | null;
278
- };
279
- type ListEntities = {
280
- items: Array<Entity | null>;
281
- nextToken?: string | null;
282
- };
283
- declare class EntityService {
284
- private http;
285
- private readonly graphqlService;
286
- private readonly searchBaseUrl;
287
- constructor(http: HttpClient, graphqlService: AppSyncGraphqlService);
288
- private getEntitySearchEndpoint;
289
- searchEntities(queryString: string): Promise<Object>;
290
- GetEntity(id: string): Promise<Entity>;
291
- CreateEntity(input: CreateEntityInput, condition?: ModelEntityConditionInput): Promise<Entity>;
292
- UpdateEntity(input: UpdateEntityInput, condition?: ModelEntityConditionInput): Promise<Entity>;
293
- ListEntitiesByTenantId(tenantId: string, name?: ModelStringKeyConditionInput$1, sortDirection?: ModelSortDirection$1, filter?: ModelEntityFilterInput, limit?: number, nextToken?: string): Promise<ListEntities>;
294
- ListEntitiesByTenantIdAndPhoneNumberE164(tenantId: string, phoneNumberE164?: ModelStringKeyConditionInput$1, sortDirection?: ModelSortDirection$1, filter?: ModelEntityFilterInput, limit?: number, nextToken?: string): Promise<ListEntities>;
295
- static ɵfac: i0.ɵɵFactoryDeclaration<EntityService, never>;
296
- static ɵprov: i0.ɵɵInjectableDeclaration<EntityService>;
297
- }
298
-
299
- type TenantPreferences = {
300
- timezoneName?: string | null;
301
- language?: Language | null;
302
- allowUserToChangePreferences?: boolean | null;
303
- };
304
- type TenantSecurity = {
305
- domainValidationTokenExpiry?: number | null;
306
- userValidationTokenExpiry?: number | null;
307
- secretTokenExpiry?: number | null;
308
- sessionTokenExpiry?: number | null;
309
- sessionIdleTimeout?: number | null;
310
- };
311
- type Tenant = {
312
- id: string;
313
- externalId?: string | null;
314
- tenantDomain: string;
315
- organizationName: string;
316
- websiteURL?: string | null;
317
- image?: S3Object | null;
318
- preferences?: TenantPreferences | null;
319
- security?: TenantSecurity | null;
320
- activatedAt?: number | null;
321
- blockedAt?: number | null;
322
- createdAt: number;
323
- updatedAt: number;
324
- deletedAt?: number | null;
325
- };
326
-
327
- type InteractionWidget = {
328
- id: string;
329
- tenantId: string;
330
- tenant?: Tenant | null;
331
- channel: InteractionChannel;
332
- provider: InteractionProvider;
333
- providerAccountId?: string | null;
334
- name: string;
335
- description?: string | null;
336
- configuration?: string | null;
337
- isRecordingEnabledByDefault: boolean;
338
- isRecordingEnabledOnDemand: boolean;
339
- isTranscriptionEnabledByDefault: boolean;
340
- isTranscriptionEnabledOnDemand: boolean;
341
- routeConfiguration?: InteractionRouteConfiguration | null;
342
- createdAt: number;
343
- updatedAt: number;
344
- deletedAt?: number | null;
345
- };
346
- type ListInteractionWidgets = {
347
- items: Array<InteractionWidget | null>;
348
- nextToken?: string | null;
349
- };
350
- type ModelInteractionWidgetFilterInput = {
351
- id?: ModelIDInput | null;
352
- tenantId?: ModelIDInput | null;
353
- channel?: ModelInteractionChannelInput | null;
354
- provider?: ModelInteractionProviderInput | null;
355
- providerAccountId?: ModelStringInput | null;
356
- name?: ModelStringInput | null;
357
- description?: ModelStringInput | null;
358
- configuration?: ModelStringInput | null;
359
- isRecordingEnabledByDefault?: ModelBooleanInput | null;
360
- isRecordingEnabledOnDemand?: ModelBooleanInput | null;
361
- isTranscriptionEnabledByDefault?: ModelBooleanInput | null;
362
- isTranscriptionEnabledOnDemand?: ModelBooleanInput | null;
363
- createdAt?: ModelIntInput | null;
364
- updatedAt?: ModelIntInput | null;
365
- updatedByUserId?: ModelIDInput | null;
366
- updatedByUserSessionId?: ModelIDInput | null;
367
- deletedAt?: ModelIntInput | null;
368
- and?: Array<ModelInteractionWidgetFilterInput | null> | null;
369
- or?: Array<ModelInteractionWidgetFilterInput | null> | null;
370
- not?: ModelInteractionWidgetFilterInput | null;
371
- };
372
- declare class InteractionWidgetService {
373
- private readonly graphqlService;
374
- constructor(graphqlService: AppSyncGraphqlService);
375
- GetInteractionWidget(id: string): Promise<InteractionWidget>;
376
- ListInteractionWidgetsByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionWidgetFilterInput, limit?: number, nextToken?: string): Promise<ListInteractionWidgets>;
377
- static ɵfac: i0.ɵɵFactoryDeclaration<InteractionWidgetService, never>;
378
- static ɵprov: i0.ɵɵInjectableDeclaration<InteractionWidgetService>;
379
- }
380
-
381
- type InteractionEndpoint = {
382
- id: string;
383
- externalId: string;
384
- tenantId: string;
385
- widgetId: string;
386
- widget?: InteractionWidget | null;
387
- address: string;
388
- configuration?: string | null;
389
- sellPrice?: InteractionEndpointPriceDetails | null;
390
- documents?: Array<InteractionEndpointRegulatoryComplianceDocument | null> | null;
391
- createdAt: number;
392
- updatedAt: number;
393
- deletedAt?: number | null;
394
- };
395
- type InteractionEndpointPriceDetails = {
396
- currency: string;
397
- upfrontCost: number;
398
- monthlyCost: number;
399
- inboundCost: number;
400
- outboundCost: number;
401
- };
402
- type InteractionEndpointRegulatoryComplianceDocument = {
403
- fileName: string;
404
- documentType?: string | null;
405
- contentType?: string | null;
406
- file?: S3Object | null;
407
- };
408
-
409
- type Team = {
410
- id: string;
411
- tenantId: string;
412
- name: string;
413
- description?: string | null;
414
- image?: S3Object | null;
415
- ticketFields?: Array<string | null> | null;
416
- createdAt: number;
417
- updatedAt: number;
418
- deletedAt?: number | null;
419
- };
420
-
421
- type UserPreferences = {
422
- timezoneName?: string | null;
423
- language?: Language | null;
424
- };
425
- type UserNotificationSettings = {
426
- allowPush?: boolean | null;
427
- allowEmail?: boolean | null;
428
- allowSMS?: boolean | null;
429
- allowWhatsApp?: boolean | null;
430
- };
431
- declare enum UserStatus {
432
- READY = "READY",
433
- NOT_READY = "NOT_READY",
434
- INVITED = "INVITED",
435
- BUSY = "BUSY",
436
- AFTER_CALL_WORK = "AFTER_CALL_WORK"
437
- }
438
- declare enum UserType {
439
- AGENT = "AGENT",
440
- SUPERVISOR = "SUPERVISOR",
441
- ADMINISTRATOR = "ADMINISTRATOR"
442
- }
443
- type User = {
444
- id: string;
445
- externalId?: string | null;
446
- tenantId: string;
447
- email: string;
448
- name?: string | null;
449
- image?: S3Object | null;
450
- phoneNumber?: PhoneNumber$1 | null;
451
- preferences?: UserPreferences | null;
452
- notificationSettings?: UserNotificationSettings | null;
453
- type?: UserType | null;
454
- activatedAt?: number | null;
455
- blockedAt?: number | null;
456
- createdAt: number;
457
- updatedAt: number;
458
- deletedAt?: number | null;
459
- };
460
- type __SubscriptionContainer$2 = {
461
- OnUserById: User;
462
- };
463
- declare class UserService {
464
- private readonly graphqlService;
465
- constructor(graphqlService: AppSyncGraphqlService);
466
- getUserById(id: string): Promise<User>;
467
- GetUser(id: string): Promise<User>;
468
- OnUserByIdListener(id: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$2, 'OnUserById'>>>;
469
- static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
470
- static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
471
- }
472
-
473
- type UserSession = {
474
- id: string;
475
- tenantId: string;
476
- userId: string;
477
- user?: User | null;
478
- ipDetails?: string | null;
479
- status?: UserStatus | null;
480
- teamIds?: Array<string | null> | null;
481
- temp_isLocked?: boolean | null;
482
- temp_isAvailableTenantIdUnion?: string | null;
483
- createdAt: number;
484
- updatedAt: number;
485
- expiryAt: number;
486
- loggedOutAt?: number | null;
487
- blockedAt?: number | null;
488
- };
489
-
490
- declare enum InteractionChannel {
491
- EMAIL = "EMAIL",
492
- PHONE = "PHONE",
493
- SMS = "SMS",
494
- WEB_CHAT = "WEB_CHAT",
495
- SOCIAL_CHAT = "SOCIAL_CHAT"
496
- }
497
- declare enum InteractionContext {
498
- INTERNAL = "INTERNAL",
499
- EXTERNAL = "EXTERNAL"
500
- }
501
- declare enum InteractionDirection {
502
- IN = "IN",
503
- OUT = "OUT"
504
- }
505
- declare enum InteractionStatus {
506
- INITIATED = "INITIATED",
507
- QUEUED = "QUEUED",
508
- RINGING = "RINGING",
509
- CONNECTED_TO_AGENT = "CONNECTED_TO_AGENT",
510
- CONNECTED_TO_BOT = "CONNECTED_TO_BOT",
511
- HELD = "HELD",
512
- DISCONNECTED = "DISCONNECTED",
513
- CANCELLED = "CANCELLED",
514
- REJECTED = "REJECTED",
515
- NO_ANSWER = "NO_ANSWER",
516
- MISSED = "MISSED",
517
- FAILED = "FAILED"
518
- }
519
- declare enum InteractionProvider {
520
- AVAYA_IPO = "AVAYA_IPO",
521
- TELNYX = "TELNYX",
522
- WHATSAPP = "WHATSAPP",
523
- TELEGRAM = "TELEGRAM",
524
- SNUGDESK = "SNUGDESK"
525
- }
526
- type InteractionRouteConfiguration = {
527
- teamId?: string | null;
528
- routingLogic?: InteractionRouteLogic | null;
529
- maxWaitTimeoutSeconds?: number | null;
530
- };
531
- declare enum InteractionRouteLogic {
532
- MOST_IDLE_AGENT = "MOST_IDLE_AGENT",
533
- PARALLEL = "PARALLEL"
534
- }
535
- type Interaction = {
536
- id: string;
537
- tenantId: string;
538
- widgetId: string;
539
- widget?: InteractionWidget | null;
540
- endpointId: string;
541
- endpoint?: InteractionEndpoint | null;
542
- entityConversationId?: string | null;
543
- entityConversation?: EntityConversation | null;
544
- entityId?: string | null;
545
- entity?: Entity | null;
546
- teamId?: string | null;
547
- team?: Team | null;
548
- hostId?: string | null;
549
- host?: InteractionHost | null;
550
- providerInteractionId?: string | null;
551
- channel: InteractionChannel;
552
- provider: InteractionProvider;
553
- context: InteractionContext;
554
- direction: InteractionDirection;
555
- status?: InteractionStatus | null;
556
- last_status?: InteractionStatus | null;
557
- metadata?: string | null;
558
- subject?: string | null;
559
- routeConfiguration?: InteractionRouteConfiguration | null;
560
- startedAt?: number | null;
561
- completedAt?: number | null;
562
- duration?: number | null;
563
- summary?: string | null;
564
- createdAt: number;
565
- updatedAt: number;
566
- deletedAt?: number | null;
567
- };
568
- type InteractionHost = {
569
- id: string;
570
- interactionId: string;
571
- interaction?: Interaction | null;
572
- entityId?: string | null;
573
- entity?: Entity | null;
574
- teamId?: string | null;
575
- team?: Team | null;
576
- userId?: string | null;
577
- user?: User | null;
578
- createdAt: number;
579
- updatedAt: number;
580
- deletedAt?: number | null;
581
- };
582
- type InteractionInvitee = {
583
- id: string;
584
- interactionId: string;
585
- interaction?: Interaction | null;
586
- entityId?: string | null;
587
- entity?: Entity | null;
588
- teamId?: string | null;
589
- team?: Team | null;
590
- userId?: string | null;
591
- user?: User | null;
592
- isAdministrator: boolean;
593
- temp_expiringAt?: number | null;
594
- expiredAt?: number | null;
595
- createdAt: number;
596
- updatedAt: number;
597
- deletedAt?: number | null;
598
- };
599
- type InteractionAttendee = {
600
- id: string;
601
- interactionId: string;
602
- interaction?: Interaction | null;
603
- entityId?: string | null;
604
- entity?: Entity | null;
605
- interactionWidgetSessionId?: string | null;
606
- teamId?: string | null;
607
- team?: Team | null;
608
- userId?: string | null;
609
- user?: User | null;
610
- userSessionId?: string | null;
611
- userSession?: UserSession | null;
612
- name: string;
613
- metadata?: string | null;
614
- customFields?: Array<string | null> | null;
615
- isAdministrator: boolean;
616
- joinedAt?: number | null;
617
- exitedAt?: number | null;
618
- createdAt: number;
619
- updatedAt: number;
620
- deletedAt?: number | null;
621
- };
622
- type InteractionMessage = {
623
- id: string;
624
- externalId?: string | null;
625
- endpointId?: string | null;
626
- endpoint?: InteractionEndpoint | null;
627
- campaignId?: string | null;
628
- campaignFlowNodeId?: string | null;
629
- entityConversationId: string;
630
- entityConversation?: EntityConversation | null;
631
- interactionId: string;
632
- interaction?: Interaction | null;
633
- interactionAttendeeId?: string | null;
634
- interactionAttendee?: InteractionAttendee | null;
635
- referenceMessageId?: string | null;
636
- body?: string | null;
637
- metadata?: string | null;
638
- createdAt: number;
639
- updatedAt: number;
640
- deletedAt?: number | null;
641
- messageAttachments?: ListInteractionMessageAttachments | null;
642
- temp_isSending?: boolean | null;
643
- };
644
- type InteractionMessageAttachment = {
645
- id: string;
646
- externalId?: string | null;
647
- interactionId: string;
648
- interactionMessageId: string;
649
- name: string;
650
- size?: number | null;
651
- type?: string | null;
652
- file: S3Object;
653
- createdAt: number;
654
- updatedAt: number;
655
- deletedAt?: number | null;
656
- };
657
- type ListInteractionInvitees = {
658
- items: Array<InteractionInvitee | null>;
659
- nextToken?: string | null;
660
- };
661
- type ListInteractionAttendees = {
662
- items: Array<InteractionAttendee | null>;
663
- nextToken?: string | null;
664
- };
665
- type ListInteractionMessages = {
666
- items: Array<InteractionMessage | null>;
667
- nextToken?: string | null;
668
- };
669
- type ListInteractionMessageAttachments = {
670
- items: Array<InteractionMessageAttachment | null>;
671
- nextToken?: string | null;
672
- };
673
- type CreateInteractionInput = {
674
- id?: string | null;
675
- tenantId: string;
676
- widgetId: string;
677
- endpointId: string;
678
- entityConversationId?: string | null;
679
- entityId?: string | null;
680
- teamId?: string | null;
681
- hostId?: string | null;
682
- providerInteractionId?: string | null;
683
- channel: InteractionChannel;
684
- provider: InteractionProvider;
685
- context: InteractionContext;
686
- direction: InteractionDirection;
687
- status?: InteractionStatus | null;
688
- last_status?: InteractionStatus | null;
689
- metadata?: string | null;
690
- subject?: string | null;
691
- routeConfiguration?: InteractionRouteConfigurationInput | null;
692
- startedAt?: number | null;
693
- completedAt?: number | null;
694
- duration?: number | null;
695
- summary?: string | null;
696
- temp_isLocked?: boolean | null;
697
- temp_isAvailableTenantIdUnion?: string | null;
698
- createdAt: number;
699
- updatedAt: number;
700
- deletedAt?: number | null;
701
- };
702
- type UpdateInteractionInput = {
703
- id: string;
704
- tenantId?: string | null;
705
- widgetId?: string | null;
706
- endpointId?: string | null;
707
- entityConversationId?: string | null;
708
- entityId?: string | null;
709
- teamId?: string | null;
710
- hostId?: string | null;
711
- providerInteractionId?: string | null;
712
- channel?: InteractionChannel | null;
713
- provider?: InteractionProvider | null;
714
- context?: InteractionContext | null;
715
- direction?: InteractionDirection | null;
716
- status?: InteractionStatus | null;
717
- last_status?: InteractionStatus | null;
718
- metadata?: string | null;
719
- subject?: string | null;
720
- routeConfiguration?: InteractionRouteConfigurationInput | null;
721
- startedAt?: number | null;
722
- completedAt?: number | null;
723
- duration?: number | null;
724
- summary?: string | null;
725
- temp_isLocked?: boolean | null;
726
- temp_isAvailableTenantIdUnion?: string | null;
727
- createdAt?: number | null;
728
- updatedAt?: number | null;
729
- deletedAt?: number | null;
730
- };
731
- type CreateInteractionAttendeeInput = {
732
- id?: string | null;
733
- interactionId: string;
734
- entityId?: string | null;
735
- interactionWidgetSessionId?: string | null;
736
- teamId?: string | null;
737
- userId?: string | null;
738
- userSessionId?: string | null;
739
- name: string;
740
- metadata?: string | null;
741
- customFields?: Array<string | null> | null;
742
- isAdministrator: boolean;
743
- joinedAt?: number | null;
744
- exitedAt?: number | null;
745
- createdAt: number;
746
- updatedAt: number;
747
- deletedAt?: number | null;
748
- };
749
- type CreateInteractionMessageInput = {
750
- id?: string | null;
751
- externalId?: string | null;
752
- endpointId?: string | null;
753
- campaignId?: string | null;
754
- campaignFlowNodeId?: string | null;
755
- entityConversationId: string;
756
- interactionId: string;
757
- interactionAttendeeId?: string | null;
758
- referenceMessageId?: string | null;
759
- body?: string | null;
760
- metadata?: string | null;
761
- createdAt: number;
762
- updatedAt: number;
763
- deletedAt?: number | null;
764
- };
765
- type CreateInteractionMessageAttachmentInput = {
766
- id?: string | null;
767
- externalId?: string | null;
768
- interactionId: string;
769
- interactionMessageId: string;
770
- name: string;
771
- size?: number | null;
772
- type?: string | null;
773
- file: S3ObjectInput;
774
- createdAt: number;
775
- updatedAt: number;
776
- deletedAt?: number | null;
777
- };
778
- type ModelInteractionConditionInput = {
779
- tenantId?: ModelIDInput | null;
780
- widgetId?: ModelIDInput | null;
781
- endpointId?: ModelIDInput | null;
782
- entityConversationId?: ModelIDInput | null;
783
- entityId?: ModelIDInput | null;
784
- teamId?: ModelIDInput | null;
785
- hostId?: ModelIDInput | null;
786
- providerInteractionId?: ModelStringInput | null;
787
- channel?: ModelInteractionChannelInput | null;
788
- provider?: ModelInteractionProviderInput | null;
789
- context?: ModelInteractionContextInput | null;
790
- direction?: ModelInteractionDirectionInput | null;
791
- status?: ModelInteractionStatusInput | null;
792
- last_status?: ModelInteractionStatusInput | null;
793
- metadata?: ModelStringInput | null;
794
- subject?: ModelStringInput | null;
795
- startedAt?: ModelIntInput | null;
796
- completedAt?: ModelIntInput | null;
797
- duration?: ModelIntInput | null;
798
- summary?: ModelStringInput | null;
799
- temp_isLocked?: ModelBooleanInput | null;
800
- temp_isAvailableTenantIdUnion?: ModelStringInput | null;
801
- createdAt?: ModelIntInput | null;
802
- updatedAt?: ModelIntInput | null;
803
- deletedAt?: ModelIntInput | null;
804
- and?: Array<ModelInteractionConditionInput | null> | null;
805
- or?: Array<ModelInteractionConditionInput | null> | null;
806
- not?: ModelInteractionConditionInput | null;
807
- };
808
- type ModelInteractionInviteeFilterInput = {
809
- id?: ModelIDInput | null;
810
- interactionId?: ModelIDInput | null;
811
- entityId?: ModelIDInput | null;
812
- teamId?: ModelIDInput | null;
813
- userId?: ModelIDInput | null;
814
- isAdministrator?: ModelBooleanInput | null;
815
- temp_expiringAt?: ModelIntInput | null;
816
- expiredAt?: ModelIntInput | null;
817
- createdAt?: ModelIntInput | null;
818
- updatedAt?: ModelIntInput | null;
819
- deletedAt?: ModelIntInput | null;
820
- and?: Array<ModelInteractionInviteeFilterInput | null> | null;
821
- or?: Array<ModelInteractionInviteeFilterInput | null> | null;
822
- not?: ModelInteractionInviteeFilterInput | null;
823
- };
824
- type ModelInteractionAttendeeConditionInput = {
825
- interactionId?: ModelIDInput | null;
826
- entityId?: ModelIDInput | null;
827
- interactionWidgetSessionId?: ModelIDInput | null;
828
- teamId?: ModelIDInput | null;
829
- userId?: ModelIDInput | null;
830
- userSessionId?: ModelIDInput | null;
831
- name?: ModelStringInput | null;
832
- metadata?: ModelStringInput | null;
833
- customFields?: ModelStringInput | null;
834
- isAdministrator?: ModelBooleanInput | null;
835
- joinedAt?: ModelIntInput | null;
836
- exitedAt?: ModelIntInput | null;
837
- createdAt?: ModelIntInput | null;
838
- updatedAt?: ModelIntInput | null;
839
- deletedAt?: ModelIntInput | null;
840
- and?: Array<ModelInteractionAttendeeConditionInput | null> | null;
841
- or?: Array<ModelInteractionAttendeeConditionInput | null> | null;
842
- not?: ModelInteractionAttendeeConditionInput | null;
843
- };
844
- type ModelInteractionAttendeeFilterInput = {
845
- id?: ModelIDInput | null;
846
- interactionId?: ModelIDInput | null;
847
- entityId?: ModelIDInput | null;
848
- interactionWidgetSessionId?: ModelIDInput | null;
849
- teamId?: ModelIDInput | null;
850
- userId?: ModelIDInput | null;
851
- userSessionId?: ModelIDInput | null;
852
- name?: ModelStringInput | null;
853
- metadata?: ModelStringInput | null;
854
- customFields?: ModelStringInput | null;
855
- isAdministrator?: ModelBooleanInput | null;
856
- joinedAt?: ModelIntInput | null;
857
- exitedAt?: ModelIntInput | null;
858
- createdAt?: ModelIntInput | null;
859
- updatedAt?: ModelIntInput | null;
860
- deletedAt?: ModelIntInput | null;
861
- and?: Array<ModelInteractionAttendeeFilterInput | null> | null;
862
- or?: Array<ModelInteractionAttendeeFilterInput | null> | null;
863
- not?: ModelInteractionAttendeeFilterInput | null;
864
- };
865
- type ModelInteractionMessageConditionInput = {
866
- externalId?: ModelStringInput | null;
867
- endpointId?: ModelIDInput | null;
868
- campaignId?: ModelIDInput | null;
869
- campaignFlowNodeId?: ModelIDInput | null;
870
- entityConversationId?: ModelIDInput | null;
871
- interactionId?: ModelIDInput | null;
872
- interactionAttendeeId?: ModelIDInput | null;
873
- referenceMessageId?: ModelIDInput | null;
874
- body?: ModelStringInput | null;
875
- metadata?: ModelStringInput | null;
876
- createdAt?: ModelIntInput | null;
877
- updatedAt?: ModelIntInput | null;
878
- deletedAt?: ModelIntInput | null;
879
- and?: Array<ModelInteractionMessageConditionInput | null> | null;
880
- or?: Array<ModelInteractionMessageConditionInput | null> | null;
881
- not?: ModelInteractionMessageConditionInput | null;
882
- };
883
- type ModelInteractionMessageFilterInput = {
884
- id?: ModelIDInput | null;
885
- externalId?: ModelStringInput | null;
886
- endpointId?: ModelIDInput | null;
887
- campaignId?: ModelIDInput | null;
888
- campaignFlowNodeId?: ModelIDInput | null;
889
- entityConversationId?: ModelIDInput | null;
890
- interactionId?: ModelIDInput | null;
891
- interactionAttendeeId?: ModelIDInput | null;
892
- referenceMessageId?: ModelIDInput | null;
893
- body?: ModelStringInput | null;
894
- metadata?: ModelStringInput | null;
895
- createdAt?: ModelIntInput | null;
896
- updatedAt?: ModelIntInput | null;
897
- deletedAt?: ModelIntInput | null;
898
- and?: Array<ModelInteractionMessageFilterInput | null> | null;
899
- or?: Array<ModelInteractionMessageFilterInput | null> | null;
900
- not?: ModelInteractionMessageFilterInput | null;
901
- };
902
- type ModelInteractionMessageAttachmentConditionInput = {
903
- externalId?: ModelStringInput | null;
904
- interactionId?: ModelIDInput | null;
905
- interactionMessageId?: ModelIDInput | null;
906
- name?: ModelStringInput | null;
907
- size?: ModelIntInput | null;
908
- type?: ModelStringInput | null;
909
- createdAt?: ModelIntInput | null;
910
- updatedAt?: ModelIntInput | null;
911
- deletedAt?: ModelIntInput | null;
912
- and?: Array<ModelInteractionMessageAttachmentConditionInput | null> | null;
913
- or?: Array<ModelInteractionMessageAttachmentConditionInput | null> | null;
914
- not?: ModelInteractionMessageAttachmentConditionInput | null;
915
- };
916
- type ModelInteractionMessageAttachmentFilterInput = {
917
- id?: ModelIDInput | null;
918
- externalId?: ModelStringInput | null;
919
- interactionId?: ModelIDInput | null;
920
- interactionMessageId?: ModelIDInput | null;
921
- name?: ModelStringInput | null;
922
- size?: ModelIntInput | null;
923
- type?: ModelStringInput | null;
924
- createdAt?: ModelIntInput | null;
925
- updatedAt?: ModelIntInput | null;
926
- deletedAt?: ModelIntInput | null;
927
- and?: Array<ModelInteractionMessageAttachmentFilterInput | null> | null;
928
- or?: Array<ModelInteractionMessageAttachmentFilterInput | null> | null;
929
- not?: ModelInteractionMessageAttachmentFilterInput | null;
930
- };
931
- type ModelInteractionChannelInput = {
932
- eq?: InteractionChannel | null;
933
- ne?: InteractionChannel | null;
934
- };
935
- type ModelInteractionContextInput = {
936
- eq?: InteractionContext | null;
937
- ne?: InteractionContext | null;
938
- };
939
- type ModelInteractionDirectionInput = {
940
- eq?: InteractionDirection | null;
941
- ne?: InteractionDirection | null;
942
- };
943
- type ModelInteractionProviderInput = {
944
- eq?: InteractionProvider | null;
945
- ne?: InteractionProvider | null;
946
- };
947
- type ModelInteractionStatusInput = {
948
- eq?: InteractionStatus | null;
949
- ne?: InteractionStatus | null;
950
- };
951
- type InteractionRouteConfigurationInput = {
952
- teamId?: string | null;
953
- routingLogic?: InteractionRouteLogic | null;
954
- maxWaitTimeoutSeconds?: number | null;
955
- };
956
- type __SubscriptionContainer$1 = {
957
- OnInteractionInviteeByUserId: InteractionInvitee;
958
- OnInteractionMessageByEntityConversationId: InteractionMessage;
959
- };
960
- declare class InteractionService {
961
- private readonly graphqlService;
962
- newInteractionInviteObservable$: BehaviorSubject<any>;
963
- constructor(graphqlService: AppSyncGraphqlService);
964
- GetInteraction(id: string): Promise<Interaction>;
965
- GetInteractionAttendee(id: string): Promise<InteractionAttendee>;
966
- GetInteractionMessage(id: string): Promise<InteractionMessage>;
967
- CreateInteraction(input: CreateInteractionInput, condition?: ModelInteractionConditionInput): Promise<Interaction>;
968
- UpdateInteraction(input: UpdateInteractionInput, condition?: ModelInteractionConditionInput): Promise<Interaction>;
969
- CreateInteractionAttendee(input: CreateInteractionAttendeeInput, condition?: ModelInteractionAttendeeConditionInput): Promise<InteractionAttendee>;
970
- CreateInteractionMessage(input: CreateInteractionMessageInput, condition?: ModelInteractionMessageConditionInput): Promise<InteractionMessage>;
971
- CreateInteractionMessageAttachment(input: CreateInteractionMessageAttachmentInput, condition?: ModelInteractionMessageAttachmentConditionInput): Promise<InteractionMessageAttachment>;
972
- ListInteractionInviteesByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionInviteeFilterInput, limit?: number, nextToken?: string): Promise<ListInteractionInvitees>;
973
- ListInteractionAttendeesByInteractionIdAndEntityId(interactionId: string, entityId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<ListInteractionAttendees>;
974
- ListInteractionAttendeesByInteractionIdAndUserId(interactionId: string, userId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<ListInteractionAttendees>;
975
- ListInteractionMessagesByEntityConversationId(entityConversationId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<ListInteractionMessages>;
976
- ListInteractionMessagesByExternalMessageId(externalMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<ListInteractionMessages>;
977
- ListInteractionMessagesByInteractionAttendeeId(interactionAttendeeId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<ListInteractionMessages>;
978
- ListInteractionMessageAttachmentsByInteractionMessageId(interactionMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageAttachmentFilterInput, limit?: number, nextToken?: string): Promise<ListInteractionMessageAttachments>;
979
- OnInteractionInviteeByUserIdListener(userId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$1, 'OnInteractionInviteeByUserId'>>>;
980
- OnInteractionMessageByEntityConversationIdListener(entityConversationId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$1, 'OnInteractionMessageByEntityConversationId'>>>;
981
- static ɵfac: i0.ɵɵFactoryDeclaration<InteractionService, never>;
982
- static ɵprov: i0.ɵɵInjectableDeclaration<InteractionService>;
983
- }
984
-
985
- type EntityConversation = {
986
- id: string;
987
- tenantId: string;
988
- entityId?: string | null;
989
- entity?: Entity | null;
990
- entityAddress: string;
991
- interactionChannel: InteractionChannel;
992
- interactionProvider: InteractionProvider;
993
- isCampaignEngaged: boolean;
994
- campaignId?: string | null;
995
- lastCampaignFlowNodeId?: string | null;
996
- lastInteractionMessageId?: string | null;
997
- metadata?: string | null;
998
- lastActivityAt?: number | null;
999
- lastMessageAt?: number | null;
1000
- archivedAt?: number | null;
1001
- blockedAt?: number | null;
1002
- createdAt: number;
1003
- updatedAt: number;
1004
- deletedAt?: number | null;
1005
- interactions?: {
1006
- items: Array<Interaction | null>;
1007
- nextToken?: string | null;
1008
- } | null;
1009
- messages?: {
1010
- items: Array<InteractionMessage | null>;
1011
- nextToken?: string | null;
1012
- } | null;
1013
- };
1014
- type ListEntityConversations = {
1015
- items: Array<EntityConversation | null>;
1016
- nextToken?: string | null;
1017
- };
1018
- type CreateEntityConversationInput = {
1019
- id?: string | null;
1020
- tenantId: string;
1021
- entityId?: string | null;
1022
- entityAddress: string;
1023
- interactionChannel: InteractionChannel;
1024
- interactionProvider: InteractionProvider;
1025
- isCampaignEngaged: boolean;
1026
- campaignId?: string | null;
1027
- lastCampaignFlowNodeId?: string | null;
1028
- lastInteractionMessageId?: string | null;
1029
- metadata?: string | null;
1030
- lastActivityAt?: number | null;
1031
- lastMessageAt?: number | null;
1032
- archivedAt?: number | null;
1033
- blockedAt?: number | null;
1034
- createdAt: number;
1035
- updatedAt: number;
1036
- deletedAt?: number | null;
1037
- };
1038
- type UpdateEntityConversationInput = {
1039
- id: string;
1040
- tenantId?: string | null;
1041
- entityId?: string | null;
1042
- entityAddress?: string | null;
1043
- interactionChannel?: InteractionChannel | null;
1044
- interactionProvider?: InteractionProvider | null;
1045
- isCampaignEngaged?: boolean | null;
1046
- campaignId?: string | null;
1047
- lastCampaignFlowNodeId?: string | null;
1048
- lastInteractionMessageId?: string | null;
1049
- metadata?: string | null;
1050
- lastActivityAt?: number | null;
1051
- lastMessageAt?: number | null;
1052
- archivedAt?: number | null;
1053
- blockedAt?: number | null;
1054
- createdAt?: number | null;
1055
- updatedAt?: number | null;
1056
- deletedAt?: number | null;
1057
- };
1058
- type ModelEntityConversationConditionInput = {
1059
- tenantId?: ModelIDInput | null;
1060
- entityId?: ModelIDInput | null;
1061
- entityAddress?: ModelStringInput | null;
1062
- interactionChannel?: ModelInteractionChannelInput | null;
1063
- interactionProvider?: ModelInteractionProviderInput | null;
1064
- isCampaignEngaged?: ModelBooleanInput | null;
1065
- campaignId?: ModelIDInput | null;
1066
- lastCampaignFlowNodeId?: ModelIDInput | null;
1067
- lastInteractionMessageId?: ModelIDInput | null;
1068
- metadata?: ModelStringInput | null;
1069
- lastActivityAt?: ModelIntInput | null;
1070
- lastMessageAt?: ModelIntInput | null;
1071
- archivedAt?: ModelIntInput | null;
1072
- blockedAt?: ModelIntInput | null;
1073
- createdAt?: ModelIntInput | null;
1074
- updatedAt?: ModelIntInput | null;
1075
- deletedAt?: ModelIntInput | null;
1076
- and?: Array<ModelEntityConversationConditionInput | null> | null;
1077
- or?: Array<ModelEntityConversationConditionInput | null> | null;
1078
- not?: ModelEntityConversationConditionInput | null;
1079
- };
1080
- type ModelEntityConversationFilterInput = {
1081
- id?: ModelIDInput | null;
1082
- tenantId?: ModelIDInput | null;
1083
- entityId?: ModelIDInput | null;
1084
- entityAddress?: ModelStringInput | null;
1085
- interactionChannel?: ModelInteractionChannelInput | null;
1086
- interactionProvider?: ModelInteractionProviderInput | null;
1087
- isCampaignEngaged?: ModelBooleanInput | null;
1088
- campaignId?: ModelIDInput | null;
1089
- lastCampaignFlowNodeId?: ModelIDInput | null;
1090
- lastInteractionMessageId?: ModelIDInput | null;
1091
- metadata?: ModelStringInput | null;
1092
- lastActivityAt?: ModelIntInput | null;
1093
- lastMessageAt?: ModelIntInput | null;
1094
- archivedAt?: ModelIntInput | null;
1095
- blockedAt?: ModelIntInput | null;
1096
- createdAt?: ModelIntInput | null;
1097
- updatedAt?: ModelIntInput | null;
1098
- deletedAt?: ModelIntInput | null;
1099
- and?: Array<ModelEntityConversationFilterInput | null> | null;
1100
- or?: Array<ModelEntityConversationFilterInput | null> | null;
1101
- not?: ModelEntityConversationFilterInput | null;
1102
- };
1103
- type __SubscriptionContainer = {
1104
- OnEntityConversationByTenantId: EntityConversation;
1105
- };
1106
- declare class EntityConversationService {
1107
- private readonly graphqlService;
1108
- constructor(graphqlService: AppSyncGraphqlService);
1109
- GetEntityConversation(id: string): Promise<EntityConversation>;
1110
- CreateEntityConversation(input: CreateEntityConversationInput, condition?: ModelEntityConversationConditionInput): Promise<EntityConversation>;
1111
- UpdateEntityConversation(input: UpdateEntityConversationInput, condition?: ModelEntityConversationConditionInput): Promise<EntityConversation>;
1112
- ListEntityConversationsByTenantIdAndEntityAddress(tenantId: string, entityAddress?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<ListEntityConversations>;
1113
- ListEntityConversationsByTenantIdAndArchivedAt(tenantId: string, archivedAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<ListEntityConversations>;
1114
- ListEntityConversationsByTenantIdAndLastMessageAt(tenantId: string, lastMessageAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<ListEntityConversations>;
1115
- OnEntityConversationByTenantIdListener(tenantId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer, 'OnEntityConversationByTenantId'>>>;
1116
- static ɵfac: i0.ɵɵFactoryDeclaration<EntityConversationService, never>;
1117
- static ɵprov: i0.ɵɵInjectableDeclaration<EntityConversationService>;
1118
- }
1119
-
1120
29
  declare class WhatsAppAccountService {
1121
30
  private interactionWidgetService;
1122
31
  constructor(interactionWidgetService: InteractionWidgetService);
@@ -1392,7 +301,7 @@ declare class WhatsAppMessagesComponent implements OnChanges, OnDestroy {
1392
301
  sendWhatsAppMessage(waMessage: any, referenceMessageExternalId?: string): Promise<any>;
1393
302
  replaceTemplatePlaceholders(template: any, values: any): any;
1394
303
  createEntityConversation(now: number): Promise<any>;
1395
- createInteraction(now: number): Promise<Interaction>;
304
+ createInteraction(now: number): Promise<_snugdesk_core.Interaction>;
1396
305
  createInteractionAttendee(interactionId: string, now: number): Promise<InteractionAttendee>;
1397
306
  createInteractionMessage(waMessageId: string, interactionMessage: any, referenceMessageId?: string): Promise<{
1398
307
  messageAttachments: {
@@ -1401,13 +310,13 @@ declare class WhatsAppMessagesComponent implements OnChanges, OnDestroy {
1401
310
  id: string;
1402
311
  externalId?: string | null;
1403
312
  endpointId?: string | null;
1404
- endpoint?: InteractionEndpoint | null;
313
+ endpoint?: _snugdesk_core.InteractionEndpoint | null;
1405
314
  campaignId?: string | null;
1406
315
  campaignFlowNodeId?: string | null;
1407
316
  entityConversationId: string;
1408
317
  entityConversation?: EntityConversation | null;
1409
318
  interactionId: string;
1410
- interaction?: Interaction | null;
319
+ interaction?: _snugdesk_core.Interaction | null;
1411
320
  interactionAttendeeId?: string | null;
1412
321
  interactionAttendee?: InteractionAttendee | null;
1413
322
  referenceMessageId?: string | null;
@@ -1517,8 +426,8 @@ type WhatsappTemplateFile = {
1517
426
  deletedAt?: number | null;
1518
427
  };
1519
428
  declare class WhatsAppTemplateFileService {
1520
- private readonly graphqlService;
1521
- constructor(graphqlService: AppSyncGraphqlService);
429
+ private readonly appSyncService;
430
+ constructor(appSyncService: AppSyncHelperService);
1522
431
  GetWhatsappTemplateFile(templateId: string): Promise<WhatsappTemplateFile>;
1523
432
  static ɵfac: i0.ɵɵFactoryDeclaration<WhatsAppTemplateFileService, never>;
1524
433
  static ɵprov: i0.ɵɵInjectableDeclaration<WhatsAppTemplateFileService>;
@@ -1686,9 +595,9 @@ declare class PhoneInputComponent implements OnInit, ControlValueAccessor, Valid
1686
595
 
1687
596
  declare class WhatsAppWidgetModule {
1688
597
  static ɵfac: i0.ɵɵFactoryDeclaration<WhatsAppWidgetModule, never>;
1689
- static ɵmod: i0.ɵɵNgModuleDeclaration<WhatsAppWidgetModule, [typeof WhatsAppWidgetComponent, typeof WhatsAppContactCreateComponent, typeof WhatsAppConversationsComponent, typeof WhatsAppContactListComponent, typeof WhatsAppMessagesComponent, typeof WhatsAppMessageItemComponent, typeof WhatsAppTemplatesComponent, typeof WhatsAppTemplatePreviewComponent, typeof WhatsAppTextFormatterPipe, typeof LocationInputComponent, typeof PhoneInputComponent], [typeof i12.CommonModule, typeof i13.FormsModule, typeof i13.ReactiveFormsModule, typeof i12.NgTemplateOutlet, typeof i14.MatNativeDateModule, typeof i15.MatButtonModule, typeof i16.MatCheckboxModule, typeof i17.MatDatepickerModule, typeof i18.MatDialogModule, typeof i19.MatFormFieldModule, typeof i20.MatIconModule, typeof i21.MatInputModule, typeof i22.MatMenuModule, typeof i23.MatRadioModule, typeof i24.MatSelectModule, typeof i25.SnugdeskCoreModule, typeof i25.CustomPipesModule, typeof i26.AvatarModule, typeof i27.InfiniteScrollDirective, typeof i28.NgxSkeletonLoaderModule, typeof i29.PickerModule], [typeof WhatsAppWidgetComponent, typeof WhatsAppTextFormatterPipe]>;
598
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WhatsAppWidgetModule, [typeof WhatsAppWidgetComponent, typeof WhatsAppContactCreateComponent, typeof WhatsAppConversationsComponent, typeof WhatsAppContactListComponent, typeof WhatsAppMessagesComponent, typeof WhatsAppMessageItemComponent, typeof WhatsAppTemplatesComponent, typeof WhatsAppTemplatePreviewComponent, typeof WhatsAppTextFormatterPipe, typeof LocationInputComponent, typeof PhoneInputComponent], [typeof i12.CommonModule, typeof i13.FormsModule, typeof i13.ReactiveFormsModule, typeof i12.NgTemplateOutlet, typeof i14.MatNativeDateModule, typeof i15.MatButtonModule, typeof i16.MatCheckboxModule, typeof i17.MatDatepickerModule, typeof i18.MatDialogModule, typeof i19.MatFormFieldModule, typeof i20.MatIconModule, typeof i21.MatInputModule, typeof i22.MatMenuModule, typeof i23.MatRadioModule, typeof i24.MatSelectModule, typeof _snugdesk_core.SnugdeskCoreModule, typeof _snugdesk_core.CustomPipesModule, typeof i26.AvatarModule, typeof i27.InfiniteScrollDirective, typeof i28.NgxSkeletonLoaderModule, typeof i29.PickerModule], [typeof WhatsAppWidgetComponent, typeof WhatsAppTextFormatterPipe]>;
1690
599
  static ɵinj: i0.ɵɵInjectorDeclaration<WhatsAppWidgetModule>;
1691
600
  }
1692
601
 
1693
- export { AMPLIFY_CONFIG, APPSYNC_GRAPHQL_CONFIG, AppSyncGraphqlService, CustomError, LocationInputComponent, PhoneInputComponent, WhatsAppContactCreateComponent, WhatsAppContactListComponent, WhatsAppConversationsComponent, WhatsAppMessageItemComponent, WhatsAppMessagesComponent, WhatsAppTemplatePreviewComponent, WhatsAppTemplatesComponent, WhatsAppTextFormatterPipe, WhatsAppWidgetComponent, WhatsAppWidgetModule, provideAmplifyConfig, provideAppSyncConfig };
1694
- export type { AppSyncGraphqlConfig, PhoneNumber };
602
+ export { CustomError, LocationInputComponent, PhoneInputComponent, WhatsAppContactCreateComponent, WhatsAppContactListComponent, WhatsAppConversationsComponent, WhatsAppMessageItemComponent, WhatsAppMessagesComponent, WhatsAppTemplatePreviewComponent, WhatsAppTemplatesComponent, WhatsAppTextFormatterPipe, WhatsAppWidgetComponent, WhatsAppWidgetModule };
603
+ export type { PhoneNumber };