@snugdesk/core 0.2.5 → 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
@@ -325,6 +325,20 @@ type List<T> = {
325
325
  interface SubscriptionResponse<T> {
326
326
  value: GraphQLResult<T>;
327
327
  }
328
+ type Country = {
329
+ code: string;
330
+ nameEn: string;
331
+ nameLocal?: string | null;
332
+ currency?: CountryCurrency | null;
333
+ officialLanguage?: Language | null;
334
+ callingCode?: string | null;
335
+ region?: string | null;
336
+ flag?: string | null;
337
+ };
338
+ type CountryCurrency = {
339
+ code: string;
340
+ nameEn: string;
341
+ };
328
342
  type Language = {
329
343
  code: string;
330
344
  nameEn: string;
@@ -344,21 +358,199 @@ type S3Object = {
344
358
  location: string;
345
359
  };
346
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
+
347
516
  type Entity = {
348
517
  id: string;
349
518
  externalId?: string | null;
350
519
  tenantId: string;
520
+ entityTypeId?: string | null;
521
+ entityType?: EntityType | null;
522
+ parentId?: string | null;
523
+ parent?: Entity | null;
351
524
  name: string;
352
525
  image?: S3Object | null;
353
526
  email?: string | null;
354
527
  phoneNumber?: PhoneNumber | null;
355
528
  phoneNumberE164?: string | null;
529
+ isOrganization: boolean;
530
+ metadata?: string;
531
+ notes?: string | null;
532
+ customFields?: Array<string | null> | null;
356
533
  preferences?: EntityPreferences | null;
357
534
  contactPreferences?: EntityContactPreferences | null;
358
535
  createdAt: number;
359
536
  updatedAt: number;
360
537
  blockedAt?: number | null;
361
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;
362
554
  };
363
555
  type EntityPreferences = {
364
556
  timezoneName?: string | null;
@@ -374,12 +566,19 @@ type CreateEntityInput = {
374
566
  id?: string | null;
375
567
  externalId?: string | null;
376
568
  tenantId: string;
569
+ entityTypeId?: string | null;
570
+ parentId?: string | null;
377
571
  name: string;
378
572
  image?: S3Object | null;
379
573
  email?: string | null;
380
574
  phoneNumber?: PhoneNumber | null;
381
575
  phoneNumberE164?: string | null;
382
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;
383
582
  createdAt: number;
384
583
  updatedAt: number;
385
584
  blockedAt?: number | null;
@@ -391,12 +590,19 @@ type UpdateEntityInput = {
391
590
  id: string;
392
591
  externalId?: string | null;
393
592
  tenantId?: string | null;
593
+ entityTypeId?: string | null;
594
+ parentId?: string | null;
394
595
  name?: string | null;
395
596
  image?: S3Object | null;
396
597
  email?: string | null;
397
598
  phoneNumber?: PhoneNumber | null;
398
599
  phoneNumberE164?: string | null;
399
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;
400
606
  createdAt?: number | null;
401
607
  updatedAt: number;
402
608
  blockedAt?: number | null;
@@ -413,10 +619,15 @@ type ModelEntityConditionInput = {
413
619
  email?: ModelStringInput | null;
414
620
  phoneNumberE164?: ModelStringInput | null;
415
621
  isOrganization?: ModelBooleanInput | null;
622
+ notes?: ModelStringInput | null;
623
+ metadata?: ModelStringInput | null;
624
+ customFields?: ModelStringInput | null;
416
625
  createdAt?: ModelIntInput | null;
417
626
  updatedAt?: ModelIntInput | null;
418
627
  blockedAt?: ModelIntInput | null;
419
628
  deletedAt?: ModelIntInput | null;
629
+ updatedByUserId?: ModelIDInput | null;
630
+ updatedByUserSessionId?: ModelIDInput | null;
420
631
  and?: Array<ModelEntityConditionInput | null> | null;
421
632
  or?: Array<ModelEntityConditionInput | null> | null;
422
633
  not?: ModelEntityConditionInput | null;
@@ -431,25 +642,34 @@ type ModelEntityFilterInput = {
431
642
  email?: ModelStringInput | null;
432
643
  phoneNumberE164?: ModelStringInput | null;
433
644
  isOrganization?: ModelBooleanInput | null;
645
+ notes?: ModelStringInput | null;
646
+ metadata?: ModelStringInput | null;
647
+ customFields?: ModelStringInput | null;
434
648
  createdAt?: ModelIntInput | null;
435
649
  updatedAt?: ModelIntInput | null;
436
650
  blockedAt?: ModelIntInput | null;
437
651
  deletedAt?: ModelIntInput | null;
652
+ updatedByUserId?: ModelIDInput | null;
653
+ updatedByUserSessionId?: ModelIDInput | null;
438
654
  and?: Array<ModelEntityFilterInput | null> | null;
439
655
  or?: Array<ModelEntityFilterInput | null> | null;
440
656
  not?: ModelEntityFilterInput | null;
441
657
  };
442
- declare class EntityService {
443
- private readonly appSyncService;
444
- constructor(appSyncService: AppSyncHelperService);
445
- GetEntity(id: string): Promise<Entity>;
446
- CreateEntity(input: CreateEntityInput, condition?: ModelEntityConditionInput): Promise<Entity>;
447
- UpdateEntity(input: UpdateEntityInput, condition?: ModelEntityConditionInput): Promise<Entity>;
448
- ListEntitiesByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityFilterInput, limit?: number, nextToken?: string): Promise<List<Entity>>;
449
- ListEntitiesByTenantIdAndPhoneNumberE164(tenantId: string, phoneNumberE164?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityFilterInput, limit?: number, nextToken?: string): Promise<List<Entity>>;
450
- static ɵfac: i0.ɵɵFactoryDeclaration<EntityService, never>;
451
- static ɵprov: i0.ɵɵInjectableDeclaration<EntityService>;
452
- }
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
+ };
453
673
 
454
674
  type TenantPreferences = {
455
675
  timezoneName?: string | null;
@@ -478,18 +698,6 @@ type Tenant = {
478
698
  updatedAt: number;
479
699
  deletedAt?: number | null;
480
700
  };
481
- type __SubscriptionContainer$4 = {
482
- OnTenantById: Tenant;
483
- };
484
- declare class TenantService {
485
- private readonly appSyncService;
486
- constructor(appSyncService: AppSyncHelperService);
487
- getTenantById(id: string): Promise<Tenant>;
488
- private GetTenant;
489
- OnTenantByIdListener(id: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$4, 'OnTenantById'>>>;
490
- static ɵfac: i0.ɵɵFactoryDeclaration<TenantService, never>;
491
- static ɵprov: i0.ɵɵInjectableDeclaration<TenantService>;
492
- }
493
701
 
494
702
  type InteractionWidget = {
495
703
  id: string;
@@ -510,7 +718,8 @@ type InteractionWidget = {
510
718
  updatedAt: number;
511
719
  deletedAt?: number | null;
512
720
  };
513
- type ModelInteractionWidgetConditionInput = {
721
+ type ModelInteractionWidgetFilterInput = {
722
+ id?: ModelIDInput | null;
514
723
  tenantId?: ModelIDInput | null;
515
724
  channel?: ModelInteractionChannelInput | null;
516
725
  provider?: ModelInteractionProviderInput | null;
@@ -527,41 +736,25 @@ type ModelInteractionWidgetConditionInput = {
527
736
  updatedByUserId?: ModelIDInput | null;
528
737
  updatedByUserSessionId?: ModelIDInput | null;
529
738
  deletedAt?: ModelIntInput | null;
530
- and?: Array<ModelInteractionWidgetConditionInput | null> | null;
531
- or?: Array<ModelInteractionWidgetConditionInput | null> | null;
532
- not?: ModelInteractionWidgetConditionInput | null;
739
+ and?: Array<ModelInteractionWidgetFilterInput | null> | null;
740
+ or?: Array<ModelInteractionWidgetFilterInput | null> | null;
741
+ not?: ModelInteractionWidgetFilterInput | null;
533
742
  };
534
- type ModelInteractionWidgetFilterInput = {
743
+ type ModelInteractionWidgetUserSettingFilterInput = {
535
744
  id?: ModelIDInput | null;
536
- tenantId?: ModelIDInput | null;
537
- channel?: ModelInteractionChannelInput | null;
538
- provider?: ModelInteractionProviderInput | null;
539
- providerAccountId?: ModelStringInput | null;
540
- name?: ModelStringInput | null;
541
- description?: ModelStringInput | null;
745
+ widgetId?: ModelIDInput | null;
746
+ userId?: ModelIDInput | null;
542
747
  configuration?: ModelStringInput | null;
543
- isRecordingEnabledByDefault?: ModelBooleanInput | null;
544
- isRecordingEnabledOnDemand?: ModelBooleanInput | null;
545
- isTranscriptionEnabledByDefault?: ModelBooleanInput | null;
546
- isTranscriptionEnabledOnDemand?: ModelBooleanInput | null;
748
+ allowOverride?: ModelBooleanInput | null;
547
749
  createdAt?: ModelIntInput | null;
548
750
  updatedAt?: ModelIntInput | null;
751
+ deletedAt?: ModelIntInput | null;
549
752
  updatedByUserId?: ModelIDInput | null;
550
753
  updatedByUserSessionId?: ModelIDInput | null;
551
- deletedAt?: ModelIntInput | null;
552
- and?: Array<ModelInteractionWidgetFilterInput | null> | null;
553
- or?: Array<ModelInteractionWidgetFilterInput | null> | null;
554
- not?: ModelInteractionWidgetFilterInput | null;
754
+ and?: Array<ModelInteractionWidgetUserSettingFilterInput | null> | null;
755
+ or?: Array<ModelInteractionWidgetUserSettingFilterInput | null> | null;
756
+ not?: ModelInteractionWidgetUserSettingFilterInput | null;
555
757
  };
556
- 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";
557
- declare class InteractionWidgetService {
558
- private readonly appSyncService;
559
- constructor(appSyncService: AppSyncHelperService);
560
- GetInteractionWidget(id: string): Promise<InteractionWidget>;
561
- ListInteractionWidgetsByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionWidgetFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionWidget>>;
562
- static ɵfac: i0.ɵɵFactoryDeclaration<InteractionWidgetService, never>;
563
- static ɵprov: i0.ɵɵInjectableDeclaration<InteractionWidgetService>;
564
- }
565
758
 
566
759
  type InteractionEndpoint = {
567
760
  id: string;
@@ -590,67 +783,6 @@ type InteractionEndpointRegulatoryComplianceDocument = {
590
783
  contentType?: string | null;
591
784
  file?: S3Object | null;
592
785
  };
593
- declare class InteractionEndpointService {
594
- static ɵfac: i0.ɵɵFactoryDeclaration<InteractionEndpointService, never>;
595
- static ɵprov: i0.ɵɵInjectableDeclaration<InteractionEndpointService>;
596
- }
597
-
598
- 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";
599
- type UserPreferences = {
600
- timezoneName?: string | null;
601
- language?: Language | null;
602
- };
603
- type UserNotificationSettings = {
604
- allowPush?: boolean | null;
605
- allowEmail?: boolean | null;
606
- allowSMS?: boolean | null;
607
- allowWhatsApp?: boolean | null;
608
- };
609
- declare enum UserStatus {
610
- READY = "READY",
611
- NOT_READY = "NOT_READY",
612
- INVITED = "INVITED",
613
- BUSY = "BUSY",
614
- AFTER_CALL_WORK = "AFTER_CALL_WORK"
615
- }
616
- declare enum UserType {
617
- AGENT = "AGENT",
618
- SUPERVISOR = "SUPERVISOR",
619
- ADMINISTRATOR = "ADMINISTRATOR"
620
- }
621
- type User = {
622
- id: string;
623
- externalId?: string | null;
624
- tenantId: string;
625
- email: string;
626
- name?: string | null;
627
- image?: S3Object | null;
628
- phoneNumber?: PhoneNumber | null;
629
- preferences?: UserPreferences | null;
630
- notificationSettings?: UserNotificationSettings | null;
631
- type?: UserType | null;
632
- activatedAt?: number | null;
633
- blockedAt?: number | null;
634
- createdAt: number;
635
- updatedAt: number;
636
- deletedAt?: number | null;
637
- };
638
- type ModelUserStatusInput = {
639
- eq?: UserStatus | null;
640
- ne?: UserStatus | null;
641
- };
642
- type __SubscriptionContainer$3 = {
643
- OnUserById: User;
644
- };
645
- declare class UserService {
646
- private readonly appSyncService;
647
- constructor(appSyncService: AppSyncHelperService);
648
- getUserById(id: string): Promise<User>;
649
- GetUser(id: string): Promise<User>;
650
- OnUserByIdListener(id: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$3, 'OnUserById'>>>;
651
- static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
652
- static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
653
- }
654
786
 
655
787
  type UserSession = {
656
788
  id: string;
@@ -702,69 +834,21 @@ type ModelUserSessionConditionInput = {
702
834
  };
703
835
  type ModelUserSessionFilterInput = {
704
836
  id?: ModelIDInput | null;
705
- tenantId?: ModelIDInput | null;
706
- userId?: ModelIDInput | null;
707
- ipDetails?: ModelStringInput | null;
708
- status?: ModelUserStatusInput | null;
709
- teamIds?: ModelStringInput | null;
710
- temp_isLocked?: ModelBooleanInput | null;
711
- temp_isAvailableTenantIdUnion?: ModelStringInput | null;
712
- createdAt?: ModelIntInput | null;
713
- updatedAt?: ModelIntInput | null;
714
- expiryAt?: ModelIntInput | null;
715
- loggedOutAt?: ModelIntInput | null;
716
- blockedAt?: ModelIntInput | null;
717
- and?: Array<ModelUserSessionFilterInput | null> | null;
718
- or?: Array<ModelUserSessionFilterInput | null> | null;
719
- not?: ModelUserSessionFilterInput | null;
720
- };
721
- type __SubscriptionContainer$2 = {
722
- OnUserSessionById: UserSession;
723
- };
724
- declare class UserSessionService {
725
- private readonly appSyncService;
726
- constructor(appSyncService: AppSyncHelperService);
727
- getUserSessionById(id: string): Promise<UserSession>;
728
- GetUserSession(id: string): Promise<UserSession>;
729
- ListUserSessionsByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelUserSessionFilterInput, limit?: number, nextToken?: string): Promise<List<UserSession>>;
730
- UpdateUserSession(input: UpdateUserSessionInput, condition?: ModelUserSessionConditionInput): Promise<UserSession>;
731
- OnUserSessionByIdListener(id: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$2, 'OnUserSessionById'>>>;
732
- static ɵfac: i0.ɵɵFactoryDeclaration<UserSessionService, never>;
733
- static ɵprov: i0.ɵɵInjectableDeclaration<UserSessionService>;
734
- }
735
-
736
- type Team = {
737
- id: string;
738
- tenantId: string;
739
- name: string;
740
- description?: string | null;
741
- image?: S3Object | null;
742
- ticketFields?: Array<string | null> | null;
743
- createdAt: number;
744
- updatedAt: number;
745
- deletedAt?: number | null;
746
- };
747
- type TeamMember = {
748
- id: string;
749
- teamId: string;
750
- team?: Team | null;
751
- userId: string;
752
- isManager: boolean;
753
- createdAt: number;
754
- updatedAt: number;
755
- deletedAt?: number | null;
756
- };
757
- type ModelTeamMemberFilterInput = {
758
- id?: ModelIDInput | null;
759
- teamId?: ModelIDInput | null;
837
+ tenantId?: ModelIDInput | null;
760
838
  userId?: ModelIDInput | null;
761
- isManager?: ModelBooleanInput | null;
839
+ ipDetails?: ModelStringInput | null;
840
+ status?: ModelUserStatusInput | null;
841
+ teamIds?: ModelStringInput | null;
842
+ temp_isLocked?: ModelBooleanInput | null;
843
+ temp_isAvailableTenantIdUnion?: ModelStringInput | null;
762
844
  createdAt?: ModelIntInput | null;
763
845
  updatedAt?: ModelIntInput | null;
764
- deletedAt?: ModelIntInput | null;
765
- and?: Array<ModelTeamMemberFilterInput | null> | null;
766
- or?: Array<ModelTeamMemberFilterInput | null> | null;
767
- not?: ModelTeamMemberFilterInput | null;
846
+ expiryAt?: ModelIntInput | null;
847
+ loggedOutAt?: ModelIntInput | null;
848
+ blockedAt?: ModelIntInput | null;
849
+ and?: Array<ModelUserSessionFilterInput | null> | null;
850
+ or?: Array<ModelUserSessionFilterInput | null> | null;
851
+ not?: ModelUserSessionFilterInput | null;
768
852
  };
769
853
 
770
854
  declare enum InteractionChannel {
@@ -995,53 +1079,6 @@ type UpdateInteractionInput = {
995
1079
  updatedAt?: number | null;
996
1080
  deletedAt?: number | null;
997
1081
  };
998
- type CreateInteractionAttendeeInput = {
999
- id?: string | null;
1000
- interactionId: string;
1001
- entityId?: string | null;
1002
- interactionWidgetSessionId?: string | null;
1003
- teamId?: string | null;
1004
- userId?: string | null;
1005
- userSessionId?: string | null;
1006
- name: string;
1007
- metadata?: string | null;
1008
- customFields?: Array<string | null> | null;
1009
- isAdministrator: boolean;
1010
- joinedAt?: number | null;
1011
- exitedAt?: number | null;
1012
- createdAt: number;
1013
- updatedAt: number;
1014
- deletedAt?: number | null;
1015
- };
1016
- type CreateInteractionMessageInput = {
1017
- id?: string | null;
1018
- externalId?: string | null;
1019
- endpointId?: string | null;
1020
- campaignId?: string | null;
1021
- campaignFlowNodeId?: string | null;
1022
- entityConversationId: string;
1023
- interactionId: string;
1024
- interactionAttendeeId?: string | null;
1025
- referenceMessageId?: string | null;
1026
- body?: string | null;
1027
- metadata?: string | null;
1028
- createdAt: number;
1029
- updatedAt: number;
1030
- deletedAt?: number | null;
1031
- };
1032
- type CreateInteractionMessageAttachmentInput = {
1033
- id?: string | null;
1034
- externalId?: string | null;
1035
- interactionId: string;
1036
- interactionMessageId: string;
1037
- name: string;
1038
- size?: number | null;
1039
- type?: string | null;
1040
- file: S3Object;
1041
- createdAt: number;
1042
- updatedAt: number;
1043
- deletedAt?: number | null;
1044
- };
1045
1082
  type ModelInteractionConditionInput = {
1046
1083
  tenantId?: ModelIDInput | null;
1047
1084
  widgetId?: ModelIDInput | null;
@@ -1072,6 +1109,37 @@ type ModelInteractionConditionInput = {
1072
1109
  or?: Array<ModelInteractionConditionInput | null> | null;
1073
1110
  not?: ModelInteractionConditionInput | null;
1074
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
+ };
1075
1143
  type ModelInteractionInviteeFilterInput = {
1076
1144
  id?: ModelIDInput | null;
1077
1145
  interactionId?: ModelIDInput | null;
@@ -1088,6 +1156,24 @@ type ModelInteractionInviteeFilterInput = {
1088
1156
  or?: Array<ModelInteractionInviteeFilterInput | null> | null;
1089
1157
  not?: ModelInteractionInviteeFilterInput | null;
1090
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
+ };
1091
1177
  type ModelInteractionAttendeeConditionInput = {
1092
1178
  interactionId?: ModelIDInput | null;
1093
1179
  entityId?: ModelIDInput | null;
@@ -1129,6 +1215,22 @@ type ModelInteractionAttendeeFilterInput = {
1129
1215
  or?: Array<ModelInteractionAttendeeFilterInput | null> | null;
1130
1216
  not?: ModelInteractionAttendeeFilterInput | null;
1131
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
+ };
1132
1234
  type ModelInteractionMessageConditionInput = {
1133
1235
  externalId?: ModelStringInput | null;
1134
1236
  endpointId?: ModelIDInput | null;
@@ -1166,6 +1268,19 @@ type ModelInteractionMessageFilterInput = {
1166
1268
  or?: Array<ModelInteractionMessageFilterInput | null> | null;
1167
1269
  not?: ModelInteractionMessageFilterInput | null;
1168
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
+ };
1169
1284
  type ModelInteractionMessageAttachmentConditionInput = {
1170
1285
  externalId?: ModelStringInput | null;
1171
1286
  interactionId?: ModelIDInput | null;
@@ -1220,34 +1335,6 @@ type InteractionRouteConfigurationInput = {
1220
1335
  routingLogic?: InteractionRouteLogic | null;
1221
1336
  maxWaitTimeoutSeconds?: number | null;
1222
1337
  };
1223
- type __SubscriptionContainer$1 = {
1224
- OnInteractionInviteeByUserId: InteractionInvitee;
1225
- OnInteractionMessageByEntityConversationId: InteractionMessage;
1226
- };
1227
- declare class InteractionService {
1228
- private readonly appSyncService;
1229
- newInteractionInviteObservable$: BehaviorSubject<any>;
1230
- constructor(appSyncService: AppSyncHelperService);
1231
- GetInteraction(id: string): Promise<Interaction>;
1232
- GetInteractionAttendee(id: string): Promise<InteractionAttendee>;
1233
- GetInteractionMessage(id: string): Promise<InteractionMessage>;
1234
- CreateInteraction(input: CreateInteractionInput, condition?: ModelInteractionConditionInput): Promise<Interaction>;
1235
- UpdateInteraction(input: UpdateInteractionInput, condition?: ModelInteractionConditionInput): Promise<Interaction>;
1236
- CreateInteractionAttendee(input: CreateInteractionAttendeeInput, condition?: ModelInteractionAttendeeConditionInput): Promise<InteractionAttendee>;
1237
- CreateInteractionMessage(input: CreateInteractionMessageInput, condition?: ModelInteractionMessageConditionInput): Promise<InteractionMessage>;
1238
- CreateInteractionMessageAttachment(input: CreateInteractionMessageAttachmentInput, condition?: ModelInteractionMessageAttachmentConditionInput): Promise<InteractionMessageAttachment>;
1239
- ListInteractionInviteesByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionInviteeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionInvitee>>;
1240
- ListInteractionAttendeesByInteractionIdAndEntityId(interactionId: string, entityId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionAttendee>>;
1241
- ListInteractionAttendeesByInteractionIdAndUserId(interactionId: string, userId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionAttendee>>;
1242
- ListInteractionMessagesByEntityConversationId(entityConversationId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
1243
- ListInteractionMessagesByExternalMessageId(externalMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
1244
- ListInteractionMessagesByInteractionAttendeeId(interactionAttendeeId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
1245
- ListInteractionMessageAttachmentsByInteractionMessageId(interactionMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageAttachmentFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessageAttachment>>;
1246
- OnInteractionInviteeByUserIdListener(userId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$1, 'OnInteractionInviteeByUserId'>>>;
1247
- OnInteractionMessageByEntityConversationIdListener(entityConversationId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$1, 'OnInteractionMessageByEntityConversationId'>>>;
1248
- static ɵfac: i0.ɵɵFactoryDeclaration<InteractionService, never>;
1249
- static ɵprov: i0.ɵɵInjectableDeclaration<InteractionService>;
1250
- }
1251
1338
 
1252
1339
  type EntityConversation = {
1253
1340
  id: string;
@@ -1357,25 +1444,103 @@ type ModelEntityConversationFilterInput = {
1357
1444
  or?: Array<ModelEntityConversationFilterInput | null> | null;
1358
1445
  not?: ModelEntityConversationFilterInput | null;
1359
1446
  };
1360
- type __SubscriptionContainer = {
1447
+
1448
+ type __SubscriptionContainer$4 = {
1361
1449
  OnEntityConversationByTenantId: EntityConversation;
1362
1450
  };
1363
1451
  declare const FIELDS_ENTITY_CONVERSATION: string;
1364
- 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";
1365
1453
  declare class EntityConversationService {
1366
1454
  private readonly appSyncService;
1367
1455
  constructor(appSyncService: AppSyncHelperService);
1368
1456
  GetEntityConversation(id: string): Promise<EntityConversation>;
1369
1457
  CreateEntityConversation(input: CreateEntityConversationInput, condition?: ModelEntityConversationConditionInput): Promise<EntityConversation>;
1370
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>>;
1371
1460
  ListEntityConversationsByTenantIdAndEntityAddress(tenantId: string, entityAddress?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<List<EntityConversation>>;
1372
1461
  ListEntityConversationsByTenantIdAndArchivedAt(tenantId: string, archivedAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<List<EntityConversation>>;
1373
1462
  ListEntityConversationsByTenantIdAndLastMessageAt(tenantId: string, lastMessageAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<List<EntityConversation>>;
1374
- OnEntityConversationByTenantIdListener(tenantId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer, 'OnEntityConversationByTenantId'>>>;
1463
+ OnEntityConversationByTenantIdListener(tenantId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$4, 'OnEntityConversationByTenantId'>>>;
1375
1464
  static ɵfac: i0.ɵɵFactoryDeclaration<EntityConversationService, never>;
1376
1465
  static ɵprov: i0.ɵɵInjectableDeclaration<EntityConversationService>;
1377
1466
  }
1378
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";
1379
1544
  declare class TeamService {
1380
1545
  private readonly appSyncService;
1381
1546
  constructor(appSyncService: AppSyncHelperService);
@@ -1385,6 +1550,45 @@ declare class TeamService {
1385
1550
  static ɵprov: i0.ɵɵInjectableDeclaration<TeamService>;
1386
1551
  }
1387
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
+
1388
1592
  declare class CustomValidators {
1389
1593
  #private;
1390
1594
  /**
@@ -1414,5 +1618,5 @@ declare class CleanDeep {
1414
1618
  static clean(obj: any): typeof obj;
1415
1619
  }
1416
1620
 
1417
- export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CustomPipesModule, CustomValidators, DomainNamePipe, EntityConversationService, EntityService, ErrorComponent, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_INTERACTION_WIDGET, FIELDS_USER, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, OpenSearchHelperService, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, TeamService, TenantService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
1418
- export type { AmplifyConfig, CreateEntityConversationInput, CreateEntityInput, CreateInteractionAttendeeInput, CreateInteractionInput, CreateInteractionMessageAttachmentInput, CreateInteractionMessageInput, Entity, EntityContactPreferences, EntityConversation, EntityPreferences, Interaction, InteractionAttendee, InteractionEndpoint, InteractionEndpointPriceDetails, InteractionEndpointRegulatoryComplianceDocument, InteractionHost, InteractionInvitee, InteractionMessage, InteractionMessageAttachment, InteractionRouteConfiguration, InteractionRouteConfigurationInput, InteractionWidget, ModelEntityConditionInput, ModelEntityConversationConditionInput, ModelEntityConversationFilterInput, ModelEntityFilterInput, ModelInteractionAttendeeConditionInput, ModelInteractionAttendeeFilterInput, ModelInteractionChannelInput, ModelInteractionConditionInput, ModelInteractionContextInput, ModelInteractionDirectionInput, ModelInteractionInviteeFilterInput, ModelInteractionMessageAttachmentConditionInput, ModelInteractionMessageAttachmentFilterInput, ModelInteractionMessageConditionInput, ModelInteractionMessageFilterInput, ModelInteractionProviderInput, ModelInteractionStatusInput, ModelInteractionWidgetConditionInput, ModelInteractionWidgetFilterInput, ModelUserSessionConditionInput, ModelUserSessionFilterInput, ModelUserStatusInput, OpenSearchHit, OpenSearchResponse, S3Config, S3Credentials, 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 };