@snugdesk/core 0.2.4 → 0.2.6

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/index.d.ts CHANGED
@@ -358,21 +358,199 @@ type S3Object = {
358
358
  location: string;
359
359
  };
360
360
 
361
+ type User = {
362
+ id: string;
363
+ externalId?: string | null;
364
+ tenantId: string;
365
+ email: string;
366
+ name?: string | null;
367
+ image?: S3Object | null;
368
+ phoneNumber?: PhoneNumber | null;
369
+ preferences?: UserPreferences | null;
370
+ notificationSettings?: UserNotificationSettings | null;
371
+ type?: UserType | null;
372
+ activatedAt?: number | null;
373
+ blockedAt?: number | null;
374
+ createdAt: number;
375
+ updatedAt: number;
376
+ deletedAt?: number | null;
377
+ };
378
+ type UserNotificationSettings = {
379
+ allowPush?: boolean | null;
380
+ allowEmail?: boolean | null;
381
+ allowSMS?: boolean | null;
382
+ allowWhatsApp?: boolean | null;
383
+ };
384
+ type UserPreferences = {
385
+ timezoneName?: string | null;
386
+ language?: Language | null;
387
+ };
388
+ declare enum UserStatus {
389
+ READY = "READY",
390
+ NOT_READY = "NOT_READY",
391
+ INVITED = "INVITED",
392
+ BUSY = "BUSY",
393
+ AFTER_CALL_WORK = "AFTER_CALL_WORK"
394
+ }
395
+ declare enum UserType {
396
+ AGENT = "AGENT",
397
+ SUPERVISOR = "SUPERVISOR",
398
+ ADMINISTRATOR = "ADMINISTRATOR"
399
+ }
400
+ type ModelUserStatusInput = {
401
+ eq?: UserStatus | null;
402
+ ne?: UserStatus | null;
403
+ };
404
+
405
+ type Team = {
406
+ id: string;
407
+ tenantId: string;
408
+ name: string;
409
+ description?: string | null;
410
+ image?: S3Object | null;
411
+ ticketFields?: Array<string | null> | null;
412
+ createdAt: number;
413
+ updatedAt: number;
414
+ deletedAt?: number | null;
415
+ };
416
+ type TeamMember = {
417
+ id: string;
418
+ teamId: string;
419
+ team?: Team | null;
420
+ userId: string;
421
+ user?: User | null;
422
+ isManager: boolean;
423
+ createdAt: number;
424
+ updatedAt: number;
425
+ deletedAt?: number | null;
426
+ };
427
+ type CreateTeamInput = {
428
+ id?: string | null;
429
+ tenantId: string;
430
+ name: string;
431
+ description?: string | null;
432
+ image?: S3Object | null;
433
+ ticketFields?: Array<string | null> | null;
434
+ createdAt: number;
435
+ updatedAt: number;
436
+ deletedAt?: number | null;
437
+ };
438
+ type UpdateTeamInput = {
439
+ id: string;
440
+ tenantId?: string | null;
441
+ name?: string | null;
442
+ description?: string | null;
443
+ image?: S3Object | null;
444
+ ticketFields?: Array<string | null> | null;
445
+ createdAt?: number | null;
446
+ updatedAt?: number | null;
447
+ deletedAt?: number | null;
448
+ };
449
+ type ModelTeamConditionInput = {
450
+ tenantId?: ModelIDInput | null;
451
+ name?: ModelStringInput | null;
452
+ description?: ModelStringInput | null;
453
+ ticketFields?: ModelStringInput | null;
454
+ createdAt?: ModelIntInput | null;
455
+ updatedAt?: ModelIntInput | null;
456
+ deletedAt?: ModelIntInput | null;
457
+ and?: Array<ModelTeamConditionInput | null> | null;
458
+ or?: Array<ModelTeamConditionInput | null> | null;
459
+ not?: ModelTeamConditionInput | null;
460
+ };
461
+ type ModelTeamFilterInput = {
462
+ id?: ModelIDInput | null;
463
+ tenantId?: ModelIDInput | null;
464
+ name?: ModelStringInput | null;
465
+ description?: ModelStringInput | null;
466
+ ticketFields?: ModelStringInput | null;
467
+ createdAt?: ModelIntInput | null;
468
+ updatedAt?: ModelIntInput | null;
469
+ deletedAt?: ModelIntInput | null;
470
+ and?: Array<ModelTeamFilterInput | null> | null;
471
+ or?: Array<ModelTeamFilterInput | null> | null;
472
+ not?: ModelTeamFilterInput | null;
473
+ };
474
+ type CreateTeamMemberInput = {
475
+ id?: string | null;
476
+ teamId: string;
477
+ userId: string;
478
+ isManager: boolean;
479
+ createdAt: number;
480
+ updatedAt: number;
481
+ deletedAt?: number | null;
482
+ };
483
+ type UpdateTeamMemberInput = {
484
+ id: string;
485
+ teamId?: string | null;
486
+ userId?: string | null;
487
+ isManager?: boolean | null;
488
+ createdAt?: number | null;
489
+ updatedAt?: number | null;
490
+ deletedAt?: number | null;
491
+ };
492
+ type ModelTeamMemberConditionInput = {
493
+ teamId?: ModelIDInput | null;
494
+ userId?: ModelIDInput | null;
495
+ isManager?: ModelBooleanInput | null;
496
+ createdAt?: ModelIntInput | null;
497
+ updatedAt?: ModelIntInput | null;
498
+ deletedAt?: ModelIntInput | null;
499
+ and?: Array<ModelTeamMemberConditionInput | null> | null;
500
+ or?: Array<ModelTeamMemberConditionInput | null> | null;
501
+ not?: ModelTeamMemberConditionInput | null;
502
+ };
503
+ type ModelTeamMemberFilterInput = {
504
+ id?: ModelIDInput | null;
505
+ teamId?: ModelIDInput | null;
506
+ userId?: ModelIDInput | null;
507
+ isManager?: ModelBooleanInput | null;
508
+ createdAt?: ModelIntInput | null;
509
+ updatedAt?: ModelIntInput | null;
510
+ deletedAt?: ModelIntInput | null;
511
+ and?: Array<ModelTeamMemberFilterInput | null> | null;
512
+ or?: Array<ModelTeamMemberFilterInput | null> | null;
513
+ not?: ModelTeamMemberFilterInput | null;
514
+ };
515
+
361
516
  type Entity = {
362
517
  id: string;
363
518
  externalId?: string | null;
364
519
  tenantId: string;
520
+ entityTypeId?: string | null;
521
+ entityType?: EntityType | null;
522
+ parentId?: string | null;
523
+ parent?: Entity | null;
365
524
  name: string;
366
525
  image?: S3Object | null;
367
526
  email?: string | null;
368
527
  phoneNumber?: PhoneNumber | null;
369
528
  phoneNumberE164?: string | null;
529
+ isOrganization: boolean;
530
+ metadata?: string;
531
+ notes?: string | null;
532
+ customFields?: Array<string | null> | null;
370
533
  preferences?: EntityPreferences | null;
371
534
  contactPreferences?: EntityContactPreferences | null;
372
535
  createdAt: number;
373
536
  updatedAt: number;
374
537
  blockedAt?: number | null;
375
538
  deletedAt?: number | null;
539
+ updatedByUserId: string;
540
+ updatedByUserSessionId?: string | null;
541
+ };
542
+ type EntityType = {
543
+ id: string;
544
+ externalId?: string | null;
545
+ tenantId: string;
546
+ name: string;
547
+ description?: string | null;
548
+ image?: S3Object | null;
549
+ createdAt: number;
550
+ updatedAt: number;
551
+ deletedAt?: number | null;
552
+ entityFields?: Array<string | null> | null;
553
+ organizationFields?: Array<string | null> | null;
376
554
  };
