@periskope/types 0.6.91 → 0.6.93

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<
@@ -315,6 +322,15 @@ export type ChatParticipantOperationPayload = ChatParticipantOperation & {
315
322
  chat_ids: string[];
316
323
  };
317
324
 
325
+ export type ChatOperationReturn = {
326
+ [participant_id:string]: {
327
+ is_success: boolean;
328
+ message?: string;
329
+ code?: number;
330
+ isInviteV4Sent?:boolean;
331
+ }
332
+ }
333
+
318
334
  /* ----------------------- BILLING - STRIPE ----------------------- */
319
335
 
320
336
  export type StripeSubscription = _Stripe.Subscription;