@periskope/types 0.6.158 → 0.6.159

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.
@@ -79,7 +79,7 @@ exports.MessageVariableNameMap = {
79
79
  variable_type: 'string',
80
80
  },
81
81
  'message.timestamp': {
82
- text: 'Message receive timestamp',
82
+ text: 'Message Timestamp',
83
83
  type: 'day-time',
84
84
  filters: {
85
85
  LT: {
@@ -108,19 +108,19 @@ exports.MessageVariableNameMap = {
108
108
  variable_type: 'boolean',
109
109
  },
110
110
  'message.has_quoted_msg': {
111
- text: 'Quoted Message',
111
+ text: 'Has Quoted Message',
112
112
  filters: ['IS'],
113
113
  type: 'boolean',
114
114
  variable_type: 'boolean',
115
115
  },
116
116
  'message.media': {
117
- text: 'Message Media',
117
+ text: 'Has Media',
118
118
  type: 'boolean',
119
119
  filters: ['KNOWN', 'NKNOWN'],
120
120
  variable_type: 'boolean',
121
121
  },
122
122
  'message.performed_by': {
123
- text: 'Message Performed By',
123
+ text: 'Message Sent By (email)',
124
124
  type: 'dropdown',
125
125
  value: 'org.members',
126
126
  filters: ['EQ', 'NEQ'],
@@ -178,7 +178,7 @@ exports.MessageVariableNameMap = {
178
178
  };
179
179
  exports.SenderVariableNameMap = {
180
180
  'sender.is_internal': {
181
- text: 'Sender is internal',
181
+ text: 'Sender Is Internal',
182
182
  type: 'boolean',
183
183
  filters: ['IS'],
184
184
  variable_type: 'boolean',
@@ -191,14 +191,14 @@ exports.SenderVariableNameMap = {
191
191
  variable_type: 'string',
192
192
  },
193
193
  'sender.contact_id': {
194
- text: 'Sender Contact Phone',
194
+ text: 'Sender Phone',
195
195
  type: 'string',
196
196
  filters: ['EQ', 'NEQ'],
197
197
  placeholder: 'e.g. 919876543210',
198
198
  variable_type: 'string',
199
199
  },
200
200
  'sender.labels': {
201
- text: 'Sender Labels',
201
+ text: 'Sender Contact Labels',
202
202
  type: 'dropdown',
203
203
  value: 'org.labels',
204
204
  filters: ['CONTAINS', 'NCONTAINS'],
@@ -211,26 +211,8 @@ exports.SenderVariableNameMap = {
211
211
  hidden: true,
212
212
  variable_type: 'string',
213
213
  },
214
- 'sender.is_super_admin': {
215
- text: 'Sender is super admin',
216
- type: 'dropdown',
217
- filters: ['EQ', 'NEQ'],
218
- value: [
219
- {
220
- id: 'true',
221
- value: 'true',
222
- label: 'True',
223
- },
224
- {
225
- id: 'false',
226
- value: 'false',
227
- label: 'False',
228
- },
229
- ],
230
- variable_type: 'boolean',
231
- },
232
214
  'sender.is_admin': {
233
- text: 'Sender is admin',
215
+ text: 'Sender Is Admin',
234
216
  type: 'dropdown',
235
217
  filters: ['EQ', 'NEQ'],
236
218
  value: [
@@ -316,7 +298,7 @@ exports.ChatVariableNameMap = {
316
298
  variable_type: 'string',
317
299
  },
318
300
  'chat.messages_admins_only': {
319
- text: 'Chat Messages Admins Only',
301
+ text: 'Messages Admins Only (Chat Settings)',
320
302
  type: 'boolean',
321
303
  filters: ['EQ', 'NEQ'],
322
304
  value: [
@@ -334,7 +316,7 @@ exports.ChatVariableNameMap = {
334
316
  variable_type: 'boolean',
335
317
  },
336
318
  'chat.info_admins_only': {
337
- text: 'Chat Info Admins Only',
319
+ text: 'Info Admins Only (Chat Settings)',
338
320
  type: 'boolean',
339
321
  filters: ['EQ', 'NEQ'],
340
322
  value: [
@@ -352,7 +334,7 @@ exports.ChatVariableNameMap = {
352
334
  variable_type: 'boolean',
353
335
  },
354
336
  'chat.has_flagged_messages': {
355
- text: 'Chat has flagged messages',
337
+ text: 'Chat Has Flagged Messages',
356
338
  type: 'boolean',
357
339
  filters: ['EQ', 'NEQ'],
358
340
  value: [
@@ -454,7 +436,7 @@ exports.TicketVariableNameMap = {
454
436
  variable_type: 'string',
455
437
  },
456
438
  'ticket.is_deleted': {
457
- text: 'Ticket is deleted',
439
+ text: 'Ticket Is Deleted',
458
440
  type: 'boolean',
459
441
  value: [
460
442
  {
@@ -744,7 +744,6 @@ export type Database = {
744
744
  latest_message_timestamp: string | null;
745
745
  org_id: string;
746
746
  unread_count: Json | null;
747
- unread_count_map: Json | null;
748
747
  updated_at: string | null;
749
748
  };
750
749
  Insert: {
@@ -763,7 +762,6 @@ export type Database = {
763
762
  latest_message_timestamp?: string | null;
764
763
  org_id: string;
765
764
  unread_count?: Json | null;
766
- unread_count_map?: Json | null;
767
765
  updated_at?: string | null;
768
766
  };
769
767
  Update: {
@@ -782,7 +780,6 @@ export type Database = {
782
780
  latest_message_timestamp?: string | null;
783
781
  org_id?: string;
784
782
  unread_count?: Json | null;
785
- unread_count_map?: Json | null;
786
783
  updated_at?: string | null;
787
784
  };
788
785
  Relationships: [];
@@ -949,6 +946,7 @@ export type Database = {
949
946
  is_read_only: boolean | null;
950
947
  latest_message: Json | null;
951
948
  member_count: number | null;
949
+ member_unread_count: Json | null;
952
950
  mute_expiration: number | null;
953
951
  name: string | null;
954
952
  org_id: string;
@@ -975,6 +973,7 @@ export type Database = {
975
973
  is_read_only?: boolean | null;
976
974
  latest_message?: Json | null;
977
975
  member_count?: number | null;
976
+ member_unread_count?: Json | null;
978
977
  mute_expiration?: number | null;
979
978
  name?: string | null;
980
979
  org_id: string;
@@ -1001,6 +1000,7 @@ export type Database = {
1001
1000
  is_read_only?: boolean | null;
1002
1001
  latest_message?: Json | null;
1003
1002
  member_count?: number | null;
1003
+ member_unread_count?: Json | null;
1004
1004
  mute_expiration?: number | null;
1005
1005
  name?: string | null;
1006
1006
  org_id?: string;
@@ -2049,10 +2049,7 @@ export type Database = {
2049
2049
  Args: {
2050
2050
  org_id_input: string;
2051
2051
  };
2052
- Returns: {
2053
- feature: string;
2054
- enabled: boolean;
2055
- }[];
2052
+ Returns: Json;
2056
2053
  };
2057
2054
  get_integration_data: {
2058
2055
  Args: {
@@ -2279,6 +2276,7 @@ export type Database = {
2279
2276
  owner_id: string | null;
2280
2277
  path_tokens: string[] | null;
2281
2278
  updated_at: string | null;
2279
+ user_metadata: Json | null;
2282
2280
  version: string | null;
2283
2281
  };
2284
2282
  Insert: {
@@ -2292,6 +2290,7 @@ export type Database = {
2292
2290
  owner_id?: string | null;
2293
2291
  path_tokens?: string[] | null;
2294
2292
  updated_at?: string | null;
2293
+ user_metadata?: Json | null;
2295
2294
  version?: string | null;
2296
2295
  };
2297
2296
  Update: {
@@ -2305,6 +2304,7 @@ export type Database = {
2305
2304
  owner_id?: string | null;
2306
2305
  path_tokens?: string[] | null;
2307
2306
  updated_at?: string | null;
2307
+ user_metadata?: Json | null;
2308
2308
  version?: string | null;
2309
2309
  };
2310
2310
  Relationships: [
@@ -2326,6 +2326,7 @@ export type Database = {
2326
2326
  key: string;
2327
2327
  owner_id: string | null;
2328
2328
  upload_signature: string;
2329
+ user_metadata: Json | null;
2329
2330
  version: string;
2330
2331
  };
2331
2332
  Insert: {
@@ -2336,6 +2337,7 @@ export type Database = {
2336
2337
  key: string;
2337
2338
  owner_id?: string | null;
2338
2339
  upload_signature: string;
2340
+ user_metadata?: Json | null;
2339
2341
  version: string;
2340
2342
  };
2341
2343
  Update: {
@@ -2346,6 +2348,7 @@ export type Database = {
2346
2348
  key?: string;
2347
2349
  owner_id?: string | null;
2348
2350
  upload_signature?: string;
2351
+ user_metadata?: Json | null;
2349
2352
  version?: string;
2350
2353
  };
2351
2354
  Relationships: [
@@ -2482,6 +2485,10 @@ export type Database = {
2482
2485
  updated_at: string;
2483
2486
  }[];
2484
2487
  };
2488
+ operation: {
2489
+ Args: Record<PropertyKey, never>;
2490
+ Returns: string;
2491
+ };
2485
2492
  search: {
2486
2493
  Args: {
2487
2494
  prefix: string;
package/dist/types.d.ts CHANGED
@@ -460,7 +460,7 @@ export type ChatRuleInfoType = Merge<Pick<Tables<'view_chats'>, 'assigned_to' |
460
460
  [key: string]: string;
461
461
  } | null;
462
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' | 'is_business' | 'is_enterprise'>, {
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' | 'is_business' | 'is_enterprise' | 'is_super_admin'>, {
464
464
  is_internal: boolean;
465
465
  labels: string[] | null;
466
466
  }>;
package/index.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './rules.types';
2
- export * from './supabase.types';
3
- export * from './types';
1
+ export * from './rules.types';
2
+ export * from './supabase.types';
3
+ export * from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.158",
3
+ "version": "0.6.159",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",