@periskope/types 0.6.149 → 0.6.151
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/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/supabase.types.d.ts +13 -25
- package/dist/types.d.ts +4 -38
- package/index.ts +1 -1
- package/package.json +1 -1
- package/supabase.types.ts +2660 -2670
- package/types.ts +617 -762
- package/dist/rules.types.d.ts +0 -278
- package/dist/rules.types.js +0 -1059
- package/rules.types.ts +0 -1463
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./rules.types"), exports);
|
|
18
17
|
__exportStar(require("./supabase.types"), exports);
|
|
19
18
|
__exportStar(require("./types"), exports);
|
package/dist/supabase.types.d.ts
CHANGED
|
@@ -2,31 +2,6 @@ export type Json = {
|
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
} | any;
|
|
4
4
|
export type Database = {
|
|
5
|
-
graphql_public: {
|
|
6
|
-
Tables: {
|
|
7
|
-
[_ in never]: never;
|
|
8
|
-
};
|
|
9
|
-
Views: {
|
|
10
|
-
[_ in never]: never;
|
|
11
|
-
};
|
|
12
|
-
Functions: {
|
|
13
|
-
graphql: {
|
|
14
|
-
Args: {
|
|
15
|
-
operationName?: string;
|
|
16
|
-
query?: string;
|
|
17
|
-
variables?: Json;
|
|
18
|
-
extensions?: Json;
|
|
19
|
-
};
|
|
20
|
-
Returns: Json;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
Enums: {
|
|
24
|
-
[_ in never]: never;
|
|
25
|
-
};
|
|
26
|
-
CompositeTypes: {
|
|
27
|
-
[_ in never]: never;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
5
|
internal: {
|
|
31
6
|
Tables: {
|
|
32
7
|
config: {
|
|
@@ -359,6 +334,7 @@ export type Database = {
|
|
|
359
334
|
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
360
335
|
chat_ids: string[] | null;
|
|
361
336
|
created_at: string;
|
|
337
|
+
delay: number | null;
|
|
362
338
|
message_payload: Json | null;
|
|
363
339
|
org_id: string;
|
|
364
340
|
org_phone: string | null;
|
|
@@ -372,6 +348,7 @@ export type Database = {
|
|
|
372
348
|
broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
373
349
|
chat_ids?: string[] | null;
|
|
374
350
|
created_at?: string;
|
|
351
|
+
delay?: number | null;
|
|
375
352
|
message_payload?: Json | null;
|
|
376
353
|
org_id: string;
|
|
377
354
|
org_phone?: string | null;
|
|
@@ -385,6 +362,7 @@ export type Database = {
|
|
|
385
362
|
broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
386
363
|
chat_ids?: string[] | null;
|
|
387
364
|
created_at?: string;
|
|
365
|
+
delay?: number | null;
|
|
388
366
|
message_payload?: Json | null;
|
|
389
367
|
org_id?: string;
|
|
390
368
|
org_phone?: string | null;
|
|
@@ -2294,6 +2272,7 @@ export type Database = {
|
|
|
2294
2272
|
owner_id: string | null;
|
|
2295
2273
|
path_tokens: string[] | null;
|
|
2296
2274
|
updated_at: string | null;
|
|
2275
|
+
user_metadata: Json | null;
|
|
2297
2276
|
version: string | null;
|
|
2298
2277
|
};
|
|
2299
2278
|
Insert: {
|
|
@@ -2307,6 +2286,7 @@ export type Database = {
|
|
|
2307
2286
|
owner_id?: string | null;
|
|
2308
2287
|
path_tokens?: string[] | null;
|
|
2309
2288
|
updated_at?: string | null;
|
|
2289
|
+
user_metadata?: Json | null;
|
|
2310
2290
|
version?: string | null;
|
|
2311
2291
|
};
|
|
2312
2292
|
Update: {
|
|
@@ -2320,6 +2300,7 @@ export type Database = {
|
|
|
2320
2300
|
owner_id?: string | null;
|
|
2321
2301
|
path_tokens?: string[] | null;
|
|
2322
2302
|
updated_at?: string | null;
|
|
2303
|
+
user_metadata?: Json | null;
|
|
2323
2304
|
version?: string | null;
|
|
2324
2305
|
};
|
|
2325
2306
|
Relationships: [
|
|
@@ -2341,6 +2322,7 @@ export type Database = {
|
|
|
2341
2322
|
key: string;
|
|
2342
2323
|
owner_id: string | null;
|
|
2343
2324
|
upload_signature: string;
|
|
2325
|
+
user_metadata: Json | null;
|
|
2344
2326
|
version: string;
|
|
2345
2327
|
};
|
|
2346
2328
|
Insert: {
|
|
@@ -2351,6 +2333,7 @@ export type Database = {
|
|
|
2351
2333
|
key: string;
|
|
2352
2334
|
owner_id?: string | null;
|
|
2353
2335
|
upload_signature: string;
|
|
2336
|
+
user_metadata?: Json | null;
|
|
2354
2337
|
version: string;
|
|
2355
2338
|
};
|
|
2356
2339
|
Update: {
|
|
@@ -2361,6 +2344,7 @@ export type Database = {
|
|
|
2361
2344
|
key?: string;
|
|
2362
2345
|
owner_id?: string | null;
|
|
2363
2346
|
upload_signature?: string;
|
|
2347
|
+
user_metadata?: Json | null;
|
|
2364
2348
|
version?: string;
|
|
2365
2349
|
};
|
|
2366
2350
|
Relationships: [
|
|
@@ -2497,6 +2481,10 @@ export type Database = {
|
|
|
2497
2481
|
updated_at: string;
|
|
2498
2482
|
}[];
|
|
2499
2483
|
};
|
|
2484
|
+
operation: {
|
|
2485
|
+
Args: Record<PropertyKey, never>;
|
|
2486
|
+
Returns: string;
|
|
2487
|
+
};
|
|
2500
2488
|
search: {
|
|
2501
2489
|
Args: {
|
|
2502
2490
|
prefix: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ export type ChatType = Merge<Tables<'view_chats'>, {
|
|
|
136
136
|
is_archived?: boolean;
|
|
137
137
|
is_pinned?: boolean;
|
|
138
138
|
closed_at?: number;
|
|
139
|
+
common_chats?: string[];
|
|
139
140
|
}>;
|
|
140
141
|
export type MediaType = {
|
|
141
142
|
path: string;
|
|
@@ -163,7 +164,7 @@ export type MessageType = Merge<OverrideProperties<Tables<'tbl_chat_messages'>,
|
|
|
163
164
|
}>, {
|
|
164
165
|
reactions?: ReactionType[];
|
|
165
166
|
message_payload?: SingleMessagePayload;
|
|
166
|
-
show_unread?:
|
|
167
|
+
show_unread?: number;
|
|
167
168
|
highlight?: number;
|
|
168
169
|
}>;
|
|
169
170
|
export type MessageFlagType = {
|
|
@@ -239,10 +240,12 @@ export type BroadcastMessagePayload = SendMessageContent & {
|
|
|
239
240
|
chat_ids: string[];
|
|
240
241
|
broadcast_id?: string;
|
|
241
242
|
variables?: BroadcastVariableType[];
|
|
243
|
+
delay?: number;
|
|
242
244
|
};
|
|
243
245
|
export type SingleMessagePayload = SendMessageContent & {
|
|
244
246
|
chat_id: string;
|
|
245
247
|
job_id?: string;
|
|
248
|
+
priority?: number;
|
|
246
249
|
};
|
|
247
250
|
export type MessageAttachmentFileTypes = 'image' | 'audio' | 'document' | 'video';
|
|
248
251
|
export type AttachmentFileType = {
|
|
@@ -443,41 +446,4 @@ export type OrgCreditsType = {
|
|
|
443
446
|
total_credits_used: number;
|
|
444
447
|
next_renewal_date: string;
|
|
445
448
|
};
|
|
446
|
-
export type ChatRuleInfoType = Merge<Pick<Tables<'view_chats'>, 'assigned_to' | 'chat_id' | 'chat_name' | 'chat_type' | 'created_at' | 'group_description' | 'info_admins_only' | 'is_exited' | 'is_muted' | 'org_id' | 'org_phone' | 'chat_org_phones' | 'messages_admins_only' | 'custom_properties'>, {
|
|
447
|
-
has_flagged_messages: boolean;
|
|
448
|
-
labels: string[];
|
|
449
|
-
members: string[];
|
|
450
|
-
custom_properties: {
|
|
451
|
-
[key: string]: string;
|
|
452
|
-
} | null;
|
|
453
|
-
}>;
|
|
454
|
-
export type SenderRuleInfoType = Merge<Omit<Merge<Tables<'tbl_contacts'>, Tables<'tbl_chat_participants'>>, 'verified_name' | 'verified_level' | 'updated_at' | 'short_name' | 'pushname' | 'periskope_name' | 'org_phone' | 'number' | 'name' | 'label_ids' | 'is_wa_contact' | 'is_user' | 'is_my_contact' | 'is_me' | 'is_imported' | 'is_group' | 'is_blocked' | 'contact_color' | 'business_profile' | 'id' | 'contact_image' | 'contact_type' | 'chat_id'>, {
|
|
455
|
-
is_internal: boolean;
|
|
456
|
-
labels: string[] | null;
|
|
457
|
-
}>;
|
|
458
|
-
export type MessageRuleInfoType = {
|
|
459
|
-
chat: ChatRuleInfoType;
|
|
460
|
-
sender: SenderRuleInfoType;
|
|
461
|
-
message: OverrideProperties<Omit<Tables<'tbl_chat_messages'>, 'vcards' | 'updated_at' | 'unique_id' | 'token' | 'to' | 'sent_message_id' | 'raw_data' | 'delivery_info' | 'poll_results' | 'poll_info' | 'order_id' | 'mentioned_ids' | 'media_key' | 'location' | 'links' | 'is_status' | 'is_starred' | 'is_gif' | 'is_forwarded' | 'is_ephemeral' | 'is_deleted' | 'fts' | 'quoted_message_id' | 'invite_v4' | 'id' | 'has_reaction' | 'has_media' | 'duration' | 'broadcast' | 'broadcast_id' | 'device_type' | 'forwarding_score' | 'from' | 'from_me' | 'message_ticket_id' | 'prev_body' | 'flag_response_time' | 'flag_metadata'>, {
|
|
462
|
-
media: MediaType | null;
|
|
463
|
-
}>;
|
|
464
|
-
};
|
|
465
|
-
export type ReactionRuleInfoType = {
|
|
466
|
-
chat: ChatRuleInfoType;
|
|
467
|
-
sender: SenderRuleInfoType;
|
|
468
|
-
message: MessageRuleInfoType['message'];
|
|
469
|
-
reaction: Pick<Tables<'tbl_chat_reactions'>, 'reaction' | 'sender_id' | 'message_id' | 'chat_id' | 'reaction_id'>;
|
|
470
|
-
};
|
|
471
|
-
export type TicketRuleInfoType = {
|
|
472
|
-
chat: ChatRuleInfoType;
|
|
473
|
-
sender: SenderRuleInfoType;
|
|
474
|
-
ticket: Merge<Pick<Tables<'tbl_chat_tickets'>, 'org_id' | 'status' | 'chat_id' | 'subject' | 'assignee' | 'due_date' | 'priority' | 'raised_by' | 'ticket_id' | 'created_at' | 'is_deleted'>, {
|
|
475
|
-
labels: string[] | null;
|
|
476
|
-
custom_properties: {
|
|
477
|
-
[key: string]: string;
|
|
478
|
-
} | null;
|
|
479
|
-
}>;
|
|
480
|
-
message: MessageRuleInfoType['message'];
|
|
481
|
-
};
|
|
482
|
-
export type FeatureFlagReturnType = Record<string, boolean>;
|
|
483
449
|
export {};
|
package/index.ts
CHANGED