@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 CHANGED
@@ -1,3 +1,2 @@
1
- export * from './rules.types';
2
1
  export * from './supabase.types';
3
2
  export * from './types';
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);
@@ -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?: string;
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
- hubspot_pipelines?: {
63
- id: string;
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
@@ -1,3 +1,3 @@
1
- export * from './rules.types';
2
1
  export * from './supabase.types';
3
2
  export * from './types';
3
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.153",
3
+ "version": "0.6.155",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",