@periskope/types 0.6.88 → 0.6.90
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/dist/supabase.types.d.ts +196 -24
- package/dist/types.d.ts +29 -7
- package/package.json +1 -1
- package/supabase.types.ts +2096 -1916
- package/types.ts +23 -8
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
|
|
164
|
-
type
|
|
165
|
-
hubId
|
|
166
|
-
|
|
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'>;
|
|
@@ -236,7 +252,6 @@ export type SendMessageContent = {
|
|
|
236
252
|
quoted_message_type?: 'reply' | 'forward' | 'reply_private';
|
|
237
253
|
broadcast_id?: string;
|
|
238
254
|
performed_by?: string;
|
|
239
|
-
variables?: { [key: string]: VariableType };
|
|
240
255
|
};
|
|
241
256
|
|
|
242
257
|
export type QuickReplyContent = Omit<
|
|
@@ -249,6 +264,7 @@ export type VariableType = { [key: string]: string };
|
|
|
249
264
|
export type BroadcastMessagePayload = SendMessageContent & {
|
|
250
265
|
chat_ids: string[];
|
|
251
266
|
broadcast_id?: string;
|
|
267
|
+
variables?: { chat_id: string; values: { [key: string]: VariableType } };
|
|
252
268
|
};
|
|
253
269
|
|
|
254
270
|
export type SingleMessagePayload = SendMessageContent & {
|
|
@@ -449,4 +465,3 @@ export type UserPreferences = {
|
|
|
449
465
|
right_sidepanel_open: boolean;
|
|
450
466
|
sync_wa_unread_count: boolean;
|
|
451
467
|
};
|
|
452
|
-
|