@periskope/types 0.6.90 → 0.6.92

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/types.ts CHANGED
@@ -64,6 +64,12 @@ export type OrgPreferences = {
64
64
  sync_phone_contacts?: boolean;
65
65
  };
66
66
 
67
+ type OrgPreferenceKey = keyof OrgPreferences;
68
+
69
+ export type OrgPreferencesValue = {
70
+ [K in OrgPreferenceKey]: { key: K; value: OrgPreferences[K] };
71
+ }[OrgPreferenceKey];
72
+
67
73
  export type OrgMetadata = {
68
74
  phone_number: string;
69
75
  ticket_prefix: string;
@@ -77,6 +83,7 @@ export type OrgMetadata = {
77
83
  label: string;
78
84
  default_stage: { id: string; label: string };
79
85
  }[];
86
+ partition?: boolean
80
87
  };
81
88
 
82
89
  export type OrgType = OverrideProperties<
@@ -259,12 +266,15 @@ export type QuickReplyContent = Omit<
259
266
  'broadcast_id' | 'variables'
260
267
  >;
261
268
 
262
- export type VariableType = { [key: string]: string };
269
+ export type BroadcastVariableType = {
270
+ chat_id: string;
271
+ values: { [key: string]: string };
272
+ };
263
273
 
264
274
  export type BroadcastMessagePayload = SendMessageContent & {
265
275
  chat_ids: string[];
266
276
  broadcast_id?: string;
267
- variables?: { chat_id: string; values: { [key: string]: VariableType } };
277
+ variables?: BroadcastVariableType[];
268
278
  };
269
279
 
270
280
  export type SingleMessagePayload = SendMessageContent & {