@periskope/types 0.6.147 → 0.6.149

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.
@@ -55,7 +55,7 @@ export interface Filter {
55
55
  condition: 'CONTAINS' | 'NCONTAINS' | 'EQ' | 'NEQ' | 'LT' | 'LTE' | 'GT' | 'GTE' | 'KNOWN' | 'NKNOWN' | 'IS' | 'NIS';
56
56
  variable: string;
57
57
  value: string | string[];
58
- variable_type?: 'string' | 'date';
58
+ variable_type?: 'string' | 'number' | 'boolean' | 'day-time' | 'date' | 'day';
59
59
  }
60
60
  export declare const isFilter: (filter: any) => filter is Filter;
61
61
  export declare const FilterNameMap: Record<Filter['condition'], {
@@ -64,10 +64,11 @@ export declare const FilterNameMap: Record<Filter['condition'], {
64
64
  }>;
65
65
  export type VariableNameValueType = {
66
66
  text: string;
67
- type: 'string' | 'time' | 'boolean' | 'dropdown' | 'day-time' | 'number';
67
+ type: 'string' | 'time' | 'boolean' | 'dropdown' | 'day-time' | 'number' | 'date';
68
+ variable_type: 'string' | 'number' | 'boolean' | 'day-time' | 'date';
68
69
  value?: string | {
69
70
  id: string;
70
- value: string;
71
+ value: string | number | boolean;
71
72
  label: string;
72
73
  }[] | null;
73
74
  filters: Filter['condition'][];
@@ -124,6 +125,7 @@ export type SendMessageAction = {
124
125
  type: 'image' | 'video' | 'audio' | 'document';
125
126
  name: string;
126
127
  };
128
+ maintain_flag_status: 'true' | 'false';
127
129
  };
128
130
  delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
129
131
  };
@@ -141,7 +143,7 @@ export type CreateTicketAction = {
141
143
  delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
142
144
  metadata: {
143
145
  assignee?: string;
144
- priority?: 0 | 1 | 2 | 3 | 4;
146
+ priority?: '0' | '1' | '2' | '3' | '4';
145
147
  label?: string;
146
148
  };
147
149
  };
@@ -149,14 +151,17 @@ export type FlagMessageAction = {
149
151
  id: string;
150
152
  type: 'flag_message';
151
153
  delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
152
- metadata: {};
154
+ metadata: {
155
+ flag: 'true' | 'false';
156
+ };
153
157
  };
154
158
  export type AssignTicketAction = {
155
159
  id: string;
156
160
  type: 'assign_ticket';
157
161
  delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
158
162
  metadata: {
159
- email: string;
163
+ assignee: string;
164
+ round_robin: 'true' | 'false';
160
165
  };
161
166
  };
162
167
  export type CloseTicketAction = {
@@ -188,7 +193,8 @@ export type AssignChatAction = {
188
193
  type: 'assign_chat';
189
194
  delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
190
195
  metadata: {
191
- email: string;
196
+ assignee: string;
197
+ round_robin: 'true' | 'false';
192
198
  };
193
199
  };
194
200
  export type ForwardMessageAction = {
@@ -221,6 +227,7 @@ export type ReplyToMessageAction = {
221
227
  type: 'image' | 'video' | 'audio' | 'document';
222
228
  name: string;
223
229
  };
230
+ maintain_flag_status: boolean;
224
231
  };
225
232
  };
226
233
  export type UpdateCustomPropertyAction = {
@@ -259,7 +266,13 @@ export declare const ActionNameMap: Record<Action['type'], {
259
266
  }[] | null | 'org.custom_properties' | 'custom_property_values';
260
267
  label: string;
261
268
  placeholder: string;
269
+ info?: string;
262
270
  }>;
263
271
  validTriggers: Rule['trigger'][];
264
272
  }>;
273
+ export declare const editorVariables: Array<{
274
+ label: string;
275
+ value: string;
276
+ validTriggers: Rule['trigger'][];
277
+ }>;
265
278
  export {};