@periskope/types 0.6.154 → 0.6.155
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 +14 -1
- package/dist/types.d.ts +10 -46
- package/index.ts +1 -1
- package/package.json +1 -1
- package/supabase.types.ts +14 -1
- package/types.ts +621 -768
- package/dist/rules.types.d.ts +0 -294
- package/dist/rules.types.js +0 -1083
- package/rules.types.ts +0 -1509
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
|
@@ -736,6 +736,7 @@ export type Database = {
|
|
|
736
736
|
chat_name: string | null;
|
|
737
737
|
chat_org_phones: string[];
|
|
738
738
|
chat_type: string | null;
|
|
739
|
+
closed_at: number | null;
|
|
739
740
|
custom_properties: Json | null;
|
|
740
741
|
flag_count_map: Json | null;
|
|
741
742
|
hubspot_metadata: Json | null;
|
|
@@ -754,6 +755,7 @@ export type Database = {
|
|
|
754
755
|
chat_name?: string | null;
|
|
755
756
|
chat_org_phones?: string[];
|
|
756
757
|
chat_type?: string | null;
|
|
758
|
+
closed_at?: number | null;
|
|
757
759
|
custom_properties?: Json | null;
|
|
758
760
|
flag_count_map?: Json | null;
|
|
759
761
|
hubspot_metadata?: Json | null;
|
|
@@ -772,6 +774,7 @@ export type Database = {
|
|
|
772
774
|
chat_name?: string | null;
|
|
773
775
|
chat_org_phones?: string[];
|
|
774
776
|
chat_type?: string | null;
|
|
777
|
+
closed_at?: number | null;
|
|
775
778
|
custom_properties?: Json | null;
|
|
776
779
|
flag_count_map?: Json | null;
|
|
777
780
|
hubspot_metadata?: Json | null;
|
|
@@ -2161,7 +2164,7 @@ export type Database = {
|
|
|
2161
2164
|
column_name: string;
|
|
2162
2165
|
org_id_input: string;
|
|
2163
2166
|
chat_id_input: string[];
|
|
2164
|
-
column_value_input?:
|
|
2167
|
+
column_value_input?: unknown;
|
|
2165
2168
|
key_input?: string;
|
|
2166
2169
|
value_input?: Json;
|
|
2167
2170
|
};
|
|
@@ -2272,6 +2275,7 @@ export type Database = {
|
|
|
2272
2275
|
owner_id: string | null;
|
|
2273
2276
|
path_tokens: string[] | null;
|
|
2274
2277
|
updated_at: string | null;
|
|
2278
|
+
user_metadata: Json | null;
|
|
2275
2279
|
version: string | null;
|
|
2276
2280
|
};
|
|
2277
2281
|
Insert: {
|
|
@@ -2285,6 +2289,7 @@ export type Database = {
|
|
|
2285
2289
|
owner_id?: string | null;
|
|
2286
2290
|
path_tokens?: string[] | null;
|
|
2287
2291
|
updated_at?: string | null;
|
|
2292
|
+
user_metadata?: Json | null;
|
|
2288
2293
|
version?: string | null;
|
|
2289
2294
|
};
|
|
2290
2295
|
Update: {
|
|
@@ -2298,6 +2303,7 @@ export type Database = {
|
|
|
2298
2303
|
owner_id?: string | null;
|
|
2299
2304
|
path_tokens?: string[] | null;
|
|
2300
2305
|
updated_at?: string | null;
|
|
2306
|
+
user_metadata?: Json | null;
|
|
2301
2307
|
version?: string | null;
|
|
2302
2308
|
};
|
|
2303
2309
|
Relationships: [
|
|
@@ -2319,6 +2325,7 @@ export type Database = {
|
|
|
2319
2325
|
key: string;
|
|
2320
2326
|
owner_id: string | null;
|
|
2321
2327
|
upload_signature: string;
|
|
2328
|
+
user_metadata: Json | null;
|
|
2322
2329
|
version: string;
|
|
2323
2330
|
};
|
|
2324
2331
|
Insert: {
|
|
@@ -2329,6 +2336,7 @@ export type Database = {
|
|
|
2329
2336
|
key: string;
|
|
2330
2337
|
owner_id?: string | null;
|
|
2331
2338
|
upload_signature: string;
|
|
2339
|
+
user_metadata?: Json | null;
|
|
2332
2340
|
version: string;
|
|
2333
2341
|
};
|
|
2334
2342
|
Update: {
|
|
@@ -2339,6 +2347,7 @@ export type Database = {
|
|
|
2339
2347
|
key?: string;
|
|
2340
2348
|
owner_id?: string | null;
|
|
2341
2349
|
upload_signature?: string;
|
|
2350
|
+
user_metadata?: Json | null;
|
|
2342
2351
|
version?: string;
|
|
2343
2352
|
};
|
|
2344
2353
|
Relationships: [
|
|
@@ -2475,6 +2484,10 @@ export type Database = {
|
|
|
2475
2484
|
updated_at: string;
|
|
2476
2485
|
}[];
|
|
2477
2486
|
};
|
|
2487
|
+
operation: {
|
|
2488
|
+
Args: Record<PropertyKey, never>;
|
|
2489
|
+
Returns: string;
|
|
2490
|
+
};
|
|
2478
2491
|
search: {
|
|
2479
2492
|
Args: {
|
|
2480
2493
|
prefix: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { default as _Stripe } from 'stripe';
|
|
2
2
|
import { Merge, OverrideProperties } from 'type-fest';
|
|
3
|
-
import { Rule } from "./rules.types";
|
|
4
3
|
import { Tables, TablesUpdate } from './supabase.types';
|
|
5
4
|
export declare enum AllPlans {
|
|
6
5
|
FREE_TRIAL = "free-trial",
|
|
@@ -59,14 +58,17 @@ export type OrgMetadata = {
|
|
|
59
58
|
referralSource?: string;
|
|
60
59
|
surveyData?: MicrosurveyData;
|
|
61
60
|
preferences?: OrgPreferences;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
label: string;
|
|
65
|
-
default_stage: {
|
|
61
|
+
hubspot: {
|
|
62
|
+
hubspot_pipelines?: {
|
|
66
63
|
id: string;
|
|
67
64
|
label: string;
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
default_stage: {
|
|
66
|
+
id: string;
|
|
67
|
+
label: string;
|
|
68
|
+
};
|
|
69
|
+
}[];
|
|
70
|
+
hubspot_hidden_fields?: string[];
|
|
71
|
+
};
|
|
70
72
|
partition?: boolean;
|
|
71
73
|
tickets: {
|
|
72
74
|
prefix?: string;
|
|
@@ -96,7 +98,6 @@ export type OrgType = OverrideProperties<Merge<Tables<'tbl_org'>, {
|
|
|
96
98
|
is_freshdesk_connected: boolean;
|
|
97
99
|
is_zohodesk_connected: boolean;
|
|
98
100
|
access_scopes: AccessScopes;
|
|
99
|
-
rules: Rule[];
|
|
100
101
|
}>, {
|
|
101
102
|
org_plan: OrgPlan<AllPlans | Enterprise>;
|
|
102
103
|
stripe_customer_details: _Stripe.Customer | null;
|
|
@@ -138,7 +139,7 @@ export type ChatType = Merge<Tables<'view_chats'>, {
|
|
|
138
139
|
};
|
|
139
140
|
is_archived?: boolean;
|
|
140
141
|
is_pinned?: boolean;
|
|
141
|
-
closed_at?: number;
|
|
142
|
+
closed_at?: number | null;
|
|
142
143
|
common_chats?: string[];
|
|
143
144
|
}>;
|
|
144
145
|
export type MediaType = {
|
|
@@ -449,41 +450,4 @@ export type OrgCreditsType = {
|
|
|
449
450
|
total_credits_used: number;
|
|
450
451
|
next_renewal_date: string;
|
|
451
452
|
};
|
|
452
|
-
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'>, {
|
|
453
|
-
has_flagged_messages: boolean;
|
|
454
|
-
labels: string[];
|
|
455
|
-
members: string[];
|
|
456
|
-
custom_properties: {
|
|
457
|
-
[key: string]: string;
|
|
458
|
-
} | null;
|
|
459
|
-
}>;
|
|
460
|
-
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'>, {
|
|
461
|
-
is_internal: boolean;
|
|
462
|
-
labels: string[] | null;
|
|
463
|
-
}>;
|
|
464
|
-
export type MessageRuleInfoType = {
|
|
465
|
-
chat: ChatRuleInfoType;
|
|
466
|
-
sender: SenderRuleInfoType;
|
|
467
|
-
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'>, {
|
|
468
|
-
media: MediaType | null;
|
|
469
|
-
}>;
|
|
470
|
-
};
|
|
471
|
-
export type ReactionRuleInfoType = {
|
|
472
|
-
chat: ChatRuleInfoType;
|
|
473
|
-
sender: SenderRuleInfoType;
|
|
474
|
-
message: MessageRuleInfoType['message'];
|
|
475
|
-
reaction: Pick<Tables<'tbl_chat_reactions'>, 'reaction' | 'sender_id' | 'message_id' | 'chat_id' | 'reaction_id'>;
|
|
476
|
-
};
|
|
477
|
-
export type TicketRuleInfoType = {
|
|
478
|
-
chat: ChatRuleInfoType;
|
|
479
|
-
sender: SenderRuleInfoType;
|
|
480
|
-
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'>, {
|
|
481
|
-
labels: string[] | null;
|
|
482
|
-
custom_properties: {
|
|
483
|
-
[key: string]: string;
|
|
484
|
-
} | null;
|
|
485
|
-
}>;
|
|
486
|
-
message: MessageRuleInfoType['message'];
|
|
487
|
-
};
|
|
488
|
-
export type FeatureFlagReturnType = Record<string, boolean>;
|
|
489
453
|
export {};
|
package/index.ts
CHANGED
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -741,6 +741,7 @@ export type Database = {
|
|
|
741
741
|
chat_name: string | null
|
|
742
742
|
chat_org_phones: string[]
|
|
743
743
|
chat_type: string | null
|
|
744
|
+
closed_at: number | null
|
|
744
745
|
custom_properties: Json | null
|
|
745
746
|
flag_count_map: Json | null
|
|
746
747
|
hubspot_metadata: Json | null
|
|
@@ -759,6 +760,7 @@ export type Database = {
|
|
|
759
760
|
chat_name?: string | null
|
|
760
761
|
chat_org_phones?: string[]
|
|
761
762
|
chat_type?: string | null
|
|
763
|
+
closed_at?: number | null
|
|
762
764
|
custom_properties?: Json | null
|
|
763
765
|
flag_count_map?: Json | null
|
|
764
766
|
hubspot_metadata?: Json | null
|
|
@@ -777,6 +779,7 @@ export type Database = {
|
|
|
777
779
|
chat_name?: string | null
|
|
778
780
|
chat_org_phones?: string[]
|
|
779
781
|
chat_type?: string | null
|
|
782
|
+
closed_at?: number | null
|
|
780
783
|
custom_properties?: Json | null
|
|
781
784
|
flag_count_map?: Json | null
|
|
782
785
|
hubspot_metadata?: Json | null
|
|
@@ -2172,7 +2175,7 @@ export type Database = {
|
|
|
2172
2175
|
column_name: string
|
|
2173
2176
|
org_id_input: string
|
|
2174
2177
|
chat_id_input: string[]
|
|
2175
|
-
column_value_input?:
|
|
2178
|
+
column_value_input?: unknown
|
|
2176
2179
|
key_input?: string
|
|
2177
2180
|
value_input?: Json
|
|
2178
2181
|
}
|
|
@@ -2334,6 +2337,7 @@ export type Database = {
|
|
|
2334
2337
|
owner_id: string | null
|
|
2335
2338
|
path_tokens: string[] | null
|
|
2336
2339
|
updated_at: string | null
|
|
2340
|
+
user_metadata: Json | null
|
|
2337
2341
|
version: string | null
|
|
2338
2342
|
}
|
|
2339
2343
|
Insert: {
|
|
@@ -2347,6 +2351,7 @@ export type Database = {
|
|
|
2347
2351
|
owner_id?: string | null
|
|
2348
2352
|
path_tokens?: string[] | null
|
|
2349
2353
|
updated_at?: string | null
|
|
2354
|
+
user_metadata?: Json | null
|
|
2350
2355
|
version?: string | null
|
|
2351
2356
|
}
|
|
2352
2357
|
Update: {
|
|
@@ -2360,6 +2365,7 @@ export type Database = {
|
|
|
2360
2365
|
owner_id?: string | null
|
|
2361
2366
|
path_tokens?: string[] | null
|
|
2362
2367
|
updated_at?: string | null
|
|
2368
|
+
user_metadata?: Json | null
|
|
2363
2369
|
version?: string | null
|
|
2364
2370
|
}
|
|
2365
2371
|
Relationships: [
|
|
@@ -2381,6 +2387,7 @@ export type Database = {
|
|
|
2381
2387
|
key: string
|
|
2382
2388
|
owner_id: string | null
|
|
2383
2389
|
upload_signature: string
|
|
2390
|
+
user_metadata: Json | null
|
|
2384
2391
|
version: string
|
|
2385
2392
|
}
|
|
2386
2393
|
Insert: {
|
|
@@ -2391,6 +2398,7 @@ export type Database = {
|
|
|
2391
2398
|
key: string
|
|
2392
2399
|
owner_id?: string | null
|
|
2393
2400
|
upload_signature: string
|
|
2401
|
+
user_metadata?: Json | null
|
|
2394
2402
|
version: string
|
|
2395
2403
|
}
|
|
2396
2404
|
Update: {
|
|
@@ -2401,6 +2409,7 @@ export type Database = {
|
|
|
2401
2409
|
key?: string
|
|
2402
2410
|
owner_id?: string | null
|
|
2403
2411
|
upload_signature?: string
|
|
2412
|
+
user_metadata?: Json | null
|
|
2404
2413
|
version?: string
|
|
2405
2414
|
}
|
|
2406
2415
|
Relationships: [
|
|
@@ -2537,6 +2546,10 @@ export type Database = {
|
|
|
2537
2546
|
updated_at: string
|
|
2538
2547
|
}[]
|
|
2539
2548
|
}
|
|
2549
|
+
operation: {
|
|
2550
|
+
Args: Record<PropertyKey, never>
|
|
2551
|
+
Returns: string
|
|
2552
|
+
}
|
|
2540
2553
|
search: {
|
|
2541
2554
|
Args: {
|
|
2542
2555
|
prefix: string
|