@periskope/types 0.6.88 → 0.6.90

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/types.d.ts CHANGED
@@ -39,6 +39,11 @@ export type MicrosurveyData = {
39
39
  text: string;
40
40
  checked: boolean;
41
41
  }[];
42
+ export type OrgPreferences = {
43
+ disable_ai_flagging?: boolean;
44
+ allow_exports?: boolean;
45
+ sync_phone_contacts?: boolean;
46
+ };
42
47
  export type OrgMetadata = {
43
48
  phone_number: string;
44
49
  ticket_prefix: string;
@@ -46,6 +51,15 @@ export type OrgMetadata = {
46
51
  surveyData?: MicrosurveyData;
47
52
  onboarding: Record<string, boolean>;
48
53
  onboarding_completed_at: Date | null;
54
+ preferences?: OrgPreferences;
55
+ hubspot_pipelines?: {
56
+ id: string;
57
+ label: string;
58
+ default_stage: {
59
+ id: string;
60
+ label: string;
61
+ };
62
+ }[];
49
63
  };
50
64
  export type OrgType = OverrideProperties<Merge<Tables<'tbl_org'>, {
51
65
  user: Tables<'tbl_org_members'>;
@@ -121,14 +135,19 @@ export type TicketType = OverrideProperties<Tables<'tbl_chat_tickets'>, {
121
135
  [key: string]: boolean;
122
136
  };
123
137
  hubspot_metadata: {
124
- id: string;
125
- type: string;
126
- hubId: string;
127
- object_data: HubspotObjectDataType;
138
+ id?: string;
139
+ type?: string;
140
+ hubId?: string;
141
+ pipeline: {
142
+ id: string;
143
+ label: string;
144
+ };
145
+ object_data?: HubspotObjectDataType;
128
146
  } | null;
129
147
  }>;
130
148
  export type ContactType = Merge<Tables<'tbl_contacts'>, {
131
149
  chats: ChatType[] | null;
150
+ chat_ids?: string[];
132
151
  }>;
133
152
  export type ReactionType = Tables<'tbl_chat_reactions'>;
134
153
  export type NotificationType = Tables<'tbl_chat_notifications'>;
@@ -146,9 +165,6 @@ export type SendMessageContent = {
146
165
  quoted_message_type?: 'reply' | 'forward' | 'reply_private';
147
166
  broadcast_id?: string;
148
167
  performed_by?: string;
149
- variables?: {
150
- [key: string]: VariableType;
151
- };
152
168
  };
153
169
  export type QuickReplyContent = Omit<SendMessageContent, 'broadcast_id' | 'variables'>;
154
170
  export type VariableType = {
@@ -157,6 +173,12 @@ export type VariableType = {
157
173
  export type BroadcastMessagePayload = SendMessageContent & {
158
174
  chat_ids: string[];
159
175
  broadcast_id?: string;
176
+ variables?: {
177
+ chat_id: string;
178
+ values: {
179
+ [key: string]: VariableType;
180
+ };
181
+ };
160
182
  };
161
183
  export type SingleMessagePayload = SendMessageContent & {
162
184
  chat_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.88",
3
+ "version": "0.6.90",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",