@periskope/types 0.6.87 → 0.6.89

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
@@ -58,6 +58,12 @@ export type MicrosurveyData = {
58
58
  checked: boolean;
59
59
  }[];
60
60
 
61
+ export type OrgPreferences = {
62
+ disable_ai_flagging?: boolean;
63
+ allow_exports?: boolean;
64
+ sync_phone_contacts?: boolean;
65
+ };
66
+
61
67
  export type OrgMetadata = {
62
68
  phone_number: string;
63
69
  ticket_prefix: string;
@@ -65,6 +71,12 @@ export type OrgMetadata = {
65
71
  surveyData?: MicrosurveyData;
66
72
  onboarding: Record<string, boolean>;
67
73
  onboarding_completed_at: Date | null;
74
+ preferences?: OrgPreferences;
75
+ hubspot_pipelines?: {
76
+ id: string;
77
+ label: string;
78
+ default_stage: { id: string; label: string };
79
+ }[];
68
80
  };
69
81
 
70
82
  export type OrgType = OverrideProperties<
@@ -150,8 +162,7 @@ export type MessageFlagType = {
150
162
  response_id?: string;
151
163
  response_timestamp?: string;
152
164
  response_email?: string;
153
- }
154
-
165
+ };
155
166
 
156
167
  /* -------------------------------------------------------------------------- */
157
168
 
@@ -160,10 +171,14 @@ export type TicketType = OverrideProperties<
160
171
  {
161
172
  label_ids: { [key: string]: boolean };
162
173
  hubspot_metadata: {
163
- id: string;
164
- type: string;
165
- hubId: string;
166
- object_data: HubspotObjectDataType;
174
+ id?: string;
175
+ type?: string;
176
+ hubId?: string;
177
+ pipeline: {
178
+ id: string;
179
+ label: string;
180
+ };
181
+ object_data?: HubspotObjectDataType;
167
182
  } | null;
168
183
  }
169
184
  >;
@@ -171,6 +186,7 @@ export type ContactType = Merge<
171
186
  Tables<'tbl_contacts'>,
172
187
  {
173
188
  chats: ChatType[] | null;
189
+ chat_ids?: string[];
174
190
  }
175
191
  >;
176
192
  export type ReactionType = Tables<'tbl_chat_reactions'>;
@@ -449,4 +465,3 @@ export type UserPreferences = {
449
465
  right_sidepanel_open: boolean;
450
466
  sync_wa_unread_count: boolean;
451
467
  };
452
-