@snugdesk/core 0.2.32 → 0.2.34
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/fesm2022/snugdesk-core.mjs +292 -107
- package/fesm2022/snugdesk-core.mjs.map +1 -1
- package/index.d.ts +786 -322
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -369,178 +369,6 @@ type ModelProcessingStatusInput = {
|
|
|
369
369
|
ne?: ProcessingStatus | null;
|
|
370
370
|
};
|
|
371
371
|
|
|
372
|
-
type Entity = {
|
|
373
|
-
id: string;
|
|
374
|
-
externalId?: string | null;
|
|
375
|
-
tenantId: string;
|
|
376
|
-
entityTypeId?: string | null;
|
|
377
|
-
entityType?: EntityType | null;
|
|
378
|
-
parentId?: string | null;
|
|
379
|
-
parent?: Entity | null;
|
|
380
|
-
name: string;
|
|
381
|
-
image?: S3Object | null;
|
|
382
|
-
email?: string | null;
|
|
383
|
-
phoneNumber?: PhoneNumber | null;
|
|
384
|
-
phoneNumberE164?: string | null;
|
|
385
|
-
isOrganization: boolean;
|
|
386
|
-
metadata?: string;
|
|
387
|
-
notes?: string | null;
|
|
388
|
-
customFields?: Array<string | null> | null;
|
|
389
|
-
preferences?: EntityPreferences | null;
|
|
390
|
-
contactPreferences?: EntityContactPreferences | null;
|
|
391
|
-
createdAt: number;
|
|
392
|
-
updatedAt: number;
|
|
393
|
-
blockedAt?: number | null;
|
|
394
|
-
deletedAt?: number | null;
|
|
395
|
-
updatedByUserId: string;
|
|
396
|
-
updatedByUserSessionId?: string | null;
|
|
397
|
-
};
|
|
398
|
-
type EntityType = {
|
|
399
|
-
id: string;
|
|
400
|
-
externalId?: string | null;
|
|
401
|
-
tenantId: string;
|
|
402
|
-
name: string;
|
|
403
|
-
description?: string | null;
|
|
404
|
-
image?: S3Object | null;
|
|
405
|
-
createdAt: number;
|
|
406
|
-
updatedAt: number;
|
|
407
|
-
deletedAt?: number | null;
|
|
408
|
-
entityFields?: Array<string | null> | null;
|
|
409
|
-
organizationFields?: Array<string | null> | null;
|
|
410
|
-
};
|
|
411
|
-
type EntityPreferences = {
|
|
412
|
-
timezoneName?: string | null;
|
|
413
|
-
language?: Language | null;
|
|
414
|
-
};
|
|
415
|
-
type EntityContactPreferences = {
|
|
416
|
-
allowCall?: boolean | null;
|
|
417
|
-
allowEmail?: boolean | null;
|
|
418
|
-
allowSMS?: boolean | null;
|
|
419
|
-
allowWhatsApp?: boolean | null;
|
|
420
|
-
};
|
|
421
|
-
type CreateEntityInput = {
|
|
422
|
-
id?: string | null;
|
|
423
|
-
externalId?: string | null;
|
|
424
|
-
tenantId: string;
|
|
425
|
-
entityTypeId?: string | null;
|
|
426
|
-
parentId?: string | null;
|
|
427
|
-
name: string;
|
|
428
|
-
image?: S3Object | null;
|
|
429
|
-
email?: string | null;
|
|
430
|
-
phoneNumber?: PhoneNumber | null;
|
|
431
|
-
phoneNumberE164?: string | null;
|
|
432
|
-
isOrganization: boolean;
|
|
433
|
-
notes?: string | null;
|
|
434
|
-
metadata?: Array<string | null> | null;
|
|
435
|
-
customFields?: Array<string | null> | null;
|
|
436
|
-
preferences?: EntityPreferences | null;
|
|
437
|
-
contactPreferences?: EntityContactPreferences | null;
|
|
438
|
-
createdAt: number;
|
|
439
|
-
updatedAt: number;
|
|
440
|
-
blockedAt?: number | null;
|
|
441
|
-
deletedAt?: number | null;
|
|
442
|
-
updatedByUserId: string;
|
|
443
|
-
updatedByUserSessionId?: string | null;
|
|
444
|
-
};
|
|
445
|
-
type UpdateEntityInput = {
|
|
446
|
-
id: string;
|
|
447
|
-
externalId?: string | null;
|
|
448
|
-
tenantId?: string | null;
|
|
449
|
-
entityTypeId?: string | null;
|
|
450
|
-
parentId?: string | null;
|
|
451
|
-
name?: string | null;
|
|
452
|
-
image?: S3Object | null;
|
|
453
|
-
email?: string | null;
|
|
454
|
-
phoneNumber?: PhoneNumber | null;
|
|
455
|
-
phoneNumberE164?: string | null;
|
|
456
|
-
isOrganization?: boolean | null;
|
|
457
|
-
notes?: string | null;
|
|
458
|
-
metadata?: Array<string | null> | null;
|
|
459
|
-
customFields?: Array<string | null> | null;
|
|
460
|
-
preferences?: EntityPreferences | null;
|
|
461
|
-
contactPreferences?: EntityContactPreferences | null;
|
|
462
|
-
createdAt?: number | null;
|
|
463
|
-
updatedAt: number;
|
|
464
|
-
blockedAt?: number | null;
|
|
465
|
-
deletedAt?: number | null;
|
|
466
|
-
updatedByUserId?: string | null;
|
|
467
|
-
updatedByUserSessionId?: string | null;
|
|
468
|
-
};
|
|
469
|
-
type ModelEntityConditionInput = {
|
|
470
|
-
externalId?: ModelStringInput | null;
|
|
471
|
-
tenantId?: ModelIDInput | null;
|
|
472
|
-
entityTypeId?: ModelIDInput | null;
|
|
473
|
-
parentId?: ModelIDInput | null;
|
|
474
|
-
name?: ModelStringInput | null;
|
|
475
|
-
email?: ModelStringInput | null;
|
|
476
|
-
phoneNumberE164?: ModelStringInput | null;
|
|
477
|
-
isOrganization?: ModelBooleanInput | null;
|
|
478
|
-
notes?: ModelStringInput | null;
|
|
479
|
-
metadata?: ModelStringInput | null;
|
|
480
|
-
customFields?: ModelStringInput | null;
|
|
481
|
-
createdAt?: ModelIntInput | null;
|
|
482
|
-
updatedAt?: ModelIntInput | null;
|
|
483
|
-
blockedAt?: ModelIntInput | null;
|
|
484
|
-
deletedAt?: ModelIntInput | null;
|
|
485
|
-
updatedByUserId?: ModelIDInput | null;
|
|
486
|
-
updatedByUserSessionId?: ModelIDInput | null;
|
|
487
|
-
and?: Array<ModelEntityConditionInput | null> | null;
|
|
488
|
-
or?: Array<ModelEntityConditionInput | null> | null;
|
|
489
|
-
not?: ModelEntityConditionInput | null;
|
|
490
|
-
};
|
|
491
|
-
type ModelEntityFilterInput = {
|
|
492
|
-
id?: ModelIDInput | null;
|
|
493
|
-
externalId?: ModelStringInput | null;
|
|
494
|
-
tenantId?: ModelIDInput | null;
|
|
495
|
-
entityTypeId?: ModelIDInput | null;
|
|
496
|
-
parentId?: ModelIDInput | null;
|
|
497
|
-
name?: ModelStringInput | null;
|
|
498
|
-
email?: ModelStringInput | null;
|
|
499
|
-
phoneNumberE164?: ModelStringInput | null;
|
|
500
|
-
isOrganization?: ModelBooleanInput | null;
|
|
501
|
-
notes?: ModelStringInput | null;
|
|
502
|
-
metadata?: ModelStringInput | null;
|
|
503
|
-
customFields?: ModelStringInput | null;
|
|
504
|
-
createdAt?: ModelIntInput | null;
|
|
505
|
-
updatedAt?: ModelIntInput | null;
|
|
506
|
-
blockedAt?: ModelIntInput | null;
|
|
507
|
-
deletedAt?: ModelIntInput | null;
|
|
508
|
-
updatedByUserId?: ModelIDInput | null;
|
|
509
|
-
updatedByUserSessionId?: ModelIDInput | null;
|
|
510
|
-
and?: Array<ModelEntityFilterInput | null> | null;
|
|
511
|
-
or?: Array<ModelEntityFilterInput | null> | null;
|
|
512
|
-
not?: ModelEntityFilterInput | null;
|
|
513
|
-
};
|
|
514
|
-
type ModelEntityTypeConditionInput = {
|
|
515
|
-
externalId?: ModelStringInput | null;
|
|
516
|
-
tenantId?: ModelIDInput | null;
|
|
517
|
-
name?: ModelStringInput | null;
|
|
518
|
-
description?: ModelStringInput | null;
|
|
519
|
-
createdAt?: ModelIntInput | null;
|
|
520
|
-
updatedAt?: ModelIntInput | null;
|
|
521
|
-
deletedAt?: ModelIntInput | null;
|
|
522
|
-
entityFields?: ModelStringInput | null;
|
|
523
|
-
organizationFields?: ModelStringInput | null;
|
|
524
|
-
and?: Array<ModelEntityTypeConditionInput | null> | null;
|
|
525
|
-
or?: Array<ModelEntityTypeConditionInput | null> | null;
|
|
526
|
-
not?: ModelEntityTypeConditionInput | null;
|
|
527
|
-
};
|
|
528
|
-
type ModelEntityTypeFilterInput = {
|
|
529
|
-
id?: ModelIDInput | null;
|
|
530
|
-
externalId?: ModelStringInput | null;
|
|
531
|
-
tenantId?: ModelIDInput | null;
|
|
532
|
-
name?: ModelStringInput | null;
|
|
533
|
-
description?: ModelStringInput | null;
|
|
534
|
-
createdAt?: ModelIntInput | null;
|
|
535
|
-
updatedAt?: ModelIntInput | null;
|
|
536
|
-
deletedAt?: ModelIntInput | null;
|
|
537
|
-
entityFields?: ModelStringInput | null;
|
|
538
|
-
organizationFields?: ModelStringInput | null;
|
|
539
|
-
and?: Array<ModelEntityTypeFilterInput | null> | null;
|
|
540
|
-
or?: Array<ModelEntityTypeFilterInput | null> | null;
|
|
541
|
-
not?: ModelEntityTypeFilterInput | null;
|
|
542
|
-
};
|
|
543
|
-
|
|
544
372
|
declare enum TenantComplianceDocumentStatus {
|
|
545
373
|
ACTIVE = "ACTIVE",
|
|
546
374
|
EXPIRED = "EXPIRED",
|
|
@@ -606,6 +434,8 @@ type TenantBillingInformation = {
|
|
|
606
434
|
country?: Country | null;
|
|
607
435
|
companyIdentificationNumber?: string | null;
|
|
608
436
|
taxIdentificationNumber?: string | null;
|
|
437
|
+
billingEmail?: string | null;
|
|
438
|
+
website?: string | null;
|
|
609
439
|
};
|
|
610
440
|
type TenantContactInformation = {
|
|
611
441
|
name: string;
|
|
@@ -754,34 +584,667 @@ type ModelTenantComplianceDocumentConditionInput = {
|
|
|
754
584
|
or?: Array<ModelTenantComplianceDocumentConditionInput | null> | null;
|
|
755
585
|
not?: ModelTenantComplianceDocumentConditionInput | null;
|
|
756
586
|
};
|
|
757
|
-
type ModelTenantComplianceDocumentFilterInput = {
|
|
587
|
+
type ModelTenantComplianceDocumentFilterInput = {
|
|
588
|
+
id?: ModelIDInput | null;
|
|
589
|
+
tenantId?: ModelIDInput | null;
|
|
590
|
+
documentName?: ModelStringInput | null;
|
|
591
|
+
documentType?: ModelTenantComplianceDocumentTypeInput | null;
|
|
592
|
+
documentNumber?: ModelStringInput | null;
|
|
593
|
+
legalEntityName?: ModelStringInput | null;
|
|
594
|
+
issuedBy?: ModelStringInput | null;
|
|
595
|
+
issueDate?: ModelIntInput | null;
|
|
596
|
+
expiryDate?: ModelIntInput | null;
|
|
597
|
+
status?: ModelTenantComplianceDocumentStatusInput | null;
|
|
598
|
+
notes?: ModelStringInput | null;
|
|
599
|
+
createdAt?: ModelIntInput | null;
|
|
600
|
+
updatedAt?: ModelIntInput | null;
|
|
601
|
+
deletedAt?: ModelIntInput | null;
|
|
602
|
+
updatedByUserId?: ModelIDInput | null;
|
|
603
|
+
updatedByUserSessionId?: ModelIDInput | null;
|
|
604
|
+
and?: Array<ModelTenantComplianceDocumentFilterInput | null> | null;
|
|
605
|
+
or?: Array<ModelTenantComplianceDocumentFilterInput | null> | null;
|
|
606
|
+
not?: ModelTenantComplianceDocumentFilterInput | null;
|
|
607
|
+
};
|
|
608
|
+
type ModelTenantComplianceDocumentTypeInput = {
|
|
609
|
+
eq?: TenantComplianceDocumentType | null;
|
|
610
|
+
ne?: TenantComplianceDocumentType | null;
|
|
611
|
+
};
|
|
612
|
+
type ModelTenantComplianceDocumentStatusInput = {
|
|
613
|
+
eq?: TenantComplianceDocumentStatus | null;
|
|
614
|
+
ne?: TenantComplianceDocumentStatus | null;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Billing platform models (Stage 1) — mirrors the Amplify schema Billing* types.
|
|
619
|
+
* Conventions: micros & timestamps are `number`; AWSJSON is `string | null`.
|
|
620
|
+
* Reference: SNUGDESK_BILLING_PLATFORM_DESIGN.md v2.3.
|
|
621
|
+
*/
|
|
622
|
+
|
|
623
|
+
declare enum BillingAccountStatus {
|
|
624
|
+
PENDING_KYC = "PENDING_KYC",
|
|
625
|
+
ACTIVE = "ACTIVE",
|
|
626
|
+
NO_BALANCE = "NO_BALANCE",
|
|
627
|
+
BLOCKED = "BLOCKED",
|
|
628
|
+
TERMINATED = "TERMINATED"
|
|
629
|
+
}
|
|
630
|
+
declare enum BillingLedgerDirection {
|
|
631
|
+
DEBIT = "DEBIT",
|
|
632
|
+
CREDIT = "CREDIT"
|
|
633
|
+
}
|
|
634
|
+
declare enum BillingCreditClass {
|
|
635
|
+
PAID = "PAID",
|
|
636
|
+
PROMO = "PROMO",
|
|
637
|
+
GOODWILL = "GOODWILL"
|
|
638
|
+
}
|
|
639
|
+
declare enum BillingLedgerEntryType {
|
|
640
|
+
TOPUP = "TOPUP",
|
|
641
|
+
USAGE_CHARGE = "USAGE_CHARGE",
|
|
642
|
+
SUBSCRIPTION_CHARGE = "SUBSCRIPTION_CHARGE",
|
|
643
|
+
REFUND = "REFUND",
|
|
644
|
+
ADJUSTMENT = "ADJUSTMENT",
|
|
645
|
+
CREDIT_NOTE = "CREDIT_NOTE",
|
|
646
|
+
REVERSAL = "REVERSAL",
|
|
647
|
+
RESERVATION = "RESERVATION",
|
|
648
|
+
RESERVATION_RELEASE = "RESERVATION_RELEASE",
|
|
649
|
+
WRITEOFF = "WRITEOFF",
|
|
650
|
+
FX_NOTE = "FX_NOTE"
|
|
651
|
+
}
|
|
652
|
+
declare enum BillingEntityStatus {
|
|
653
|
+
ACTIVE = "ACTIVE",
|
|
654
|
+
INACTIVE = "INACTIVE",
|
|
655
|
+
RETIRED = "RETIRED"
|
|
656
|
+
}
|
|
657
|
+
declare enum BillingPriceBookType {
|
|
658
|
+
DEFAULT_RETAIL = "DEFAULT_RETAIL",
|
|
659
|
+
CONTRACT = "CONTRACT",
|
|
660
|
+
PROMO = "PROMO"
|
|
661
|
+
}
|
|
662
|
+
declare enum BillingPricingType {
|
|
663
|
+
FLAT = "FLAT",
|
|
664
|
+
TIERED_VOLUME = "TIERED_VOLUME",
|
|
665
|
+
TIERED_GRADUATED = "TIERED_GRADUATED"
|
|
666
|
+
}
|
|
667
|
+
declare enum BillingPeriodType {
|
|
668
|
+
MONTHLY = "MONTHLY",
|
|
669
|
+
ANNUAL = "ANNUAL"
|
|
670
|
+
}
|
|
671
|
+
declare enum BillingSubscriptionStatus {
|
|
672
|
+
TRIALING = "TRIALING",
|
|
673
|
+
ACTIVE = "ACTIVE",
|
|
674
|
+
PAST_DUE = "PAST_DUE",
|
|
675
|
+
SUSPENDED = "SUSPENDED",
|
|
676
|
+
CANCELLED = "CANCELLED"
|
|
677
|
+
}
|
|
678
|
+
declare enum BillingRatingStatus {
|
|
679
|
+
PENDING = "PENDING",
|
|
680
|
+
RATED = "RATED",
|
|
681
|
+
UNRATABLE = "UNRATABLE",
|
|
682
|
+
ZERO_RATED = "ZERO_RATED"
|
|
683
|
+
}
|
|
684
|
+
declare enum BillingChargeStatus {
|
|
685
|
+
WALLET_DEBITED = "WALLET_DEBITED",
|
|
686
|
+
ACCRUED = "ACCRUED",
|
|
687
|
+
INCLUDED = "INCLUDED",
|
|
688
|
+
FAILED_NSF = "FAILED_NSF"
|
|
689
|
+
}
|
|
690
|
+
declare enum BillingInvoiceType {
|
|
691
|
+
SUBSCRIPTION = "SUBSCRIPTION",
|
|
692
|
+
USAGE = "USAGE",
|
|
693
|
+
TOPUP_RECEIPT = "TOPUP_RECEIPT",
|
|
694
|
+
CREDIT_NOTE = "CREDIT_NOTE"
|
|
695
|
+
}
|
|
696
|
+
declare enum BillingInvoiceStatus {
|
|
697
|
+
DRAFT = "DRAFT",
|
|
698
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
699
|
+
ISSUED = "ISSUED",
|
|
700
|
+
PAID = "PAID",
|
|
701
|
+
VOID = "VOID"
|
|
702
|
+
}
|
|
703
|
+
declare enum BillingTaxTreatment {
|
|
704
|
+
STANDARD = "STANDARD",
|
|
705
|
+
ZERO_RATED_EXPORT = "ZERO_RATED_EXPORT",
|
|
706
|
+
NOT_REGISTERED = "NOT_REGISTERED",
|
|
707
|
+
OUT_OF_SCOPE = "OUT_OF_SCOPE"
|
|
708
|
+
}
|
|
709
|
+
declare enum BillingPaymentPurpose {
|
|
710
|
+
TOPUP = "TOPUP",
|
|
711
|
+
AUTO_TOPUP = "AUTO_TOPUP",
|
|
712
|
+
MANUAL = "MANUAL"
|
|
713
|
+
}
|
|
714
|
+
declare enum BillingPaymentRail {
|
|
715
|
+
CARD = "CARD",
|
|
716
|
+
BANK_TRANSFER = "BANK_TRANSFER",
|
|
717
|
+
MANUAL = "MANUAL"
|
|
718
|
+
}
|
|
719
|
+
declare enum BillingPaymentDirection {
|
|
720
|
+
CHARGE = "CHARGE",
|
|
721
|
+
REFUND = "REFUND"
|
|
722
|
+
}
|
|
723
|
+
declare enum BillingPaymentStatus {
|
|
724
|
+
REQUIRES_ACTION = "REQUIRES_ACTION",
|
|
725
|
+
PROCESSING = "PROCESSING",
|
|
726
|
+
SUCCEEDED = "SUCCEEDED",
|
|
727
|
+
FAILED = "FAILED",
|
|
728
|
+
EXPIRED = "EXPIRED",
|
|
729
|
+
DISPUTED = "DISPUTED",
|
|
730
|
+
REFUNDED = "REFUNDED"
|
|
731
|
+
}
|
|
732
|
+
declare enum BillingPaymentMethodStatus {
|
|
733
|
+
ACTIVE = "ACTIVE",
|
|
734
|
+
DETACHED = "DETACHED",
|
|
735
|
+
EXPIRED = "EXPIRED"
|
|
736
|
+
}
|
|
737
|
+
declare enum BillingReceiptMatchStatus {
|
|
738
|
+
AUTO_MATCHED = "AUTO_MATCHED",
|
|
739
|
+
UNMATCHED = "UNMATCHED",
|
|
740
|
+
MANUALLY_MATCHED = "MANUALLY_MATCHED",
|
|
741
|
+
REFUND_REQUIRED = "REFUND_REQUIRED"
|
|
742
|
+
}
|
|
743
|
+
declare enum BillingAdminActionType {
|
|
744
|
+
MANUAL_CREDIT = "MANUAL_CREDIT",
|
|
745
|
+
MANUAL_DEBIT = "MANUAL_DEBIT",
|
|
746
|
+
REFUND = "REFUND",
|
|
747
|
+
WRITEOFF = "WRITEOFF",
|
|
748
|
+
RATE_OVERRIDE = "RATE_OVERRIDE",
|
|
749
|
+
BALANCE_ADJUST = "BALANCE_ADJUST",
|
|
750
|
+
CONFIG_CHANGE = "CONFIG_CHANGE",
|
|
751
|
+
PERIOD_LOCK = "PERIOD_LOCK",
|
|
752
|
+
RERATE_PERIOD = "RERATE_PERIOD"
|
|
753
|
+
}
|
|
754
|
+
declare enum BillingAdminActionStatus {
|
|
755
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
756
|
+
APPROVED = "APPROVED",
|
|
757
|
+
EXECUTED = "EXECUTED",
|
|
758
|
+
REJECTED = "REJECTED",
|
|
759
|
+
EXPIRED = "EXPIRED"
|
|
760
|
+
}
|
|
761
|
+
declare enum BillingKycCaseType {
|
|
762
|
+
ONBOARDING = "ONBOARDING",
|
|
763
|
+
RE_KYC = "RE_KYC"
|
|
764
|
+
}
|
|
765
|
+
declare enum BillingKycCaseStatus {
|
|
766
|
+
PENDING_SUBMISSION = "PENDING_SUBMISSION",
|
|
767
|
+
SUBMITTED = "SUBMITTED",
|
|
768
|
+
IN_REVIEW = "IN_REVIEW",
|
|
769
|
+
AUTO_APPROVED = "AUTO_APPROVED",
|
|
770
|
+
APPROVED = "APPROVED",
|
|
771
|
+
REJECTED = "REJECTED",
|
|
772
|
+
NEEDS_MORE_INFO = "NEEDS_MORE_INFO",
|
|
773
|
+
EXPIRED = "EXPIRED"
|
|
774
|
+
}
|
|
775
|
+
type BillingAccount = {
|
|
776
|
+
id: string;
|
|
777
|
+
tenantId: string;
|
|
778
|
+
accountStatus: BillingAccountStatus;
|
|
779
|
+
blockReason?: string | null;
|
|
780
|
+
profile?: TenantBillingInformation | null;
|
|
781
|
+
contractPriceBookId?: string | null;
|
|
782
|
+
gatewayCustomerId?: string | null;
|
|
783
|
+
bankTransferCode?: string | null;
|
|
784
|
+
createdAt: number;
|
|
785
|
+
updatedAt: number;
|
|
786
|
+
updatedByUserId?: string | null;
|
|
787
|
+
};
|
|
788
|
+
type BillingWalletBalance = {
|
|
789
|
+
billingAccountId: string;
|
|
790
|
+
balanceMicros: number;
|
|
791
|
+
reservedMicros: number;
|
|
792
|
+
paidCreditMicros?: number | null;
|
|
793
|
+
promoCreditMicros?: number | null;
|
|
794
|
+
version: number;
|
|
795
|
+
lastLedgerSeq?: string | null;
|
|
796
|
+
lowBalanceThresholdMicros?: number | null;
|
|
797
|
+
autoTopupConfig?: string | null;
|
|
798
|
+
updatedAt: number;
|
|
799
|
+
};
|
|
800
|
+
type BillingLedgerEntry = {
|
|
801
|
+
billingAccountId: string;
|
|
802
|
+
sk: string;
|
|
803
|
+
entryId: string;
|
|
804
|
+
txnId: string;
|
|
805
|
+
idempotencyKey: string;
|
|
806
|
+
direction: BillingLedgerDirection;
|
|
807
|
+
account: string;
|
|
808
|
+
amountMicros: number;
|
|
809
|
+
balanceAfterMicros?: number | null;
|
|
810
|
+
creditClass?: BillingCreditClass | null;
|
|
811
|
+
entryType: BillingLedgerEntryType;
|
|
812
|
+
refType?: string | null;
|
|
813
|
+
refId?: string | null;
|
|
814
|
+
description?: string | null;
|
|
815
|
+
metadata?: string | null;
|
|
816
|
+
createdAt: number;
|
|
817
|
+
createdBy: string;
|
|
818
|
+
approvedBy?: string | null;
|
|
819
|
+
entryHash: string;
|
|
820
|
+
prevHash: string;
|
|
821
|
+
};
|
|
822
|
+
type BillingIdempotencyKey = {
|
|
823
|
+
idemKey: string;
|
|
824
|
+
scope?: string | null;
|
|
825
|
+
resultRef?: string | null;
|
|
826
|
+
expiresAt?: number | null;
|
|
827
|
+
};
|
|
828
|
+
type BillingProduct = {
|
|
829
|
+
id: string;
|
|
830
|
+
productCode: string;
|
|
831
|
+
name: string;
|
|
832
|
+
unit: string;
|
|
833
|
+
meterConfig?: string | null;
|
|
834
|
+
taxCategory?: string | null;
|
|
835
|
+
productStatus?: BillingEntityStatus | null;
|
|
836
|
+
effectiveFrom?: number | null;
|
|
837
|
+
effectiveTo?: number | null;
|
|
838
|
+
};
|
|
839
|
+
type BillingPriceBook = {
|
|
840
|
+
id: string;
|
|
841
|
+
name: string;
|
|
842
|
+
bookType: BillingPriceBookType;
|
|
843
|
+
bookStatus?: BillingEntityStatus | null;
|
|
844
|
+
effectiveFrom?: number | null;
|
|
845
|
+
effectiveTo?: number | null;
|
|
846
|
+
};
|
|
847
|
+
type BillingRateCard = {
|
|
848
|
+
priceBookId: string;
|
|
849
|
+
sk: string;
|
|
850
|
+
productCode: string;
|
|
851
|
+
dimensionKey: string;
|
|
852
|
+
pricingType: BillingPricingType;
|
|
853
|
+
unitPriceMicros?: number | null;
|
|
854
|
+
tiers?: string | null;
|
|
855
|
+
minChargeMicros?: number | null;
|
|
856
|
+
incrementOverride?: string | null;
|
|
857
|
+
buyPriceMicros?: number | null;
|
|
858
|
+
fxCapture?: string | null;
|
|
859
|
+
effectiveFrom: number;
|
|
860
|
+
effectiveTo?: number | null;
|
|
861
|
+
};
|
|
862
|
+
type BillingPlanDefinition = {
|
|
863
|
+
id: string;
|
|
864
|
+
version: string;
|
|
865
|
+
name: string;
|
|
866
|
+
billingPeriod: BillingPeriodType;
|
|
867
|
+
baseFeeMicros?: number | null;
|
|
868
|
+
perSeatFeeMicros?: number | null;
|
|
869
|
+
includedAllowances?: string | null;
|
|
870
|
+
featureFlags?: string | null;
|
|
871
|
+
trialDays?: number | null;
|
|
872
|
+
planStatus?: BillingEntityStatus | null;
|
|
873
|
+
};
|
|
874
|
+
type BillingSubscription = {
|
|
875
|
+
billingAccountId: string;
|
|
876
|
+
sk: string;
|
|
877
|
+
planId: string;
|
|
878
|
+
planVersion: string;
|
|
879
|
+
seats: number;
|
|
880
|
+
subStatus: BillingSubscriptionStatus;
|
|
881
|
+
currentPeriodStart?: number | null;
|
|
882
|
+
currentPeriodEnd?: number | null;
|
|
883
|
+
cancelAtPeriodEnd?: boolean | null;
|
|
884
|
+
allowanceUsage?: string | null;
|
|
885
|
+
createdAt: number;
|
|
886
|
+
updatedAt: number;
|
|
887
|
+
};
|
|
888
|
+
type BillingUsageEvent = {
|
|
889
|
+
billingAccountId: string;
|
|
890
|
+
sk: string;
|
|
891
|
+
eventId: string;
|
|
892
|
+
tenantId: string;
|
|
893
|
+
productCode: string;
|
|
894
|
+
quantity: number;
|
|
895
|
+
rawUnit?: string | null;
|
|
896
|
+
dimensions?: string | null;
|
|
897
|
+
sourceService?: string | null;
|
|
898
|
+
sourceRef?: string | null;
|
|
899
|
+
buyCostHint?: string | null;
|
|
900
|
+
occurredAt: number;
|
|
901
|
+
receivedAt: number;
|
|
902
|
+
ratingStatus: BillingRatingStatus;
|
|
903
|
+
};
|
|
904
|
+
type BillingRatedCharge = {
|
|
905
|
+
billingAccountId: string;
|
|
906
|
+
sk: string;
|
|
907
|
+
tenantId: string;
|
|
908
|
+
period: string;
|
|
909
|
+
usageEventId?: string | null;
|
|
910
|
+
productCode: string;
|
|
911
|
+
quantity: number;
|
|
912
|
+
rateCardRef?: string | null;
|
|
913
|
+
grossMicros: number;
|
|
914
|
+
allowanceAppliedMicros?: number | null;
|
|
915
|
+
netMicros: number;
|
|
916
|
+
marginMicros?: number | null;
|
|
917
|
+
chargeStatus: BillingChargeStatus;
|
|
918
|
+
ledgerTxnId?: string | null;
|
|
919
|
+
invoiceId?: string | null;
|
|
920
|
+
createdAt: number;
|
|
921
|
+
};
|
|
922
|
+
type BillingInvoice = {
|
|
923
|
+
id: string;
|
|
924
|
+
invoiceNumber?: string | null;
|
|
925
|
+
billingAccountId: string;
|
|
926
|
+
periodStart?: number | null;
|
|
927
|
+
periodEnd: number;
|
|
928
|
+
invoiceType: BillingInvoiceType;
|
|
929
|
+
invoiceStatus: BillingInvoiceStatus;
|
|
930
|
+
profileSnapshot?: TenantBillingInformation | null;
|
|
931
|
+
subtotalMicros?: number | null;
|
|
932
|
+
taxMicros?: number | null;
|
|
933
|
+
totalMicros?: number | null;
|
|
934
|
+
taxTreatment?: BillingTaxTreatment | null;
|
|
935
|
+
fxDisplay?: string | null;
|
|
936
|
+
pdfKey?: string | null;
|
|
937
|
+
peppolPayloadKey?: string | null;
|
|
938
|
+
itemizedCsvKey?: string | null;
|
|
939
|
+
dueAt?: number | null;
|
|
940
|
+
issuedAt?: number | null;
|
|
941
|
+
paidAt?: number | null;
|
|
942
|
+
createdAt: number;
|
|
943
|
+
updatedAt: number;
|
|
944
|
+
};
|
|
945
|
+
type BillingInvoiceLine = {
|
|
946
|
+
invoiceId: string;
|
|
947
|
+
sk: string;
|
|
948
|
+
productCode?: string | null;
|
|
949
|
+
description?: string | null;
|
|
950
|
+
quantity?: number | null;
|
|
951
|
+
unitPriceMicros?: number | null;
|
|
952
|
+
amountMicros: number;
|
|
953
|
+
taxCode?: string | null;
|
|
954
|
+
sourceChargeCount?: number | null;
|
|
955
|
+
tenantId?: string | null;
|
|
956
|
+
};
|
|
957
|
+
type BillingPayment = {
|
|
958
|
+
id: string;
|
|
959
|
+
billingAccountId: string;
|
|
960
|
+
rail: BillingPaymentRail;
|
|
961
|
+
provider?: string | null;
|
|
962
|
+
direction: BillingPaymentDirection;
|
|
963
|
+
purpose?: BillingPaymentPurpose | null;
|
|
964
|
+
amountMicros: number;
|
|
965
|
+
payerCurrency?: string | null;
|
|
966
|
+
payerAmountMinor?: number | null;
|
|
967
|
+
fxRateMicros?: number | null;
|
|
968
|
+
paymentStatus: BillingPaymentStatus;
|
|
969
|
+
gatewayRefs?: string | null;
|
|
970
|
+
feeMicros?: number | null;
|
|
971
|
+
failureCode?: string | null;
|
|
972
|
+
ledgerTxnId?: string | null;
|
|
973
|
+
idempotencyKey?: string | null;
|
|
974
|
+
createdAt: number;
|
|
975
|
+
updatedAt: number;
|
|
976
|
+
};
|
|
977
|
+
type BillingPaymentMethod = {
|
|
978
|
+
billingAccountId: string;
|
|
979
|
+
sk: string;
|
|
980
|
+
gatewayPaymentMethodId: string;
|
|
981
|
+
displayBrand?: string | null;
|
|
982
|
+
displayLast4?: string | null;
|
|
983
|
+
displayExpMonth?: number | null;
|
|
984
|
+
displayExpYear?: number | null;
|
|
985
|
+
isDefault?: boolean | null;
|
|
986
|
+
methodStatus?: BillingPaymentMethodStatus | null;
|
|
987
|
+
billingAddress?: string | null;
|
|
988
|
+
createdAt: number;
|
|
989
|
+
};
|
|
990
|
+
type BillingBankReceipt = {
|
|
991
|
+
id: string;
|
|
992
|
+
amountMicros: number;
|
|
993
|
+
payerName?: string | null;
|
|
994
|
+
payerBank?: string | null;
|
|
995
|
+
referenceText?: string | null;
|
|
996
|
+
matchStatus: BillingReceiptMatchStatus;
|
|
997
|
+
receivedAt: number;
|
|
998
|
+
provider?: string | null;
|
|
999
|
+
matchedBillingAccountId?: string | null;
|
|
1000
|
+
matchedBy?: string | null;
|
|
1001
|
+
matchedAt?: number | null;
|
|
1002
|
+
ledgerTxnId?: string | null;
|
|
1003
|
+
};
|
|
1004
|
+
type BillingAdminAction = {
|
|
1005
|
+
id: string;
|
|
1006
|
+
actionType: BillingAdminActionType;
|
|
1007
|
+
payload?: string | null;
|
|
1008
|
+
makerUserId: string;
|
|
1009
|
+
makerAt: number;
|
|
1010
|
+
checkerUserId?: string | null;
|
|
1011
|
+
checkerAt?: number | null;
|
|
1012
|
+
actionStatus: BillingAdminActionStatus;
|
|
1013
|
+
ledgerTxnId?: string | null;
|
|
1014
|
+
reason?: string | null;
|
|
1015
|
+
};
|
|
1016
|
+
type BillingTaxRule = {
|
|
1017
|
+
jurisdiction: string;
|
|
1018
|
+
sk: string;
|
|
1019
|
+
rateBps: number;
|
|
1020
|
+
treatment: BillingTaxTreatment;
|
|
1021
|
+
f5Box?: string | null;
|
|
1022
|
+
invoiceWording?: string | null;
|
|
1023
|
+
notes?: string | null;
|
|
1024
|
+
};
|
|
1025
|
+
type BillingFxRate = {
|
|
1026
|
+
pair: string;
|
|
1027
|
+
fetchedAt: number;
|
|
1028
|
+
midRateMicros: number;
|
|
1029
|
+
source: string;
|
|
1030
|
+
providerPayloadRef?: string | null;
|
|
1031
|
+
};
|
|
1032
|
+
type BillingAuditLog = {
|
|
1033
|
+
id: string;
|
|
1034
|
+
objectRef: string;
|
|
1035
|
+
actorUserId: string;
|
|
1036
|
+
action: string;
|
|
1037
|
+
before?: string | null;
|
|
1038
|
+
after?: string | null;
|
|
1039
|
+
requestId?: string | null;
|
|
1040
|
+
sourceIp?: string | null;
|
|
1041
|
+
createdAt: number;
|
|
1042
|
+
};
|
|
1043
|
+
type BillingPlatformConfig = {
|
|
1044
|
+
configKey: string;
|
|
1045
|
+
value?: string | null;
|
|
1046
|
+
valueType?: string | null;
|
|
1047
|
+
notes?: string | null;
|
|
1048
|
+
updatedBy?: string | null;
|
|
1049
|
+
updatedAt?: number | null;
|
|
1050
|
+
version?: number | null;
|
|
1051
|
+
};
|
|
1052
|
+
type BillingKycCase = {
|
|
1053
|
+
id: string;
|
|
1054
|
+
billingAccountId: string;
|
|
1055
|
+
tenantId: string;
|
|
1056
|
+
caseType: BillingKycCaseType;
|
|
1057
|
+
caseStatus: BillingKycCaseStatus;
|
|
1058
|
+
submittedAt?: number | null;
|
|
1059
|
+
declaredProfile?: TenantBillingInformation | null;
|
|
1060
|
+
documents?: string | null;
|
|
1061
|
+
checks?: string | null;
|
|
1062
|
+
riskScore?: number | null;
|
|
1063
|
+
riskFactors?: string | null;
|
|
1064
|
+
decision?: string | null;
|
|
1065
|
+
slaDueAt?: number | null;
|
|
1066
|
+
createdAt: number;
|
|
1067
|
+
updatedAt: number;
|
|
1068
|
+
};
|
|
1069
|
+
type TenantBillingSnapshot = {
|
|
1070
|
+
id: string;
|
|
1071
|
+
billingAccountId: string;
|
|
1072
|
+
balanceMicros?: number | null;
|
|
1073
|
+
accountStatus?: BillingAccountStatus | null;
|
|
1074
|
+
lowBalance?: boolean | null;
|
|
1075
|
+
updatedAt: number;
|
|
1076
|
+
};
|
|
1077
|
+
|
|
1078
|
+
type Entity = {
|
|
1079
|
+
id: string;
|
|
1080
|
+
externalId?: string | null;
|
|
1081
|
+
tenantId: string;
|
|
1082
|
+
entityTypeId?: string | null;
|
|
1083
|
+
entityType?: EntityType | null;
|
|
1084
|
+
parentId?: string | null;
|
|
1085
|
+
parent?: Entity | null;
|
|
1086
|
+
name: string;
|
|
1087
|
+
image?: S3Object | null;
|
|
1088
|
+
email?: string | null;
|
|
1089
|
+
phoneNumber?: PhoneNumber | null;
|
|
1090
|
+
phoneNumberE164?: string | null;
|
|
1091
|
+
isOrganization: boolean;
|
|
1092
|
+
metadata?: string;
|
|
1093
|
+
notes?: string | null;
|
|
1094
|
+
customFields?: Array<string | null> | null;
|
|
1095
|
+
preferences?: EntityPreferences | null;
|
|
1096
|
+
contactPreferences?: EntityContactPreferences | null;
|
|
1097
|
+
createdAt: number;
|
|
1098
|
+
updatedAt: number;
|
|
1099
|
+
blockedAt?: number | null;
|
|
1100
|
+
deletedAt?: number | null;
|
|
1101
|
+
updatedByUserId: string;
|
|
1102
|
+
updatedByUserSessionId?: string | null;
|
|
1103
|
+
};
|
|
1104
|
+
type EntityType = {
|
|
1105
|
+
id: string;
|
|
1106
|
+
externalId?: string | null;
|
|
1107
|
+
tenantId: string;
|
|
1108
|
+
name: string;
|
|
1109
|
+
description?: string | null;
|
|
1110
|
+
image?: S3Object | null;
|
|
1111
|
+
createdAt: number;
|
|
1112
|
+
updatedAt: number;
|
|
1113
|
+
deletedAt?: number | null;
|
|
1114
|
+
entityFields?: Array<string | null> | null;
|
|
1115
|
+
organizationFields?: Array<string | null> | null;
|
|
1116
|
+
};
|
|
1117
|
+
type EntityPreferences = {
|
|
1118
|
+
timezoneName?: string | null;
|
|
1119
|
+
language?: Language | null;
|
|
1120
|
+
};
|
|
1121
|
+
type EntityContactPreferences = {
|
|
1122
|
+
allowCall?: boolean | null;
|
|
1123
|
+
allowEmail?: boolean | null;
|
|
1124
|
+
allowSMS?: boolean | null;
|
|
1125
|
+
allowWhatsApp?: boolean | null;
|
|
1126
|
+
};
|
|
1127
|
+
type CreateEntityInput = {
|
|
1128
|
+
id?: string | null;
|
|
1129
|
+
externalId?: string | null;
|
|
1130
|
+
tenantId: string;
|
|
1131
|
+
entityTypeId?: string | null;
|
|
1132
|
+
parentId?: string | null;
|
|
1133
|
+
name: string;
|
|
1134
|
+
image?: S3Object | null;
|
|
1135
|
+
email?: string | null;
|
|
1136
|
+
phoneNumber?: PhoneNumber | null;
|
|
1137
|
+
phoneNumberE164?: string | null;
|
|
1138
|
+
isOrganization: boolean;
|
|
1139
|
+
notes?: string | null;
|
|
1140
|
+
metadata?: Array<string | null> | null;
|
|
1141
|
+
customFields?: Array<string | null> | null;
|
|
1142
|
+
preferences?: EntityPreferences | null;
|
|
1143
|
+
contactPreferences?: EntityContactPreferences | null;
|
|
1144
|
+
createdAt: number;
|
|
1145
|
+
updatedAt: number;
|
|
1146
|
+
blockedAt?: number | null;
|
|
1147
|
+
deletedAt?: number | null;
|
|
1148
|
+
updatedByUserId: string;
|
|
1149
|
+
updatedByUserSessionId?: string | null;
|
|
1150
|
+
};
|
|
1151
|
+
type UpdateEntityInput = {
|
|
1152
|
+
id: string;
|
|
1153
|
+
externalId?: string | null;
|
|
1154
|
+
tenantId?: string | null;
|
|
1155
|
+
entityTypeId?: string | null;
|
|
1156
|
+
parentId?: string | null;
|
|
1157
|
+
name?: string | null;
|
|
1158
|
+
image?: S3Object | null;
|
|
1159
|
+
email?: string | null;
|
|
1160
|
+
phoneNumber?: PhoneNumber | null;
|
|
1161
|
+
phoneNumberE164?: string | null;
|
|
1162
|
+
isOrganization?: boolean | null;
|
|
1163
|
+
notes?: string | null;
|
|
1164
|
+
metadata?: Array<string | null> | null;
|
|
1165
|
+
customFields?: Array<string | null> | null;
|
|
1166
|
+
preferences?: EntityPreferences | null;
|
|
1167
|
+
contactPreferences?: EntityContactPreferences | null;
|
|
1168
|
+
createdAt?: number | null;
|
|
1169
|
+
updatedAt: number;
|
|
1170
|
+
blockedAt?: number | null;
|
|
1171
|
+
deletedAt?: number | null;
|
|
1172
|
+
updatedByUserId?: string | null;
|
|
1173
|
+
updatedByUserSessionId?: string | null;
|
|
1174
|
+
};
|
|
1175
|
+
type ModelEntityConditionInput = {
|
|
1176
|
+
externalId?: ModelStringInput | null;
|
|
1177
|
+
tenantId?: ModelIDInput | null;
|
|
1178
|
+
entityTypeId?: ModelIDInput | null;
|
|
1179
|
+
parentId?: ModelIDInput | null;
|
|
1180
|
+
name?: ModelStringInput | null;
|
|
1181
|
+
email?: ModelStringInput | null;
|
|
1182
|
+
phoneNumberE164?: ModelStringInput | null;
|
|
1183
|
+
isOrganization?: ModelBooleanInput | null;
|
|
1184
|
+
notes?: ModelStringInput | null;
|
|
1185
|
+
metadata?: ModelStringInput | null;
|
|
1186
|
+
customFields?: ModelStringInput | null;
|
|
1187
|
+
createdAt?: ModelIntInput | null;
|
|
1188
|
+
updatedAt?: ModelIntInput | null;
|
|
1189
|
+
blockedAt?: ModelIntInput | null;
|
|
1190
|
+
deletedAt?: ModelIntInput | null;
|
|
1191
|
+
updatedByUserId?: ModelIDInput | null;
|
|
1192
|
+
updatedByUserSessionId?: ModelIDInput | null;
|
|
1193
|
+
and?: Array<ModelEntityConditionInput | null> | null;
|
|
1194
|
+
or?: Array<ModelEntityConditionInput | null> | null;
|
|
1195
|
+
not?: ModelEntityConditionInput | null;
|
|
1196
|
+
};
|
|
1197
|
+
type ModelEntityFilterInput = {
|
|
1198
|
+
id?: ModelIDInput | null;
|
|
1199
|
+
externalId?: ModelStringInput | null;
|
|
1200
|
+
tenantId?: ModelIDInput | null;
|
|
1201
|
+
entityTypeId?: ModelIDInput | null;
|
|
1202
|
+
parentId?: ModelIDInput | null;
|
|
1203
|
+
name?: ModelStringInput | null;
|
|
1204
|
+
email?: ModelStringInput | null;
|
|
1205
|
+
phoneNumberE164?: ModelStringInput | null;
|
|
1206
|
+
isOrganization?: ModelBooleanInput | null;
|
|
1207
|
+
notes?: ModelStringInput | null;
|
|
1208
|
+
metadata?: ModelStringInput | null;
|
|
1209
|
+
customFields?: ModelStringInput | null;
|
|
1210
|
+
createdAt?: ModelIntInput | null;
|
|
1211
|
+
updatedAt?: ModelIntInput | null;
|
|
1212
|
+
blockedAt?: ModelIntInput | null;
|
|
1213
|
+
deletedAt?: ModelIntInput | null;
|
|
1214
|
+
updatedByUserId?: ModelIDInput | null;
|
|
1215
|
+
updatedByUserSessionId?: ModelIDInput | null;
|
|
1216
|
+
and?: Array<ModelEntityFilterInput | null> | null;
|
|
1217
|
+
or?: Array<ModelEntityFilterInput | null> | null;
|
|
1218
|
+
not?: ModelEntityFilterInput | null;
|
|
1219
|
+
};
|
|
1220
|
+
type ModelEntityTypeConditionInput = {
|
|
1221
|
+
externalId?: ModelStringInput | null;
|
|
1222
|
+
tenantId?: ModelIDInput | null;
|
|
1223
|
+
name?: ModelStringInput | null;
|
|
1224
|
+
description?: ModelStringInput | null;
|
|
1225
|
+
createdAt?: ModelIntInput | null;
|
|
1226
|
+
updatedAt?: ModelIntInput | null;
|
|
1227
|
+
deletedAt?: ModelIntInput | null;
|
|
1228
|
+
entityFields?: ModelStringInput | null;
|
|
1229
|
+
organizationFields?: ModelStringInput | null;
|
|
1230
|
+
and?: Array<ModelEntityTypeConditionInput | null> | null;
|
|
1231
|
+
or?: Array<ModelEntityTypeConditionInput | null> | null;
|
|
1232
|
+
not?: ModelEntityTypeConditionInput | null;
|
|
1233
|
+
};
|
|
1234
|
+
type ModelEntityTypeFilterInput = {
|
|
758
1235
|
id?: ModelIDInput | null;
|
|
1236
|
+
externalId?: ModelStringInput | null;
|
|
759
1237
|
tenantId?: ModelIDInput | null;
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
documentNumber?: ModelStringInput | null;
|
|
763
|
-
legalEntityName?: ModelStringInput | null;
|
|
764
|
-
issuedBy?: ModelStringInput | null;
|
|
765
|
-
issueDate?: ModelIntInput | null;
|
|
766
|
-
expiryDate?: ModelIntInput | null;
|
|
767
|
-
status?: ModelTenantComplianceDocumentStatusInput | null;
|
|
768
|
-
notes?: ModelStringInput | null;
|
|
1238
|
+
name?: ModelStringInput | null;
|
|
1239
|
+
description?: ModelStringInput | null;
|
|
769
1240
|
createdAt?: ModelIntInput | null;
|
|
770
1241
|
updatedAt?: ModelIntInput | null;
|
|
771
1242
|
deletedAt?: ModelIntInput | null;
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
and?: Array<
|
|
775
|
-
or?: Array<
|
|
776
|
-
not?:
|
|
777
|
-
};
|
|
778
|
-
type ModelTenantComplianceDocumentTypeInput = {
|
|
779
|
-
eq?: TenantComplianceDocumentType | null;
|
|
780
|
-
ne?: TenantComplianceDocumentType | null;
|
|
781
|
-
};
|
|
782
|
-
type ModelTenantComplianceDocumentStatusInput = {
|
|
783
|
-
eq?: TenantComplianceDocumentStatus | null;
|
|
784
|
-
ne?: TenantComplianceDocumentStatus | null;
|
|
1243
|
+
entityFields?: ModelStringInput | null;
|
|
1244
|
+
organizationFields?: ModelStringInput | null;
|
|
1245
|
+
and?: Array<ModelEntityTypeFilterInput | null> | null;
|
|
1246
|
+
or?: Array<ModelEntityTypeFilterInput | null> | null;
|
|
1247
|
+
not?: ModelEntityTypeFilterInput | null;
|
|
785
1248
|
};
|
|
786
1249
|
|
|
787
1250
|
type InteractionWidget = {
|
|
@@ -1285,6 +1748,10 @@ declare enum InteractionDirection {
|
|
|
1285
1748
|
IN = "IN",
|
|
1286
1749
|
OUT = "OUT"
|
|
1287
1750
|
}
|
|
1751
|
+
declare enum InteractionMessageDirection {
|
|
1752
|
+
IN = "IN",
|
|
1753
|
+
OUT = "OUT"
|
|
1754
|
+
}
|
|
1288
1755
|
declare enum InteractionStatus {
|
|
1289
1756
|
INITIATED = "INITIATED",
|
|
1290
1757
|
QUEUED = "QUEUED",
|
|
@@ -1434,6 +1901,7 @@ type InteractionMessage = {
|
|
|
1434
1901
|
referenceMessageId?: string | null;
|
|
1435
1902
|
body?: string | null;
|
|
1436
1903
|
metadata?: string | null;
|
|
1904
|
+
direction?: InteractionMessageDirection | null;
|
|
1437
1905
|
createdAt: number;
|
|
1438
1906
|
updatedAt: number;
|
|
1439
1907
|
deletedAt?: number | null;
|
|
@@ -1795,6 +2263,7 @@ type CreateInteractionMessageInput = {
|
|
|
1795
2263
|
referenceMessageId?: string | null;
|
|
1796
2264
|
body?: string | null;
|
|
1797
2265
|
metadata?: string | null;
|
|
2266
|
+
direction?: InteractionMessageDirection | null;
|
|
1798
2267
|
createdAt: number;
|
|
1799
2268
|
updatedAt: number;
|
|
1800
2269
|
deletedAt?: number | null;
|
|
@@ -1810,6 +2279,7 @@ type ModelInteractionMessageConditionInput = {
|
|
|
1810
2279
|
referenceMessageId?: ModelIDInput | null;
|
|
1811
2280
|
body?: ModelStringInput | null;
|
|
1812
2281
|
metadata?: ModelStringInput | null;
|
|
2282
|
+
direction?: ModelInteractionMessageDirectionInput | null;
|
|
1813
2283
|
createdAt?: ModelIntInput | null;
|
|
1814
2284
|
updatedAt?: ModelIntInput | null;
|
|
1815
2285
|
deletedAt?: ModelIntInput | null;
|
|
@@ -1829,6 +2299,7 @@ type ModelInteractionMessageFilterInput = {
|
|
|
1829
2299
|
referenceMessageId?: ModelIDInput | null;
|
|
1830
2300
|
body?: ModelStringInput | null;
|
|
1831
2301
|
metadata?: ModelStringInput | null;
|
|
2302
|
+
direction?: ModelInteractionMessageDirectionInput | null;
|
|
1832
2303
|
createdAt?: ModelIntInput | null;
|
|
1833
2304
|
updatedAt?: ModelIntInput | null;
|
|
1834
2305
|
deletedAt?: ModelIntInput | null;
|
|
@@ -1890,6 +2361,10 @@ type ModelInteractionDirectionInput = {
|
|
|
1890
2361
|
eq?: InteractionDirection | null;
|
|
1891
2362
|
ne?: InteractionDirection | null;
|
|
1892
2363
|
};
|
|
2364
|
+
type ModelInteractionMessageDirectionInput = {
|
|
2365
|
+
eq?: InteractionMessageDirection | null;
|
|
2366
|
+
ne?: InteractionMessageDirection | null;
|
|
2367
|
+
};
|
|
1893
2368
|
type ModelInteractionProviderInput = {
|
|
1894
2369
|
eq?: InteractionProvider | null;
|
|
1895
2370
|
ne?: InteractionProvider | null;
|
|
@@ -1904,6 +2379,115 @@ type InteractionRouteConfigurationInput = {
|
|
|
1904
2379
|
maxWaitTimeoutSeconds?: number | null;
|
|
1905
2380
|
};
|
|
1906
2381
|
|
|
2382
|
+
type EntityConversation = {
|
|
2383
|
+
id: string;
|
|
2384
|
+
tenantId: string;
|
|
2385
|
+
entityId?: string | null;
|
|
2386
|
+
entity?: Entity | null;
|
|
2387
|
+
entityAddress: string;
|
|
2388
|
+
interactionChannel: InteractionChannel;
|
|
2389
|
+
interactionProvider: InteractionProvider;
|
|
2390
|
+
isCampaignEngaged: boolean;
|
|
2391
|
+
campaignId?: string | null;
|
|
2392
|
+
lastCampaignFlowNodeId?: string | null;
|
|
2393
|
+
lastInteractionMessageId?: string | null;
|
|
2394
|
+
metadata?: string | null;
|
|
2395
|
+
lastActivityAt?: number | null;
|
|
2396
|
+
lastMessageAt?: number | null;
|
|
2397
|
+
archivedAt?: number | null;
|
|
2398
|
+
blockedAt?: number | null;
|
|
2399
|
+
createdAt: number;
|
|
2400
|
+
updatedAt: number;
|
|
2401
|
+
deletedAt?: number | null;
|
|
2402
|
+
interactions?: List<Interaction> | null;
|
|
2403
|
+
messages?: List<InteractionMessage> | null;
|
|
2404
|
+
};
|
|
2405
|
+
type CreateEntityConversationInput = {
|
|
2406
|
+
id?: string | null;
|
|
2407
|
+
tenantId: string;
|
|
2408
|
+
entityId?: string | null;
|
|
2409
|
+
entityAddress: string;
|
|
2410
|
+
interactionChannel: InteractionChannel;
|
|
2411
|
+
interactionProvider: InteractionProvider;
|
|
2412
|
+
isCampaignEngaged: boolean;
|
|
2413
|
+
campaignId?: string | null;
|
|
2414
|
+
lastCampaignFlowNodeId?: string | null;
|
|
2415
|
+
lastInteractionMessageId?: string | null;
|
|
2416
|
+
metadata?: string | null;
|
|
2417
|
+
lastActivityAt?: number | null;
|
|
2418
|
+
lastMessageAt?: number | null;
|
|
2419
|
+
archivedAt?: number | null;
|
|
2420
|
+
blockedAt?: number | null;
|
|
2421
|
+
createdAt: number;
|
|
2422
|
+
updatedAt: number;
|
|
2423
|
+
deletedAt?: number | null;
|
|
2424
|
+
};
|
|
2425
|
+
type UpdateEntityConversationInput = {
|
|
2426
|
+
id: string;
|
|
2427
|
+
tenantId?: string | null;
|
|
2428
|
+
entityId?: string | null;
|
|
2429
|
+
entityAddress?: string | null;
|
|
2430
|
+
interactionChannel?: InteractionChannel | null;
|
|
2431
|
+
interactionProvider?: InteractionProvider | null;
|
|
2432
|
+
isCampaignEngaged?: boolean | null;
|
|
2433
|
+
campaignId?: string | null;
|
|
2434
|
+
lastCampaignFlowNodeId?: string | null;
|
|
2435
|
+
lastInteractionMessageId?: string | null;
|
|
2436
|
+
metadata?: string | null;
|
|
2437
|
+
lastActivityAt?: number | null;
|
|
2438
|
+
lastMessageAt?: number | null;
|
|
2439
|
+
archivedAt?: number | null;
|
|
2440
|
+
blockedAt?: number | null;
|
|
2441
|
+
createdAt?: number | null;
|
|
2442
|
+
updatedAt?: number | null;
|
|
2443
|
+
deletedAt?: number | null;
|
|
2444
|
+
};
|
|
2445
|
+
type ModelEntityConversationConditionInput = {
|
|
2446
|
+
tenantId?: ModelIDInput | null;
|
|
2447
|
+
entityId?: ModelIDInput | null;
|
|
2448
|
+
entityAddress?: ModelStringInput | null;
|
|
2449
|
+
interactionChannel?: ModelInteractionChannelInput | null;
|
|
2450
|
+
interactionProvider?: ModelInteractionProviderInput | null;
|
|
2451
|
+
isCampaignEngaged?: ModelBooleanInput | null;
|
|
2452
|
+
campaignId?: ModelIDInput | null;
|
|
2453
|
+
lastCampaignFlowNodeId?: ModelIDInput | null;
|
|
2454
|
+
lastInteractionMessageId?: ModelIDInput | null;
|
|
2455
|
+
metadata?: ModelStringInput | null;
|
|
2456
|
+
lastActivityAt?: ModelIntInput | null;
|
|
2457
|
+
lastMessageAt?: ModelIntInput | null;
|
|
2458
|
+
archivedAt?: ModelIntInput | null;
|
|
2459
|
+
blockedAt?: ModelIntInput | null;
|
|
2460
|
+
createdAt?: ModelIntInput | null;
|
|
2461
|
+
updatedAt?: ModelIntInput | null;
|
|
2462
|
+
deletedAt?: ModelIntInput | null;
|
|
2463
|
+
and?: Array<ModelEntityConversationConditionInput | null> | null;
|
|
2464
|
+
or?: Array<ModelEntityConversationConditionInput | null> | null;
|
|
2465
|
+
not?: ModelEntityConversationConditionInput | null;
|
|
2466
|
+
};
|
|
2467
|
+
type ModelEntityConversationFilterInput = {
|
|
2468
|
+
id?: ModelIDInput | null;
|
|
2469
|
+
tenantId?: ModelIDInput | null;
|
|
2470
|
+
entityId?: ModelIDInput | null;
|
|
2471
|
+
entityAddress?: ModelStringInput | null;
|
|
2472
|
+
interactionChannel?: ModelInteractionChannelInput | null;
|
|
2473
|
+
interactionProvider?: ModelInteractionProviderInput | null;
|
|
2474
|
+
isCampaignEngaged?: ModelBooleanInput | null;
|
|
2475
|
+
campaignId?: ModelIDInput | null;
|
|
2476
|
+
lastCampaignFlowNodeId?: ModelIDInput | null;
|
|
2477
|
+
lastInteractionMessageId?: ModelIDInput | null;
|
|
2478
|
+
metadata?: ModelStringInput | null;
|
|
2479
|
+
lastActivityAt?: ModelIntInput | null;
|
|
2480
|
+
lastMessageAt?: ModelIntInput | null;
|
|
2481
|
+
archivedAt?: ModelIntInput | null;
|
|
2482
|
+
blockedAt?: ModelIntInput | null;
|
|
2483
|
+
createdAt?: ModelIntInput | null;
|
|
2484
|
+
updatedAt?: ModelIntInput | null;
|
|
2485
|
+
deletedAt?: ModelIntInput | null;
|
|
2486
|
+
and?: Array<ModelEntityConversationFilterInput | null> | null;
|
|
2487
|
+
or?: Array<ModelEntityConversationFilterInput | null> | null;
|
|
2488
|
+
not?: ModelEntityConversationFilterInput | null;
|
|
2489
|
+
};
|
|
2490
|
+
|
|
1907
2491
|
type Ticket = {
|
|
1908
2492
|
id: string;
|
|
1909
2493
|
externalId?: string | null;
|
|
@@ -2099,126 +2683,6 @@ type ModelTicketTypeFilterInput = {
|
|
|
2099
2683
|
not?: ModelTicketTypeFilterInput | null;
|
|
2100
2684
|
};
|
|
2101
2685
|
|
|
2102
|
-
type EntityConversation = {
|
|
2103
|
-
id: string;
|
|
2104
|
-
tenantId: string;
|
|
2105
|
-
entityId?: string | null;
|
|
2106
|
-
entity?: Entity | null;
|
|
2107
|
-
entityAddress: string;
|
|
2108
|
-
interactionChannel: InteractionChannel;
|
|
2109
|
-
interactionProvider: InteractionProvider;
|
|
2110
|
-
isCampaignEngaged: boolean;
|
|
2111
|
-
campaignId?: string | null;
|
|
2112
|
-
lastCampaignFlowNodeId?: string | null;
|
|
2113
|
-
lastInteractionMessageId?: string | null;
|
|
2114
|
-
metadata?: string | null;
|
|
2115
|
-
lastActivityAt?: number | null;
|
|
2116
|
-
lastMessageAt?: number | null;
|
|
2117
|
-
archivedAt?: number | null;
|
|
2118
|
-
blockedAt?: number | null;
|
|
2119
|
-
isTicketCreated: boolean;
|
|
2120
|
-
ticketId?: string | null;
|
|
2121
|
-
ticket?: Ticket | null;
|
|
2122
|
-
createdAt: number;
|
|
2123
|
-
updatedAt: number;
|
|
2124
|
-
deletedAt?: number | null;
|
|
2125
|
-
interactions?: List<Interaction> | null;
|
|
2126
|
-
messages?: List<InteractionMessage> | null;
|
|
2127
|
-
};
|
|
2128
|
-
type CreateEntityConversationInput = {
|
|
2129
|
-
id?: string | null;
|
|
2130
|
-
tenantId: string;
|
|
2131
|
-
entityId?: string | null;
|
|
2132
|
-
entityAddress: string;
|
|
2133
|
-
interactionChannel: InteractionChannel;
|
|
2134
|
-
interactionProvider: InteractionProvider;
|
|
2135
|
-
isCampaignEngaged: boolean;
|
|
2136
|
-
campaignId?: string | null;
|
|
2137
|
-
lastCampaignFlowNodeId?: string | null;
|
|
2138
|
-
lastInteractionMessageId?: string | null;
|
|
2139
|
-
metadata?: string | null;
|
|
2140
|
-
lastActivityAt?: number | null;
|
|
2141
|
-
lastMessageAt?: number | null;
|
|
2142
|
-
archivedAt?: number | null;
|
|
2143
|
-
blockedAt?: number | null;
|
|
2144
|
-
isTicketCreated: boolean;
|
|
2145
|
-
ticketId?: string | null;
|
|
2146
|
-
createdAt: number;
|
|
2147
|
-
updatedAt: number;
|
|
2148
|
-
deletedAt?: number | null;
|
|
2149
|
-
};
|
|
2150
|
-
type UpdateEntityConversationInput = {
|
|
2151
|
-
id: string;
|
|
2152
|
-
tenantId?: string | null;
|
|
2153
|
-
entityId?: string | null;
|
|
2154
|
-
entityAddress?: string | null;
|
|
2155
|
-
interactionChannel?: InteractionChannel | null;
|
|
2156
|
-
interactionProvider?: InteractionProvider | null;
|
|
2157
|
-
isCampaignEngaged?: boolean | null;
|
|
2158
|
-
campaignId?: string | null;
|
|
2159
|
-
lastCampaignFlowNodeId?: string | null;
|
|
2160
|
-
lastInteractionMessageId?: string | null;
|
|
2161
|
-
metadata?: string | null;
|
|
2162
|
-
lastActivityAt?: number | null;
|
|
2163
|
-
lastMessageAt?: number | null;
|
|
2164
|
-
archivedAt?: number | null;
|
|
2165
|
-
blockedAt?: number | null;
|
|
2166
|
-
isTicketCreated?: boolean | null;
|
|
2167
|
-
ticketId?: string | null;
|
|
2168
|
-
createdAt?: number | null;
|
|
2169
|
-
updatedAt?: number | null;
|
|
2170
|
-
deletedAt?: number | null;
|
|
2171
|
-
};
|
|
2172
|
-
type ModelEntityConversationConditionInput = {
|
|
2173
|
-
tenantId?: ModelIDInput | null;
|
|
2174
|
-
entityId?: ModelIDInput | null;
|
|
2175
|
-
entityAddress?: ModelStringInput | null;
|
|
2176
|
-
interactionChannel?: ModelInteractionChannelInput | null;
|
|
2177
|
-
interactionProvider?: ModelInteractionProviderInput | null;
|
|
2178
|
-
isCampaignEngaged?: ModelBooleanInput | null;
|
|
2179
|
-
campaignId?: ModelIDInput | null;
|
|
2180
|
-
lastCampaignFlowNodeId?: ModelIDInput | null;
|
|
2181
|
-
lastInteractionMessageId?: ModelIDInput | null;
|
|
2182
|
-
metadata?: ModelStringInput | null;
|
|
2183
|
-
lastActivityAt?: ModelIntInput | null;
|
|
2184
|
-
lastMessageAt?: ModelIntInput | null;
|
|
2185
|
-
archivedAt?: ModelIntInput | null;
|
|
2186
|
-
blockedAt?: ModelIntInput | null;
|
|
2187
|
-
isTicketCreated?: ModelBooleanInput | null;
|
|
2188
|
-
ticketId?: ModelIDInput | null;
|
|
2189
|
-
createdAt?: ModelIntInput | null;
|
|
2190
|
-
updatedAt?: ModelIntInput | null;
|
|
2191
|
-
deletedAt?: ModelIntInput | null;
|
|
2192
|
-
and?: Array<ModelEntityConversationConditionInput | null> | null;
|
|
2193
|
-
or?: Array<ModelEntityConversationConditionInput | null> | null;
|
|
2194
|
-
not?: ModelEntityConversationConditionInput | null;
|
|
2195
|
-
};
|
|
2196
|
-
type ModelEntityConversationFilterInput = {
|
|
2197
|
-
id?: ModelIDInput | null;
|
|
2198
|
-
tenantId?: ModelIDInput | null;
|
|
2199
|
-
entityId?: ModelIDInput | null;
|
|
2200
|
-
entityAddress?: ModelStringInput | null;
|
|
2201
|
-
interactionChannel?: ModelInteractionChannelInput | null;
|
|
2202
|
-
interactionProvider?: ModelInteractionProviderInput | null;
|
|
2203
|
-
isCampaignEngaged?: ModelBooleanInput | null;
|
|
2204
|
-
campaignId?: ModelIDInput | null;
|
|
2205
|
-
lastCampaignFlowNodeId?: ModelIDInput | null;
|
|
2206
|
-
lastInteractionMessageId?: ModelIDInput | null;
|
|
2207
|
-
metadata?: ModelStringInput | null;
|
|
2208
|
-
lastActivityAt?: ModelIntInput | null;
|
|
2209
|
-
lastMessageAt?: ModelIntInput | null;
|
|
2210
|
-
archivedAt?: ModelIntInput | null;
|
|
2211
|
-
blockedAt?: ModelIntInput | null;
|
|
2212
|
-
isTicketCreated?: ModelBooleanInput | null;
|
|
2213
|
-
ticketId?: ModelIDInput | null;
|
|
2214
|
-
createdAt?: ModelIntInput | null;
|
|
2215
|
-
updatedAt?: ModelIntInput | null;
|
|
2216
|
-
deletedAt?: ModelIntInput | null;
|
|
2217
|
-
and?: Array<ModelEntityConversationFilterInput | null> | null;
|
|
2218
|
-
or?: Array<ModelEntityConversationFilterInput | null> | null;
|
|
2219
|
-
not?: ModelEntityConversationFilterInput | null;
|
|
2220
|
-
};
|
|
2221
|
-
|
|
2222
2686
|
declare const FIELDS_LANGUAGE = "\n code\n nameEn\n nameLocal\n";
|
|
2223
2687
|
declare const FIELDS_COUNTRY = "\n code\n nameEn\n nameLocal\n currency {\n code\n nameEn\n }\n officialLanguage {\n \n code\n nameEn\n nameLocal\n\n }\n callingCode\n region\n flag\n";
|
|
2224
2688
|
declare const FIELDS_PHONE_NUMBER = "\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n";
|
|
@@ -2263,9 +2727,9 @@ declare class EntityService {
|
|
|
2263
2727
|
type __SubscriptionContainer$4 = {
|
|
2264
2728
|
OnEntityConversationByTenantId: EntityConversation;
|
|
2265
2729
|
};
|
|
2266
|
-
declare const FIELDS_ENTITY_CONVERSATION = "\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 key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\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
|
|
2267
|
-
declare const FIELDS_ENTITY_CONVERSATION_MINIMAL = "\n id\n tenantId\n entityId\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
|
|
2268
|
-
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 key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\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
|
|
2730
|
+
declare const FIELDS_ENTITY_CONVERSATION = "\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 key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\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";
|
|
2731
|
+
declare const FIELDS_ENTITY_CONVERSATION_MINIMAL = "\n id\n tenantId\n entityId\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";
|
|
2732
|
+
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 key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\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 subject\n metadata\n notes\n summary\n transcription {\n key\n bucket\n location\n }\n recording {\n key\n bucket\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\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 direction\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";
|
|
2269
2733
|
declare class EntityConversationService {
|
|
2270
2734
|
private readonly appSyncService;
|
|
2271
2735
|
constructor(appSyncService: AppSyncHelperService);
|
|
@@ -2294,8 +2758,8 @@ declare const FIELDS_INTERACTION_INVITEE = "\n id\n interactionId\n interacti
|
|
|
2294
2758
|
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";
|
|
2295
2759
|
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 key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\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 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 \n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n\n }\n preferences {\n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\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 updatedByUserId\n updatedByUserSessionId\n\n }\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n";
|
|
2296
2760
|
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";
|
|
2297
|
-
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";
|
|
2298
|
-
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";
|
|
2761
|
+
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 direction\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";
|
|
2762
|
+
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 direction\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";
|
|
2299
2763
|
declare class InteractionService {
|
|
2300
2764
|
private readonly appSyncService;
|
|
2301
2765
|
newInteractionInviteObservable$: BehaviorSubject<any>;
|
|
@@ -2617,5 +3081,5 @@ declare class InteractionMessageTemplateService {
|
|
|
2617
3081
|
static ɵprov: i0.ɵɵInjectableDeclaration<InteractionMessageTemplateService>;
|
|
2618
3082
|
}
|
|
2619
3083
|
|
|
2620
|
-
export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CommonService, CustomPipesModule, CustomValidators, DomainNamePipe, EmailConversationResolverService, EmailEntityResolverService, EncryptedStorageService, EntityConversationService, EntityService, ErrorComponent, FIELDS_COUNTRY, FIELDS_ENTITY, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_ENTITY_CONVERSATION_MINIMAL, FIELDS_ENTITY_EXPANDED, FIELDS_ENTITY_MINIMAL, FIELDS_ENTITY_TYPE, FIELDS_INTERACTION, FIELDS_INTERACTION_ATTENDEE, FIELDS_INTERACTION_ATTENDEE_EXPANDED, FIELDS_INTERACTION_ENDPOINT, FIELDS_INTERACTION_ENDPOINT_MINIMAL, FIELDS_INTERACTION_EXPANDED, FIELDS_INTERACTION_HOST, FIELDS_INTERACTION_INVITEE, FIELDS_INTERACTION_MESSAGE, FIELDS_INTERACTION_MESSAGE_ATTACHMENT, FIELDS_INTERACTION_MESSAGE_EXPANDED, FIELDS_INTERACTION_MESSAGE_TEMPLATE, FIELDS_INTERACTION_MINIMAL, FIELDS_INTERACTION_WIDGET, FIELDS_INTERACTION_WIDGET_USER_SETTING, FIELDS_LANGUAGE, FIELDS_PHONE_NUMBER, FIELDS_TEAM, FIELDS_TEAM_MEMBER, FIELDS_TENANT, FIELDS_TENANT_COMPLIANCE_DOCUMENT, FIELDS_TENANT_EXPANDED, FIELDS_TENANT_MINIMAL, FIELDS_TICKET, FIELDS_TICKET_PRIORITY, FIELDS_TICKET_STATUS, FIELDS_TICKET_TYPE, FIELDS_USER, FIELDS_USER_SESSION, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionMessageTemplateService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, ProcessingStatus, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, StorageType, TeamService, TenantComplianceDocumentStatus, TenantComplianceDocumentType, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig, sanitizeHtmlBody };
|
|
2621
|
-
export type { AmplifyConfig, Country, CreateEntityConversationInput, CreateEntityInput, CreateInteractionAttendeeInput, CreateInteractionEndpointInput, CreateInteractionHostInput, CreateInteractionInput, CreateInteractionInviteeInput, CreateInteractionMessageAttachmentInput, CreateInteractionMessageInput, CreateTeamInput, CreateTeamMemberInput, CreateTenantComplianceDocumentInput, CreateTenantInput, CreateUserInput, Currency, EmailConversationFilters, EmailHeaders, EmailMessageMetadata, EncryptedStorageKeys, Entity, EntityContactPreferences, EntityConversation, EntityPreferences, EntityType, Interaction, InteractionAttendee, InteractionEndpoint, InteractionEndpointPriceDetails, InteractionEndpointRegulatoryComplianceDocument, InteractionHost, InteractionInvitee, InteractionMessage, InteractionMessageAttachment, InteractionMessageTemplate, InteractionRouteConfiguration, InteractionRouteConfigurationInput, InteractionWidget, InteractionWidgetUserSetting, Language, List, MailboxConfig, ModelBooleanInput, ModelEntityConditionInput, ModelEntityConversationConditionInput, ModelEntityConversationFilterInput, ModelEntityFilterInput, ModelEntityTypeConditionInput, ModelEntityTypeFilterInput, ModelIDInput, ModelIDKeyConditionInput, ModelIntInput, ModelIntKeyConditionInput, ModelInteractionAttendeeConditionInput, ModelInteractionAttendeeFilterInput, ModelInteractionChannelInput, ModelInteractionConditionInput, ModelInteractionContextInput, ModelInteractionDirectionInput, ModelInteractionEndpointConditionInput, ModelInteractionEndpointFilterInput, ModelInteractionFilterInput, ModelInteractionHostConditionInput, ModelInteractionHostFilterInput, ModelInteractionInviteeConditionInput, ModelInteractionInviteeFilterInput, ModelInteractionMessageAttachmentConditionInput, ModelInteractionMessageAttachmentFilterInput, ModelInteractionMessageConditionInput, ModelInteractionMessageFilterInput, ModelInteractionProviderInput, ModelInteractionStatusInput, ModelInteractionWidgetConditionInput, ModelInteractionWidgetFilterInput, ModelInteractionWidgetUserSettingFilterInput, ModelProcessingStatusInput, ModelSizeInput, ModelStringInput, ModelStringKeyConditionInput, ModelTeamConditionInput, ModelTeamFilterInput, ModelTeamMemberConditionInput, ModelTeamMemberFilterInput, ModelTenantComplianceDocumentConditionInput, ModelTenantComplianceDocumentFilterInput, ModelTenantComplianceDocumentStatusInput, ModelTenantComplianceDocumentTypeInput, ModelTenantConditionInput, ModelTicketConditionInput, ModelTicketFilterInput, ModelTicketPriorityConditionInput, ModelTicketPriorityFilterInput, ModelTicketStatusConditionInput, ModelTicketStatusFilterInput, ModelTicketTypeConditionInput, ModelTicketTypeFilterInput, ModelUserConditionInput, ModelUserFilterInput, ModelUserSessionConditionInput, ModelUserSessionFilterInput, ModelUserStatusInput, ModelUserTypeInput, OAuthConfig, OpenSearchHit, OpenSearchResponse, PhoneNumber, S3Config, S3Credentials, S3Object, SubscriptionResponse, Team, TeamMember, Tenant, TenantBillingInformation, TenantComplianceDocument, TenantContactInformation, TenantPreferences, TenantSSOConfiguration, TenantSecurity, Ticket, TicketPriority, TicketStatus, TicketType, UpdateEntityConversationInput, UpdateEntityInput, UpdateInteractionAttendeeInput, UpdateInteractionEndpointInput, UpdateInteractionHostInput, UpdateInteractionInput, UpdateInteractionInviteeInput, UpdateTeamInput, UpdateTeamMemberInput, UpdateTenantComplianceDocumentInput, UpdateTenantInput, UpdateUserInput, UpdateUserSessionInput, User, UserNotificationSettings, UserPreferences, UserSession };
|
|
3084
|
+
export { AMPLIFY_CONFIG, AppSyncHelperService, BillingAccountStatus, BillingAdminActionStatus, BillingAdminActionType, BillingChargeStatus, BillingCreditClass, BillingEntityStatus, BillingInvoiceStatus, BillingInvoiceType, BillingKycCaseStatus, BillingKycCaseType, BillingLedgerDirection, BillingLedgerEntryType, BillingPaymentDirection, BillingPaymentMethodStatus, BillingPaymentPurpose, BillingPaymentRail, BillingPaymentStatus, BillingPeriodType, BillingPriceBookType, BillingPricingType, BillingRatingStatus, BillingReceiptMatchStatus, BillingSubscriptionStatus, BillingTaxTreatment, CleanDeep, CommonService, CustomPipesModule, CustomValidators, DomainNamePipe, EmailConversationResolverService, EmailEntityResolverService, EncryptedStorageService, EntityConversationService, EntityService, ErrorComponent, FIELDS_COUNTRY, FIELDS_ENTITY, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_ENTITY_CONVERSATION_MINIMAL, FIELDS_ENTITY_EXPANDED, FIELDS_ENTITY_MINIMAL, FIELDS_ENTITY_TYPE, FIELDS_INTERACTION, FIELDS_INTERACTION_ATTENDEE, FIELDS_INTERACTION_ATTENDEE_EXPANDED, FIELDS_INTERACTION_ENDPOINT, FIELDS_INTERACTION_ENDPOINT_MINIMAL, FIELDS_INTERACTION_EXPANDED, FIELDS_INTERACTION_HOST, FIELDS_INTERACTION_INVITEE, FIELDS_INTERACTION_MESSAGE, FIELDS_INTERACTION_MESSAGE_ATTACHMENT, FIELDS_INTERACTION_MESSAGE_EXPANDED, FIELDS_INTERACTION_MESSAGE_TEMPLATE, FIELDS_INTERACTION_MINIMAL, FIELDS_INTERACTION_WIDGET, FIELDS_INTERACTION_WIDGET_USER_SETTING, FIELDS_LANGUAGE, FIELDS_PHONE_NUMBER, FIELDS_TEAM, FIELDS_TEAM_MEMBER, FIELDS_TENANT, FIELDS_TENANT_COMPLIANCE_DOCUMENT, FIELDS_TENANT_EXPANDED, FIELDS_TENANT_MINIMAL, FIELDS_TICKET, FIELDS_TICKET_PRIORITY, FIELDS_TICKET_STATUS, FIELDS_TICKET_TYPE, FIELDS_USER, FIELDS_USER_SESSION, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionMessageDirection, InteractionMessageTemplateService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, ProcessingStatus, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, StorageType, TeamService, TenantComplianceDocumentStatus, TenantComplianceDocumentType, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig, sanitizeHtmlBody };
|
|
3085
|
+
export type { AmplifyConfig, BillingAccount, BillingAdminAction, BillingAuditLog, BillingBankReceipt, BillingFxRate, BillingIdempotencyKey, BillingInvoice, BillingInvoiceLine, BillingKycCase, BillingLedgerEntry, BillingPayment, BillingPaymentMethod, BillingPlanDefinition, BillingPlatformConfig, BillingPriceBook, BillingProduct, BillingRateCard, BillingRatedCharge, BillingSubscription, BillingTaxRule, BillingUsageEvent, BillingWalletBalance, Country, CreateEntityConversationInput, CreateEntityInput, CreateInteractionAttendeeInput, CreateInteractionEndpointInput, CreateInteractionHostInput, CreateInteractionInput, CreateInteractionInviteeInput, CreateInteractionMessageAttachmentInput, CreateInteractionMessageInput, CreateTeamInput, CreateTeamMemberInput, CreateTenantComplianceDocumentInput, CreateTenantInput, CreateUserInput, Currency, EmailConversationFilters, EmailHeaders, EmailMessageMetadata, EncryptedStorageKeys, Entity, EntityContactPreferences, EntityConversation, EntityPreferences, EntityType, Interaction, InteractionAttendee, InteractionEndpoint, InteractionEndpointPriceDetails, InteractionEndpointRegulatoryComplianceDocument, InteractionHost, InteractionInvitee, InteractionMessage, InteractionMessageAttachment, InteractionMessageTemplate, InteractionRouteConfiguration, InteractionRouteConfigurationInput, InteractionWidget, InteractionWidgetUserSetting, Language, List, MailboxConfig, ModelBooleanInput, ModelEntityConditionInput, ModelEntityConversationConditionInput, ModelEntityConversationFilterInput, ModelEntityFilterInput, ModelEntityTypeConditionInput, ModelEntityTypeFilterInput, ModelIDInput, ModelIDKeyConditionInput, ModelIntInput, ModelIntKeyConditionInput, ModelInteractionAttendeeConditionInput, ModelInteractionAttendeeFilterInput, ModelInteractionChannelInput, ModelInteractionConditionInput, ModelInteractionContextInput, ModelInteractionDirectionInput, ModelInteractionEndpointConditionInput, ModelInteractionEndpointFilterInput, ModelInteractionFilterInput, ModelInteractionHostConditionInput, ModelInteractionHostFilterInput, ModelInteractionInviteeConditionInput, ModelInteractionInviteeFilterInput, ModelInteractionMessageAttachmentConditionInput, ModelInteractionMessageAttachmentFilterInput, ModelInteractionMessageConditionInput, ModelInteractionMessageDirectionInput, ModelInteractionMessageFilterInput, ModelInteractionProviderInput, ModelInteractionStatusInput, ModelInteractionWidgetConditionInput, ModelInteractionWidgetFilterInput, ModelInteractionWidgetUserSettingFilterInput, ModelProcessingStatusInput, ModelSizeInput, ModelStringInput, ModelStringKeyConditionInput, ModelTeamConditionInput, ModelTeamFilterInput, ModelTeamMemberConditionInput, ModelTeamMemberFilterInput, ModelTenantComplianceDocumentConditionInput, ModelTenantComplianceDocumentFilterInput, ModelTenantComplianceDocumentStatusInput, ModelTenantComplianceDocumentTypeInput, ModelTenantConditionInput, ModelTicketConditionInput, ModelTicketFilterInput, ModelTicketPriorityConditionInput, ModelTicketPriorityFilterInput, ModelTicketStatusConditionInput, ModelTicketStatusFilterInput, ModelTicketTypeConditionInput, ModelTicketTypeFilterInput, ModelUserConditionInput, ModelUserFilterInput, ModelUserSessionConditionInput, ModelUserSessionFilterInput, ModelUserStatusInput, ModelUserTypeInput, OAuthConfig, OpenSearchHit, OpenSearchResponse, PhoneNumber, S3Config, S3Credentials, S3Object, SubscriptionResponse, Team, TeamMember, Tenant, TenantBillingInformation, TenantBillingSnapshot, TenantComplianceDocument, TenantContactInformation, TenantPreferences, TenantSSOConfiguration, TenantSecurity, Ticket, TicketPriority, TicketStatus, TicketType, UpdateEntityConversationInput, UpdateEntityInput, UpdateInteractionAttendeeInput, UpdateInteractionEndpointInput, UpdateInteractionHostInput, UpdateInteractionInput, UpdateInteractionInviteeInput, UpdateTeamInput, UpdateTeamMemberInput, UpdateTenantComplianceDocumentInput, UpdateTenantInput, UpdateUserInput, UpdateUserSessionInput, User, UserNotificationSettings, UserPreferences, UserSession };
|