@periskope/types 0.6.94 → 0.6.96

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/types.ts CHANGED
@@ -23,7 +23,7 @@ export enum AllPlans {
23
23
  // YEARLY_PRO = 'yearly-pro',
24
24
  ENTERPRISE = 'enterprise',
25
25
  MONTHLY_STARTER_SINGLE = 'monthly-starter-single',
26
- YEARLY_STARTER_SINGLE = 'yearly-starter-single',
26
+ YEARLY_STARTER_SINGLE = 'yearly-starter-single',
27
27
  MONTHLY_PRO_SINGLE = 'monthly-pro-single',
28
28
  YEARLY_PRO_SINGLE = 'yearly-pro-single',
29
29
  }
@@ -33,7 +33,7 @@ export type Frequency = 'yearly' | 'monthly' | 'weekly' | 'custom';
33
33
  export type Enterprise = `${string}-enterprise`;
34
34
 
35
35
  export type OrgPlanEnterprise = {
36
- subscription_id: string
36
+ subscription_id: string;
37
37
  plan_id: Enterprise;
38
38
  interval: number;
39
39
  frequency: Frequency;
@@ -44,7 +44,7 @@ export type OrgPlanEnterprise = {
44
44
  };
45
45
 
46
46
  export type OrgPlanNonEnterprise = {
47
- subscription_id: string
47
+ subscription_id: string;
48
48
  plan_id: AllPlans;
49
49
  interval: number;
50
50
  frequency: Frequency;
@@ -68,8 +68,9 @@ export type MicrosurveyData = {
68
68
 
69
69
  export type OrgPreferences = {
70
70
  disable_ai_flagging?: boolean;
71
- allow_exports?: boolean;
71
+ disable_allow_exports?: boolean;
72
72
  sync_phone_contacts?: boolean;
73
+ mask_phone_numbers?: boolean;
73
74
  };
74
75
 
75
76
  type OrgPreferenceKey = keyof OrgPreferences;
@@ -91,7 +92,7 @@ export type OrgMetadata = {
91
92
  label: string;
92
93
  default_stage: { id: string; label: string };
93
94
  }[];
94
- partition?: boolean
95
+ partition?: boolean;
95
96
  };
96
97
 
97
98
  export type OrgType = OverrideProperties<
@@ -141,6 +142,8 @@ export type ChatType = Merge<
141
142
  hubId: string;
142
143
  object_data: HubspotObjectDataType;
143
144
  } | null;
145
+ info_admins_only: boolean;
146
+ messages_admins_only: boolean;
144
147
  // is_open?: boolean;
145
148
  }
146
149
  >;
@@ -195,6 +198,12 @@ export type TicketType = OverrideProperties<
195
198
  };
196
199
  object_data?: HubspotObjectDataType;
197
200
  } | null;
201
+ close_ticket_metadata?: {
202
+ closed_by: string;
203
+ closed_at: string;
204
+ closed_message?: string | null;
205
+ send_reply_message_id?: string | null;
206
+ } | null;
198
207
  }
199
208
  >;
200
209
  export type ContactType = Merge<
@@ -321,23 +330,26 @@ export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
321
330
 
322
331
  /* ----------------------- CHAT PARTICIPANT OPERATION ----------------------- */
323
332
 
324
- export type ChatParticipantOperation = {
325
- participant_ids: string[];
326
- operation_type: 'ADD' | 'REMOVE' | 'PROMOTE' | 'DEMOTE';
333
+ export type ChatLogType = {
334
+ log: Tables<'view_chat_logs'>;
335
+ operations: Tables<'tbl_chat_logs'>[];
327
336
  };
337
+ export type ChatOperationsType = 'ADD' | 'REMOVE' | 'PROMOTE' | 'DEMOTE';
328
338
 
329
- export type ChatParticipantOperationPayload = ChatParticipantOperation & {
339
+ export type ChatParticipantOperationPayload = {
340
+ participant_ids: string[];
330
341
  chat_ids: string[];
342
+ performed_by: string;
331
343
  };
332
344
 
333
345
  export type ChatOperationReturn = {
334
- [participant_id:string]: {
346
+ [participant_id: string]: {
335
347
  is_success: boolean;
336
348
  message?: string;
337
349
  code?: number;
338
- isInviteV4Sent?:boolean;
339
- }
340
- }
350
+ isInviteV4Sent?: boolean;
351
+ };
352
+ };
341
353
 
342
354
  /* ----------------------- BILLING - STRIPE ----------------------- */
343
355