@getlatedev/node 0.2.14 → 0.2.16
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 +288 -30
- package/dist/index.d.ts +288 -30
- package/package.json +1 -1
- package/src/generated/types.gen.ts +273 -15
package/dist/index.d.mts
CHANGED
|
@@ -404,13 +404,13 @@ declare class Zernio {
|
|
|
404
404
|
* contacts API
|
|
405
405
|
*/
|
|
406
406
|
contacts: {
|
|
407
|
-
listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
408
|
-
createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
409
|
-
getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
410
|
-
updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
407
|
+
listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListContactsResponse, ListContactsError, ThrowOnError>;
|
|
408
|
+
createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateContactResponse, unknown, ThrowOnError>;
|
|
409
|
+
getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactResponse, GetContactError, ThrowOnError>;
|
|
410
|
+
updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateContactResponse, UpdateContactError, ThrowOnError>;
|
|
411
411
|
deleteContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteContactError, ThrowOnError>;
|
|
412
|
-
getContactChannels: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactChannelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
413
|
-
bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
412
|
+
getContactChannels: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactChannelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactChannelsResponse, GetContactChannelsError, ThrowOnError>;
|
|
413
|
+
bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BulkCreateContactsResponse, BulkCreateContactsError, ThrowOnError>;
|
|
414
414
|
};
|
|
415
415
|
/**
|
|
416
416
|
* customfields API
|
|
@@ -418,9 +418,9 @@ declare class Zernio {
|
|
|
418
418
|
customfields: {
|
|
419
419
|
setContactFieldValue: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SetContactFieldValueData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, SetContactFieldValueError, ThrowOnError>;
|
|
420
420
|
clearContactFieldValue: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ClearContactFieldValueData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ClearContactFieldValueError, ThrowOnError>;
|
|
421
|
-
listCustomFields: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCustomFieldsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
422
|
-
createCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
423
|
-
updateCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
421
|
+
listCustomFields: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCustomFieldsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCustomFieldsResponse, ListCustomFieldsError, ThrowOnError>;
|
|
422
|
+
createCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCustomFieldResponse, unknown, ThrowOnError>;
|
|
423
|
+
updateCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCustomFieldResponse, UpdateCustomFieldError, ThrowOnError>;
|
|
424
424
|
deleteCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteCustomFieldError, ThrowOnError>;
|
|
425
425
|
};
|
|
426
426
|
/**
|
|
@@ -428,7 +428,7 @@ declare class Zernio {
|
|
|
428
428
|
*/
|
|
429
429
|
broadcasts: {
|
|
430
430
|
listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastsResponse, ListBroadcastsError, ThrowOnError>;
|
|
431
|
-
createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
431
|
+
createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateBroadcastResponse, CreateBroadcastError, ThrowOnError>;
|
|
432
432
|
getBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetBroadcastResponse, GetBroadcastError, ThrowOnError>;
|
|
433
433
|
updateBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateBroadcastResponse, 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>;
|
|
@@ -443,7 +443,7 @@ declare class Zernio {
|
|
|
443
443
|
*/
|
|
444
444
|
sequences: {
|
|
445
445
|
listSequences: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListSequencesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListSequencesResponse, ListSequencesError, ThrowOnError>;
|
|
446
|
-
createSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
446
|
+
createSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateSequenceResponse, CreateSequenceError, ThrowOnError>;
|
|
447
447
|
getSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetSequenceResponse, GetSequenceError, ThrowOnError>;
|
|
448
448
|
updateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateSequenceResponse, UpdateSequenceError, ThrowOnError>;
|
|
449
449
|
deleteSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteSequenceError, ThrowOnError>;
|
|
@@ -458,11 +458,11 @@ declare class Zernio {
|
|
|
458
458
|
*/
|
|
459
459
|
commentautomations: {
|
|
460
460
|
listCommentAutomations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse, ListCommentAutomationsError, ThrowOnError>;
|
|
461
|
-
createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
462
|
-
getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
463
|
-
updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
461
|
+
createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCommentAutomationResponse, unknown, ThrowOnError>;
|
|
462
|
+
getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetCommentAutomationResponse, GetCommentAutomationError, ThrowOnError>;
|
|
463
|
+
updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCommentAutomationResponse, UpdateCommentAutomationError, ThrowOnError>;
|
|
464
464
|
deleteCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteCommentAutomationError, ThrowOnError>;
|
|
465
|
-
listCommentAutomationLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
465
|
+
listCommentAutomationLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationLogsResponse, ListCommentAutomationLogsError, ThrowOnError>;
|
|
466
466
|
};
|
|
467
467
|
/**
|
|
468
468
|
* Create a new Zernio API client.
|
|
@@ -8848,7 +8848,40 @@ type ListContactsData = {
|
|
|
8848
8848
|
tag?: string;
|
|
8849
8849
|
};
|
|
8850
8850
|
};
|
|
8851
|
-
type ListContactsResponse = (
|
|
8851
|
+
type ListContactsResponse = ({
|
|
8852
|
+
success?: boolean;
|
|
8853
|
+
contacts?: Array<{
|
|
8854
|
+
id?: string;
|
|
8855
|
+
name?: string;
|
|
8856
|
+
email?: string;
|
|
8857
|
+
company?: string;
|
|
8858
|
+
avatarUrl?: string;
|
|
8859
|
+
tags?: Array<(string)>;
|
|
8860
|
+
isSubscribed?: boolean;
|
|
8861
|
+
isBlocked?: boolean;
|
|
8862
|
+
lastMessageSentAt?: string;
|
|
8863
|
+
lastMessageReceivedAt?: string;
|
|
8864
|
+
messagesSentCount?: number;
|
|
8865
|
+
messagesReceivedCount?: number;
|
|
8866
|
+
customFields?: {
|
|
8867
|
+
[key: string]: unknown;
|
|
8868
|
+
};
|
|
8869
|
+
notes?: string;
|
|
8870
|
+
createdAt?: string;
|
|
8871
|
+
platform?: string;
|
|
8872
|
+
platformIdentifier?: string;
|
|
8873
|
+
displayIdentifier?: string;
|
|
8874
|
+
}>;
|
|
8875
|
+
filters?: {
|
|
8876
|
+
tags?: Array<(string)>;
|
|
8877
|
+
};
|
|
8878
|
+
pagination?: {
|
|
8879
|
+
total?: number;
|
|
8880
|
+
limit?: number;
|
|
8881
|
+
skip?: number;
|
|
8882
|
+
hasMore?: boolean;
|
|
8883
|
+
};
|
|
8884
|
+
});
|
|
8852
8885
|
type ListContactsError = ({
|
|
8853
8886
|
error?: string;
|
|
8854
8887
|
});
|
|
@@ -8870,7 +8903,33 @@ type CreateContactData = {
|
|
|
8870
8903
|
displayIdentifier?: string;
|
|
8871
8904
|
};
|
|
8872
8905
|
};
|
|
8873
|
-
type CreateContactResponse = (
|
|
8906
|
+
type CreateContactResponse = ({
|
|
8907
|
+
success?: boolean;
|
|
8908
|
+
contact?: {
|
|
8909
|
+
id?: string;
|
|
8910
|
+
name?: string;
|
|
8911
|
+
email?: string;
|
|
8912
|
+
company?: string;
|
|
8913
|
+
tags?: Array<(string)>;
|
|
8914
|
+
isSubscribed?: boolean;
|
|
8915
|
+
isBlocked?: boolean;
|
|
8916
|
+
customFields?: {
|
|
8917
|
+
[key: string]: unknown;
|
|
8918
|
+
};
|
|
8919
|
+
notes?: string;
|
|
8920
|
+
createdAt?: string;
|
|
8921
|
+
};
|
|
8922
|
+
/**
|
|
8923
|
+
* Created when accountId, platform, and platformIdentifier are provided
|
|
8924
|
+
*/
|
|
8925
|
+
channel?: {
|
|
8926
|
+
id?: string;
|
|
8927
|
+
platform?: string;
|
|
8928
|
+
platformIdentifier?: string;
|
|
8929
|
+
displayIdentifier?: string;
|
|
8930
|
+
};
|
|
8931
|
+
warning?: string;
|
|
8932
|
+
});
|
|
8874
8933
|
type CreateContactError = ({
|
|
8875
8934
|
error?: string;
|
|
8876
8935
|
} | unknown);
|
|
@@ -8879,7 +8938,36 @@ type GetContactData = {
|
|
|
8879
8938
|
contactId: string;
|
|
8880
8939
|
};
|
|
8881
8940
|
};
|
|
8882
|
-
type GetContactResponse = (
|
|
8941
|
+
type GetContactResponse = ({
|
|
8942
|
+
success?: boolean;
|
|
8943
|
+
contact?: {
|
|
8944
|
+
id?: string;
|
|
8945
|
+
name?: string;
|
|
8946
|
+
email?: string;
|
|
8947
|
+
company?: string;
|
|
8948
|
+
avatarUrl?: string;
|
|
8949
|
+
tags?: Array<(string)>;
|
|
8950
|
+
isSubscribed?: boolean;
|
|
8951
|
+
isBlocked?: boolean;
|
|
8952
|
+
customFields?: {
|
|
8953
|
+
[key: string]: unknown;
|
|
8954
|
+
};
|
|
8955
|
+
notes?: string;
|
|
8956
|
+
conversationIds?: Array<(string)>;
|
|
8957
|
+
createdAt?: string;
|
|
8958
|
+
updatedAt?: string;
|
|
8959
|
+
};
|
|
8960
|
+
channels?: Array<{
|
|
8961
|
+
id?: string;
|
|
8962
|
+
accountId?: string;
|
|
8963
|
+
platform?: string;
|
|
8964
|
+
platformIdentifier?: string;
|
|
8965
|
+
displayIdentifier?: string;
|
|
8966
|
+
isSubscribed?: boolean;
|
|
8967
|
+
conversationId?: string;
|
|
8968
|
+
createdAt?: string;
|
|
8969
|
+
}>;
|
|
8970
|
+
});
|
|
8883
8971
|
type GetContactError = ({
|
|
8884
8972
|
error?: string;
|
|
8885
8973
|
});
|
|
@@ -8898,7 +8986,21 @@ type UpdateContactData = {
|
|
|
8898
8986
|
contactId: string;
|
|
8899
8987
|
};
|
|
8900
8988
|
};
|
|
8901
|
-
type UpdateContactResponse = (
|
|
8989
|
+
type UpdateContactResponse = ({
|
|
8990
|
+
success?: boolean;
|
|
8991
|
+
contact?: {
|
|
8992
|
+
id?: string;
|
|
8993
|
+
name?: string;
|
|
8994
|
+
email?: string;
|
|
8995
|
+
company?: string;
|
|
8996
|
+
avatarUrl?: string;
|
|
8997
|
+
tags?: Array<(string)>;
|
|
8998
|
+
isSubscribed?: boolean;
|
|
8999
|
+
isBlocked?: boolean;
|
|
9000
|
+
notes?: string;
|
|
9001
|
+
updatedAt?: string;
|
|
9002
|
+
};
|
|
9003
|
+
});
|
|
8902
9004
|
type UpdateContactError = ({
|
|
8903
9005
|
error?: string;
|
|
8904
9006
|
});
|
|
@@ -8916,7 +9018,22 @@ type GetContactChannelsData = {
|
|
|
8916
9018
|
contactId: string;
|
|
8917
9019
|
};
|
|
8918
9020
|
};
|
|
8919
|
-
type GetContactChannelsResponse = (
|
|
9021
|
+
type GetContactChannelsResponse = ({
|
|
9022
|
+
success?: boolean;
|
|
9023
|
+
channels?: Array<{
|
|
9024
|
+
id?: string;
|
|
9025
|
+
accountId?: string;
|
|
9026
|
+
platform?: string;
|
|
9027
|
+
platformIdentifier?: string;
|
|
9028
|
+
displayIdentifier?: string;
|
|
9029
|
+
isSubscribed?: boolean;
|
|
9030
|
+
conversationId?: string;
|
|
9031
|
+
metadata?: {
|
|
9032
|
+
[key: string]: unknown;
|
|
9033
|
+
};
|
|
9034
|
+
createdAt?: string;
|
|
9035
|
+
}>;
|
|
9036
|
+
});
|
|
8920
9037
|
type GetContactChannelsError = ({
|
|
8921
9038
|
error?: string;
|
|
8922
9039
|
});
|
|
@@ -8935,7 +9052,15 @@ type BulkCreateContactsData = {
|
|
|
8935
9052
|
}>;
|
|
8936
9053
|
};
|
|
8937
9054
|
};
|
|
8938
|
-
type BulkCreateContactsResponse = (
|
|
9055
|
+
type BulkCreateContactsResponse = ({
|
|
9056
|
+
success?: boolean;
|
|
9057
|
+
created?: number;
|
|
9058
|
+
skipped?: number;
|
|
9059
|
+
errors?: Array<{
|
|
9060
|
+
[key: string]: unknown;
|
|
9061
|
+
}>;
|
|
9062
|
+
total?: number;
|
|
9063
|
+
});
|
|
8939
9064
|
type BulkCreateContactsError = ({
|
|
8940
9065
|
error?: string;
|
|
8941
9066
|
});
|
|
@@ -8973,7 +9098,17 @@ type ListCustomFieldsData = {
|
|
|
8973
9098
|
profileId?: string;
|
|
8974
9099
|
};
|
|
8975
9100
|
};
|
|
8976
|
-
type ListCustomFieldsResponse = (
|
|
9101
|
+
type ListCustomFieldsResponse = ({
|
|
9102
|
+
success?: boolean;
|
|
9103
|
+
fields?: Array<{
|
|
9104
|
+
id?: string;
|
|
9105
|
+
name?: string;
|
|
9106
|
+
slug?: string;
|
|
9107
|
+
type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
|
|
9108
|
+
options?: Array<(string)>;
|
|
9109
|
+
createdAt?: string;
|
|
9110
|
+
}>;
|
|
9111
|
+
});
|
|
8977
9112
|
type ListCustomFieldsError = ({
|
|
8978
9113
|
error?: string;
|
|
8979
9114
|
});
|
|
@@ -8992,7 +9127,17 @@ type CreateCustomFieldData = {
|
|
|
8992
9127
|
options?: Array<(string)>;
|
|
8993
9128
|
};
|
|
8994
9129
|
};
|
|
8995
|
-
type CreateCustomFieldResponse = (
|
|
9130
|
+
type CreateCustomFieldResponse = ({
|
|
9131
|
+
success?: boolean;
|
|
9132
|
+
field?: {
|
|
9133
|
+
id?: string;
|
|
9134
|
+
name?: string;
|
|
9135
|
+
slug?: string;
|
|
9136
|
+
type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
|
|
9137
|
+
options?: Array<(string)>;
|
|
9138
|
+
createdAt?: string;
|
|
9139
|
+
};
|
|
9140
|
+
});
|
|
8996
9141
|
type CreateCustomFieldError = ({
|
|
8997
9142
|
error?: string;
|
|
8998
9143
|
} | unknown);
|
|
@@ -9005,7 +9150,16 @@ type UpdateCustomFieldData = {
|
|
|
9005
9150
|
fieldId: string;
|
|
9006
9151
|
};
|
|
9007
9152
|
};
|
|
9008
|
-
type UpdateCustomFieldResponse = (
|
|
9153
|
+
type UpdateCustomFieldResponse = ({
|
|
9154
|
+
success?: boolean;
|
|
9155
|
+
field?: {
|
|
9156
|
+
id?: string;
|
|
9157
|
+
name?: string;
|
|
9158
|
+
slug?: string;
|
|
9159
|
+
type?: string;
|
|
9160
|
+
options?: Array<(string)>;
|
|
9161
|
+
};
|
|
9162
|
+
});
|
|
9009
9163
|
type UpdateCustomFieldError = ({
|
|
9010
9164
|
error?: string;
|
|
9011
9165
|
});
|
|
@@ -9096,7 +9250,18 @@ type CreateBroadcastData = {
|
|
|
9096
9250
|
};
|
|
9097
9251
|
};
|
|
9098
9252
|
};
|
|
9099
|
-
type CreateBroadcastResponse = (
|
|
9253
|
+
type CreateBroadcastResponse = ({
|
|
9254
|
+
success?: boolean;
|
|
9255
|
+
broadcast?: {
|
|
9256
|
+
id?: string;
|
|
9257
|
+
name?: string;
|
|
9258
|
+
description?: string;
|
|
9259
|
+
platform?: string;
|
|
9260
|
+
accountId?: string;
|
|
9261
|
+
status?: string;
|
|
9262
|
+
createdAt?: string;
|
|
9263
|
+
};
|
|
9264
|
+
});
|
|
9100
9265
|
type CreateBroadcastError = ({
|
|
9101
9266
|
error?: string;
|
|
9102
9267
|
});
|
|
@@ -9375,7 +9540,18 @@ type CreateSequenceData = {
|
|
|
9375
9540
|
exitOnUnsubscribe?: boolean;
|
|
9376
9541
|
};
|
|
9377
9542
|
};
|
|
9378
|
-
type CreateSequenceResponse = (
|
|
9543
|
+
type CreateSequenceResponse = ({
|
|
9544
|
+
success?: boolean;
|
|
9545
|
+
sequence?: {
|
|
9546
|
+
id?: string;
|
|
9547
|
+
name?: string;
|
|
9548
|
+
description?: string;
|
|
9549
|
+
platform?: string;
|
|
9550
|
+
status?: string;
|
|
9551
|
+
stepsCount?: number;
|
|
9552
|
+
createdAt?: string;
|
|
9553
|
+
};
|
|
9554
|
+
});
|
|
9379
9555
|
type CreateSequenceError = ({
|
|
9380
9556
|
error?: string;
|
|
9381
9557
|
});
|
|
@@ -9625,7 +9801,26 @@ type CreateCommentAutomationData = {
|
|
|
9625
9801
|
commentReply?: string;
|
|
9626
9802
|
};
|
|
9627
9803
|
};
|
|
9628
|
-
type CreateCommentAutomationResponse = (
|
|
9804
|
+
type CreateCommentAutomationResponse = ({
|
|
9805
|
+
success?: boolean;
|
|
9806
|
+
automation?: {
|
|
9807
|
+
id?: string;
|
|
9808
|
+
name?: string;
|
|
9809
|
+
platform?: string;
|
|
9810
|
+
platformPostId?: string;
|
|
9811
|
+
keywords?: Array<(string)>;
|
|
9812
|
+
matchMode?: 'exact' | 'contains';
|
|
9813
|
+
dmMessage?: string;
|
|
9814
|
+
commentReply?: string;
|
|
9815
|
+
isActive?: boolean;
|
|
9816
|
+
stats?: {
|
|
9817
|
+
totalTriggered?: number;
|
|
9818
|
+
totalSent?: number;
|
|
9819
|
+
totalFailed?: number;
|
|
9820
|
+
};
|
|
9821
|
+
createdAt?: string;
|
|
9822
|
+
};
|
|
9823
|
+
});
|
|
9629
9824
|
type CreateCommentAutomationError = (unknown | {
|
|
9630
9825
|
error?: string;
|
|
9631
9826
|
});
|
|
@@ -9634,7 +9829,40 @@ type GetCommentAutomationData = {
|
|
|
9634
9829
|
automationId: string;
|
|
9635
9830
|
};
|
|
9636
9831
|
};
|
|
9637
|
-
type GetCommentAutomationResponse = (
|
|
9832
|
+
type GetCommentAutomationResponse = ({
|
|
9833
|
+
success?: boolean;
|
|
9834
|
+
automation?: {
|
|
9835
|
+
id?: string;
|
|
9836
|
+
name?: string;
|
|
9837
|
+
platform?: string;
|
|
9838
|
+
accountId?: string;
|
|
9839
|
+
platformPostId?: string;
|
|
9840
|
+
postId?: string;
|
|
9841
|
+
postTitle?: string;
|
|
9842
|
+
keywords?: Array<(string)>;
|
|
9843
|
+
matchMode?: 'exact' | 'contains';
|
|
9844
|
+
dmMessage?: string;
|
|
9845
|
+
commentReply?: string;
|
|
9846
|
+
isActive?: boolean;
|
|
9847
|
+
stats?: {
|
|
9848
|
+
totalTriggered?: number;
|
|
9849
|
+
totalSent?: number;
|
|
9850
|
+
totalFailed?: number;
|
|
9851
|
+
};
|
|
9852
|
+
createdAt?: string;
|
|
9853
|
+
updatedAt?: string;
|
|
9854
|
+
};
|
|
9855
|
+
logs?: Array<{
|
|
9856
|
+
id?: string;
|
|
9857
|
+
commentId?: string;
|
|
9858
|
+
commenterId?: string;
|
|
9859
|
+
commenterName?: string;
|
|
9860
|
+
commentText?: string;
|
|
9861
|
+
status?: 'sent' | 'failed' | 'skipped';
|
|
9862
|
+
error?: string;
|
|
9863
|
+
createdAt?: string;
|
|
9864
|
+
}>;
|
|
9865
|
+
});
|
|
9638
9866
|
type GetCommentAutomationError = ({
|
|
9639
9867
|
error?: string;
|
|
9640
9868
|
});
|
|
@@ -9651,7 +9879,19 @@ type UpdateCommentAutomationData = {
|
|
|
9651
9879
|
automationId: string;
|
|
9652
9880
|
};
|
|
9653
9881
|
};
|
|
9654
|
-
type UpdateCommentAutomationResponse = (
|
|
9882
|
+
type UpdateCommentAutomationResponse = ({
|
|
9883
|
+
success?: boolean;
|
|
9884
|
+
automation?: {
|
|
9885
|
+
id?: string;
|
|
9886
|
+
name?: string;
|
|
9887
|
+
keywords?: Array<(string)>;
|
|
9888
|
+
matchMode?: 'exact' | 'contains';
|
|
9889
|
+
dmMessage?: string;
|
|
9890
|
+
commentReply?: string;
|
|
9891
|
+
isActive?: boolean;
|
|
9892
|
+
updatedAt?: string;
|
|
9893
|
+
};
|
|
9894
|
+
});
|
|
9655
9895
|
type UpdateCommentAutomationError = ({
|
|
9656
9896
|
error?: string;
|
|
9657
9897
|
});
|
|
@@ -9677,7 +9917,25 @@ type ListCommentAutomationLogsData = {
|
|
|
9677
9917
|
status?: 'sent' | 'failed' | 'skipped';
|
|
9678
9918
|
};
|
|
9679
9919
|
};
|
|
9680
|
-
type ListCommentAutomationLogsResponse = (
|
|
9920
|
+
type ListCommentAutomationLogsResponse = ({
|
|
9921
|
+
success?: boolean;
|
|
9922
|
+
logs?: Array<{
|
|
9923
|
+
id?: string;
|
|
9924
|
+
commentId?: string;
|
|
9925
|
+
commenterId?: string;
|
|
9926
|
+
commenterName?: string;
|
|
9927
|
+
commentText?: string;
|
|
9928
|
+
status?: 'sent' | 'failed' | 'skipped';
|
|
9929
|
+
error?: string;
|
|
9930
|
+
createdAt?: string;
|
|
9931
|
+
}>;
|
|
9932
|
+
pagination?: {
|
|
9933
|
+
total?: number;
|
|
9934
|
+
limit?: number;
|
|
9935
|
+
skip?: number;
|
|
9936
|
+
hasMore?: boolean;
|
|
9937
|
+
};
|
|
9938
|
+
});
|
|
9681
9939
|
type ListCommentAutomationLogsError = ({
|
|
9682
9940
|
error?: string;
|
|
9683
9941
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -404,13 +404,13 @@ declare class Zernio {
|
|
|
404
404
|
* contacts API
|
|
405
405
|
*/
|
|
406
406
|
contacts: {
|
|
407
|
-
listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
408
|
-
createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
409
|
-
getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
410
|
-
updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
407
|
+
listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListContactsResponse, ListContactsError, ThrowOnError>;
|
|
408
|
+
createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateContactResponse, unknown, ThrowOnError>;
|
|
409
|
+
getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactResponse, GetContactError, ThrowOnError>;
|
|
410
|
+
updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateContactResponse, UpdateContactError, ThrowOnError>;
|
|
411
411
|
deleteContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteContactError, ThrowOnError>;
|
|
412
|
-
getContactChannels: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactChannelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
413
|
-
bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
412
|
+
getContactChannels: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactChannelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactChannelsResponse, GetContactChannelsError, ThrowOnError>;
|
|
413
|
+
bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BulkCreateContactsResponse, BulkCreateContactsError, ThrowOnError>;
|
|
414
414
|
};
|
|
415
415
|
/**
|
|
416
416
|
* customfields API
|
|
@@ -418,9 +418,9 @@ declare class Zernio {
|
|
|
418
418
|
customfields: {
|
|
419
419
|
setContactFieldValue: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SetContactFieldValueData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, SetContactFieldValueError, ThrowOnError>;
|
|
420
420
|
clearContactFieldValue: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ClearContactFieldValueData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ClearContactFieldValueError, ThrowOnError>;
|
|
421
|
-
listCustomFields: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCustomFieldsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
422
|
-
createCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
423
|
-
updateCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
421
|
+
listCustomFields: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCustomFieldsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCustomFieldsResponse, ListCustomFieldsError, ThrowOnError>;
|
|
422
|
+
createCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCustomFieldResponse, unknown, ThrowOnError>;
|
|
423
|
+
updateCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCustomFieldResponse, UpdateCustomFieldError, ThrowOnError>;
|
|
424
424
|
deleteCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteCustomFieldError, ThrowOnError>;
|
|
425
425
|
};
|
|
426
426
|
/**
|
|
@@ -428,7 +428,7 @@ declare class Zernio {
|
|
|
428
428
|
*/
|
|
429
429
|
broadcasts: {
|
|
430
430
|
listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastsResponse, ListBroadcastsError, ThrowOnError>;
|
|
431
|
-
createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
431
|
+
createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateBroadcastResponse, CreateBroadcastError, ThrowOnError>;
|
|
432
432
|
getBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetBroadcastResponse, GetBroadcastError, ThrowOnError>;
|
|
433
433
|
updateBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateBroadcastResponse, 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>;
|
|
@@ -443,7 +443,7 @@ declare class Zernio {
|
|
|
443
443
|
*/
|
|
444
444
|
sequences: {
|
|
445
445
|
listSequences: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListSequencesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListSequencesResponse, ListSequencesError, ThrowOnError>;
|
|
446
|
-
createSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
446
|
+
createSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateSequenceResponse, CreateSequenceError, ThrowOnError>;
|
|
447
447
|
getSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetSequenceResponse, GetSequenceError, ThrowOnError>;
|
|
448
448
|
updateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateSequenceResponse, UpdateSequenceError, ThrowOnError>;
|
|
449
449
|
deleteSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteSequenceError, ThrowOnError>;
|
|
@@ -458,11 +458,11 @@ declare class Zernio {
|
|
|
458
458
|
*/
|
|
459
459
|
commentautomations: {
|
|
460
460
|
listCommentAutomations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse, ListCommentAutomationsError, ThrowOnError>;
|
|
461
|
-
createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
462
|
-
getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
463
|
-
updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
461
|
+
createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCommentAutomationResponse, unknown, ThrowOnError>;
|
|
462
|
+
getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetCommentAutomationResponse, GetCommentAutomationError, ThrowOnError>;
|
|
463
|
+
updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCommentAutomationResponse, UpdateCommentAutomationError, ThrowOnError>;
|
|
464
464
|
deleteCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteCommentAutomationError, ThrowOnError>;
|
|
465
|
-
listCommentAutomationLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
465
|
+
listCommentAutomationLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationLogsResponse, ListCommentAutomationLogsError, ThrowOnError>;
|
|
466
466
|
};
|
|
467
467
|
/**
|
|
468
468
|
* Create a new Zernio API client.
|
|
@@ -8848,7 +8848,40 @@ type ListContactsData = {
|
|
|
8848
8848
|
tag?: string;
|
|
8849
8849
|
};
|
|
8850
8850
|
};
|
|
8851
|
-
type ListContactsResponse = (
|
|
8851
|
+
type ListContactsResponse = ({
|
|
8852
|
+
success?: boolean;
|
|
8853
|
+
contacts?: Array<{
|
|
8854
|
+
id?: string;
|
|
8855
|
+
name?: string;
|
|
8856
|
+
email?: string;
|
|
8857
|
+
company?: string;
|
|
8858
|
+
avatarUrl?: string;
|
|
8859
|
+
tags?: Array<(string)>;
|
|
8860
|
+
isSubscribed?: boolean;
|
|
8861
|
+
isBlocked?: boolean;
|
|
8862
|
+
lastMessageSentAt?: string;
|
|
8863
|
+
lastMessageReceivedAt?: string;
|
|
8864
|
+
messagesSentCount?: number;
|
|
8865
|
+
messagesReceivedCount?: number;
|
|
8866
|
+
customFields?: {
|
|
8867
|
+
[key: string]: unknown;
|
|
8868
|
+
};
|
|
8869
|
+
notes?: string;
|
|
8870
|
+
createdAt?: string;
|
|
8871
|
+
platform?: string;
|
|
8872
|
+
platformIdentifier?: string;
|
|
8873
|
+
displayIdentifier?: string;
|
|
8874
|
+
}>;
|
|
8875
|
+
filters?: {
|
|
8876
|
+
tags?: Array<(string)>;
|
|
8877
|
+
};
|
|
8878
|
+
pagination?: {
|
|
8879
|
+
total?: number;
|
|
8880
|
+
limit?: number;
|
|
8881
|
+
skip?: number;
|
|
8882
|
+
hasMore?: boolean;
|
|
8883
|
+
};
|
|
8884
|
+
});
|
|
8852
8885
|
type ListContactsError = ({
|
|
8853
8886
|
error?: string;
|
|
8854
8887
|
});
|
|
@@ -8870,7 +8903,33 @@ type CreateContactData = {
|
|
|
8870
8903
|
displayIdentifier?: string;
|
|
8871
8904
|
};
|
|
8872
8905
|
};
|
|
8873
|
-
type CreateContactResponse = (
|
|
8906
|
+
type CreateContactResponse = ({
|
|
8907
|
+
success?: boolean;
|
|
8908
|
+
contact?: {
|
|
8909
|
+
id?: string;
|
|
8910
|
+
name?: string;
|
|
8911
|
+
email?: string;
|
|
8912
|
+
company?: string;
|
|
8913
|
+
tags?: Array<(string)>;
|
|
8914
|
+
isSubscribed?: boolean;
|
|
8915
|
+
isBlocked?: boolean;
|
|
8916
|
+
customFields?: {
|
|
8917
|
+
[key: string]: unknown;
|
|
8918
|
+
};
|
|
8919
|
+
notes?: string;
|
|
8920
|
+
createdAt?: string;
|
|
8921
|
+
};
|
|
8922
|
+
/**
|
|
8923
|
+
* Created when accountId, platform, and platformIdentifier are provided
|
|
8924
|
+
*/
|
|
8925
|
+
channel?: {
|
|
8926
|
+
id?: string;
|
|
8927
|
+
platform?: string;
|
|
8928
|
+
platformIdentifier?: string;
|
|
8929
|
+
displayIdentifier?: string;
|
|
8930
|
+
};
|
|
8931
|
+
warning?: string;
|
|
8932
|
+
});
|
|
8874
8933
|
type CreateContactError = ({
|
|
8875
8934
|
error?: string;
|
|
8876
8935
|
} | unknown);
|
|
@@ -8879,7 +8938,36 @@ type GetContactData = {
|
|
|
8879
8938
|
contactId: string;
|
|
8880
8939
|
};
|
|
8881
8940
|
};
|
|
8882
|
-
type GetContactResponse = (
|
|
8941
|
+
type GetContactResponse = ({
|
|
8942
|
+
success?: boolean;
|
|
8943
|
+
contact?: {
|
|
8944
|
+
id?: string;
|
|
8945
|
+
name?: string;
|
|
8946
|
+
email?: string;
|
|
8947
|
+
company?: string;
|
|
8948
|
+
avatarUrl?: string;
|
|
8949
|
+
tags?: Array<(string)>;
|
|
8950
|
+
isSubscribed?: boolean;
|
|
8951
|
+
isBlocked?: boolean;
|
|
8952
|
+
customFields?: {
|
|
8953
|
+
[key: string]: unknown;
|
|
8954
|
+
};
|
|
8955
|
+
notes?: string;
|
|
8956
|
+
conversationIds?: Array<(string)>;
|
|
8957
|
+
createdAt?: string;
|
|
8958
|
+
updatedAt?: string;
|
|
8959
|
+
};
|
|
8960
|
+
channels?: Array<{
|
|
8961
|
+
id?: string;
|
|
8962
|
+
accountId?: string;
|
|
8963
|
+
platform?: string;
|
|
8964
|
+
platformIdentifier?: string;
|
|
8965
|
+
displayIdentifier?: string;
|
|
8966
|
+
isSubscribed?: boolean;
|
|
8967
|
+
conversationId?: string;
|
|
8968
|
+
createdAt?: string;
|
|
8969
|
+
}>;
|
|
8970
|
+
});
|
|
8883
8971
|
type GetContactError = ({
|
|
8884
8972
|
error?: string;
|
|
8885
8973
|
});
|
|
@@ -8898,7 +8986,21 @@ type UpdateContactData = {
|
|
|
8898
8986
|
contactId: string;
|
|
8899
8987
|
};
|
|
8900
8988
|
};
|
|
8901
|
-
type UpdateContactResponse = (
|
|
8989
|
+
type UpdateContactResponse = ({
|
|
8990
|
+
success?: boolean;
|
|
8991
|
+
contact?: {
|
|
8992
|
+
id?: string;
|
|
8993
|
+
name?: string;
|
|
8994
|
+
email?: string;
|
|
8995
|
+
company?: string;
|
|
8996
|
+
avatarUrl?: string;
|
|
8997
|
+
tags?: Array<(string)>;
|
|
8998
|
+
isSubscribed?: boolean;
|
|
8999
|
+
isBlocked?: boolean;
|
|
9000
|
+
notes?: string;
|
|
9001
|
+
updatedAt?: string;
|
|
9002
|
+
};
|
|
9003
|
+
});
|
|
8902
9004
|
type UpdateContactError = ({
|
|
8903
9005
|
error?: string;
|
|
8904
9006
|
});
|
|
@@ -8916,7 +9018,22 @@ type GetContactChannelsData = {
|
|
|
8916
9018
|
contactId: string;
|
|
8917
9019
|
};
|
|
8918
9020
|
};
|
|
8919
|
-
type GetContactChannelsResponse = (
|
|
9021
|
+
type GetContactChannelsResponse = ({
|
|
9022
|
+
success?: boolean;
|
|
9023
|
+
channels?: Array<{
|
|
9024
|
+
id?: string;
|
|
9025
|
+
accountId?: string;
|
|
9026
|
+
platform?: string;
|
|
9027
|
+
platformIdentifier?: string;
|
|
9028
|
+
displayIdentifier?: string;
|
|
9029
|
+
isSubscribed?: boolean;
|
|
9030
|
+
conversationId?: string;
|
|
9031
|
+
metadata?: {
|
|
9032
|
+
[key: string]: unknown;
|
|
9033
|
+
};
|
|
9034
|
+
createdAt?: string;
|
|
9035
|
+
}>;
|
|
9036
|
+
});
|
|
8920
9037
|
type GetContactChannelsError = ({
|
|
8921
9038
|
error?: string;
|
|
8922
9039
|
});
|
|
@@ -8935,7 +9052,15 @@ type BulkCreateContactsData = {
|
|
|
8935
9052
|
}>;
|
|
8936
9053
|
};
|
|
8937
9054
|
};
|
|
8938
|
-
type BulkCreateContactsResponse = (
|
|
9055
|
+
type BulkCreateContactsResponse = ({
|
|
9056
|
+
success?: boolean;
|
|
9057
|
+
created?: number;
|
|
9058
|
+
skipped?: number;
|
|
9059
|
+
errors?: Array<{
|
|
9060
|
+
[key: string]: unknown;
|
|
9061
|
+
}>;
|
|
9062
|
+
total?: number;
|
|
9063
|
+
});
|
|
8939
9064
|
type BulkCreateContactsError = ({
|
|
8940
9065
|
error?: string;
|
|
8941
9066
|
});
|
|
@@ -8973,7 +9098,17 @@ type ListCustomFieldsData = {
|
|
|
8973
9098
|
profileId?: string;
|
|
8974
9099
|
};
|
|
8975
9100
|
};
|
|
8976
|
-
type ListCustomFieldsResponse = (
|
|
9101
|
+
type ListCustomFieldsResponse = ({
|
|
9102
|
+
success?: boolean;
|
|
9103
|
+
fields?: Array<{
|
|
9104
|
+
id?: string;
|
|
9105
|
+
name?: string;
|
|
9106
|
+
slug?: string;
|
|
9107
|
+
type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
|
|
9108
|
+
options?: Array<(string)>;
|
|
9109
|
+
createdAt?: string;
|
|
9110
|
+
}>;
|
|
9111
|
+
});
|
|
8977
9112
|
type ListCustomFieldsError = ({
|
|
8978
9113
|
error?: string;
|
|
8979
9114
|
});
|
|
@@ -8992,7 +9127,17 @@ type CreateCustomFieldData = {
|
|
|
8992
9127
|
options?: Array<(string)>;
|
|
8993
9128
|
};
|
|
8994
9129
|
};
|
|
8995
|
-
type CreateCustomFieldResponse = (
|
|
9130
|
+
type CreateCustomFieldResponse = ({
|
|
9131
|
+
success?: boolean;
|
|
9132
|
+
field?: {
|
|
9133
|
+
id?: string;
|
|
9134
|
+
name?: string;
|
|
9135
|
+
slug?: string;
|
|
9136
|
+
type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
|
|
9137
|
+
options?: Array<(string)>;
|
|
9138
|
+
createdAt?: string;
|
|
9139
|
+
};
|
|
9140
|
+
});
|
|
8996
9141
|
type CreateCustomFieldError = ({
|
|
8997
9142
|
error?: string;
|
|
8998
9143
|
} | unknown);
|
|
@@ -9005,7 +9150,16 @@ type UpdateCustomFieldData = {
|
|
|
9005
9150
|
fieldId: string;
|
|
9006
9151
|
};
|
|
9007
9152
|
};
|
|
9008
|
-
type UpdateCustomFieldResponse = (
|
|
9153
|
+
type UpdateCustomFieldResponse = ({
|
|
9154
|
+
success?: boolean;
|
|
9155
|
+
field?: {
|
|
9156
|
+
id?: string;
|
|
9157
|
+
name?: string;
|
|
9158
|
+
slug?: string;
|
|
9159
|
+
type?: string;
|
|
9160
|
+
options?: Array<(string)>;
|
|
9161
|
+
};
|
|
9162
|
+
});
|
|
9009
9163
|
type UpdateCustomFieldError = ({
|
|
9010
9164
|
error?: string;
|
|
9011
9165
|
});
|
|
@@ -9096,7 +9250,18 @@ type CreateBroadcastData = {
|
|
|
9096
9250
|
};
|
|
9097
9251
|
};
|
|
9098
9252
|
};
|
|
9099
|
-
type CreateBroadcastResponse = (
|
|
9253
|
+
type CreateBroadcastResponse = ({
|
|
9254
|
+
success?: boolean;
|
|
9255
|
+
broadcast?: {
|
|
9256
|
+
id?: string;
|
|
9257
|
+
name?: string;
|
|
9258
|
+
description?: string;
|
|
9259
|
+
platform?: string;
|
|
9260
|
+
accountId?: string;
|
|
9261
|
+
status?: string;
|
|
9262
|
+
createdAt?: string;
|
|
9263
|
+
};
|
|
9264
|
+
});
|
|
9100
9265
|
type CreateBroadcastError = ({
|
|
9101
9266
|
error?: string;
|
|
9102
9267
|
});
|
|
@@ -9375,7 +9540,18 @@ type CreateSequenceData = {
|
|
|
9375
9540
|
exitOnUnsubscribe?: boolean;
|
|
9376
9541
|
};
|
|
9377
9542
|
};
|
|
9378
|
-
type CreateSequenceResponse = (
|
|
9543
|
+
type CreateSequenceResponse = ({
|
|
9544
|
+
success?: boolean;
|
|
9545
|
+
sequence?: {
|
|
9546
|
+
id?: string;
|
|
9547
|
+
name?: string;
|
|
9548
|
+
description?: string;
|
|
9549
|
+
platform?: string;
|
|
9550
|
+
status?: string;
|
|
9551
|
+
stepsCount?: number;
|
|
9552
|
+
createdAt?: string;
|
|
9553
|
+
};
|
|
9554
|
+
});
|
|
9379
9555
|
type CreateSequenceError = ({
|
|
9380
9556
|
error?: string;
|
|
9381
9557
|
});
|
|
@@ -9625,7 +9801,26 @@ type CreateCommentAutomationData = {
|
|
|
9625
9801
|
commentReply?: string;
|
|
9626
9802
|
};
|
|
9627
9803
|
};
|
|
9628
|
-
type CreateCommentAutomationResponse = (
|
|
9804
|
+
type CreateCommentAutomationResponse = ({
|
|
9805
|
+
success?: boolean;
|
|
9806
|
+
automation?: {
|
|
9807
|
+
id?: string;
|
|
9808
|
+
name?: string;
|
|
9809
|
+
platform?: string;
|
|
9810
|
+
platformPostId?: string;
|
|
9811
|
+
keywords?: Array<(string)>;
|
|
9812
|
+
matchMode?: 'exact' | 'contains';
|
|
9813
|
+
dmMessage?: string;
|
|
9814
|
+
commentReply?: string;
|
|
9815
|
+
isActive?: boolean;
|
|
9816
|
+
stats?: {
|
|
9817
|
+
totalTriggered?: number;
|
|
9818
|
+
totalSent?: number;
|
|
9819
|
+
totalFailed?: number;
|
|
9820
|
+
};
|
|
9821
|
+
createdAt?: string;
|
|
9822
|
+
};
|
|
9823
|
+
});
|
|
9629
9824
|
type CreateCommentAutomationError = (unknown | {
|
|
9630
9825
|
error?: string;
|
|
9631
9826
|
});
|
|
@@ -9634,7 +9829,40 @@ type GetCommentAutomationData = {
|
|
|
9634
9829
|
automationId: string;
|
|
9635
9830
|
};
|
|
9636
9831
|
};
|
|
9637
|
-
type GetCommentAutomationResponse = (
|
|
9832
|
+
type GetCommentAutomationResponse = ({
|
|
9833
|
+
success?: boolean;
|
|
9834
|
+
automation?: {
|
|
9835
|
+
id?: string;
|
|
9836
|
+
name?: string;
|
|
9837
|
+
platform?: string;
|
|
9838
|
+
accountId?: string;
|
|
9839
|
+
platformPostId?: string;
|
|
9840
|
+
postId?: string;
|
|
9841
|
+
postTitle?: string;
|
|
9842
|
+
keywords?: Array<(string)>;
|
|
9843
|
+
matchMode?: 'exact' | 'contains';
|
|
9844
|
+
dmMessage?: string;
|
|
9845
|
+
commentReply?: string;
|
|
9846
|
+
isActive?: boolean;
|
|
9847
|
+
stats?: {
|
|
9848
|
+
totalTriggered?: number;
|
|
9849
|
+
totalSent?: number;
|
|
9850
|
+
totalFailed?: number;
|
|
9851
|
+
};
|
|
9852
|
+
createdAt?: string;
|
|
9853
|
+
updatedAt?: string;
|
|
9854
|
+
};
|
|
9855
|
+
logs?: Array<{
|
|
9856
|
+
id?: string;
|
|
9857
|
+
commentId?: string;
|
|
9858
|
+
commenterId?: string;
|
|
9859
|
+
commenterName?: string;
|
|
9860
|
+
commentText?: string;
|
|
9861
|
+
status?: 'sent' | 'failed' | 'skipped';
|
|
9862
|
+
error?: string;
|
|
9863
|
+
createdAt?: string;
|
|
9864
|
+
}>;
|
|
9865
|
+
});
|
|
9638
9866
|
type GetCommentAutomationError = ({
|
|
9639
9867
|
error?: string;
|
|
9640
9868
|
});
|
|
@@ -9651,7 +9879,19 @@ type UpdateCommentAutomationData = {
|
|
|
9651
9879
|
automationId: string;
|
|
9652
9880
|
};
|
|
9653
9881
|
};
|
|
9654
|
-
type UpdateCommentAutomationResponse = (
|
|
9882
|
+
type UpdateCommentAutomationResponse = ({
|
|
9883
|
+
success?: boolean;
|
|
9884
|
+
automation?: {
|
|
9885
|
+
id?: string;
|
|
9886
|
+
name?: string;
|
|
9887
|
+
keywords?: Array<(string)>;
|
|
9888
|
+
matchMode?: 'exact' | 'contains';
|
|
9889
|
+
dmMessage?: string;
|
|
9890
|
+
commentReply?: string;
|
|
9891
|
+
isActive?: boolean;
|
|
9892
|
+
updatedAt?: string;
|
|
9893
|
+
};
|
|
9894
|
+
});
|
|
9655
9895
|
type UpdateCommentAutomationError = ({
|
|
9656
9896
|
error?: string;
|
|
9657
9897
|
});
|
|
@@ -9677,7 +9917,25 @@ type ListCommentAutomationLogsData = {
|
|
|
9677
9917
|
status?: 'sent' | 'failed' | 'skipped';
|
|
9678
9918
|
};
|
|
9679
9919
|
};
|
|
9680
|
-
type ListCommentAutomationLogsResponse = (
|
|
9920
|
+
type ListCommentAutomationLogsResponse = ({
|
|
9921
|
+
success?: boolean;
|
|
9922
|
+
logs?: Array<{
|
|
9923
|
+
id?: string;
|
|
9924
|
+
commentId?: string;
|
|
9925
|
+
commenterId?: string;
|
|
9926
|
+
commenterName?: string;
|
|
9927
|
+
commentText?: string;
|
|
9928
|
+
status?: 'sent' | 'failed' | 'skipped';
|
|
9929
|
+
error?: string;
|
|
9930
|
+
createdAt?: string;
|
|
9931
|
+
}>;
|
|
9932
|
+
pagination?: {
|
|
9933
|
+
total?: number;
|
|
9934
|
+
limit?: number;
|
|
9935
|
+
skip?: number;
|
|
9936
|
+
hasMore?: boolean;
|
|
9937
|
+
};
|
|
9938
|
+
});
|
|
9681
9939
|
type ListCommentAutomationLogsError = ({
|
|
9682
9940
|
error?: string;
|
|
9683
9941
|
});
|
package/package.json
CHANGED
|
@@ -9000,7 +9000,40 @@ export type ListContactsData = {
|
|
|
9000
9000
|
};
|
|
9001
9001
|
};
|
|
9002
9002
|
|
|
9003
|
-
export type ListContactsResponse = (
|
|
9003
|
+
export type ListContactsResponse = ({
|
|
9004
|
+
success?: boolean;
|
|
9005
|
+
contacts?: Array<{
|
|
9006
|
+
id?: string;
|
|
9007
|
+
name?: string;
|
|
9008
|
+
email?: string;
|
|
9009
|
+
company?: string;
|
|
9010
|
+
avatarUrl?: string;
|
|
9011
|
+
tags?: Array<(string)>;
|
|
9012
|
+
isSubscribed?: boolean;
|
|
9013
|
+
isBlocked?: boolean;
|
|
9014
|
+
lastMessageSentAt?: string;
|
|
9015
|
+
lastMessageReceivedAt?: string;
|
|
9016
|
+
messagesSentCount?: number;
|
|
9017
|
+
messagesReceivedCount?: number;
|
|
9018
|
+
customFields?: {
|
|
9019
|
+
[key: string]: unknown;
|
|
9020
|
+
};
|
|
9021
|
+
notes?: string;
|
|
9022
|
+
createdAt?: string;
|
|
9023
|
+
platform?: string;
|
|
9024
|
+
platformIdentifier?: string;
|
|
9025
|
+
displayIdentifier?: string;
|
|
9026
|
+
}>;
|
|
9027
|
+
filters?: {
|
|
9028
|
+
tags?: Array<(string)>;
|
|
9029
|
+
};
|
|
9030
|
+
pagination?: {
|
|
9031
|
+
total?: number;
|
|
9032
|
+
limit?: number;
|
|
9033
|
+
skip?: number;
|
|
9034
|
+
hasMore?: boolean;
|
|
9035
|
+
};
|
|
9036
|
+
});
|
|
9004
9037
|
|
|
9005
9038
|
export type ListContactsError = ({
|
|
9006
9039
|
error?: string;
|
|
@@ -9025,7 +9058,33 @@ export type CreateContactData = {
|
|
|
9025
9058
|
};
|
|
9026
9059
|
};
|
|
9027
9060
|
|
|
9028
|
-
export type CreateContactResponse = (
|
|
9061
|
+
export type CreateContactResponse = ({
|
|
9062
|
+
success?: boolean;
|
|
9063
|
+
contact?: {
|
|
9064
|
+
id?: string;
|
|
9065
|
+
name?: string;
|
|
9066
|
+
email?: string;
|
|
9067
|
+
company?: string;
|
|
9068
|
+
tags?: Array<(string)>;
|
|
9069
|
+
isSubscribed?: boolean;
|
|
9070
|
+
isBlocked?: boolean;
|
|
9071
|
+
customFields?: {
|
|
9072
|
+
[key: string]: unknown;
|
|
9073
|
+
};
|
|
9074
|
+
notes?: string;
|
|
9075
|
+
createdAt?: string;
|
|
9076
|
+
};
|
|
9077
|
+
/**
|
|
9078
|
+
* Created when accountId, platform, and platformIdentifier are provided
|
|
9079
|
+
*/
|
|
9080
|
+
channel?: {
|
|
9081
|
+
id?: string;
|
|
9082
|
+
platform?: string;
|
|
9083
|
+
platformIdentifier?: string;
|
|
9084
|
+
displayIdentifier?: string;
|
|
9085
|
+
};
|
|
9086
|
+
warning?: string;
|
|
9087
|
+
});
|
|
9029
9088
|
|
|
9030
9089
|
export type CreateContactError = ({
|
|
9031
9090
|
error?: string;
|
|
@@ -9037,7 +9096,36 @@ export type GetContactData = {
|
|
|
9037
9096
|
};
|
|
9038
9097
|
};
|
|
9039
9098
|
|
|
9040
|
-
export type GetContactResponse = (
|
|
9099
|
+
export type GetContactResponse = ({
|
|
9100
|
+
success?: boolean;
|
|
9101
|
+
contact?: {
|
|
9102
|
+
id?: string;
|
|
9103
|
+
name?: string;
|
|
9104
|
+
email?: string;
|
|
9105
|
+
company?: string;
|
|
9106
|
+
avatarUrl?: string;
|
|
9107
|
+
tags?: Array<(string)>;
|
|
9108
|
+
isSubscribed?: boolean;
|
|
9109
|
+
isBlocked?: boolean;
|
|
9110
|
+
customFields?: {
|
|
9111
|
+
[key: string]: unknown;
|
|
9112
|
+
};
|
|
9113
|
+
notes?: string;
|
|
9114
|
+
conversationIds?: Array<(string)>;
|
|
9115
|
+
createdAt?: string;
|
|
9116
|
+
updatedAt?: string;
|
|
9117
|
+
};
|
|
9118
|
+
channels?: Array<{
|
|
9119
|
+
id?: string;
|
|
9120
|
+
accountId?: string;
|
|
9121
|
+
platform?: string;
|
|
9122
|
+
platformIdentifier?: string;
|
|
9123
|
+
displayIdentifier?: string;
|
|
9124
|
+
isSubscribed?: boolean;
|
|
9125
|
+
conversationId?: string;
|
|
9126
|
+
createdAt?: string;
|
|
9127
|
+
}>;
|
|
9128
|
+
});
|
|
9041
9129
|
|
|
9042
9130
|
export type GetContactError = ({
|
|
9043
9131
|
error?: string;
|
|
@@ -9059,7 +9147,21 @@ export type UpdateContactData = {
|
|
|
9059
9147
|
};
|
|
9060
9148
|
};
|
|
9061
9149
|
|
|
9062
|
-
export type UpdateContactResponse = (
|
|
9150
|
+
export type UpdateContactResponse = ({
|
|
9151
|
+
success?: boolean;
|
|
9152
|
+
contact?: {
|
|
9153
|
+
id?: string;
|
|
9154
|
+
name?: string;
|
|
9155
|
+
email?: string;
|
|
9156
|
+
company?: string;
|
|
9157
|
+
avatarUrl?: string;
|
|
9158
|
+
tags?: Array<(string)>;
|
|
9159
|
+
isSubscribed?: boolean;
|
|
9160
|
+
isBlocked?: boolean;
|
|
9161
|
+
notes?: string;
|
|
9162
|
+
updatedAt?: string;
|
|
9163
|
+
};
|
|
9164
|
+
});
|
|
9063
9165
|
|
|
9064
9166
|
export type UpdateContactError = ({
|
|
9065
9167
|
error?: string;
|
|
@@ -9083,7 +9185,22 @@ export type GetContactChannelsData = {
|
|
|
9083
9185
|
};
|
|
9084
9186
|
};
|
|
9085
9187
|
|
|
9086
|
-
export type GetContactChannelsResponse = (
|
|
9188
|
+
export type GetContactChannelsResponse = ({
|
|
9189
|
+
success?: boolean;
|
|
9190
|
+
channels?: Array<{
|
|
9191
|
+
id?: string;
|
|
9192
|
+
accountId?: string;
|
|
9193
|
+
platform?: string;
|
|
9194
|
+
platformIdentifier?: string;
|
|
9195
|
+
displayIdentifier?: string;
|
|
9196
|
+
isSubscribed?: boolean;
|
|
9197
|
+
conversationId?: string;
|
|
9198
|
+
metadata?: {
|
|
9199
|
+
[key: string]: unknown;
|
|
9200
|
+
};
|
|
9201
|
+
createdAt?: string;
|
|
9202
|
+
}>;
|
|
9203
|
+
});
|
|
9087
9204
|
|
|
9088
9205
|
export type GetContactChannelsError = ({
|
|
9089
9206
|
error?: string;
|
|
@@ -9105,7 +9222,15 @@ export type BulkCreateContactsData = {
|
|
|
9105
9222
|
};
|
|
9106
9223
|
};
|
|
9107
9224
|
|
|
9108
|
-
export type BulkCreateContactsResponse = (
|
|
9225
|
+
export type BulkCreateContactsResponse = ({
|
|
9226
|
+
success?: boolean;
|
|
9227
|
+
created?: number;
|
|
9228
|
+
skipped?: number;
|
|
9229
|
+
errors?: Array<{
|
|
9230
|
+
[key: string]: unknown;
|
|
9231
|
+
}>;
|
|
9232
|
+
total?: number;
|
|
9233
|
+
});
|
|
9109
9234
|
|
|
9110
9235
|
export type BulkCreateContactsError = ({
|
|
9111
9236
|
error?: string;
|
|
@@ -9152,7 +9277,17 @@ export type ListCustomFieldsData = {
|
|
|
9152
9277
|
};
|
|
9153
9278
|
};
|
|
9154
9279
|
|
|
9155
|
-
export type ListCustomFieldsResponse = (
|
|
9280
|
+
export type ListCustomFieldsResponse = ({
|
|
9281
|
+
success?: boolean;
|
|
9282
|
+
fields?: Array<{
|
|
9283
|
+
id?: string;
|
|
9284
|
+
name?: string;
|
|
9285
|
+
slug?: string;
|
|
9286
|
+
type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
|
|
9287
|
+
options?: Array<(string)>;
|
|
9288
|
+
createdAt?: string;
|
|
9289
|
+
}>;
|
|
9290
|
+
});
|
|
9156
9291
|
|
|
9157
9292
|
export type ListCustomFieldsError = ({
|
|
9158
9293
|
error?: string;
|
|
@@ -9174,7 +9309,17 @@ export type CreateCustomFieldData = {
|
|
|
9174
9309
|
};
|
|
9175
9310
|
};
|
|
9176
9311
|
|
|
9177
|
-
export type CreateCustomFieldResponse = (
|
|
9312
|
+
export type CreateCustomFieldResponse = ({
|
|
9313
|
+
success?: boolean;
|
|
9314
|
+
field?: {
|
|
9315
|
+
id?: string;
|
|
9316
|
+
name?: string;
|
|
9317
|
+
slug?: string;
|
|
9318
|
+
type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
|
|
9319
|
+
options?: Array<(string)>;
|
|
9320
|
+
createdAt?: string;
|
|
9321
|
+
};
|
|
9322
|
+
});
|
|
9178
9323
|
|
|
9179
9324
|
export type CreateCustomFieldError = ({
|
|
9180
9325
|
error?: string;
|
|
@@ -9190,7 +9335,16 @@ export type UpdateCustomFieldData = {
|
|
|
9190
9335
|
};
|
|
9191
9336
|
};
|
|
9192
9337
|
|
|
9193
|
-
export type UpdateCustomFieldResponse = (
|
|
9338
|
+
export type UpdateCustomFieldResponse = ({
|
|
9339
|
+
success?: boolean;
|
|
9340
|
+
field?: {
|
|
9341
|
+
id?: string;
|
|
9342
|
+
name?: string;
|
|
9343
|
+
slug?: string;
|
|
9344
|
+
type?: string;
|
|
9345
|
+
options?: Array<(string)>;
|
|
9346
|
+
};
|
|
9347
|
+
});
|
|
9194
9348
|
|
|
9195
9349
|
export type UpdateCustomFieldError = ({
|
|
9196
9350
|
error?: string;
|
|
@@ -9290,7 +9444,18 @@ export type CreateBroadcastData = {
|
|
|
9290
9444
|
};
|
|
9291
9445
|
};
|
|
9292
9446
|
|
|
9293
|
-
export type CreateBroadcastResponse = (
|
|
9447
|
+
export type CreateBroadcastResponse = ({
|
|
9448
|
+
success?: boolean;
|
|
9449
|
+
broadcast?: {
|
|
9450
|
+
id?: string;
|
|
9451
|
+
name?: string;
|
|
9452
|
+
description?: string;
|
|
9453
|
+
platform?: string;
|
|
9454
|
+
accountId?: string;
|
|
9455
|
+
status?: string;
|
|
9456
|
+
createdAt?: string;
|
|
9457
|
+
};
|
|
9458
|
+
});
|
|
9294
9459
|
|
|
9295
9460
|
export type CreateBroadcastError = ({
|
|
9296
9461
|
error?: string;
|
|
@@ -9599,7 +9764,18 @@ export type CreateSequenceData = {
|
|
|
9599
9764
|
};
|
|
9600
9765
|
};
|
|
9601
9766
|
|
|
9602
|
-
export type CreateSequenceResponse = (
|
|
9767
|
+
export type CreateSequenceResponse = ({
|
|
9768
|
+
success?: boolean;
|
|
9769
|
+
sequence?: {
|
|
9770
|
+
id?: string;
|
|
9771
|
+
name?: string;
|
|
9772
|
+
description?: string;
|
|
9773
|
+
platform?: string;
|
|
9774
|
+
status?: string;
|
|
9775
|
+
stepsCount?: number;
|
|
9776
|
+
createdAt?: string;
|
|
9777
|
+
};
|
|
9778
|
+
});
|
|
9603
9779
|
|
|
9604
9780
|
export type CreateSequenceError = ({
|
|
9605
9781
|
error?: string;
|
|
@@ -9879,7 +10055,26 @@ export type CreateCommentAutomationData = {
|
|
|
9879
10055
|
};
|
|
9880
10056
|
};
|
|
9881
10057
|
|
|
9882
|
-
export type CreateCommentAutomationResponse = (
|
|
10058
|
+
export type CreateCommentAutomationResponse = ({
|
|
10059
|
+
success?: boolean;
|
|
10060
|
+
automation?: {
|
|
10061
|
+
id?: string;
|
|
10062
|
+
name?: string;
|
|
10063
|
+
platform?: string;
|
|
10064
|
+
platformPostId?: string;
|
|
10065
|
+
keywords?: Array<(string)>;
|
|
10066
|
+
matchMode?: 'exact' | 'contains';
|
|
10067
|
+
dmMessage?: string;
|
|
10068
|
+
commentReply?: string;
|
|
10069
|
+
isActive?: boolean;
|
|
10070
|
+
stats?: {
|
|
10071
|
+
totalTriggered?: number;
|
|
10072
|
+
totalSent?: number;
|
|
10073
|
+
totalFailed?: number;
|
|
10074
|
+
};
|
|
10075
|
+
createdAt?: string;
|
|
10076
|
+
};
|
|
10077
|
+
});
|
|
9883
10078
|
|
|
9884
10079
|
export type CreateCommentAutomationError = (unknown | {
|
|
9885
10080
|
error?: string;
|
|
@@ -9891,7 +10086,40 @@ export type GetCommentAutomationData = {
|
|
|
9891
10086
|
};
|
|
9892
10087
|
};
|
|
9893
10088
|
|
|
9894
|
-
export type GetCommentAutomationResponse = (
|
|
10089
|
+
export type GetCommentAutomationResponse = ({
|
|
10090
|
+
success?: boolean;
|
|
10091
|
+
automation?: {
|
|
10092
|
+
id?: string;
|
|
10093
|
+
name?: string;
|
|
10094
|
+
platform?: string;
|
|
10095
|
+
accountId?: string;
|
|
10096
|
+
platformPostId?: string;
|
|
10097
|
+
postId?: string;
|
|
10098
|
+
postTitle?: string;
|
|
10099
|
+
keywords?: Array<(string)>;
|
|
10100
|
+
matchMode?: 'exact' | 'contains';
|
|
10101
|
+
dmMessage?: string;
|
|
10102
|
+
commentReply?: string;
|
|
10103
|
+
isActive?: boolean;
|
|
10104
|
+
stats?: {
|
|
10105
|
+
totalTriggered?: number;
|
|
10106
|
+
totalSent?: number;
|
|
10107
|
+
totalFailed?: number;
|
|
10108
|
+
};
|
|
10109
|
+
createdAt?: string;
|
|
10110
|
+
updatedAt?: string;
|
|
10111
|
+
};
|
|
10112
|
+
logs?: Array<{
|
|
10113
|
+
id?: string;
|
|
10114
|
+
commentId?: string;
|
|
10115
|
+
commenterId?: string;
|
|
10116
|
+
commenterName?: string;
|
|
10117
|
+
commentText?: string;
|
|
10118
|
+
status?: 'sent' | 'failed' | 'skipped';
|
|
10119
|
+
error?: string;
|
|
10120
|
+
createdAt?: string;
|
|
10121
|
+
}>;
|
|
10122
|
+
});
|
|
9895
10123
|
|
|
9896
10124
|
export type GetCommentAutomationError = ({
|
|
9897
10125
|
error?: string;
|
|
@@ -9911,7 +10139,19 @@ export type UpdateCommentAutomationData = {
|
|
|
9911
10139
|
};
|
|
9912
10140
|
};
|
|
9913
10141
|
|
|
9914
|
-
export type UpdateCommentAutomationResponse = (
|
|
10142
|
+
export type UpdateCommentAutomationResponse = ({
|
|
10143
|
+
success?: boolean;
|
|
10144
|
+
automation?: {
|
|
10145
|
+
id?: string;
|
|
10146
|
+
name?: string;
|
|
10147
|
+
keywords?: Array<(string)>;
|
|
10148
|
+
matchMode?: 'exact' | 'contains';
|
|
10149
|
+
dmMessage?: string;
|
|
10150
|
+
commentReply?: string;
|
|
10151
|
+
isActive?: boolean;
|
|
10152
|
+
updatedAt?: string;
|
|
10153
|
+
};
|
|
10154
|
+
});
|
|
9915
10155
|
|
|
9916
10156
|
export type UpdateCommentAutomationError = ({
|
|
9917
10157
|
error?: string;
|
|
@@ -9943,7 +10183,25 @@ export type ListCommentAutomationLogsData = {
|
|
|
9943
10183
|
};
|
|
9944
10184
|
};
|
|
9945
10185
|
|
|
9946
|
-
export type ListCommentAutomationLogsResponse = (
|
|
10186
|
+
export type ListCommentAutomationLogsResponse = ({
|
|
10187
|
+
success?: boolean;
|
|
10188
|
+
logs?: Array<{
|
|
10189
|
+
id?: string;
|
|
10190
|
+
commentId?: string;
|
|
10191
|
+
commenterId?: string;
|
|
10192
|
+
commenterName?: string;
|
|
10193
|
+
commentText?: string;
|
|
10194
|
+
status?: 'sent' | 'failed' | 'skipped';
|
|
10195
|
+
error?: string;
|
|
10196
|
+
createdAt?: string;
|
|
10197
|
+
}>;
|
|
10198
|
+
pagination?: {
|
|
10199
|
+
total?: number;
|
|
10200
|
+
limit?: number;
|
|
10201
|
+
skip?: number;
|
|
10202
|
+
hasMore?: boolean;
|
|
10203
|
+
};
|
|
10204
|
+
});
|
|
9947
10205
|
|
|
9948
10206
|
export type ListCommentAutomationLogsError = ({
|
|
9949
10207
|
error?: string;
|