@periskope/types 0.6.90 → 0.6.91
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 +6 -8
- package/package.json +1 -1
- package/types.ts +5 -2
package/dist/types.d.ts
CHANGED
|
@@ -167,18 +167,16 @@ export type SendMessageContent = {
|
|
|
167
167
|
performed_by?: string;
|
|
168
168
|
};
|
|
169
169
|
export type QuickReplyContent = Omit<SendMessageContent, 'broadcast_id' | 'variables'>;
|
|
170
|
-
export type
|
|
171
|
-
|
|
170
|
+
export type BroadcastVariableType = {
|
|
171
|
+
chat_id: string;
|
|
172
|
+
values: {
|
|
173
|
+
[key: string]: string;
|
|
174
|
+
};
|
|
172
175
|
};
|
|
173
176
|
export type BroadcastMessagePayload = SendMessageContent & {
|
|
174
177
|
chat_ids: string[];
|
|
175
178
|
broadcast_id?: string;
|
|
176
|
-
variables?:
|
|
177
|
-
chat_id: string;
|
|
178
|
-
values: {
|
|
179
|
-
[key: string]: VariableType;
|
|
180
|
-
};
|
|
181
|
-
};
|
|
179
|
+
variables?: BroadcastVariableType[];
|
|
182
180
|
};
|
|
183
181
|
export type SingleMessagePayload = SendMessageContent & {
|
|
184
182
|
chat_id: string;
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -259,12 +259,15 @@ export type QuickReplyContent = Omit<
|
|
|
259
259
|
'broadcast_id' | 'variables'
|
|
260
260
|
>;
|
|
261
261
|
|
|
262
|
-
export type
|
|
262
|
+
export type BroadcastVariableType = {
|
|
263
|
+
chat_id: string;
|
|
264
|
+
values: { [key: string]: string };
|
|
265
|
+
};
|
|
263
266
|
|
|
264
267
|
export type BroadcastMessagePayload = SendMessageContent & {
|
|
265
268
|
chat_ids: string[];
|
|
266
269
|
broadcast_id?: string;
|
|
267
|
-
variables?:
|
|
270
|
+
variables?: BroadcastVariableType[];
|
|
268
271
|
};
|
|
269
272
|
|
|
270
273
|
export type SingleMessagePayload = SendMessageContent & {
|