@periskope/types 0.6.153 → 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 +5 -2
- package/dist/types.d.ts +10 -46
- package/index.ts +1 -1
- package/package.json +1 -1
- package/supabase.types.ts +2664 -2660
- 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
|
};
|
|
@@ -2190,7 +2193,7 @@ export type Database = {
|
|
|
2190
2193
|
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
2191
2194
|
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
2192
2195
|
enum_credit_transaction_type: "credit" | "debit";
|
|
2193
|
-
enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.integrations.updated" | "message.flagged" | "message.unflagged" | "chat.label.updated";
|
|
2196
|
+
enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.integrations.updated" | "message.flagged" | "message.unflagged" | "chat.label.updated" | "reaction.added";
|
|
2194
2197
|
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "gsheets";
|
|
2195
2198
|
enum_member_role: "admin" | "member";
|
|
2196
2199
|
};
|
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