377
555
  type EntityPreferences = {
378
556
  timezoneName?: string | null;
@@ -388,12 +566,19 @@ type CreateEntityInput = {
388
566
  id?: string | null;
389
567
  externalId?: string | null;
390
568
  tenantId: string;
569
+ entityTypeId?: string | null;
570
+ parentId?: string | null;
391
571
  name: string;
392
572
  image?: S3Object | null;
393
573
  email?: string | null;
394
574
  phoneNumber?: PhoneNumber | null;
395
575
  phoneNumberE164?: string | null;
396
576
  isOrganization: boolean;
577
+ notes?: string | null;
578
+ metadata?: Array<string | null> | null;
579
+ customFields?: Array<string | null> | null;
580
+ preferences?: EntityPreferences | null;
581
+ contactPreferences?: EntityContactPreferences | null;
397
582
  createdAt: number;
398
583
  updatedAt: number;
399
584
  blockedAt?: number | null;
@@ -405,12 +590,19 @@ type UpdateEntityInput = {
405
590
  id: string;
406
591
  externalId?: string | null;
407
592
  tenantId?: string | null;
593
+ entityTypeId?: string | null;
594
+ parentId?: string | null;
408
595
  name?: string | null;
409
596
  image?: S3Object | null;
410
597
  email?: string | null;
411
598
  phoneNumber?: PhoneNumber | null;
412
599
  phoneNumberE164?: string | null;
413
600
  isOrganization?: boolean | null;
601
+ notes?: string | null;
602
+ metadata?: Array<string | null> | null;
603
+ customFields?: Array<string | null> | null;
604
+ preferences?: EntityPreferences | null;
605
+ contactPreferences?: EntityContactPreferences | null;
414
606
  createdAt?: number | null;
415
607
  updatedAt: number;
416
608
  blockedAt?: number | null;
@@ -427,10 +619,15 @@ type ModelEntityConditionInput = {
427
619
  email?: ModelStringInput | null;
428
620
  phoneNumberE164?: ModelStringInput | null;
429
621
  isOrganization?: ModelBooleanInput | null;
622
+ notes?: ModelStringInput | null;
623
+ metadata?: ModelStringInput | null;
624
+ customFields?: ModelStringInput | null;
430
625
  createdAt?: ModelIntInput | null;
431
626
  updatedAt?: ModelIntInput | null;
432
627
  blockedAt?: ModelIntInput | null;
433
628
  deletedAt?: ModelIntInput | null;
629
+ updatedByUserId?: ModelIDInput | null;
630
+ updatedByUserSessionId?: ModelIDInput | null;
434
631
  and?: Array<ModelEntityConditionInput | null> | null;
435
632
  or?: Array<ModelEntityConditionInput | null> | null;
436
633
  not?: ModelEntityConditionInput | null;
@@ -445,25 +642,34 @@ type ModelEntityFilterInput = {
445
642
  email?: ModelStringInput | null;
446
643
  phoneNumberE164?: ModelStringInput | null;
447
644
  isOrganization?: ModelBooleanInput | null;
645
+ notes?: ModelStringInput | null;
646
+ metadata?: ModelStringInput | null;
647
+ customFields?: ModelStringInput | null;
448
648
  createdAt?: ModelIntInput | null;
449
649
  updatedAt?: ModelIntInput | null;
450
650
  blockedAt?: ModelIntInput | null;
451
651
  deletedAt?: ModelIntInput | null;
652
+ updatedByUserId?: ModelIDInput | null;
653
+ updatedByUserSessionId?: ModelIDInput | null;
452
654
  and?: Array<ModelEntityFilterInput | null> | null;
453
655
  or?: Array<ModelEntityFilterInput | null> | null;
454
656
  not?: ModelEntityFilterInput | null;
455
657
  };
456
- declare class EntityService {
457
- private readonly appSyncService;
458
- constructor(appSyncService: AppSyncHelperService);
459
- GetEntity(id: string): Promise<Entity>;
460
- CreateEntity(input: CreateEntityInput, condition?: ModelEntityConditionInput): Promise<Entity>;
461
- UpdateEntity(input: UpdateEntityInput, condition?: ModelEntityConditionInput): Promise<Entity>;
462
- ListEntitiesByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityFilterInput, limit?: number, nextToken?: string): Promise<List<Entity>>;
463
- ListEntitiesByTenantIdAndPhoneNumberE164(tenantId: string, phoneNumberE164?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityFilterInput, limit?: number, nextToken?: string): Promise<List<Entity>>;
464
- static ɵfac: i0.ɵɵFactoryDeclaration<EntityService, never>;
465
- static ɵprov: i0.ɵɵInjectableDeclaration<EntityService>;
466
- }
658
+ type ModelEntityTypeFilterInput = {
659
+ id?: ModelIDInput | null;
660
+ externalId?: ModelStringInput | null;
661
+ tenantId?: ModelIDInput | null;
662
+ name?: ModelStringInput | null;
663
+ description?: ModelStringInput | null;
664
+ createdAt?: ModelIntInput | null;
665
+ updatedAt?: ModelIntInput | null;
666
+ deletedAt?: ModelIntInput | null;
667
+ entityFields?: ModelStringInput | null;
668
+ organizationFields?: ModelStringInput | null;
669
+ and?: Array<ModelEntityTypeFilterInput | null> | null;
670
+ or?: Array<ModelEntityTypeFilterInput | null> | null;
671
+ not?: ModelEntityTypeFilterInput | null;
672
+ };
467
673
 
468
674
  type TenantPreferences = {
469
675
  timezoneName?: string | null;
@@ -492,18 +698,6 @@ type Tenant = {
492
698
  updatedAt: number;
493
699
  deletedAt?: number | null;
494
700
  };
495
- type __SubscriptionContainer$4 = {
496
- OnTenantById: Tenant;
497
- };
498
- declare class TenantService {
499
- private readonly appSyncService;
500
- constructor(appSyncService: AppSyncHelperService);
501
- getTenantById(id: string): Promise<Tenant>;
502
- private GetTenant;
503
- OnTenantByIdListener(id: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$4, 'OnTenantById'>>>;
504
- static ɵfac: i0.ɵɵFactoryDeclaration<TenantService, never>;
505
- static ɵprov: i0.ɵɵInjectableDeclaration<TenantService>;
506
- }
507
701
 
508
702
  type InteractionWidget = {
509
703
  id: string;
@@ -524,7 +718,8 @@ type InteractionWidget = {
524
718
  updatedAt: number;
525
719
  deletedAt?: number | null;
526
720
  };
527
- type ModelInteractionWidgetConditionInput = {
721
+ type ModelInteractionWidgetFilterInput = {
722
+ id?: ModelIDInput | null;
528
723
  tenantId?: ModelIDInput | null;
529
724
  channel?: ModelInteractionChannelInput | null;
530
725
  provider?: ModelInteractionProviderInput | null;
@@ -541,41 +736,25 @@ type ModelInteractionWidgetConditionInput = {
541
736
  updatedByUserId?: ModelIDInput | null;
542
737
  updatedByUserSessionId?: ModelIDInput | null;
543
738
  deletedAt?: ModelIntInput | null;
544
- and?: Array<ModelInteractionWidgetConditionInput | null> | null;
545
- or?: Array<ModelInteractionWidgetConditionInput | null> | null;
546
- not?: ModelInteractionWidgetConditionInput | null;
739
+ and?: Array<ModelInteractionWidgetFilterInput | null> | null;
740
+ or?: Array<ModelInteractionWidgetFilterInput | null> | null;
741
+ not?: ModelInteractionWidgetFilterInput | null;
547
742
  };
548
- type ModelInteractionWidgetFilterInput = {
743
+ type ModelInteractionWidgetUserSettingFilterInput = {
549
744
  id?: ModelIDInput | null;
550
- tenantId?: ModelIDInput | null;
551
- channel?: ModelInteractionChannelInput | null;
552
- provider?: ModelInteractionProviderInput | null;
553
- providerAccountId?: ModelStringInput | null;
554
- name?: ModelStringInput | null;
555
- description?: ModelStringInput | null;
745
+ widgetId?: ModelIDInput | null;
746
+ userId?: ModelIDInput | null;
556
747
  configuration?: ModelStringInput | null;
557
- isRecordingEnabledByDefault?: ModelBooleanInput | null;
558
- isRecordingEnabledOnDemand?: ModelBooleanInput | null;
559
- isTranscriptionEnabledByDefault?: ModelBooleanInput | null;
560
- isTranscriptionEnabledOnDemand?: ModelBooleanInput | null;
748
+ allowOverride?: ModelBooleanInput | null;
561
749
  createdAt?: ModelIntInput | null;
562
750
  updatedAt?: ModelIntInput | null;
751
+ deletedAt?: ModelIntInput | null;
563
752
  updatedByUserId?: ModelIDInput | null;
564
753
  updatedByUserSessionId?: ModelIDInput | null;
565
- deletedAt?: ModelIntInput | null;
566
- and?: Array<ModelInteractionWidgetFilterInput | null> | null;
567
- or?: Array<ModelInteractionWidgetFilterInput | null> | null;
568
- not?: ModelInteractionWidgetFilterInput | null;
754
+ and?: Array<ModelInteractionWidgetUserSettingFilterInput | null> | null;
755
+ or?: Array<ModelInteractionWidgetUserSettingFilterInput | null> | null;
756
+ not?: ModelInteractionWidgetUserSettingFilterInput | null;
569
757
  };
570
- declare const FIELDS_INTERACTION_WIDGET = "\n id\n tenantId\n channel\n provider\n providerAccountId\n name\n description\n configuration\n isRecordingEnabledByDefault\n isRecordingEnabledOnDemand\n isTranscriptionEnabledByDefault\n isTranscriptionEnabledOnDemand\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n createdAt\n updatedAt\n deletedAt\n";
571
- declare class InteractionWidgetService {
572
- private readonly appSyncService;
573
- constructor(appSyncService: AppSyncHelperService);
574
- GetInteractionWidget(id: string): Promise<InteractionWidget>;
575
- ListInteractionWidgetsByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionWidgetFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionWidget>>;
576
- static ɵfac: i0.ɵɵFactoryDeclaration<InteractionWidgetService, never>;
577
- static ɵprov: i0.ɵɵInjectableDeclaration<InteractionWidgetService>;
578
- }
579
758
 
580
759
  type InteractionEndpoint = {
581
760
  id: string;
@@ -604,78 +783,6 @@ type InteractionEndpointRegulatoryComplianceDocument = {
604
783
  contentType?: string | null;
605
784
  file?: S3Object | null;
606
785
  };
607
- declare class InteractionEndpointService {
608
- static ɵfac: i0.ɵɵFactoryDeclaration<InteractionEndpointService, never>;
609
- static ɵprov: i0.ɵɵInjectableDeclaration<InteractionEndpointService>;
610
- }
611
-
612
- type Team = {
613
- id: string;
614
- tenantId: string;
615
- name: string;
616
- description?: string | null;
617
- image?: S3Object | null;
618
- ticketFields?: Array<string | null> | null;
619
- createdAt: number;
620
- updatedAt: number;
621
- deletedAt?: number | null;
622
- };
623
-
624
- type UserPreferences = {
625
- timezoneName?: string | null;
626
- language?: Language | null;
627
- };
628
- type UserNotificationSettings = {
629
- allowPush?: boolean | null;
630
- allowEmail?: boolean | null;
631
- allowSMS?: boolean | null;
632
- allowWhatsApp?: boolean | null;
633
- };
634
- declare enum UserStatus {
635
- READY = "READY",
636
- NOT_READY = "NOT_READY",
637
- INVITED = "INVITED",
638
- BUSY = "BUSY",
639
- AFTER_CALL_WORK = "AFTER_CALL_WORK"
640
- }
641
- declare enum UserType {
642
- AGENT = "AGENT",
643
- SUPERVISOR = "SUPERVISOR",
644
- ADMINISTRATOR = "ADMINISTRATOR"
645
- }
646
- type User = {
647
- id: string;
648
- externalId?: string | null;
649
- tenantId: string;
650
- email: string;
651
- name?: string | null;
652
- image?: S3Object | null;
653
- phoneNumber?: PhoneNumber | null;
654
- preferences?: UserPreferences | null;
655
- notificationSettings?: UserNotificationSettings | null;
656
- type?: UserType | null;
657
- activatedAt?: number | null;
658
- blockedAt?: number | null;
659
- createdAt: number;
660
- updatedAt: number;
661
- deletedAt?: number | null;
662
- };
663
- type ModelUserStatusInput = {
664
- eq?: UserStatus | null;
665
- ne?: UserStatus | null;
666
- };
667
- type __SubscriptionContainer$3 = {
668
- OnUserById: User;
669
- };
670
- declare class UserService {
671
- private readonly appSyncService;
672
- constructor(appSyncService: AppSyncHelperService);
673
- getUserById(id: string): Promise<User>;
674
- GetUser(id: string): Promise<User>;
675
- OnUserByIdListener(id: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$3, 'OnUserById'>>>;
676
- static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
677
- static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
678
- }
679
786
 
680
787
  type UserSession = {
681
788
  id: string;
@@ -743,20 +850,6 @@ type ModelUserSessionFilterInput = {
743
850
  or?: Array<ModelUserSessionFilterInput | null> | null;
744
851
  not?: ModelUserSessionFilterInput | null;
745
852
  };
746
- type __SubscriptionContainer$2 = {
747
- OnUserSessionById: UserSession;
748
- };
749
- declare class UserSessionService {
750
- private readonly appSyncService;
751
- constructor(appSyncService: AppSyncHelperService);
752
- getUserSessionById(id: string): Promise<UserSession>;
753
- GetUserSession(id: string): Promise<UserSession>;
754
- ListUserSessionsByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelUserSessionFilterInput, limit?: number, nextToken?: string): Promise<List<UserSession>>;
755
- UpdateUserSession(input: UpdateUserSessionInput, condition?: ModelUserSessionConditionInput): Promise<UserSession>;
756
- OnUserSessionByIdListener(id: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$2, 'OnUserSessionById'>>>;
757
- static ɵfac: i0.ɵɵFactoryDeclaration<UserSessionService, never>;
758
- static ɵprov: i0.ɵɵInjectableDeclaration<UserSessionService>;
759
- }
760
853
 
761
854
  declare enum InteractionChannel {
762
855
  EMAIL = "EMAIL",
@@ -789,10 +882,13 @@ declare enum InteractionStatus {
789
882
  }
790
883
  declare enum InteractionProvider {
791
884
  AVAYA_IPO = "AVAYA_IPO",
792
- TELNYX = "TELNYX",
793
- WHATSAPP = "WHATSAPP",
885
+ FACEBOOK = "FACEBOOK",
886
+ INSTAGRAM = "INSTAGRAM",
887
+ OZONETEL = "OZONETEL",
888
+ SNUGDESK = "SNUGDESK",
794
889
  TELEGRAM = "TELEGRAM",
795
- SNUGDESK = "SNUGDESK"
890
+ TELNYX = "TELNYX",
891
+ WHATSAPP = "WHATSAPP"
796
892
  }
797
893
  type InteractionRouteConfiguration = {
798
894
  teamId?: string | null;
@@ -983,53 +1079,6 @@ type UpdateInteractionInput = {
983
1079
  updatedAt?: number | null;
984
1080
  deletedAt?: number | null;
985
1081
  };
986
- type CreateInteractionAttendeeInput = {
987
- id?: string | null;
988
- interactionId: string;
989
- entityId?: string | null;
990
- interactionWidgetSessionId?: string | null;
991
- teamId?: string | null;
992
- userId?: string | null;
993
- userSessionId?: string | null;
994
- name: string;
995
- metadata?: string | null;
996
- customFields?: Array<string | null> | null;
997
- isAdministrator: boolean;
998
- joinedAt?: number | null;
999
- exitedAt?: number | null;
1000
- createdAt: number;
1001
- updatedAt: number;
1002
- deletedAt?: number | null;
1003
- };
1004
- type CreateInteractionMessageInput = {
1005
- id?: string | null;
1006
- externalId?: string | null;
1007
- endpointId?: string | null;
1008
- campaignId?: string | null;
1009
- campaignFlowNodeId?: string | null;
1010
- entityConversationId: string;
1011
- interactionId: string;
1012
- interactionAttendeeId?: string | null;
1013
- referenceMessageId?: string | null;
1014
- body?: string | null;
1015
- metadata?: string | null;
1016
- createdAt: number;
1017
- updatedAt: number;
1018
- deletedAt?: number | null;
1019
- };
1020
- type CreateInteractionMessageAttachmentInput = {
1021
- id?: string | null;
1022
- externalId?: string | null;
1023
- interactionId: string;
1024
- interactionMessageId: string;
1025
- name: string;
1026
- size?: number | null;
1027
- type?: string | null;
1028
- file: S3Object;
1029
- createdAt: number;
1030
- updatedAt: number;
1031
- deletedAt?: number | null;
1032
- };
1033
1082
  type ModelInteractionConditionInput = {
1034
1083
  tenantId?: ModelIDInput | null;
1035
1084
  widgetId?: ModelIDInput | null;
@@ -1060,6 +1109,37 @@ type ModelInteractionConditionInput = {
1060
1109
  or?: Array<ModelInteractionConditionInput | null> | null;
1061
1110
  not?: ModelInteractionConditionInput | null;
1062
1111
  };
1112
+ type ModelInteractionFilterInput = {
1113
+ id?: ModelIDInput | null;
1114
+ tenantId?: ModelIDInput | null;
1115
+ widgetId?: ModelIDInput | null;
1116
+ endpointId?: ModelIDInput | null;
1117
+ entityConversationId?: ModelIDInput | null;
1118
+ entityId?: ModelIDInput | null;
1119
+ teamId?: ModelIDInput | null;
1120
+ hostId?: ModelIDInput | null;
1121
+ providerInteractionId?: ModelStringInput | null;
1122
+ channel?: ModelInteractionChannelInput | null;
1123
+ provider?: ModelInteractionProviderInput | null;
1124
+ context?: ModelInteractionContextInput | null;
1125
+ direction?: ModelInteractionDirectionInput | null;
1126
+ status?: ModelInteractionStatusInput | null;
1127
+ last_status?: ModelInteractionStatusInput | null;
1128
+ metadata?: ModelStringInput | null;
1129
+ subject?: ModelStringInput | null;
1130
+ startedAt?: ModelIntInput | null;
1131
+ completedAt?: ModelIntInput | null;
1132
+ duration?: ModelIntInput | null;
1133
+ summary?: ModelStringInput | null;
1134
+ temp_isLocked?: ModelBooleanInput | null;
1135
+ temp_isAvailableTenantIdUnion?: ModelStringInput | null;
1136
+ createdAt?: ModelIntInput | null;
1137
+ updatedAt?: ModelIntInput | null;
1138
+ deletedAt?: ModelIntInput | null;
1139
+ and?: Array<ModelInteractionFilterInput | null> | null;
1140
+ or?: Array<ModelInteractionFilterInput | null> | null;
1141
+ not?: ModelInteractionFilterInput | null;
1142
+ };
1063
1143
  type ModelInteractionInviteeFilterInput = {
1064
1144
  id?: ModelIDInput | null;
1065
1145
  interactionId?: ModelIDInput | null;
@@ -1076,6 +1156,24 @@ type ModelInteractionInviteeFilterInput = {
1076
1156
  or?: Array<ModelInteractionInviteeFilterInput | null> | null;
1077
1157
  not?: ModelInteractionInviteeFilterInput | null;
1078
1158
  };
1159
+ type CreateInteractionAttendeeInput = {
1160
+ id?: string | null;
1161
+ interactionId: string;
1162
+ entityId?: string | null;
1163
+ interactionWidgetSessionId?: string | null;
1164
+ teamId?: string | null;
1165
+ userId?: string | null;
1166
+ userSessionId?: string | null;
1167
+ name: string;
1168
+ metadata?: string | null;
1169
+ customFields?: Array<string | null> | null;
1170
+ isAdministrator: boolean;
1171
+ joinedAt?: number | null;
1172
+ exitedAt?: number | null;
1173
+ createdAt: number;
1174
+ updatedAt: number;
1175
+ deletedAt?: number | null;
1176
+ };
1079
1177
  type ModelInteractionAttendeeConditionInput = {
1080
1178
  interactionId?: ModelIDInput | null;
1081
1179
  entityId?: ModelIDInput | null;
@@ -1117,6 +1215,22 @@ type ModelInteractionAttendeeFilterInput = {
1117
1215
  or?: Array<ModelInteractionAttendeeFilterInput | null> | null;
1118
1216
  not?: ModelInteractionAttendeeFilterInput | null;
1119
1217
  };
1218
+ type CreateInteractionMessageInput = {
1219
+ id?: string | null;
1220
+ externalId?: string | null;
1221
+ endpointId?: string | null;
1222
+ campaignId?: string | null;
1223
+ campaignFlowNodeId?: string | null;
1224
+ entityConversationId: string;
1225
+ interactionId: string;
1226
+ interactionAttendeeId?: string | null;
1227
+ referenceMessageId?: string | null;
1228
+ body?: string | null;
1229
+ metadata?: string | null;
1230
+ createdAt: number;
1231
+ updatedAt: number;
1232
+ deletedAt?: number | null;
1233
+ };
1120
1234
  type ModelInteractionMessageConditionInput = {
1121
1235
  externalId?: ModelStringInput | null;
1122
1236
  endpointId?: ModelIDInput | null;
@@ -1154,6 +1268,19 @@ type ModelInteractionMessageFilterInput = {
1154
1268
  or?: Array<ModelInteractionMessageFilterInput | null> | null;
1155
1269
  not?: ModelInteractionMessageFilterInput | null;
1156
1270
  };
1271
+ type CreateInteractionMessageAttachmentInput = {
1272
+ id?: string | null;
1273
+ externalId?: string | null;
1274
+ interactionId: string;
1275
+ interactionMessageId: string;
1276
+ name: string;
1277
+ size?: number | null;
1278
+ type?: string | null;
1279
+ file: S3Object;
1280
+ createdAt: number;
1281
+ updatedAt: number;
1282
+ deletedAt?: number | null;
1283
+ };
1157
1284
  type ModelInteractionMessageAttachmentConditionInput = {
1158
1285
  externalId?: ModelStringInput | null;
1159
1286
  interactionId?: ModelIDInput | null;
@@ -1208,34 +1335,6 @@ type InteractionRouteConfigurationInput = {
1208
1335
  routingLogic?: InteractionRouteLogic | null;
1209
1336
  maxWaitTimeoutSeconds?: number | null;
1210
1337
  };
1211
- type __SubscriptionContainer$1 = {
1212
- OnInteractionInviteeByUserId: InteractionInvitee;
1213
- OnInteractionMessageByEntityConversationId: InteractionMessage;
1214
- };
1215
- declare class InteractionService {
1216
- private readonly appSyncService;
1217
- newInteractionInviteObservable$: BehaviorSubject<any>;
1218
- constructor(appSyncService: AppSyncHelperService);
1219
- GetInteraction(id: string): Promise<Interaction>;
1220
- GetInteractionAttendee(id: string): Promise<InteractionAttendee>;
1221
- GetInteractionMessage(id: string): Promise<InteractionMessage>;
1222
- CreateInteraction(input: CreateInteractionInput, condition?: ModelInteractionConditionInput): Promise<Interaction>;
1223
- UpdateInteraction(input: UpdateInteractionInput, condition?: ModelInteractionConditionInput): Promise<Interaction>;
1224
- CreateInteractionAttendee(input: CreateInteractionAttendeeInput, condition?: ModelInteractionAttendeeConditionInput): Promise<InteractionAttendee>;
1225
- CreateInteractionMessage(input: CreateInteractionMessageInput, condition?: ModelInteractionMessageConditionInput): Promise<InteractionMessage>;
1226
- CreateInteractionMessageAttachment(input: CreateInteractionMessageAttachmentInput, condition?: ModelInteractionMessageAttachmentConditionInput): Promise<InteractionMessageAttachment>;
1227
- ListInteractionInviteesByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionInviteeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionInvitee>>;
1228
- ListInteractionAttendeesByInteractionIdAndEntityId(interactionId: string, entityId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionAttendee>>;
1229
- ListInteractionAttendeesByInteractionIdAndUserId(interactionId: string, userId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionAttendee>>;
1230
- ListInteractionMessagesByEntityConversationId(entityConversationId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
1231
- ListInteractionMessagesByExternalMessageId(externalMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
1232
- ListInteractionMessagesByInteractionAttendeeId(interactionAttendeeId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
1233
- ListInteractionMessageAttachmentsByInteractionMessageId(interactionMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageAttachmentFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessageAttachment>>;
1234
- OnInteractionInviteeByUserIdListener(userId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$1, 'OnInteractionInviteeByUserId'>>>;
1235
- OnInteractionMessageByEntityConversationIdListener(entityConversationId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$1, 'OnInteractionMessageByEntityConversationId'>>>;
1236
- static ɵfac: i0.ɵɵFactoryDeclaration<InteractionService, never>;
1237
- static ɵprov: i0.ɵɵInjectableDeclaration<InteractionService>;
1238
- }
1239
1338
 
1240
1339
  type EntityConversation = {
1241
1340
  id: string;
@@ -1345,25 +1444,151 @@ type ModelEntityConversationFilterInput = {
1345
1444
  or?: Array<ModelEntityConversationFilterInput | null> | null;
1346
1445
  not?: ModelEntityConversationFilterInput | null;
1347
1446
  };
1348
- type __SubscriptionContainer = {
1447
+
1448
+ type __SubscriptionContainer$4 = {
1349
1449
  OnEntityConversationByTenantId: EntityConversation;
1350
1450
  };
1351
1451
  declare const FIELDS_ENTITY_CONVERSATION: string;
1352
- declare const FIELDS_ENTITY_CONVERSATION_EXPANDED = "\n id\n tenantId\n entityId\n entity {\n id\n externalId\n tenantId\n entityTypeId\n parentId\n name\n image {\n key\n bucket\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n notes\n customFields\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n }\n entityAddress\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n interactions (limit: 1, sortDirection: DESC) {\n items {\n id\n tenantId\n entityId\n entityConversationId\n teamId\n widgetId\n metadata\n subject\n direction\n status\n last_status\n hostId\n startedAt\n completedAt\n createdAt\n updatedAt\n deletedAt\n }\n nextToken\n }\n messages (limit: 1, sortDirection: DESC) {\n items {\n id\n externalId\n endpointId\n entityConversationId\n interactionId\n interactionAttendeeId\n referenceMessageId\n body\n metadata\n createdAt\n updatedAt\n deletedAt\n messageAttachments {\n items {\n id\n externalId\n interactionId\n interactionMessageId\n interactionId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n }\n nextToken\n }\n }\n nextToken\n }\n";
1452
+ declare const FIELDS_ENTITY_CONVERSATION_EXPANDED = "\n id\n tenantId\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n entityAddress\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n interactions (limit: 1, sortDirection: DESC) {\n items {\n \n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n metadata\n subject\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n summary\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n messages (limit: 1, sortDirection: DESC) {\n items {\n \n id\n externalId\n endpointId\n campaignId\n campaignFlowNodeId\n entityConversationId\n interactionId\n interactionAttendeeId\n body\n metadata\n referenceMessageId\n createdAt\n updatedAt\n deletedAt\n messageAttachments {\n items {\n \n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n\n }\n nextToken\n }\n";
1353
1453
  declare class EntityConversationService {
1354
1454
  private readonly appSyncService;
1355
1455
  constructor(appSyncService: AppSyncHelperService);
1356
1456
  GetEntityConversation(id: string): Promise<EntityConversation>;
1357
1457
  CreateEntityConversation(input: CreateEntityConversationInput, condition?: ModelEntityConversationConditionInput): Promise<EntityConversation>;
1358
1458
  UpdateEntityConversation(input: UpdateEntityConversationInput, condition?: ModelEntityConversationConditionInput): Promise<EntityConversation>;
1459
+ ListEntityConversationsByEntityId(entityId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<List<EntityConversation>>;
1359
1460
  ListEntityConversationsByTenantIdAndEntityAddress(tenantId: string, entityAddress?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<List<EntityConversation>>;
1360
1461
  ListEntityConversationsByTenantIdAndArchivedAt(tenantId: string, archivedAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<List<EntityConversation>>;
1361
1462
  ListEntityConversationsByTenantIdAndLastMessageAt(tenantId: string, lastMessageAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<List<EntityConversation>>;
1362
- OnEntityConversationByTenantIdListener(tenantId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer, 'OnEntityConversationByTenantId'>>>;
1463
+ OnEntityConversationByTenantIdListener(tenantId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$4, 'OnEntityConversationByTenantId'>>>;
1363
1464
  static ɵfac: i0.ɵɵFactoryDeclaration<EntityConversationService, never>;
1364
1465
  static ɵprov: i0.ɵɵInjectableDeclaration<EntityConversationService>;
1365
1466
  }
1366
1467
 
1468
+ declare const FIELDS_ENTITY_TYPE = "\n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n";
1469
+ declare const FIELDS_ENTITY = "\n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n";
1470
+ declare const FIELDS_ENTITY_EXPANDED = "\n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n parent {\n id\n externalId\n tenantId\n entityTypeId\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n createdAt\n updatedAt\n blockedAt\n deletedAt\n }\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n";
1471
+ declare const FIELDS_ENTITY_MINIMAL = "\n id\n externalId\n tenantId\n metadata\n name\n image {\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n";
1472
+ declare class EntityService {
1473
+ private readonly appSyncService;
1474
+ constructor(appSyncService: AppSyncHelperService);
1475
+ GetEntity(id: string): Promise<Entity>;
1476
+ CreateEntity(input: CreateEntityInput, condition?: ModelEntityConditionInput): Promise<Entity>;
1477
+ UpdateEntity(input: UpdateEntityInput, condition?: ModelEntityConditionInput): Promise<Entity>;
1478
+ ListEntitiesByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityFilterInput, limit?: number, nextToken?: string): Promise<List<Entity>>;
1479
+ ListEntitiesByTenantIdAndPhoneNumberE164(tenantId: string, phoneNumberE164?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityFilterInput, limit?: number, nextToken?: string): Promise<List<Entity>>;
1480
+ ListEntityTypesByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityTypeFilterInput, limit?: number, nextToken?: string): Promise<List<EntityType>>;
1481
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityService, never>;
1482
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityService>;
1483
+ }
1484
+
1485
+ declare const FIELDS_INTERACTION_ENDPOINT = "\n id\n externalId\n tenantId\n widgetId\n address\n configuration\n createdAt\n updatedAt\n deletedAt\n";
1486
+ declare class InteractionEndpointService {
1487
+ static ɵfac: i0.ɵɵFactoryDeclaration<InteractionEndpointService, never>;
1488
+ static ɵprov: i0.ɵɵInjectableDeclaration<InteractionEndpointService>;
1489
+ }
1490
+
1491
+ declare const FIELDS_INTERACTION_WIDGET = "\n id\n tenantId\n channel\n provider\n providerAccountId\n name\n description\n configuration\n isRecordingEnabledByDefault\n isRecordingEnabledOnDemand\n isTranscriptionEnabledByDefault\n isTranscriptionEnabledOnDemand\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n createdAt\n updatedAt\n deletedAt\n";
1492
+ declare const FIELDS_INTERACTION_WIDGET_USER_SETTING = "\n id\n widgetId\n userId\n configuration\n allowOverride\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
1493
+ declare class InteractionWidgetService {
1494
+ private readonly appSyncService;
1495
+ constructor(appSyncService: AppSyncHelperService);
1496
+ GetInteractionWidget(id: string): Promise<InteractionWidget>;
1497
+ ListInteractionWidgetsByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionWidgetFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionWidget>>;
1498
+ ListInteractionWidgetUserSettingsByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionWidgetUserSettingFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionWidget>>;
1499
+ static ɵfac: i0.ɵɵFactoryDeclaration<InteractionWidgetService, never>;
1500
+ static ɵprov: i0.ɵɵInjectableDeclaration<InteractionWidgetService>;
1501
+ }
1502
+
1503
+ type __SubscriptionContainer$3 = {
1504
+ OnInteractionInviteeByUserId: InteractionInvitee;
1505
+ OnInteractionMessageByEntityConversationId: InteractionMessage;
1506
+ };
1507
+ declare const FIELDS_INTERACTION_HOST = "\n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n";
1508
+ declare const FIELDS_INTERACTION = "\n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n metadata\n subject\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n summary\n createdAt\n updatedAt\n deletedAt\n";
1509
+ declare const FIELDS_INTERACTION_EXPANDED: string;
1510
+ declare const FIELDS_INTERACTION_INVITEE = "\n id\n interactionId\n interaction {\n \n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n metadata\n subject\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n summary\n createdAt\n updatedAt\n deletedAt\n\n }\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n parent {\n id\n externalId\n tenantId\n entityTypeId\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n createdAt\n updatedAt\n blockedAt\n deletedAt\n }\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n teamId\n userId\n isAdministrator\n temp_expiringAt\n expiredAt\n createdAt\n updatedAt\n deletedAt\n";
1511
+ declare const FIELDS_INTERACTION_ATTENDEE = "\n id\n interactionId\n entityId\n interactionWidgetSessionId\n teamId\n userId\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n";
1512
+ declare const FIELDS_INTERACTION_ATTENDEE_EXPANDED = "\n id\n interactionId\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n parent {\n id\n externalId\n tenantId\n entityTypeId\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n createdAt\n updatedAt\n blockedAt\n deletedAt\n }\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n interactionWidgetSessionId\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n\n }\n userId\n user {\n \n id\n externalId\n tenantId\n email\n name\n image {\n key\n bucket\n location\n }\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n notificationSettings {\n allowPush\n allowEmail\n allowSMS\n allowWhatsApp\n }\n type\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n\n }\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n";
1513
+ declare const FIELDS_INTERACTION_MESSAGE_ATTACHMENT = "\n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n";
1514
+ declare const FIELDS_INTERACTION_MESSAGE = "\n id\n externalId\n endpointId\n campaignId\n campaignFlowNodeId\n entityConversationId\n interactionId\n interactionAttendeeId\n body\n metadata\n referenceMessageId\n createdAt\n updatedAt\n deletedAt\n messageAttachments {\n items {\n \n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n";
1515
+ declare const FIELDS_INTERACTION_MESSAGE_EXPANDED = "\n id\n externalId\n endpointId\n endpoint {\n \n id\n externalId\n tenantId\n widgetId\n address\n configuration\n createdAt\n updatedAt\n deletedAt\n\n }\n campaignId\n campaignFlowNodeId\n entityConversationId\n interactionId\n interactionAttendeeId\n interactionAttendee {\n \n id\n interactionId\n entityId\n interactionWidgetSessionId\n teamId\n userId\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n\n }\n body\n metadata\n referenceMessageId\n createdAt\n updatedAt\n deletedAt\n messageAttachments {\n items {\n \n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n";
1516
+ declare class InteractionService {
1517
+ private readonly appSyncService;
1518
+ newInteractionInviteObservable$: BehaviorSubject<any>;
1519
+ constructor(appSyncService: AppSyncHelperService);
1520
+ GetInteraction(id: string): Promise<Interaction>;
1521
+ GetInteractionAttendee(id: string): Promise<InteractionAttendee>;
1522
+ GetInteractionMessage(id: string): Promise<InteractionMessage>;
1523
+ CreateInteraction(input: CreateInteractionInput, condition?: ModelInteractionConditionInput): Promise<Interaction>;
1524
+ UpdateInteraction(input: UpdateInteractionInput, condition?: ModelInteractionConditionInput): Promise<Interaction>;
1525
+ CreateInteractionAttendee(input: CreateInteractionAttendeeInput, condition?: ModelInteractionAttendeeConditionInput): Promise<InteractionAttendee>;
1526
+ CreateInteractionMessage(input: CreateInteractionMessageInput, condition?: ModelInteractionMessageConditionInput): Promise<InteractionMessage>;
1527
+ CreateInteractionMessageAttachment(input: CreateInteractionMessageAttachmentInput, condition?: ModelInteractionMessageAttachmentConditionInput): Promise<InteractionMessageAttachment>;
1528
+ ListInteractionsByTenantId(tenantId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionFilterInput, limit?: number, nextToken?: string): Promise<List<Interaction>>;
1529
+ ListInteractionInviteesByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionInviteeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionInvitee>>;
1530
+ ListInteractionAttendeesByInteractionIdAndEntityId(interactionId: string, entityId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionAttendee>>;
1531
+ ListInteractionAttendeesByInteractionIdAndUserId(interactionId: string, userId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionAttendee>>;
1532
+ ListInteractionMessagesByEntityConversationId(entityConversationId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
1533
+ ListInteractionMessagesByExternalMessageId(externalMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
1534
+ ListInteractionMessagesByInteractionAttendeeId(interactionAttendeeId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
1535
+ ListInteractionMessageAttachmentsByInteractionMessageId(interactionMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageAttachmentFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessageAttachment>>;
1536
+ OnInteractionInviteeByUserIdListener(userId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$3, 'OnInteractionInviteeByUserId'>>>;
1537
+ OnInteractionMessageByEntityConversationIdListener(entityConversationId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$3, 'OnInteractionMessageByEntityConversationId'>>>;
1538
+ static ɵfac: i0.ɵɵFactoryDeclaration<InteractionService, never>;
1539
+ static ɵprov: i0.ɵɵInjectableDeclaration<InteractionService>;
1540
+ }
1541
+
1542
+ declare const FIELDS_TEAM = "\n id\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n";
1543
+ declare const FIELDS_TEAM_MEMBER = "\n id\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n\n }\n userId\n user {\n \n id\n externalId\n tenantId\n email\n name\n image {\n key\n bucket\n location\n }\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n notificationSettings {\n allowPush\n allowEmail\n allowSMS\n allowWhatsApp\n }\n type\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n\n }\n isManager\n createdAt\n updatedAt\n deletedAt\n";
1544
+ declare class TeamService {
1545
+ private readonly appSyncService;
1546
+ constructor(appSyncService: AppSyncHelperService);
1547
+ GetTeam(id: string): Promise<Team>;
1548
+ ListTeamMembershipsByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelTeamMemberFilterInput, limit?: number, nextToken?: string): Promise<List<TeamMember>>;
1549
+ static ɵfac: i0.ɵɵFactoryDeclaration<TeamService, never>;
1550
+ static ɵprov: i0.ɵɵInjectableDeclaration<TeamService>;
1551
+ }
1552
+
1553
+ type __SubscriptionContainer$2 = {
1554
+ OnTenantById: Tenant;
1555
+ };
1556
+ declare class TenantService {
1557
+ private readonly appSyncService;
1558
+ constructor(appSyncService: AppSyncHelperService);
1559
+ GetTenant(id: string): Promise<Tenant>;
1560
+ OnTenantByIdListener(id: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$2, 'OnTenantById'>>>;
1561
+ static ɵfac: i0.ɵɵFactoryDeclaration<TenantService, never>;
1562
+ static ɵprov: i0.ɵɵInjectableDeclaration<TenantService>;
1563
+ }
1564
+
1565
+ type __SubscriptionContainer$1 = {
1566
+ OnUserSessionById: UserSession;
1567
+ };
1568
+ declare class UserSessionService {
1569
+ private readonly appSyncService;
1570
+ constructor(appSyncService: AppSyncHelperService);
1571
+ GetUserSession(id: string): Promise<UserSession>;
1572
+ UpdateUserSession(input: UpdateUserSessionInput, condition?: ModelUserSessionConditionInput): Promise<UserSession>;
1573
+ ListUserSessionsByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelUserSessionFilterInput, limit?: number, nextToken?: string): Promise<List<UserSession>>;
1574
+ OnUserSessionByIdListener(id: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$1, 'OnUserSessionById'>>>;
1575
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserSessionService, never>;
1576
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserSessionService>;
1577
+ }
1578
+
1579
+ declare const FIELDS_USER = "\n id\n externalId\n tenantId\n email\n name\n image {\n key\n bucket\n location\n }\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n notificationSettings {\n allowPush\n allowEmail\n allowSMS\n allowWhatsApp\n }\n type\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n";
1580
+ type __SubscriptionContainer = {
1581
+ OnUserById: User;
1582
+ };
1583
+ declare class UserService {
1584
+ private readonly appSyncService;
1585
+ constructor(appSyncService: AppSyncHelperService);
1586
+ GetUser(id: string): Promise<User>;
1587
+ OnUserByIdListener(id: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer, 'OnUserById'>>>;
1588
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
1589
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
1590
+ }
1591
+
1367
1592
  declare class CustomValidators {
1368
1593
  #private;
1369
1594
  /**
@@ -1393,5 +1618,5 @@ declare class CleanDeep {
1393
1618
  static clean(obj: any): typeof obj;
1394
1619
  }
1395
1620
 
1396
- export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CustomPipesModule, CustomValidators, DomainNamePipe, EntityConversationService, EntityService, ErrorComponent, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_INTERACTION_WIDGET, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, TenantService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
1397
- export type { AmplifyConfig, Country, CountryCurrency, CreateEntityConversationInput, CreateEntityInput, CreateInteractionAttendeeInput, CreateInteractionInput, CreateInteractionMessageAttachmentInput, CreateInteractionMessageInput, Entity, EntityContactPreferences, EntityConversation, EntityPreferences, Interaction, InteractionAttendee, InteractionEndpoint, InteractionEndpointPriceDetails, InteractionEndpointRegulatoryComplianceDocument, InteractionHost, InteractionInvitee, InteractionMessage, InteractionMessageAttachment, InteractionRouteConfiguration, InteractionRouteConfigurationInput, InteractionWidget, Language, List, ModelBooleanInput, ModelEntityConditionInput, ModelEntityConversationConditionInput, ModelEntityConversationFilterInput, ModelEntityFilterInput, ModelIDInput, ModelIDKeyConditionInput, ModelIntInput, ModelIntKeyConditionInput, ModelInteractionAttendeeConditionInput, ModelInteractionAttendeeFilterInput, ModelInteractionChannelInput, ModelInteractionConditionInput, ModelInteractionContextInput, ModelInteractionDirectionInput, ModelInteractionInviteeFilterInput, ModelInteractionMessageAttachmentConditionInput, ModelInteractionMessageAttachmentFilterInput, ModelInteractionMessageConditionInput, ModelInteractionMessageFilterInput, ModelInteractionProviderInput, ModelInteractionStatusInput, ModelInteractionWidgetConditionInput, ModelInteractionWidgetFilterInput, ModelSizeInput, ModelStringInput, ModelStringKeyConditionInput, ModelUserSessionConditionInput, ModelUserSessionFilterInput, ModelUserStatusInput, OpenSearchHit, OpenSearchResponse, PhoneNumber, S3Config, S3Credentials, S3Object, SubscriptionResponse, Team, Tenant, TenantPreferences, TenantSecurity, UpdateEntityConversationInput, UpdateEntityInput, UpdateInteractionInput, UpdateUserSessionInput, User, UserNotificationSettings, UserPreferences, UserSession };
1621
+ export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CustomPipesModule, CustomValidators, DomainNamePipe, EntityConversationService, EntityService, ErrorComponent, FIELDS_ENTITY, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_ENTITY_EXPANDED, FIELDS_ENTITY_MINIMAL, FIELDS_ENTITY_TYPE, FIELDS_INTERACTION, FIELDS_INTERACTION_ATTENDEE, FIELDS_INTERACTION_ATTENDEE_EXPANDED, FIELDS_INTERACTION_ENDPOINT, FIELDS_INTERACTION_EXPANDED, FIELDS_INTERACTION_HOST, FIELDS_INTERACTION_INVITEE, FIELDS_INTERACTION_MESSAGE, FIELDS_INTERACTION_MESSAGE_ATTACHMENT, FIELDS_INTERACTION_MESSAGE_EXPANDED, FIELDS_INTERACTION_WIDGET, FIELDS_INTERACTION_WIDGET_USER_SETTING, FIELDS_TEAM, FIELDS_TEAM_MEMBER, FIELDS_USER, FooterComponent, FormatEpochTimestampPipe, InteractionEndpointService, InteractionService, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, TeamService, TenantService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
1622
+ export type { AmplifyConfig, Country, CountryCurrency, CreateTeamInput, CreateTeamMemberInput, Language, List, ModelBooleanInput, ModelIDInput, ModelIDKeyConditionInput, ModelIntInput, ModelIntKeyConditionInput, ModelSizeInput, ModelStringInput, ModelStringKeyConditionInput, ModelTeamConditionInput, ModelTeamFilterInput, ModelTeamMemberConditionInput, ModelTeamMemberFilterInput, ModelUserStatusInput, OpenSearchHit, OpenSearchResponse, PhoneNumber, S3Config, S3Credentials, S3Object, SubscriptionResponse, Team, TeamMember, UpdateTeamInput, UpdateTeamMemberInput, User, UserNotificationSettings, UserPreferences };