@getlatedev/node 0.1.5 → 0.1.6
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 +24 -4
- package/dist/index.d.ts +24 -4
- package/dist/index.js +14 -4
- package/dist/index.mjs +14 -4
- package/package.json +1 -1
- package/src/client.ts +14 -2
- package/src/generated/types.gen.ts +12 -2
package/dist/index.d.mts
CHANGED
|
@@ -239,14 +239,19 @@ declare class Late {
|
|
|
239
239
|
getPostLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetPostLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetPostLogsResponse, unknown, ThrowOnError>;
|
|
240
240
|
};
|
|
241
241
|
/**
|
|
242
|
-
*
|
|
242
|
+
* messages API
|
|
243
243
|
*/
|
|
244
|
-
|
|
244
|
+
messages: {
|
|
245
245
|
listInboxConversations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListInboxConversationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListInboxConversationsResponse, unknown, ThrowOnError>;
|
|
246
246
|
getInboxConversation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetInboxConversationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetInboxConversationResponse, unknown, ThrowOnError>;
|
|
247
247
|
updateInboxConversation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateInboxConversationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateInboxConversationResponse, unknown, ThrowOnError>;
|
|
248
248
|
getInboxConversationMessages: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetInboxConversationMessagesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetInboxConversationMessagesResponse, unknown, ThrowOnError>;
|
|
249
249
|
sendInboxMessage: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendInboxMessageData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendInboxMessageResponse, unknown, ThrowOnError>;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* comments API
|
|
253
|
+
*/
|
|
254
|
+
comments: {
|
|
250
255
|
listInboxComments: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListInboxCommentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListInboxCommentsResponse, unknown, ThrowOnError>;
|
|
251
256
|
getInboxPostComments: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetInboxPostCommentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetInboxPostCommentsResponse, unknown, ThrowOnError>;
|
|
252
257
|
replyToInboxPost: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ReplyToInboxPostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReplyToInboxPostResponse, unknown, ThrowOnError>;
|
|
@@ -255,6 +260,11 @@ declare class Late {
|
|
|
255
260
|
unhideInboxComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UnhideInboxCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UnhideInboxCommentResponse, unknown, ThrowOnError>;
|
|
256
261
|
likeInboxComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<LikeInboxCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<LikeInboxCommentResponse, unknown, ThrowOnError>;
|
|
257
262
|
unlikeInboxComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UnlikeInboxCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UnlikeInboxCommentResponse, unknown, ThrowOnError>;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* reviews API
|
|
266
|
+
*/
|
|
267
|
+
reviews: {
|
|
258
268
|
listInboxReviews: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListInboxReviewsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListInboxReviewsResponse, unknown, ThrowOnError>;
|
|
259
269
|
replyToInboxReview: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ReplyToInboxReviewData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReplyToInboxReviewResponse, unknown, ThrowOnError>;
|
|
260
270
|
deleteInboxReviewReply: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteInboxReviewReplyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteInboxReviewReplyResponse, unknown, ThrowOnError>;
|
|
@@ -1640,7 +1650,7 @@ type event3 = 'account.disconnected';
|
|
|
1640
1650
|
*/
|
|
1641
1651
|
type disconnectionType = 'intentional' | 'unintentional';
|
|
1642
1652
|
/**
|
|
1643
|
-
* Webhook payload for message received events (DMs from Instagram,
|
|
1653
|
+
* Webhook payload for message received events (DMs from Instagram, Telegram)
|
|
1644
1654
|
*/
|
|
1645
1655
|
type WebhookPayloadMessage = {
|
|
1646
1656
|
event?: 'message.received';
|
|
@@ -2306,6 +2316,13 @@ type CreatePostData = {
|
|
|
2306
2316
|
metadata?: {
|
|
2307
2317
|
[key: string]: unknown;
|
|
2308
2318
|
};
|
|
2319
|
+
/**
|
|
2320
|
+
* Root-level TikTok settings applied to all TikTok platforms in the request.
|
|
2321
|
+
* This is a convenience shorthand. Settings here are merged into each TikTok
|
|
2322
|
+
* platform's platformSpecificData, with platform-specific settings taking precedence.
|
|
2323
|
+
*
|
|
2324
|
+
*/
|
|
2325
|
+
tiktokSettings?: TikTokPlatformData;
|
|
2309
2326
|
/**
|
|
2310
2327
|
* Profile ID to schedule via queue.
|
|
2311
2328
|
*
|
|
@@ -3653,7 +3670,10 @@ type UpdateFacebookPageData = {
|
|
|
3653
3670
|
};
|
|
3654
3671
|
type UpdateFacebookPageResponse = ({
|
|
3655
3672
|
message?: string;
|
|
3656
|
-
|
|
3673
|
+
selectedPage?: {
|
|
3674
|
+
id?: string;
|
|
3675
|
+
name?: string;
|
|
3676
|
+
};
|
|
3657
3677
|
});
|
|
3658
3678
|
type UpdateFacebookPageError = (unknown | {
|
|
3659
3679
|
error?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -239,14 +239,19 @@ declare class Late {
|
|
|
239
239
|
getPostLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetPostLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetPostLogsResponse, unknown, ThrowOnError>;
|
|
240
240
|
};
|
|
241
241
|
/**
|
|
242
|
-
*
|
|
242
|
+
* messages API
|
|
243
243
|
*/
|
|
244
|
-
|
|
244
|
+
messages: {
|
|
245
245
|
listInboxConversations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListInboxConversationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListInboxConversationsResponse, unknown, ThrowOnError>;
|
|
246
246
|
getInboxConversation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetInboxConversationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetInboxConversationResponse, unknown, ThrowOnError>;
|
|
247
247
|
updateInboxConversation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateInboxConversationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateInboxConversationResponse, unknown, ThrowOnError>;
|
|
248
248
|
getInboxConversationMessages: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetInboxConversationMessagesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetInboxConversationMessagesResponse, unknown, ThrowOnError>;
|
|
249
249
|
sendInboxMessage: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendInboxMessageData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendInboxMessageResponse, unknown, ThrowOnError>;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* comments API
|
|
253
|
+
*/
|
|
254
|
+
comments: {
|
|
250
255
|
listInboxComments: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListInboxCommentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListInboxCommentsResponse, unknown, ThrowOnError>;
|
|
251
256
|
getInboxPostComments: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetInboxPostCommentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetInboxPostCommentsResponse, unknown, ThrowOnError>;
|
|
252
257
|
replyToInboxPost: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ReplyToInboxPostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReplyToInboxPostResponse, unknown, ThrowOnError>;
|
|
@@ -255,6 +260,11 @@ declare class Late {
|
|
|
255
260
|
unhideInboxComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UnhideInboxCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UnhideInboxCommentResponse, unknown, ThrowOnError>;
|
|
256
261
|
likeInboxComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<LikeInboxCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<LikeInboxCommentResponse, unknown, ThrowOnError>;
|
|
257
262
|
unlikeInboxComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UnlikeInboxCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UnlikeInboxCommentResponse, unknown, ThrowOnError>;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* reviews API
|
|
266
|
+
*/
|
|
267
|
+
reviews: {
|
|
258
268
|
listInboxReviews: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListInboxReviewsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListInboxReviewsResponse, unknown, ThrowOnError>;
|
|
259
269
|
replyToInboxReview: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ReplyToInboxReviewData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReplyToInboxReviewResponse, unknown, ThrowOnError>;
|
|
260
270
|
deleteInboxReviewReply: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteInboxReviewReplyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteInboxReviewReplyResponse, unknown, ThrowOnError>;
|
|
@@ -1640,7 +1650,7 @@ type event3 = 'account.disconnected';
|
|
|
1640
1650
|
*/
|
|
1641
1651
|
type disconnectionType = 'intentional' | 'unintentional';
|
|
1642
1652
|
/**
|
|
1643
|
-
* Webhook payload for message received events (DMs from Instagram,
|
|
1653
|
+
* Webhook payload for message received events (DMs from Instagram, Telegram)
|
|
1644
1654
|
*/
|
|
1645
1655
|
type WebhookPayloadMessage = {
|
|
1646
1656
|
event?: 'message.received';
|
|
@@ -2306,6 +2316,13 @@ type CreatePostData = {
|
|
|
2306
2316
|
metadata?: {
|
|
2307
2317
|
[key: string]: unknown;
|
|
2308
2318
|
};
|
|
2319
|
+
/**
|
|
2320
|
+
* Root-level TikTok settings applied to all TikTok platforms in the request.
|
|
2321
|
+
* This is a convenience shorthand. Settings here are merged into each TikTok
|
|
2322
|
+
* platform's platformSpecificData, with platform-specific settings taking precedence.
|
|
2323
|
+
*
|
|
2324
|
+
*/
|
|
2325
|
+
tiktokSettings?: TikTokPlatformData;
|
|
2309
2326
|
/**
|
|
2310
2327
|
* Profile ID to schedule via queue.
|
|
2311
2328
|
*
|
|
@@ -3653,7 +3670,10 @@ type UpdateFacebookPageData = {
|
|
|
3653
3670
|
};
|
|
3654
3671
|
type UpdateFacebookPageResponse = ({
|
|
3655
3672
|
message?: string;
|
|
3656
|
-
|
|
3673
|
+
selectedPage?: {
|
|
3674
|
+
id?: string;
|
|
3675
|
+
name?: string;
|
|
3676
|
+
};
|
|
3657
3677
|
});
|
|
3658
3678
|
type UpdateFacebookPageError = (unknown | {
|
|
3659
3679
|
error?: string;
|
package/dist/index.js
CHANGED
|
@@ -1193,14 +1193,19 @@ var Late = class {
|
|
|
1193
1193
|
getPostLogs
|
|
1194
1194
|
};
|
|
1195
1195
|
/**
|
|
1196
|
-
*
|
|
1196
|
+
* messages API
|
|
1197
1197
|
*/
|
|
1198
|
-
this.
|
|
1198
|
+
this.messages = {
|
|
1199
1199
|
listInboxConversations,
|
|
1200
1200
|
getInboxConversation,
|
|
1201
1201
|
updateInboxConversation,
|
|
1202
1202
|
getInboxConversationMessages,
|
|
1203
|
-
sendInboxMessage
|
|
1203
|
+
sendInboxMessage
|
|
1204
|
+
};
|
|
1205
|
+
/**
|
|
1206
|
+
* comments API
|
|
1207
|
+
*/
|
|
1208
|
+
this.comments = {
|
|
1204
1209
|
listInboxComments,
|
|
1205
1210
|
getInboxPostComments,
|
|
1206
1211
|
replyToInboxPost,
|
|
@@ -1208,7 +1213,12 @@ var Late = class {
|
|
|
1208
1213
|
hideInboxComment,
|
|
1209
1214
|
unhideInboxComment,
|
|
1210
1215
|
likeInboxComment,
|
|
1211
|
-
unlikeInboxComment
|
|
1216
|
+
unlikeInboxComment
|
|
1217
|
+
};
|
|
1218
|
+
/**
|
|
1219
|
+
* reviews API
|
|
1220
|
+
*/
|
|
1221
|
+
this.reviews = {
|
|
1212
1222
|
listInboxReviews,
|
|
1213
1223
|
replyToInboxReview,
|
|
1214
1224
|
deleteInboxReviewReply
|
package/dist/index.mjs
CHANGED
|
@@ -1164,14 +1164,19 @@ var Late = class {
|
|
|
1164
1164
|
getPostLogs
|
|
1165
1165
|
};
|
|
1166
1166
|
/**
|
|
1167
|
-
*
|
|
1167
|
+
* messages API
|
|
1168
1168
|
*/
|
|
1169
|
-
this.
|
|
1169
|
+
this.messages = {
|
|
1170
1170
|
listInboxConversations,
|
|
1171
1171
|
getInboxConversation,
|
|
1172
1172
|
updateInboxConversation,
|
|
1173
1173
|
getInboxConversationMessages,
|
|
1174
|
-
sendInboxMessage
|
|
1174
|
+
sendInboxMessage
|
|
1175
|
+
};
|
|
1176
|
+
/**
|
|
1177
|
+
* comments API
|
|
1178
|
+
*/
|
|
1179
|
+
this.comments = {
|
|
1175
1180
|
listInboxComments,
|
|
1176
1181
|
getInboxPostComments,
|
|
1177
1182
|
replyToInboxPost,
|
|
@@ -1179,7 +1184,12 @@ var Late = class {
|
|
|
1179
1184
|
hideInboxComment,
|
|
1180
1185
|
unhideInboxComment,
|
|
1181
1186
|
likeInboxComment,
|
|
1182
|
-
unlikeInboxComment
|
|
1187
|
+
unlikeInboxComment
|
|
1188
|
+
};
|
|
1189
|
+
/**
|
|
1190
|
+
* reviews API
|
|
1191
|
+
*/
|
|
1192
|
+
this.reviews = {
|
|
1183
1193
|
listInboxReviews,
|
|
1184
1194
|
replyToInboxReview,
|
|
1185
1195
|
deleteInboxReviewReply
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -369,14 +369,20 @@ export class Late {
|
|
|
369
369
|
};
|
|
370
370
|
|
|
371
371
|
/**
|
|
372
|
-
*
|
|
372
|
+
* messages API
|
|
373
373
|
*/
|
|
374
|
-
|
|
374
|
+
messages = {
|
|
375
375
|
listInboxConversations: listInboxConversations,
|
|
376
376
|
getInboxConversation: getInboxConversation,
|
|
377
377
|
updateInboxConversation: updateInboxConversation,
|
|
378
378
|
getInboxConversationMessages: getInboxConversationMessages,
|
|
379
379
|
sendInboxMessage: sendInboxMessage,
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* comments API
|
|
384
|
+
*/
|
|
385
|
+
comments = {
|
|
380
386
|
listInboxComments: listInboxComments,
|
|
381
387
|
getInboxPostComments: getInboxPostComments,
|
|
382
388
|
replyToInboxPost: replyToInboxPost,
|
|
@@ -385,6 +391,12 @@ export class Late {
|
|
|
385
391
|
unhideInboxComment: unhideInboxComment,
|
|
386
392
|
likeInboxComment: likeInboxComment,
|
|
387
393
|
unlikeInboxComment: unlikeInboxComment,
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* reviews API
|
|
398
|
+
*/
|
|
399
|
+
reviews = {
|
|
388
400
|
listInboxReviews: listInboxReviews,
|
|
389
401
|
replyToInboxReview: replyToInboxReview,
|
|
390
402
|
deleteInboxReviewReply: deleteInboxReviewReply,
|
|
@@ -1406,7 +1406,7 @@ export type event3 = 'account.disconnected';
|
|
|
1406
1406
|
export type disconnectionType = 'intentional' | 'unintentional';
|
|
1407
1407
|
|
|
1408
1408
|
/**
|
|
1409
|
-
* Webhook payload for message received events (DMs from Instagram,
|
|
1409
|
+
* Webhook payload for message received events (DMs from Instagram, Telegram)
|
|
1410
1410
|
*/
|
|
1411
1411
|
export type WebhookPayloadMessage = {
|
|
1412
1412
|
event?: 'message.received';
|
|
@@ -2140,6 +2140,13 @@ export type CreatePostData = {
|
|
|
2140
2140
|
metadata?: {
|
|
2141
2141
|
[key: string]: unknown;
|
|
2142
2142
|
};
|
|
2143
|
+
/**
|
|
2144
|
+
* Root-level TikTok settings applied to all TikTok platforms in the request.
|
|
2145
|
+
* This is a convenience shorthand. Settings here are merged into each TikTok
|
|
2146
|
+
* platform's platformSpecificData, with platform-specific settings taking precedence.
|
|
2147
|
+
*
|
|
2148
|
+
*/
|
|
2149
|
+
tiktokSettings?: TikTokPlatformData;
|
|
2143
2150
|
/**
|
|
2144
2151
|
* Profile ID to schedule via queue.
|
|
2145
2152
|
*
|
|
@@ -3612,7 +3619,10 @@ export type UpdateFacebookPageData = {
|
|
|
3612
3619
|
|
|
3613
3620
|
export type UpdateFacebookPageResponse = ({
|
|
3614
3621
|
message?: string;
|
|
3615
|
-
|
|
3622
|
+
selectedPage?: {
|
|
3623
|
+
id?: string;
|
|
3624
|
+
name?: string;
|
|
3625
|
+
};
|
|
3616
3626
|
});
|
|
3617
3627
|
|
|
3618
3628
|
export type UpdateFacebookPageError = (unknown | {
|