@periskope/types 0.6.148 → 0.6.150

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.
@@ -52,10 +52,10 @@ export type ChatRulesInfoType = Merge<AppendTypes<{
52
52
  export type RuleInfoType = MessageRulesInfoType | ChatRulesInfoType | TicketRulesInfoType | ReactionRulesInfoType;
53
53
  export interface Filter {
54
54
  id: string;
55
- condition: 'CONTAINS' | 'NCONTAINS' | 'EQ' | 'NEQ' | 'LT' | 'LTE' | 'GT' | 'GTE' | 'KNOWN' | 'NKNOWN' | 'IS' | 'NIS';
55
+ condition: 'CONTAINS' | 'NCONTAINS' | 'EQ' | 'NEQ' | 'LT' | 'LTE' | 'GT' | 'GTE' | 'KNOWN' | 'NKNOWN' | 'IS' | 'NIS' | 'ON';
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,15 +64,19 @@ 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
- filters: Filter['condition'][];
74
+ filters: Partial<Record<Filter['condition'], {
75
+ info?: string;
76
+ }>> | Filter['condition'][];
74
77
  hidden?: boolean;
75
78
  placeholder?: string;
79
+ info?: string;
76
80
  };
77
81
  export declare const MessageVariableNameMap: Record<keyof AppendTypes<{
78
82
  message: MessageVariablesType;
@@ -124,6 +128,7 @@ export type SendMessageAction = {
124
128
  type: 'image' | 'video' | 'audio' | 'document';
125
129
  name: string;
126
130
  };
131
+ maintain_flag_status: 'true' | 'false';
127
132
  };
128
133
  delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
129
134
  };
@@ -141,7 +146,7 @@ export type CreateTicketAction = {
141
146
  delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
142
147
  metadata: {
143
148
  assignee?: string;
144
- priority?: 0 | 1 | 2 | 3 | 4;
149
+ priority?: '0' | '1' | '2' | '3' | '4';
145
150
  label?: string;
146
151
  };
147
152
  };
@@ -149,7 +154,9 @@ export type FlagMessageAction = {
149
154
  id: string;
150
155
  type: 'flag_message';
151
156
  delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
152
- metadata: {};
157
+ metadata: {
158
+ flag: 'true' | 'false';
159
+ };
153
160
  };
154
161
  export type AssignTicketAction = {
155
162
  id: string;
@@ -223,6 +230,7 @@ export type ReplyToMessageAction = {
223
230
  type: 'image' | 'video' | 'audio' | 'document';
224
231
  name: string;
225
232
  };
233
+ maintain_flag_status: boolean;
226
234
  };
227
235
  };
228
236
  export type UpdateCustomPropertyAction = {