@periskope/types 0.6.95 → 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/dist/supabase.types.d.ts +637 -233
- package/dist/types.d.ts +30 -11
- package/dist/types.js +8 -4
- package/mod_json_type.sh +23 -0
- package/package.json +1 -1
- package/supabase.types.ts +2183 -1783
- package/types.ts +38 -15
package/types.ts
CHANGED
|
@@ -17,11 +17,15 @@ export type WhatsappChat = Chat & {
|
|
|
17
17
|
|
|
18
18
|
export enum AllPlans {
|
|
19
19
|
FREE_TRIAL = 'free-trial',
|
|
20
|
-
MONTHLY_STARTER = 'monthly-starter',
|
|
21
|
-
YEARLY_STARTER = 'yearly-starter',
|
|
22
|
-
MONTHLY_PRO = 'monthly-pro',
|
|
23
|
-
YEARLY_PRO = 'yearly-pro',
|
|
20
|
+
// MONTHLY_STARTER = 'monthly-starter',
|
|
21
|
+
// YEARLY_STARTER = 'yearly-starter',
|
|
22
|
+
// MONTHLY_PRO = 'monthly-pro',
|
|
23
|
+
// YEARLY_PRO = 'yearly-pro',
|
|
24
24
|
ENTERPRISE = 'enterprise',
|
|
25
|
+
MONTHLY_STARTER_SINGLE = 'monthly-starter-single',
|
|
26
|
+
YEARLY_STARTER_SINGLE = 'yearly-starter-single',
|
|
27
|
+
MONTHLY_PRO_SINGLE = 'monthly-pro-single',
|
|
28
|
+
YEARLY_PRO_SINGLE = 'yearly-pro-single',
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
export type Frequency = 'yearly' | 'monthly' | 'weekly' | 'custom';
|
|
@@ -29,7 +33,9 @@ export type Frequency = 'yearly' | 'monthly' | 'weekly' | 'custom';
|
|
|
29
33
|
export type Enterprise = `${string}-enterprise`;
|
|
30
34
|
|
|
31
35
|
export type OrgPlanEnterprise = {
|
|
36
|
+
subscription_id: string;
|
|
32
37
|
plan_id: Enterprise;
|
|
38
|
+
interval: number;
|
|
33
39
|
frequency: Frequency;
|
|
34
40
|
user_limit: number;
|
|
35
41
|
phone_limit: number;
|
|
@@ -38,12 +44,14 @@ export type OrgPlanEnterprise = {
|
|
|
38
44
|
};
|
|
39
45
|
|
|
40
46
|
export type OrgPlanNonEnterprise = {
|
|
47
|
+
subscription_id: string;
|
|
41
48
|
plan_id: AllPlans;
|
|
42
49
|
interval: number;
|
|
43
50
|
frequency: Frequency;
|
|
44
51
|
user_limit: number;
|
|
45
52
|
phone_limit: number;
|
|
46
|
-
|
|
53
|
+
current_period_end: number;
|
|
54
|
+
current_period_start: number;
|
|
47
55
|
};
|
|
48
56
|
|
|
49
57
|
export type OrgPlan<T extends AllPlans | Enterprise> = T extends Enterprise
|
|
@@ -60,8 +68,9 @@ export type MicrosurveyData = {
|
|
|
60
68
|
|
|
61
69
|
export type OrgPreferences = {
|
|
62
70
|
disable_ai_flagging?: boolean;
|
|
63
|
-
|
|
71
|
+
disable_allow_exports?: boolean;
|
|
64
72
|
sync_phone_contacts?: boolean;
|
|
73
|
+
mask_phone_numbers?: boolean;
|
|
65
74
|
};
|
|
66
75
|
|
|
67
76
|
type OrgPreferenceKey = keyof OrgPreferences;
|
|
@@ -83,7 +92,7 @@ export type OrgMetadata = {
|
|
|
83
92
|
label: string;
|
|
84
93
|
default_stage: { id: string; label: string };
|
|
85
94
|
}[];
|
|
86
|
-
partition?: boolean
|
|
95
|
+
partition?: boolean;
|
|
87
96
|
};
|
|
88
97
|
|
|
89
98
|
export type OrgType = OverrideProperties<
|
|
@@ -133,6 +142,8 @@ export type ChatType = Merge<
|
|
|
133
142
|
hubId: string;
|
|
134
143
|
object_data: HubspotObjectDataType;
|
|
135
144
|
} | null;
|
|
145
|
+
info_admins_only: boolean;
|
|
146
|
+
messages_admins_only: boolean;
|
|
136
147
|
// is_open?: boolean;
|
|
137
148
|
}
|
|
138
149
|
>;
|
|
@@ -187,6 +198,12 @@ export type TicketType = OverrideProperties<
|
|
|
187
198
|
};
|
|
188
199
|
object_data?: HubspotObjectDataType;
|
|
189
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;
|
|
190
207
|
}
|
|
191
208
|
>;
|
|
192
209
|
export type ContactType = Merge<
|
|
@@ -313,23 +330,26 @@ export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
|
|
|
313
330
|
|
|
314
331
|
/* ----------------------- CHAT PARTICIPANT OPERATION ----------------------- */
|
|
315
332
|
|
|
316
|
-
export type
|
|
317
|
-
|
|
318
|
-
|
|
333
|
+
export type ChatLogType = {
|
|
334
|
+
log: Tables<'view_chat_logs'>;
|
|
335
|
+
operations: Tables<'tbl_chat_logs'>[];
|
|
319
336
|
};
|
|
337
|
+
export type ChatOperationsType = 'ADD' | 'REMOVE' | 'PROMOTE' | 'DEMOTE';
|
|
320
338
|
|
|
321
|
-
export type ChatParticipantOperationPayload =
|
|
339
|
+
export type ChatParticipantOperationPayload = {
|
|
340
|
+
participant_ids: string[];
|
|
322
341
|
chat_ids: string[];
|
|
342
|
+
performed_by: string;
|
|
323
343
|
};
|
|
324
344
|
|
|
325
345
|
export type ChatOperationReturn = {
|
|
326
|
-
[participant_id:string]: {
|
|
346
|
+
[participant_id: string]: {
|
|
327
347
|
is_success: boolean;
|
|
328
348
|
message?: string;
|
|
329
349
|
code?: number;
|
|
330
|
-
isInviteV4Sent?:boolean;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
350
|
+
isInviteV4Sent?: boolean;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
333
353
|
|
|
334
354
|
/* ----------------------- BILLING - STRIPE ----------------------- */
|
|
335
355
|
|
|
@@ -337,6 +357,9 @@ export type StripeSubscription = _Stripe.Subscription;
|
|
|
337
357
|
export type StripeCustomer = _Stripe.Customer;
|
|
338
358
|
export type StripeCoupon = _Stripe.Coupon;
|
|
339
359
|
export type StripePrice = _Stripe.Price;
|
|
360
|
+
export type Stripe = _Stripe;
|
|
361
|
+
export type StripeUpcomingInvoice = _Stripe.UpcomingInvoice;
|
|
362
|
+
export type StripeLineItem = _Stripe.Checkout.SessionCreateParams.LineItem;
|
|
340
363
|
|
|
341
364
|
/* -------------------------------- REALTIME -------------------------------- */
|
|
342
365
|
|