@periskope/types 0.6.168 → 0.6.170

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
@@ -1,6 +1,6 @@
1
1
  import type { default as _Stripe } from 'stripe';
2
2
  import { Merge, OverrideProperties } from 'type-fest';
3
- import { Filter, Rule } from "./rules.types";
3
+ import { Filter, Rule } from './rules.types';
4
4
  import { Tables, TablesUpdate } from './supabase.types';
5
5
  export declare enum AllPlans {
6
6
  FREE_TRIAL = "free-trial",
@@ -81,6 +81,14 @@ export type OrgMetadata = {
81
81
  };
82
82
  };
83
83
  attribution?: Object;
84
+ custom_properties?: {
85
+ chats_order?: {
86
+ [id: string]: number;
87
+ };
88
+ tickets_order?: {
89
+ [id: string]: number;
90
+ };
91
+ };
84
92
  };
85
93
  type AccessScopes = {
86
94
  feature_flags: Record<string, boolean>;
@@ -349,6 +357,17 @@ export type TicketInfoType = {
349
357
  [key: string]: string;
350
358
  } | null;
351
359
  };
360
+ attached_messages: {
361
+ body: string;
362
+ chat_id: string;
363
+ org_phone: string;
364
+ timestamp: string;
365
+ media_path: string;
366
+ message_id: string;
367
+ sender_name: string;
368
+ performed_by: string;
369
+ sender_phone: string;
370
+ }[];
352
371
  };
353
372
  export type IntegrationLogObjectType = 'chat' | 'message' | 'reaction' | 'ticket';
354
373
  export declare enum IntegrationLogType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.168",
3
+ "version": "0.6.170",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { default as _Stripe } from 'stripe';
2
2
  import { Merge, OverrideProperties } from 'type-fest';
3
- import { Filter, Rule } from "./rules.types";
3
+ import { Filter, Rule } from './rules.types';
4
4
  import { Tables, TablesUpdate } from './supabase.types';
5
5
 
6
6
  /* ----------------------------- TYPE SHORTHANDS ---------------------------- */
@@ -87,7 +87,7 @@ export type OrgMetadata = {
87
87
  default_stage: { id: string; label: string };
88
88
  }[];
89
89
  hubspot_hidden_fields?: string[];
90
- }
90
+ };
91
91
  partition?: boolean;
92
92
  tickets: {
93
93
  prefix?: string;
@@ -95,9 +95,17 @@ export type OrgMetadata = {
95
95
  is_enabled?: boolean;
96
96
  is_message_enabled?: boolean;
97
97
  message_template?: string;
98
- }
99
- }
98
+ };
99
+ };
100
100
  attribution?: Object;
101
+ custom_properties?: {
102
+ chats_order?: {
103
+ [id: string]: number;
104
+ };
105
+ tickets_order?: {
106
+ [id: string]: number;
107
+ };
108
+ };
101
109
  };
102
110
 
103
111
  type AccessScopes = {
@@ -463,6 +471,17 @@ export type TicketInfoType = {
463
471
  quoted_message_id: string;
464
472
  ticket_custom_properties: { [key: string]: string } | null;
465
473
  };
474
+ attached_messages: {
475
+ body: string;
476
+ chat_id: string;
477
+ org_phone: string;
478
+ timestamp: string;
479
+ media_path: string;
480
+ message_id: string;
481
+ sender_name: string;
482
+ performed_by: string;
483
+ sender_phone: string;
484
+ }[];
466
485
  };
467
486
 
468
487
  export type IntegrationLogObjectType =
@@ -811,4 +830,4 @@ export type RuleLogsType = OverrideProperties<
811
830
  checked_at: string | null;
812
831
  };
813
832
  }
814
- >;
833
+ >;