@snugdesk/core 0.2.6 → 0.2.7

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,161 +358,6 @@ 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
-
516
361
  type Entity = {
517
362
  id: string;
518
363
  externalId?: string | null;
@@ -655,6 +500,20 @@ type ModelEntityFilterInput = {
655
500
  or?: Array<ModelEntityFilterInput | null> | null;
656
501
  not?: ModelEntityFilterInput | null;
657
502
  };
503
+ type ModelEntityTypeConditionInput = {
504
+ externalId?: ModelStringInput | null;
505
+ tenantId?: ModelIDInput | null;
506
+ name?: ModelStringInput | null;
507
+ description?: ModelStringInput | null;
508
+ createdAt?: ModelIntInput | null;
509
+ updatedAt?: ModelIntInput | null;
510
+ deletedAt?: ModelIntInput | null;
511
+ entityFields?: ModelStringInput | null;
512
+ organizationFields?: ModelStringInput | null;
513
+ and?: Array<ModelEntityTypeConditionInput | null> | null;
514
+ or?: Array<ModelEntityTypeConditionInput | null> | null;
515
+ not?: ModelEntityTypeConditionInput | null;
516
+ };
658
517
  type ModelEntityTypeFilterInput = {
659
518
  id?: ModelIDInput | null;
660
519
  externalId?: ModelStringInput | null;
@@ -671,6 +530,26 @@ type ModelEntityTypeFilterInput = {
671
530
  not?: ModelEntityTypeFilterInput | null;
672
531
  };
673
532
 
533
+ type TenantBillingInformation = {
534
+ companyName: string;
535
+ address?: string | null;
536
+ state?: string | null;
537
+ city?: string | null;
538
+ postalCode?: string | null;
539
+ country?: Country | null;
540
+ companyIdentificationNumber?: string | null;
541
+ taxIdentificationNumber?: string | null;
542
+ };
543
+ type TenantContactInformation = {
544
+ name: string;
545
+ email: string;
546
+ phoneNumber?: PhoneNumber | null;
547
+ address?: string | null;
548
+ state?: string | null;
549
+ city?: string | null;
550
+ postalCode?: string | null;
551
+ country?: Country | null;
552
+ };
674
553
  type TenantPreferences = {
675
554
  timezoneName?: string | null;
676
555
  language?: Language | null;
@@ -683,6 +562,18 @@ type TenantSecurity = {
683
562
  sessionTokenExpiry?: number | null;
684
563
  sessionIdleTimeout?: number | null;
685
564
  };
565
+ type TenantSSOConfiguration = {
566
+ provider: string;
567
+ protocol?: TenantSSOConfigurationProtocol | null;
568
+ displayName?: string | null;
569
+ configuration?: string | null;
570
+ isEnabled?: boolean | null;
571
+ isDefaultLoginMode?: boolean | null;
572
+ };
573
+ declare enum TenantSSOConfigurationProtocol {
574
+ SAML = "SAML",
575
+ OIDC = "OIDC"
576
+ }
686
577
  type Tenant = {
687
578
  id: string;
688
579
  externalId?: string | null;
@@ -718,70 +609,258 @@ type InteractionWidget = {
718
609
  updatedAt: number;
719
610
  deletedAt?: number | null;
720
611
  };
721
- type ModelInteractionWidgetFilterInput = {
722
- id?: ModelIDInput | null;
723
- tenantId?: ModelIDInput | null;
724
- channel?: ModelInteractionChannelInput | null;
725
- provider?: ModelInteractionProviderInput | null;
726
- providerAccountId?: ModelStringInput | null;
727
- name?: ModelStringInput | null;
728
- description?: ModelStringInput | null;
729
- configuration?: ModelStringInput | null;
730
- isRecordingEnabledByDefault?: ModelBooleanInput | null;
731
- isRecordingEnabledOnDemand?: ModelBooleanInput | null;
732
- isTranscriptionEnabledByDefault?: ModelBooleanInput | null;
733
- isTranscriptionEnabledOnDemand?: ModelBooleanInput | null;
612
+ type InteractionWidgetUserSetting = {
613
+ id: string;
614
+ widgetId: string;
615
+ userId: string;
616
+ configuration?: string | null;
617
+ allowOverride?: boolean | null;
618
+ createdAt: number;
619
+ updatedAt: number;
620
+ deletedAt?: number | null;
621
+ updatedByUserId?: string | null;
622
+ updatedByUserSessionId?: string | null;
623
+ };
624
+ type ModelInteractionWidgetConditionInput = {
625
+ tenantId?: ModelIDInput | null;
626
+ channel?: ModelInteractionChannelInput | null;
627
+ provider?: ModelInteractionProviderInput | null;
628
+ providerAccountId?: ModelStringInput | null;
629
+ name?: ModelStringInput | null;
630
+ description?: ModelStringInput | null;
631
+ configuration?: ModelStringInput | null;
632
+ isRecordingEnabledByDefault?: ModelBooleanInput | null;
633
+ isRecordingEnabledOnDemand?: ModelBooleanInput | null;
634
+ isTranscriptionEnabledByDefault?: ModelBooleanInput | null;
635
+ isTranscriptionEnabledOnDemand?: ModelBooleanInput | null;
636
+ createdAt?: ModelIntInput | null;
637
+ updatedAt?: ModelIntInput | null;
638
+ updatedByUserId?: ModelIDInput | null;
639
+ updatedByUserSessionId?: ModelIDInput | null;
640
+ deletedAt?: ModelIntInput | null;
641
+ and?: Array<ModelInteractionWidgetConditionInput | null> | null;
642
+ or?: Array<ModelInteractionWidgetConditionInput | null> | null;
643
+ not?: ModelInteractionWidgetConditionInput | null;
644
+ };
645
+ type ModelInteractionWidgetFilterInput = {
646
+ id?: ModelIDInput | null;
647
+ tenantId?: ModelIDInput | null;
648
+ channel?: ModelInteractionChannelInput | null;
649
+ provider?: ModelInteractionProviderInput | null;
650
+ providerAccountId?: ModelStringInput | null;
651
+ name?: ModelStringInput | null;
652
+ description?: ModelStringInput | null;
653
+ configuration?: ModelStringInput | null;
654
+ isRecordingEnabledByDefault?: ModelBooleanInput | null;
655
+ isRecordingEnabledOnDemand?: ModelBooleanInput | null;
656
+ isTranscriptionEnabledByDefault?: ModelBooleanInput | null;
657
+ isTranscriptionEnabledOnDemand?: ModelBooleanInput | null;
658
+ createdAt?: ModelIntInput | null;
659
+ updatedAt?: ModelIntInput | null;
660
+ updatedByUserId?: ModelIDInput | null;
661
+ updatedByUserSessionId?: ModelIDInput | null;
662
+ deletedAt?: ModelIntInput | null;
663
+ and?: Array<ModelInteractionWidgetFilterInput | null> | null;
664
+ or?: Array<ModelInteractionWidgetFilterInput | null> | null;
665
+ not?: ModelInteractionWidgetFilterInput | null;
666
+ };
667
+ type ModelInteractionWidgetUserSettingFilterInput = {
668
+ id?: ModelIDInput | null;
669
+ widgetId?: ModelIDInput | null;
670
+ userId?: ModelIDInput | null;
671
+ configuration?: ModelStringInput | null;
672
+ allowOverride?: ModelBooleanInput | null;
673
+ createdAt?: ModelIntInput | null;
674
+ updatedAt?: ModelIntInput | null;
675
+ deletedAt?: ModelIntInput | null;
676
+ updatedByUserId?: ModelIDInput | null;
677
+ updatedByUserSessionId?: ModelIDInput | null;
678
+ and?: Array<ModelInteractionWidgetUserSettingFilterInput | null> | null;
679
+ or?: Array<ModelInteractionWidgetUserSettingFilterInput | null> | null;
680
+ not?: ModelInteractionWidgetUserSettingFilterInput | null;
681
+ };
682
+
683
+ type InteractionEndpoint = {
684
+ id: string;
685
+ externalId: string;
686
+ tenantId: string;
687
+ widgetId: string;
688
+ widget?: InteractionWidget | null;
689
+ address: string;
690
+ configuration?: string | null;
691
+ sellPrice?: InteractionEndpointPriceDetails | null;
692
+ documents?: Array<InteractionEndpointRegulatoryComplianceDocument | null> | null;
693
+ createdAt: number;
694
+ updatedAt: number;
695
+ deletedAt?: number | null;
696
+ };
697
+ type InteractionEndpointPriceDetails = {
698
+ currency: string;
699
+ upfrontCost: number;
700
+ monthlyCost: number;
701
+ inboundCost: number;
702
+ outboundCost: number;
703
+ };
704
+ type InteractionEndpointRegulatoryComplianceDocument = {
705
+ fileName: string;
706
+ documentType?: string | null;
707
+ contentType?: string | null;
708
+ file?: S3Object | null;
709
+ };
710
+
711
+ type User = {
712
+ id: string;
713
+ externalId?: string | null;
714
+ tenantId: string;
715
+ email: string;
716
+ name?: string | null;
717
+ image?: S3Object | null;
718
+ phoneNumber?: PhoneNumber | null;
719
+ preferences?: UserPreferences | null;
720
+ notificationSettings?: UserNotificationSettings | null;
721
+ type?: UserType | null;
722
+ activatedAt?: number | null;
723
+ blockedAt?: number | null;
724
+ createdAt: number;
725
+ updatedAt: number;
726
+ deletedAt?: number | null;
727
+ };
728
+ type UserNotificationSettings = {
729
+ allowPush?: boolean | null;
730
+ allowEmail?: boolean | null;
731
+ allowSMS?: boolean | null;
732
+ allowWhatsApp?: boolean | null;
733
+ };
734
+ type UserPreferences = {
735
+ timezoneName?: string | null;
736
+ language?: Language | null;
737
+ };
738
+ declare enum UserStatus {
739
+ READY = "READY",
740
+ NOT_READY = "NOT_READY",
741
+ INVITED = "INVITED",
742
+ BUSY = "BUSY",
743
+ AFTER_CALL_WORK = "AFTER_CALL_WORK"
744
+ }
745
+ declare enum UserType {
746
+ AGENT = "AGENT",
747
+ SUPERVISOR = "SUPERVISOR",
748
+ ADMINISTRATOR = "ADMINISTRATOR"
749
+ }
750
+ type ModelUserStatusInput = {
751
+ eq?: UserStatus | null;
752
+ ne?: UserStatus | null;
753
+ };
754
+
755
+ type Team = {
756
+ id: string;
757
+ tenantId: string;
758
+ name: string;
759
+ description?: string | null;
760
+ image?: S3Object | null;
761
+ ticketFields?: Array<string | null> | null;
762
+ createdAt: number;
763
+ updatedAt: number;
764
+ deletedAt?: number | null;
765
+ };
766
+ type TeamMember = {
767
+ id: string;
768
+ teamId: string;
769
+ team?: Team | null;
770
+ userId: string;
771
+ user?: User | null;
772
+ isManager: boolean;
773
+ createdAt: number;
774
+ updatedAt: number;
775
+ deletedAt?: number | null;
776
+ };
777
+ type CreateTeamInput = {
778
+ id?: string | null;
779
+ tenantId: string;
780
+ name: string;
781
+ description?: string | null;
782
+ image?: S3Object | null;
783
+ ticketFields?: Array<string | null> | null;
784
+ createdAt: number;
785
+ updatedAt: number;
786
+ deletedAt?: number | null;
787
+ };
788
+ type UpdateTeamInput = {
789
+ id: string;
790
+ tenantId?: string | null;
791
+ name?: string | null;
792
+ description?: string | null;
793
+ image?: S3Object | null;
794
+ ticketFields?: Array<string | null> | null;
795
+ createdAt?: number | null;
796
+ updatedAt?: number | null;
797
+ deletedAt?: number | null;
798
+ };
799
+ type ModelTeamConditionInput = {
800
+ tenantId?: ModelIDInput | null;
801
+ name?: ModelStringInput | null;
802
+ description?: ModelStringInput | null;
803
+ ticketFields?: ModelStringInput | null;
804
+ createdAt?: ModelIntInput | null;
805
+ updatedAt?: ModelIntInput | null;
806
+ deletedAt?: ModelIntInput | null;
807
+ and?: Array<ModelTeamConditionInput | null> | null;
808
+ or?: Array<ModelTeamConditionInput | null> | null;
809
+ not?: ModelTeamConditionInput | null;
810
+ };
811
+ type ModelTeamFilterInput = {
812
+ id?: ModelIDInput | null;
813
+ tenantId?: ModelIDInput | null;
814
+ name?: ModelStringInput | null;
815
+ description?: ModelStringInput | null;
816
+ ticketFields?: ModelStringInput | null;
817
+ createdAt?: ModelIntInput | null;
818
+ updatedAt?: ModelIntInput | null;
819
+ deletedAt?: ModelIntInput | null;
820
+ and?: Array<ModelTeamFilterInput | null> | null;
821
+ or?: Array<ModelTeamFilterInput | null> | null;
822
+ not?: ModelTeamFilterInput | null;
823
+ };
824
+ type CreateTeamMemberInput = {
825
+ id?: string | null;
826
+ teamId: string;
827
+ userId: string;
828
+ isManager: boolean;
829
+ createdAt: number;
830
+ updatedAt: number;
831
+ deletedAt?: number | null;
832
+ };
833
+ type UpdateTeamMemberInput = {
834
+ id: string;
835
+ teamId?: string | null;
836
+ userId?: string | null;
837
+ isManager?: boolean | null;
838
+ createdAt?: number | null;
839
+ updatedAt?: number | null;
840
+ deletedAt?: number | null;
841
+ };
842
+ type ModelTeamMemberConditionInput = {
843
+ teamId?: ModelIDInput | null;
844
+ userId?: ModelIDInput | null;
845
+ isManager?: ModelBooleanInput | null;
734
846
  createdAt?: ModelIntInput | null;
735
847
  updatedAt?: ModelIntInput | null;
736
- updatedByUserId?: ModelIDInput | null;
737
- updatedByUserSessionId?: ModelIDInput | null;
738
848
  deletedAt?: ModelIntInput | null;
739
- and?: Array<ModelInteractionWidgetFilterInput | null> | null;
740
- or?: Array<ModelInteractionWidgetFilterInput | null> | null;
741
- not?: ModelInteractionWidgetFilterInput | null;
849
+ and?: Array<ModelTeamMemberConditionInput | null> | null;
850
+ or?: Array<ModelTeamMemberConditionInput | null> | null;
851
+ not?: ModelTeamMemberConditionInput | null;
742
852
  };
743
- type ModelInteractionWidgetUserSettingFilterInput = {
853
+ type ModelTeamMemberFilterInput = {
744
854
  id?: ModelIDInput | null;
745
- widgetId?: ModelIDInput | null;
855
+ teamId?: ModelIDInput | null;
746
856
  userId?: ModelIDInput | null;
747
- configuration?: ModelStringInput | null;
748
- allowOverride?: ModelBooleanInput | null;
857
+ isManager?: ModelBooleanInput | null;
749
858
  createdAt?: ModelIntInput | null;
750
859
  updatedAt?: ModelIntInput | null;
751
860
  deletedAt?: ModelIntInput | null;
752
- updatedByUserId?: ModelIDInput | null;
753
- updatedByUserSessionId?: ModelIDInput | null;
754
- and?: Array<ModelInteractionWidgetUserSettingFilterInput | null> | null;
755
- or?: Array<ModelInteractionWidgetUserSettingFilterInput | null> | null;
756
- not?: ModelInteractionWidgetUserSettingFilterInput | null;
757
- };
758
-
759
- type InteractionEndpoint = {
760
- id: string;
761
- externalId: string;
762
- tenantId: string;
763
- widgetId: string;
764
- widget?: InteractionWidget | null;
765
- address: string;
766
- configuration?: string | null;
767
- sellPrice?: InteractionEndpointPriceDetails | null;
768
- documents?: Array<InteractionEndpointRegulatoryComplianceDocument | null> | null;
769
- createdAt: number;
770
- updatedAt: number;
771
- deletedAt?: number | null;
772
- };
773
- type InteractionEndpointPriceDetails = {
774
- currency: string;
775
- upfrontCost: number;
776
- monthlyCost: number;
777
- inboundCost: number;
778
- outboundCost: number;
779
- };
780
- type InteractionEndpointRegulatoryComplianceDocument = {
781
- fileName: string;
782
- documentType?: string | null;
783
- contentType?: string | null;
784
- file?: S3Object | null;
861
+ and?: Array<ModelTeamMemberFilterInput | null> | null;
862
+ or?: Array<ModelTeamMemberFilterInput | null> | null;
863
+ not?: ModelTeamMemberFilterInput | null;
785
864
  };
786
865
 
787
866
  type UserSession = {
@@ -1140,6 +1219,92 @@ type ModelInteractionFilterInput = {
1140
1219
  or?: Array<ModelInteractionFilterInput | null> | null;
1141
1220
  not?: ModelInteractionFilterInput | null;
1142
1221
  };
1222
+ type CreateInteractionHostInput = {
1223
+ id?: string | null;
1224
+ interactionId: string;
1225
+ entityId?: string | null;
1226
+ teamId?: string | null;
1227
+ userId?: string | null;
1228
+ createdAt: number;
1229
+ updatedAt: number;
1230
+ deletedAt?: number | null;
1231
+ };
1232
+ type UpdateInteractionHostInput = {
1233
+ id: string;
1234
+ interactionId?: string | null;
1235
+ entityId?: string | null;
1236
+ teamId?: string | null;
1237
+ userId?: string | null;
1238
+ createdAt?: number | null;
1239
+ updatedAt?: number | null;
1240
+ deletedAt?: number | null;
1241
+ };
1242
+ type ModelInteractionHostConditionInput = {
1243
+ interactionId?: ModelIDInput | null;
1244
+ entityId?: ModelIDInput | null;
1245
+ teamId?: ModelIDInput | null;
1246
+ userId?: ModelIDInput | null;
1247
+ createdAt?: ModelIntInput | null;
1248
+ updatedAt?: ModelIntInput | null;
1249
+ deletedAt?: ModelIntInput | null;
1250
+ and?: Array<ModelInteractionHostConditionInput | null> | null;
1251
+ or?: Array<ModelInteractionHostConditionInput | null> | null;
1252
+ not?: ModelInteractionHostConditionInput | null;
1253
+ };
1254
+ type ModelInteractionHostFilterInput = {
1255
+ id?: ModelIDInput | null;
1256
+ interactionId?: ModelIDInput | null;
1257
+ entityId?: ModelIDInput | null;
1258
+ teamId?: ModelIDInput | null;
1259
+ userId?: ModelIDInput | null;
1260
+ createdAt?: ModelIntInput | null;
1261
+ updatedAt?: ModelIntInput | null;
1262
+ deletedAt?: ModelIntInput | null;
1263
+ and?: Array<ModelInteractionHostFilterInput | null> | null;
1264
+ or?: Array<ModelInteractionHostFilterInput | null> | null;
1265
+ not?: ModelInteractionHostFilterInput | null;
1266
+ };
1267
+ type CreateInteractionInviteeInput = {
1268
+ id?: string | null;
1269
+ interactionId: string;
1270
+ entityId?: string | null;
1271
+ teamId?: string | null;
1272
+ userId?: string | null;
1273
+ isAdministrator: boolean;
1274
+ temp_expiringAt?: number | null;
1275
+ expiredAt?: number | null;
1276
+ createdAt: number;
1277
+ updatedAt: number;
1278
+ deletedAt?: number | null;
1279
+ };
1280
+ type UpdateInteractionInviteeInput = {
1281
+ id: string;
1282
+ interactionId?: string | null;
1283
+ entityId?: string | null;
1284
+ teamId?: string | null;
1285
+ userId?: string | null;
1286
+ isAdministrator?: boolean | null;
1287
+ temp_expiringAt?: number | null;
1288
+ expiredAt?: number | null;
1289
+ createdAt?: number | null;
1290
+ updatedAt?: number | null;
1291
+ deletedAt?: number | null;
1292
+ };
1293
+ type ModelInteractionInviteeConditionInput = {
1294
+ interactionId?: ModelIDInput | null;
1295
+ entityId?: ModelIDInput | null;
1296
+ teamId?: ModelIDInput | null;
1297
+ userId?: ModelIDInput | null;
1298
+ isAdministrator?: ModelBooleanInput | null;
1299
+ temp_expiringAt?: ModelIntInput | null;
1300
+ expiredAt?: ModelIntInput | null;
1301
+ createdAt?: ModelIntInput | null;
1302
+ updatedAt?: ModelIntInput | null;
1303
+ deletedAt?: ModelIntInput | null;
1304
+ and?: Array<ModelInteractionInviteeConditionInput | null> | null;
1305
+ or?: Array<ModelInteractionInviteeConditionInput | null> | null;
1306
+ not?: ModelInteractionInviteeConditionInput | null;
1307
+ };
1143
1308
  type ModelInteractionInviteeFilterInput = {
1144
1309
  id?: ModelIDInput | null;
1145
1310
  interactionId?: ModelIDInput | null;
@@ -1174,6 +1339,24 @@ type CreateInteractionAttendeeInput = {
1174
1339
  updatedAt: number;
1175
1340
  deletedAt?: number | null;
1176
1341
  };
1342
+ type UpdateInteractionAttendeeInput = {
1343
+ id: string;
1344
+ interactionId?: string | null;
1345
+ entityId?: string | null;
1346
+ interactionWidgetSessionId?: string | null;
1347
+ teamId?: string | null;
1348
+ userId?: string | null;
1349
+ userSessionId?: string | null;
1350
+ name?: string | null;
1351
+ metadata?: string | null;
1352
+ customFields?: Array<string | null> | null;
1353
+ isAdministrator?: boolean | null;
1354
+ joinedAt?: number | null;
1355
+ exitedAt?: number | null;
1356
+ createdAt?: number | null;
1357
+ updatedAt?: number | null;
1358
+ deletedAt?: number | null;
1359
+ };
1177
1360
  type ModelInteractionAttendeeConditionInput = {
1178
1361
  interactionId?: ModelIDInput | null;
1179
1362
  entityId?: ModelIDInput | null;
@@ -1445,6 +1628,136 @@ type ModelEntityConversationFilterInput = {
1445
1628
  not?: ModelEntityConversationFilterInput | null;
1446
1629
  };
1447
1630
 
1631
+ type TicketPriority = {
1632
+ id: string;
1633
+ externalId?: string | null;
1634
+ tenantId: string;
1635
+ teamId?: string | null;
1636
+ team?: Team | null;
1637
+ name: string;
1638
+ description?: string | null;
1639
+ colorCode?: string | null;
1640
+ createdAt: number;
1641
+ updatedAt: number;
1642
+ deletedAt?: number | null;
1643
+ };
1644
+ type TicketStatus = {
1645
+ id: string;
1646
+ externalId?: string | null;
1647
+ tenantId: string;
1648
+ teamId?: string | null;
1649
+ team?: Team | null;
1650
+ name: string;
1651
+ description?: string | null;
1652
+ percent?: number | null;
1653
+ colorCode?: string | null;
1654
+ createdAt: number;
1655
+ updatedAt: number;
1656
+ deletedAt?: number | null;
1657
+ };
1658
+ type TicketType = {
1659
+ id: string;
1660
+ externalId?: string | null;
1661
+ tenantId: string;
1662
+ teamId?: string | null;
1663
+ team?: Team | null;
1664
+ name: string;
1665
+ description?: string | null;
1666
+ colorCode?: string | null;
1667
+ createdAt: number;
1668
+ updatedAt: number;
1669
+ deletedAt?: number | null;
1670
+ };
1671
+ type ModelTicketPriorityConditionInput = {
1672
+ externalId?: ModelStringInput | null;
1673
+ tenantId?: ModelIDInput | null;
1674
+ teamId?: ModelIDInput | null;
1675
+ name?: ModelStringInput | null;
1676
+ description?: ModelStringInput | null;
1677
+ colorCode?: ModelStringInput | null;
1678
+ createdAt?: ModelIntInput | null;
1679
+ updatedAt?: ModelIntInput | null;
1680
+ deletedAt?: ModelIntInput | null;
1681
+ and?: Array<ModelTicketPriorityConditionInput | null> | null;
1682
+ or?: Array<ModelTicketPriorityConditionInput | null> | null;
1683
+ not?: ModelTicketPriorityConditionInput | null;
1684
+ };
1685
+ type ModelTicketPriorityFilterInput = {
1686
+ id?: ModelIDInput | null;
1687
+ externalId?: ModelStringInput | null;
1688
+ tenantId?: ModelIDInput | null;
1689
+ teamId?: ModelIDInput | null;
1690
+ name?: ModelStringInput | null;
1691
+ description?: ModelStringInput | null;
1692
+ colorCode?: ModelStringInput | null;
1693
+ createdAt?: ModelIntInput | null;
1694
+ updatedAt?: ModelIntInput | null;
1695
+ deletedAt?: ModelIntInput | null;
1696
+ and?: Array<ModelTicketPriorityFilterInput | null> | null;
1697
+ or?: Array<ModelTicketPriorityFilterInput | null> | null;
1698
+ not?: ModelTicketPriorityFilterInput | null;
1699
+ };
1700
+ type ModelTicketStatusConditionInput = {
1701
+ externalId?: ModelStringInput | null;
1702
+ tenantId?: ModelIDInput | null;
1703
+ teamId?: ModelIDInput | null;
1704
+ name?: ModelStringInput | null;
1705
+ description?: ModelStringInput | null;
1706
+ percent?: ModelIntInput | null;
1707
+ colorCode?: ModelStringInput | null;
1708
+ createdAt?: ModelIntInput | null;
1709
+ updatedAt?: ModelIntInput | null;
1710
+ deletedAt?: ModelIntInput | null;
1711
+ and?: Array<ModelTicketStatusConditionInput | null> | null;
1712
+ or?: Array<ModelTicketStatusConditionInput | null> | null;
1713
+ not?: ModelTicketStatusConditionInput | null;
1714
+ };
1715
+ type ModelTicketStatusFilterInput = {
1716
+ id?: ModelIDInput | null;
1717
+ externalId?: ModelStringInput | null;
1718
+ tenantId?: ModelIDInput | null;
1719
+ teamId?: ModelIDInput | null;
1720
+ name?: ModelStringInput | null;
1721
+ description?: ModelStringInput | null;
1722
+ percent?: ModelIntInput | null;
1723
+ colorCode?: ModelStringInput | null;
1724
+ createdAt?: ModelIntInput | null;
1725
+ updatedAt?: ModelIntInput | null;
1726
+ deletedAt?: ModelIntInput | null;
1727
+ and?: Array<ModelTicketStatusFilterInput | null> | null;
1728
+ or?: Array<ModelTicketStatusFilterInput | null> | null;
1729
+ not?: ModelTicketStatusFilterInput | null;
1730
+ };
1731
+ type ModelTicketTypeConditionInput = {
1732
+ externalId?: ModelStringInput | null;
1733
+ tenantId?: ModelIDInput | null;
1734
+ teamId?: ModelIDInput | null;
1735
+ name?: ModelStringInput | null;
1736
+ description?: ModelStringInput | null;
1737
+ colorCode?: ModelStringInput | null;
1738
+ createdAt?: ModelIntInput | null;
1739
+ updatedAt?: ModelIntInput | null;
1740
+ deletedAt?: ModelIntInput | null;
1741
+ and?: Array<ModelTicketTypeConditionInput | null> | null;
1742
+ or?: Array<ModelTicketTypeConditionInput | null> | null;
1743
+ not?: ModelTicketTypeConditionInput | null;
1744
+ };
1745
+ type ModelTicketTypeFilterInput = {
1746
+ id?: ModelIDInput | null;
1747
+ externalId?: ModelStringInput | null;
1748
+ tenantId?: ModelIDInput | null;
1749
+ teamId?: ModelIDInput | null;
1750
+ name?: ModelStringInput | null;
1751
+ description?: ModelStringInput | null;
1752
+ colorCode?: ModelStringInput | null;
1753
+ createdAt?: ModelIntInput | null;
1754
+ updatedAt?: ModelIntInput | null;
1755
+ deletedAt?: ModelIntInput | null;
1756
+ and?: Array<ModelTicketTypeFilterInput | null> | null;
1757
+ or?: Array<ModelTicketTypeFilterInput | null> | null;
1758
+ not?: ModelTicketTypeFilterInput | null;
1759
+ };
1760
+
1448
1761
  type __SubscriptionContainer$4 = {
1449
1762
  OnEntityConversationByTenantId: EntityConversation;
1450
1763
  };
@@ -1562,6 +1875,19 @@ declare class TenantService {
1562
1875
  static ɵprov: i0.ɵɵInjectableDeclaration<TenantService>;
1563
1876
  }
1564
1877
 
1878
+ declare const FIELDS_TICKET_PRIORITY: string;
1879
+ declare const FIELDS_TICKET_STATUS: string;
1880
+ declare const FIELDS_TICKET_TYPE: string;
1881
+ declare class TicketService {
1882
+ private readonly appSyncService;
1883
+ constructor(appSyncService: AppSyncHelperService);
1884
+ ListTicketPrioritiesByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelTicketPriorityFilterInput, limit?: number, nextToken?: string): Promise<List<TicketPriority>>;
1885
+ ListTicketStatusesByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelTicketStatusFilterInput, limit?: number, nextToken?: string): Promise<List<TicketStatus>>;
1886
+ ListTicketTypesByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelTicketTypeFilterInput, limit?: number, nextToken?: string): Promise<List<TicketType>>;
1887
+ static ɵfac: i0.ɵɵFactoryDeclaration<TicketService, never>;
1888
+ static ɵprov: i0.ɵɵInjectableDeclaration<TicketService>;
1889
+ }
1890
+
1565
1891
  type __SubscriptionContainer$1 = {
1566
1892
  OnUserSessionById: UserSession;
1567
1893
  };
@@ -1589,6 +1915,10 @@ declare class UserService {
1589
1915
  static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
1590
1916
  }
1591
1917
 
1918
+ declare class CleanDeep {
1919
+ static clean(obj: any): typeof obj;
1920
+ }
1921
+
1592
1922
  declare class CustomValidators {
1593
1923
  #private;
1594
1924
  /**
@@ -1614,9 +1944,5 @@ declare class CustomValidators {
1614
1944
  static trimLength(minLength: number): ValidatorFn;
1615
1945
  }
1616
1946
 
1617
- declare class CleanDeep {
1618
- static clean(obj: any): typeof obj;
1619
- }
1620
-
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 };
1947
+ 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_TICKET_PRIORITY, FIELDS_TICKET_STATUS, FIELDS_TICKET_TYPE, FIELDS_USER, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, TeamService, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
1948
+ export type { AmplifyConfig, Country, CountryCurrency, CreateEntityConversationInput, CreateEntityInput, CreateInteractionAttendeeInput, CreateInteractionHostInput, CreateInteractionInput, CreateInteractionInviteeInput, CreateInteractionMessageAttachmentInput, CreateInteractionMessageInput, CreateTeamInput, CreateTeamMemberInput, Entity, EntityContactPreferences, EntityConversation, EntityPreferences, EntityType, Interaction, InteractionAttendee, InteractionEndpoint, InteractionEndpointPriceDetails, InteractionEndpointRegulatoryComplianceDocument, InteractionHost, InteractionInvitee, InteractionMessage, InteractionMessageAttachment, InteractionRouteConfiguration, InteractionRouteConfigurationInput, InteractionWidget, InteractionWidgetUserSetting, Language, List, ModelBooleanInput, ModelEntityConditionInput, ModelEntityConversationConditionInput, ModelEntityConversationFilterInput, ModelEntityFilterInput, ModelEntityTypeConditionInput, ModelEntityTypeFilterInput, ModelIDInput, ModelIDKeyConditionInput, ModelIntInput, ModelIntKeyConditionInput, ModelInteractionAttendeeConditionInput, ModelInteractionAttendeeFilterInput, ModelInteractionChannelInput, ModelInteractionConditionInput, ModelInteractionContextInput, ModelInteractionDirectionInput, ModelInteractionFilterInput, ModelInteractionHostConditionInput, ModelInteractionHostFilterInput, ModelInteractionInviteeConditionInput, ModelInteractionInviteeFilterInput, ModelInteractionMessageAttachmentConditionInput, ModelInteractionMessageAttachmentFilterInput, ModelInteractionMessageConditionInput, ModelInteractionMessageFilterInput, ModelInteractionProviderInput, ModelInteractionStatusInput, ModelInteractionWidgetConditionInput, ModelInteractionWidgetFilterInput, ModelInteractionWidgetUserSettingFilterInput, ModelSizeInput, ModelStringInput, ModelStringKeyConditionInput, ModelTeamConditionInput, ModelTeamFilterInput, ModelTeamMemberConditionInput, ModelTeamMemberFilterInput, ModelTicketPriorityConditionInput, ModelTicketPriorityFilterInput, ModelTicketStatusConditionInput, ModelTicketStatusFilterInput, ModelTicketTypeConditionInput, ModelTicketTypeFilterInput, ModelUserSessionConditionInput, ModelUserSessionFilterInput, ModelUserStatusInput, OpenSearchHit, OpenSearchResponse, PhoneNumber, S3Config, S3Credentials, S3Object, SubscriptionResponse, Team, TeamMember, Tenant, TenantBillingInformation, TenantContactInformation, TenantPreferences, TenantSSOConfiguration, TenantSecurity, TicketPriority, TicketStatus, TicketType, UpdateEntityConversationInput, UpdateEntityInput, UpdateInteractionAttendeeInput, UpdateInteractionHostInput, UpdateInteractionInput, UpdateInteractionInviteeInput, UpdateTeamInput, UpdateTeamMemberInput, UpdateUserSessionInput, User, UserNotificationSettings, UserPreferences, UserSession };