@periskope/types 0.6.155 → 0.6.156
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 +1 -0
- package/dist/index.js +1 -0
- package/dist/rules.types.d.ts +294 -0
- package/dist/rules.types.js +1121 -0
- package/dist/supabase.types.d.ts +0 -10
- package/dist/types.d.ts +39 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/rules.types.ts +1547 -0
- package/supabase.types.ts +2654 -2664
- package/types.ts +771 -621
package/dist/supabase.types.d.ts
CHANGED
|
@@ -2275,7 +2275,6 @@ export type Database = {
|
|
|
2275
2275
|
owner_id: string | null;
|
|
2276
2276
|
path_tokens: string[] | null;
|
|
2277
2277
|
updated_at: string | null;
|
|
2278
|
-
user_metadata: Json | null;
|
|
2279
2278
|
version: string | null;
|
|
2280
2279
|
};
|
|
2281
2280
|
Insert: {
|
|
@@ -2289,7 +2288,6 @@ export type Database = {
|
|
|
2289
2288
|
owner_id?: string | null;
|
|
2290
2289
|
path_tokens?: string[] | null;
|
|
2291
2290
|
updated_at?: string | null;
|
|
2292
|
-
user_metadata?: Json | null;
|
|
2293
2291
|
version?: string | null;
|
|
2294
2292
|
};
|
|
2295
2293
|
Update: {
|
|
@@ -2303,7 +2301,6 @@ export type Database = {
|
|
|
2303
2301
|
owner_id?: string | null;
|
|
2304
2302
|
path_tokens?: string[] | null;
|
|
2305
2303
|
updated_at?: string | null;
|
|
2306
|
-
user_metadata?: Json | null;
|
|
2307
2304
|
version?: string | null;
|
|
2308
2305
|
};
|
|
2309
2306
|
Relationships: [
|
|
@@ -2325,7 +2322,6 @@ export type Database = {
|
|
|
2325
2322
|
key: string;
|
|
2326
2323
|
owner_id: string | null;
|
|
2327
2324
|
upload_signature: string;
|
|
2328
|
-
user_metadata: Json | null;
|
|
2329
2325
|
version: string;
|
|
2330
2326
|
};
|
|
2331
2327
|
Insert: {
|
|
@@ -2336,7 +2332,6 @@ export type Database = {
|
|
|
2336
2332
|
key: string;
|
|
2337
2333
|
owner_id?: string | null;
|
|
2338
2334
|
upload_signature: string;
|
|
2339
|
-
user_metadata?: Json | null;
|
|
2340
2335
|
version: string;
|
|
2341
2336
|
};
|
|
2342
2337
|
Update: {
|
|
@@ -2347,7 +2342,6 @@ export type Database = {
|
|
|
2347
2342
|
key?: string;
|
|
2348
2343
|
owner_id?: string | null;
|
|
2349
2344
|
upload_signature?: string;
|
|
2350
|
-
user_metadata?: Json | null;
|
|
2351
2345
|
version?: string;
|
|
2352
2346
|
};
|
|
2353
2347
|
Relationships: [
|
|
@@ -2484,10 +2478,6 @@ export type Database = {
|
|
|
2484
2478
|
updated_at: string;
|
|
2485
2479
|
}[];
|
|
2486
2480
|
};
|
|
2487
|
-
operation: {
|
|
2488
|
-
Args: Record<PropertyKey, never>;
|
|
2489
|
-
Returns: string;
|
|
2490
|
-
};
|
|
2491
2481
|
search: {
|
|
2492
2482
|
Args: {
|
|
2493
2483
|
prefix: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { default as _Stripe } from 'stripe';
|
|
2
2
|
import { Merge, OverrideProperties } from 'type-fest';
|
|
3
|
+
import { Rule } from "./rules.types";
|
|
3
4
|
import { Tables, TablesUpdate } from './supabase.types';
|
|
4
5
|
export declare enum AllPlans {
|
|
5
6
|
FREE_TRIAL = "free-trial",
|
|
@@ -98,6 +99,7 @@ export type OrgType = OverrideProperties<Merge<Tables<'tbl_org'>, {
|
|
|
98
99
|
is_freshdesk_connected: boolean;
|
|
99
100
|
is_zohodesk_connected: boolean;
|
|
100
101
|
access_scopes: AccessScopes;
|
|
102
|
+
rules: Rule[];
|
|
101
103
|
}>, {
|
|
102
104
|
org_plan: OrgPlan<AllPlans | Enterprise>;
|
|
103
105
|
stripe_customer_details: _Stripe.Customer | null;
|
|
@@ -450,4 +452,41 @@ export type OrgCreditsType = {
|
|
|
450
452
|
total_credits_used: number;
|
|
451
453
|
next_renewal_date: string;
|
|
452
454
|
};
|
|
455
|
+
export type ChatRuleInfoType = Merge<Pick<Tables<'view_chats'>, 'assigned_to' | 'chat_id' | 'chat_name' | 'chat_type' | 'created_at' | 'group_description' | 'info_admins_only' | 'is_muted' | 'org_id' | 'org_phone' | 'chat_org_phones' | 'messages_admins_only' | 'custom_properties'>, {
|
|
456
|
+
has_flagged_messages: boolean;
|
|
457
|
+
labels: string[];
|
|
458
|
+
members: string[];
|
|
459
|
+
custom_properties: {
|
|
460
|
+
[key: string]: string;
|
|
461
|
+
} | null;
|
|
462
|
+
}>;
|
|
463
|
+
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'>, {
|
|
464
|
+
is_internal: boolean;
|
|
465
|
+
labels: string[] | null;
|
|
466
|
+
}>;
|
|
467
|
+
export type MessageRuleInfoType = {
|
|
468
|
+
chat: ChatRuleInfoType;
|
|
469
|
+
sender: SenderRuleInfoType;
|
|
470
|
+
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' | 'ack'>, {
|
|
471
|
+
media: MediaType | null;
|
|
472
|
+
}>;
|
|
473
|
+
};
|
|
474
|
+
export type ReactionRuleInfoType = {
|
|
475
|
+
chat: ChatRuleInfoType;
|
|
476
|
+
sender: SenderRuleInfoType;
|
|
477
|
+
message: MessageRuleInfoType['message'];
|
|
478
|
+
reaction: Pick<Tables<'tbl_chat_reactions'>, 'reaction' | 'sender_id' | 'message_id' | 'chat_id' | 'reaction_id'>;
|
|
479
|
+
};
|
|
480
|
+
export type TicketRuleInfoType = {
|
|
481
|
+
chat: ChatRuleInfoType;
|
|
482
|
+
sender: SenderRuleInfoType;
|
|
483
|
+
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'>, {
|
|
484
|
+
labels: string[] | null;
|
|
485
|
+
custom_properties: {
|
|
486
|
+
[key: string]: string;
|
|
487
|
+
} | null;
|
|
488
|
+
}>;
|
|
489
|
+
message: MessageRuleInfoType['message'];
|
|
490
|
+
};
|
|
491
|
+
export type FeatureFlagReturnType = Record<string, boolean>;
|
|
453
492
|
export {};
|
package/index.ts
CHANGED