@periskope/types 0.6.376 → 0.6.377

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/src/types.ts CHANGED
@@ -42,10 +42,13 @@ export type OrgPlanEnterprise = {
42
42
  current_period_end: number | null;
43
43
  additional_user_limit?: number;
44
44
  additional_phone_limit?: number;
45
+ allocated_user_limit?: number;
46
+ allocated_phone_limit?: number;
45
47
  currency: string;
46
48
  cancelled_at?: number;
47
49
  cancel_schedule_created_at?: number;
48
50
  subscription_status?: string;
51
+ discounts?: Subscription.Discount[]
49
52
  };
50
53
 
51
54
  export type OrgPlanNonEnterprise = {
@@ -59,10 +62,13 @@ export type OrgPlanNonEnterprise = {
59
62
  current_period_start: number;
60
63
  additional_user_limit?: number;
61
64
  additional_phone_limit?: number;
65
+ allocated_user_limit?: number;
66
+ allocated_phone_limit?: number;
62
67
  currency: string;
63
68
  cancelled_at?: number;
64
69
  cancel_schedule_created_at?: number;
65
70
  subscription_status?: string;
71
+ discounts?: Subscription.Discount[]
66
72
  };
67
73
 
68
74
  export type OrgPlan<T extends AllPlans | Enterprise> = T extends Enterprise
@@ -309,11 +315,14 @@ export type OrgType = OverrideProperties<
309
315
  is_hubspot_connected: boolean;
310
316
  is_freshdesk_connected: boolean;
311
317
  is_zohodesk_connected: boolean;
312
- is_zohocrm_connected: boolean;
313
318
  access_scopes: AccessScopes;
314
319
  rules: Rule[];
315
320
  phone_limit: number;
316
321
  user_limit: number;
322
+ allocated_user_limit: number;
323
+ allocated_phone_limit: number;
324
+ additional_user_limit: number;
325
+ additional_phone_limit: number;
317
326
  }
318
327
  >,
319
328
  {
@@ -361,7 +370,6 @@ export type ChatType = Merge<
361
370
  common_chats?: string[];
362
371
  freshdesk_metadata?: Record<string, any>;
363
372
  zohodesk_metadata?: Record<string, any>;
364
- zohocrm_metadata?: Record<string,any>;
365
373
  pinned_messages?: {
366
374
  message_id: string;
367
375
  pinned_at: number;
@@ -1608,86 +1616,3 @@ export type ZohodeskIntegrationTokenType = OverrideProperties<
1608
1616
  };
1609
1617
  }
1610
1618
  >;
1611
-
1612
- export type ZohoCrmIntegrationTokenType = OverrideProperties<
1613
- Tables<'tbl_integration_tokens'>,
1614
- {
1615
- type: 'zohocrm';
1616
- token_metadata: {
1617
- access_token: string;
1618
- refresh_token: string;
1619
- scope: string;
1620
- api_domain: string;
1621
- token_type: string;
1622
- expires_in: number;
1623
- domain_extension: string;
1624
- authDomain: string;
1625
- integration_org_id: string;
1626
- chat_messages_auto_logging?: boolean;
1627
- auto_create_entity?: 'contact' | 'account' | 'lead' | 'none';
1628
- org_details: {
1629
- id: string;
1630
- name: string;
1631
- currency: string;
1632
- time_zone: string;
1633
- currency_symbol: string;
1634
- currency_locale: string;
1635
- website: string;
1636
- description: string | null;
1637
- phone: string | null;
1638
- mobile: string | null;
1639
- fax: string | null;
1640
- street: string;
1641
- city: string;
1642
- state: string;
1643
- zip: string;
1644
- country: string;
1645
- logo_url: string;
1646
- is_sandbox: boolean;
1647
- is_admin_in_org: boolean;
1648
- employee_count: number;
1649
- primary_contact: string;
1650
- };
1651
- modules: Array<{
1652
- id: string;
1653
- name: string;
1654
- api_name: string;
1655
- singular_label: string;
1656
- plural_label: string;
1657
- is_custom: boolean;
1658
- is_creatable: boolean;
1659
- is_editable: boolean;
1660
- is_deletable: boolean;
1661
- is_webform_supported: boolean;
1662
- sequence_number: number;
1663
- fields: Array<{
1664
- id: string;
1665
- name: string;
1666
- api_name: string;
1667
- data_type: string;
1668
- required: boolean;
1669
- is_custom: boolean;
1670
- is_editable: boolean;
1671
- is_creatable: boolean;
1672
- is_webform_supported: boolean;
1673
- length: number;
1674
- decimal_places: number | null;
1675
- default_value: string | null;
1676
- picklist_values: Array<{
1677
- display_value: string;
1678
- actual_value: string;
1679
- }> | null;
1680
- }>;
1681
- }>;
1682
- webhooks?: {
1683
- id: string;
1684
- url: string;
1685
- name: string;
1686
- events: string[];
1687
- is_active: boolean;
1688
- created_time: string;
1689
- modified_time: string;
1690
- };
1691
- };
1692
- }
1693
- >;