@getlatedev/node 0.2.11 → 0.2.13
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/index.d.mts +92 -6
- package/dist/index.d.ts +92 -6
- package/package.json +1 -1
- package/src/generated/types.gen.ts +89 -3
package/dist/index.d.mts
CHANGED
|
@@ -427,12 +427,12 @@ declare class Zernio {
|
|
|
427
427
|
* broadcasts API
|
|
428
428
|
*/
|
|
429
429
|
broadcasts: {
|
|
430
|
-
listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
430
|
+
listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastsResponse, ListBroadcastsError, ThrowOnError>;
|
|
431
431
|
createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, CreateBroadcastError, ThrowOnError>;
|
|
432
432
|
getBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetBroadcastError, ThrowOnError>;
|
|
433
433
|
updateBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateBroadcastError, ThrowOnError>;
|
|
434
434
|
deleteBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteBroadcastError, ThrowOnError>;
|
|
435
|
-
sendBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
435
|
+
sendBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendBroadcastResponse, unknown, ThrowOnError>;
|
|
436
436
|
scheduleBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ScheduleBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
437
437
|
cancelBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CancelBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
438
438
|
listBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListBroadcastRecipientsError, ThrowOnError>;
|
|
@@ -442,7 +442,7 @@ declare class Zernio {
|
|
|
442
442
|
* sequences API
|
|
443
443
|
*/
|
|
444
444
|
sequences: {
|
|
445
|
-
listSequences: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListSequencesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
445
|
+
listSequences: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListSequencesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListSequencesResponse, ListSequencesError, ThrowOnError>;
|
|
446
446
|
createSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, CreateSequenceError, ThrowOnError>;
|
|
447
447
|
getSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetSequenceError, ThrowOnError>;
|
|
448
448
|
updateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateSequenceError, ThrowOnError>;
|
|
@@ -8244,6 +8244,10 @@ type GetWhatsAppBroadcastsResponse = ({
|
|
|
8244
8244
|
language?: string;
|
|
8245
8245
|
};
|
|
8246
8246
|
status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
|
|
8247
|
+
/**
|
|
8248
|
+
* Template name or message text snippet
|
|
8249
|
+
*/
|
|
8250
|
+
messagePreview?: string;
|
|
8247
8251
|
recipientCount?: number;
|
|
8248
8252
|
scheduledAt?: string;
|
|
8249
8253
|
startedAt?: string;
|
|
@@ -9026,7 +9030,40 @@ type ListBroadcastsData = {
|
|
|
9026
9030
|
status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
|
|
9027
9031
|
};
|
|
9028
9032
|
};
|
|
9029
|
-
type ListBroadcastsResponse = (
|
|
9033
|
+
type ListBroadcastsResponse = ({
|
|
9034
|
+
success?: boolean;
|
|
9035
|
+
broadcasts?: Array<{
|
|
9036
|
+
id?: string;
|
|
9037
|
+
name?: string;
|
|
9038
|
+
description?: string;
|
|
9039
|
+
platform?: string;
|
|
9040
|
+
accountId?: string;
|
|
9041
|
+
/**
|
|
9042
|
+
* Display name of the sending account
|
|
9043
|
+
*/
|
|
9044
|
+
accountName?: string;
|
|
9045
|
+
status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
|
|
9046
|
+
/**
|
|
9047
|
+
* Template name or message text snippet
|
|
9048
|
+
*/
|
|
9049
|
+
messagePreview?: string;
|
|
9050
|
+
scheduledAt?: string;
|
|
9051
|
+
startedAt?: string;
|
|
9052
|
+
completedAt?: string;
|
|
9053
|
+
recipientCount?: number;
|
|
9054
|
+
sentCount?: number;
|
|
9055
|
+
deliveredCount?: number;
|
|
9056
|
+
readCount?: number;
|
|
9057
|
+
failedCount?: number;
|
|
9058
|
+
createdAt?: string;
|
|
9059
|
+
}>;
|
|
9060
|
+
pagination?: {
|
|
9061
|
+
total?: number;
|
|
9062
|
+
limit?: number;
|
|
9063
|
+
skip?: number;
|
|
9064
|
+
hasMore?: boolean;
|
|
9065
|
+
};
|
|
9066
|
+
});
|
|
9030
9067
|
type ListBroadcastsError = ({
|
|
9031
9068
|
error?: string;
|
|
9032
9069
|
});
|
|
@@ -9095,7 +9132,25 @@ type SendBroadcastData = {
|
|
|
9095
9132
|
broadcastId: string;
|
|
9096
9133
|
};
|
|
9097
9134
|
};
|
|
9098
|
-
type SendBroadcastResponse = (
|
|
9135
|
+
type SendBroadcastResponse = ({
|
|
9136
|
+
success?: boolean;
|
|
9137
|
+
/**
|
|
9138
|
+
* Current broadcast status after processing first batch
|
|
9139
|
+
*/
|
|
9140
|
+
status?: 'sending' | 'completed' | 'failed';
|
|
9141
|
+
/**
|
|
9142
|
+
* Recipients sent in this batch
|
|
9143
|
+
*/
|
|
9144
|
+
sent?: number;
|
|
9145
|
+
/**
|
|
9146
|
+
* Recipients failed in this batch
|
|
9147
|
+
*/
|
|
9148
|
+
failed?: number;
|
|
9149
|
+
/**
|
|
9150
|
+
* Total recipient count
|
|
9151
|
+
*/
|
|
9152
|
+
recipientCount?: number;
|
|
9153
|
+
});
|
|
9099
9154
|
type SendBroadcastError = (unknown | {
|
|
9100
9155
|
error?: string;
|
|
9101
9156
|
});
|
|
@@ -9168,7 +9223,38 @@ type ListSequencesData = {
|
|
|
9168
9223
|
status?: 'draft' | 'active' | 'paused';
|
|
9169
9224
|
};
|
|
9170
9225
|
};
|
|
9171
|
-
type ListSequencesResponse = (
|
|
9226
|
+
type ListSequencesResponse = ({
|
|
9227
|
+
success?: boolean;
|
|
9228
|
+
sequences?: Array<{
|
|
9229
|
+
id?: string;
|
|
9230
|
+
name?: string;
|
|
9231
|
+
description?: string;
|
|
9232
|
+
platform?: string;
|
|
9233
|
+
accountId?: string;
|
|
9234
|
+
/**
|
|
9235
|
+
* Display name of the sending account
|
|
9236
|
+
*/
|
|
9237
|
+
accountName?: string;
|
|
9238
|
+
/**
|
|
9239
|
+
* First step template name or message text snippet
|
|
9240
|
+
*/
|
|
9241
|
+
messagePreview?: string;
|
|
9242
|
+
status?: 'draft' | 'active' | 'paused';
|
|
9243
|
+
stepsCount?: number;
|
|
9244
|
+
exitOnReply?: boolean;
|
|
9245
|
+
exitOnUnsubscribe?: boolean;
|
|
9246
|
+
totalEnrolled?: number;
|
|
9247
|
+
totalCompleted?: number;
|
|
9248
|
+
totalExited?: number;
|
|
9249
|
+
createdAt?: string;
|
|
9250
|
+
}>;
|
|
9251
|
+
pagination?: {
|
|
9252
|
+
total?: number;
|
|
9253
|
+
limit?: number;
|
|
9254
|
+
skip?: number;
|
|
9255
|
+
hasMore?: boolean;
|
|
9256
|
+
};
|
|
9257
|
+
});
|
|
9172
9258
|
type ListSequencesError = ({
|
|
9173
9259
|
error?: string;
|
|
9174
9260
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -427,12 +427,12 @@ declare class Zernio {
|
|
|
427
427
|
* broadcasts API
|
|
428
428
|
*/
|
|
429
429
|
broadcasts: {
|
|
430
|
-
listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
430
|
+
listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastsResponse, ListBroadcastsError, ThrowOnError>;
|
|
431
431
|
createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, CreateBroadcastError, ThrowOnError>;
|
|
432
432
|
getBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetBroadcastError, ThrowOnError>;
|
|
433
433
|
updateBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateBroadcastError, ThrowOnError>;
|
|
434
434
|
deleteBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteBroadcastError, ThrowOnError>;
|
|
435
|
-
sendBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
435
|
+
sendBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendBroadcastResponse, unknown, ThrowOnError>;
|
|
436
436
|
scheduleBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ScheduleBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
437
437
|
cancelBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CancelBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
438
438
|
listBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListBroadcastRecipientsError, ThrowOnError>;
|
|
@@ -442,7 +442,7 @@ declare class Zernio {
|
|
|
442
442
|
* sequences API
|
|
443
443
|
*/
|
|
444
444
|
sequences: {
|
|
445
|
-
listSequences: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListSequencesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
445
|
+
listSequences: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListSequencesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListSequencesResponse, ListSequencesError, ThrowOnError>;
|
|
446
446
|
createSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, CreateSequenceError, ThrowOnError>;
|
|
447
447
|
getSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetSequenceError, ThrowOnError>;
|
|
448
448
|
updateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateSequenceError, ThrowOnError>;
|
|
@@ -8244,6 +8244,10 @@ type GetWhatsAppBroadcastsResponse = ({
|
|
|
8244
8244
|
language?: string;
|
|
8245
8245
|
};
|
|
8246
8246
|
status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
|
|
8247
|
+
/**
|
|
8248
|
+
* Template name or message text snippet
|
|
8249
|
+
*/
|
|
8250
|
+
messagePreview?: string;
|
|
8247
8251
|
recipientCount?: number;
|
|
8248
8252
|
scheduledAt?: string;
|
|
8249
8253
|
startedAt?: string;
|
|
@@ -9026,7 +9030,40 @@ type ListBroadcastsData = {
|
|
|
9026
9030
|
status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
|
|
9027
9031
|
};
|
|
9028
9032
|
};
|
|
9029
|
-
type ListBroadcastsResponse = (
|
|
9033
|
+
type ListBroadcastsResponse = ({
|
|
9034
|
+
success?: boolean;
|
|
9035
|
+
broadcasts?: Array<{
|
|
9036
|
+
id?: string;
|
|
9037
|
+
name?: string;
|
|
9038
|
+
description?: string;
|
|
9039
|
+
platform?: string;
|
|
9040
|
+
accountId?: string;
|
|
9041
|
+
/**
|
|
9042
|
+
* Display name of the sending account
|
|
9043
|
+
*/
|
|
9044
|
+
accountName?: string;
|
|
9045
|
+
status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
|
|
9046
|
+
/**
|
|
9047
|
+
* Template name or message text snippet
|
|
9048
|
+
*/
|
|
9049
|
+
messagePreview?: string;
|
|
9050
|
+
scheduledAt?: string;
|
|
9051
|
+
startedAt?: string;
|
|
9052
|
+
completedAt?: string;
|
|
9053
|
+
recipientCount?: number;
|
|
9054
|
+
sentCount?: number;
|
|
9055
|
+
deliveredCount?: number;
|
|
9056
|
+
readCount?: number;
|
|
9057
|
+
failedCount?: number;
|
|
9058
|
+
createdAt?: string;
|
|
9059
|
+
}>;
|
|
9060
|
+
pagination?: {
|
|
9061
|
+
total?: number;
|
|
9062
|
+
limit?: number;
|
|
9063
|
+
skip?: number;
|
|
9064
|
+
hasMore?: boolean;
|
|
9065
|
+
};
|
|
9066
|
+
});
|
|
9030
9067
|
type ListBroadcastsError = ({
|
|
9031
9068
|
error?: string;
|
|
9032
9069
|
});
|
|
@@ -9095,7 +9132,25 @@ type SendBroadcastData = {
|
|
|
9095
9132
|
broadcastId: string;
|
|
9096
9133
|
};
|
|
9097
9134
|
};
|
|
9098
|
-
type SendBroadcastResponse = (
|
|
9135
|
+
type SendBroadcastResponse = ({
|
|
9136
|
+
success?: boolean;
|
|
9137
|
+
/**
|
|
9138
|
+
* Current broadcast status after processing first batch
|
|
9139
|
+
*/
|
|
9140
|
+
status?: 'sending' | 'completed' | 'failed';
|
|
9141
|
+
/**
|
|
9142
|
+
* Recipients sent in this batch
|
|
9143
|
+
*/
|
|
9144
|
+
sent?: number;
|
|
9145
|
+
/**
|
|
9146
|
+
* Recipients failed in this batch
|
|
9147
|
+
*/
|
|
9148
|
+
failed?: number;
|
|
9149
|
+
/**
|
|
9150
|
+
* Total recipient count
|
|
9151
|
+
*/
|
|
9152
|
+
recipientCount?: number;
|
|
9153
|
+
});
|
|
9099
9154
|
type SendBroadcastError = (unknown | {
|
|
9100
9155
|
error?: string;
|
|
9101
9156
|
});
|
|
@@ -9168,7 +9223,38 @@ type ListSequencesData = {
|
|
|
9168
9223
|
status?: 'draft' | 'active' | 'paused';
|
|
9169
9224
|
};
|
|
9170
9225
|
};
|
|
9171
|
-
type ListSequencesResponse = (
|
|
9226
|
+
type ListSequencesResponse = ({
|
|
9227
|
+
success?: boolean;
|
|
9228
|
+
sequences?: Array<{
|
|
9229
|
+
id?: string;
|
|
9230
|
+
name?: string;
|
|
9231
|
+
description?: string;
|
|
9232
|
+
platform?: string;
|
|
9233
|
+
accountId?: string;
|
|
9234
|
+
/**
|
|
9235
|
+
* Display name of the sending account
|
|
9236
|
+
*/
|
|
9237
|
+
accountName?: string;
|
|
9238
|
+
/**
|
|
9239
|
+
* First step template name or message text snippet
|
|
9240
|
+
*/
|
|
9241
|
+
messagePreview?: string;
|
|
9242
|
+
status?: 'draft' | 'active' | 'paused';
|
|
9243
|
+
stepsCount?: number;
|
|
9244
|
+
exitOnReply?: boolean;
|
|
9245
|
+
exitOnUnsubscribe?: boolean;
|
|
9246
|
+
totalEnrolled?: number;
|
|
9247
|
+
totalCompleted?: number;
|
|
9248
|
+
totalExited?: number;
|
|
9249
|
+
createdAt?: string;
|
|
9250
|
+
}>;
|
|
9251
|
+
pagination?: {
|
|
9252
|
+
total?: number;
|
|
9253
|
+
limit?: number;
|
|
9254
|
+
skip?: number;
|
|
9255
|
+
hasMore?: boolean;
|
|
9256
|
+
};
|
|
9257
|
+
});
|
|
9172
9258
|
type ListSequencesError = ({
|
|
9173
9259
|
error?: string;
|
|
9174
9260
|
});
|
package/package.json
CHANGED
|
@@ -8339,6 +8339,10 @@ export type GetWhatsAppBroadcastsResponse = ({
|
|
|
8339
8339
|
language?: string;
|
|
8340
8340
|
};
|
|
8341
8341
|
status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
|
|
8342
|
+
/**
|
|
8343
|
+
* Template name or message text snippet
|
|
8344
|
+
*/
|
|
8345
|
+
messagePreview?: string;
|
|
8342
8346
|
recipientCount?: number;
|
|
8343
8347
|
scheduledAt?: string;
|
|
8344
8348
|
startedAt?: string;
|
|
@@ -9217,7 +9221,40 @@ export type ListBroadcastsData = {
|
|
|
9217
9221
|
};
|
|
9218
9222
|
};
|
|
9219
9223
|
|
|
9220
|
-
export type ListBroadcastsResponse = (
|
|
9224
|
+
export type ListBroadcastsResponse = ({
|
|
9225
|
+
success?: boolean;
|
|
9226
|
+
broadcasts?: Array<{
|
|
9227
|
+
id?: string;
|
|
9228
|
+
name?: string;
|
|
9229
|
+
description?: string;
|
|
9230
|
+
platform?: string;
|
|
9231
|
+
accountId?: string;
|
|
9232
|
+
/**
|
|
9233
|
+
* Display name of the sending account
|
|
9234
|
+
*/
|
|
9235
|
+
accountName?: string;
|
|
9236
|
+
status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
|
|
9237
|
+
/**
|
|
9238
|
+
* Template name or message text snippet
|
|
9239
|
+
*/
|
|
9240
|
+
messagePreview?: string;
|
|
9241
|
+
scheduledAt?: string;
|
|
9242
|
+
startedAt?: string;
|
|
9243
|
+
completedAt?: string;
|
|
9244
|
+
recipientCount?: number;
|
|
9245
|
+
sentCount?: number;
|
|
9246
|
+
deliveredCount?: number;
|
|
9247
|
+
readCount?: number;
|
|
9248
|
+
failedCount?: number;
|
|
9249
|
+
createdAt?: string;
|
|
9250
|
+
}>;
|
|
9251
|
+
pagination?: {
|
|
9252
|
+
total?: number;
|
|
9253
|
+
limit?: number;
|
|
9254
|
+
skip?: number;
|
|
9255
|
+
hasMore?: boolean;
|
|
9256
|
+
};
|
|
9257
|
+
});
|
|
9221
9258
|
|
|
9222
9259
|
export type ListBroadcastsError = ({
|
|
9223
9260
|
error?: string;
|
|
@@ -9301,7 +9338,25 @@ export type SendBroadcastData = {
|
|
|
9301
9338
|
};
|
|
9302
9339
|
};
|
|
9303
9340
|
|
|
9304
|
-
export type SendBroadcastResponse = (
|
|
9341
|
+
export type SendBroadcastResponse = ({
|
|
9342
|
+
success?: boolean;
|
|
9343
|
+
/**
|
|
9344
|
+
* Current broadcast status after processing first batch
|
|
9345
|
+
*/
|
|
9346
|
+
status?: 'sending' | 'completed' | 'failed';
|
|
9347
|
+
/**
|
|
9348
|
+
* Recipients sent in this batch
|
|
9349
|
+
*/
|
|
9350
|
+
sent?: number;
|
|
9351
|
+
/**
|
|
9352
|
+
* Recipients failed in this batch
|
|
9353
|
+
*/
|
|
9354
|
+
failed?: number;
|
|
9355
|
+
/**
|
|
9356
|
+
* Total recipient count
|
|
9357
|
+
*/
|
|
9358
|
+
recipientCount?: number;
|
|
9359
|
+
});
|
|
9305
9360
|
|
|
9306
9361
|
export type SendBroadcastError = (unknown | {
|
|
9307
9362
|
error?: string;
|
|
@@ -9389,7 +9444,38 @@ export type ListSequencesData = {
|
|
|
9389
9444
|
};
|
|
9390
9445
|
};
|
|
9391
9446
|
|
|
9392
|
-
export type ListSequencesResponse = (
|
|
9447
|
+
export type ListSequencesResponse = ({
|
|
9448
|
+
success?: boolean;
|
|
9449
|
+
sequences?: Array<{
|
|
9450
|
+
id?: string;
|
|
9451
|
+
name?: string;
|
|
9452
|
+
description?: string;
|
|
9453
|
+
platform?: string;
|
|
9454
|
+
accountId?: string;
|
|
9455
|
+
/**
|
|
9456
|
+
* Display name of the sending account
|
|
9457
|
+
*/
|
|
9458
|
+
accountName?: string;
|
|
9459
|
+
/**
|
|
9460
|
+
* First step template name or message text snippet
|
|
9461
|
+
*/
|
|
9462
|
+
messagePreview?: string;
|
|
9463
|
+
status?: 'draft' | 'active' | 'paused';
|
|
9464
|
+
stepsCount?: number;
|
|
9465
|
+
exitOnReply?: boolean;
|
|
9466
|
+
exitOnUnsubscribe?: boolean;
|
|
9467
|
+
totalEnrolled?: number;
|
|
9468
|
+
totalCompleted?: number;
|
|
9469
|
+
totalExited?: number;
|
|
9470
|
+
createdAt?: string;
|
|
9471
|
+
}>;
|
|
9472
|
+
pagination?: {
|
|
9473
|
+
total?: number;
|
|
9474
|
+
limit?: number;
|
|
9475
|
+
skip?: number;
|
|
9476
|
+
hasMore?: boolean;
|
|
9477
|
+
};
|
|
9478
|
+
});
|
|
9393
9479
|
|
|
9394
9480
|
export type ListSequencesError = ({
|
|
9395
9481
|
error?: string;
|