@smartlyqofficial/node 0.1.46 → 0.1.47
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.cts +33 -10
- package/dist/index.d.ts +33 -10
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -413,9 +413,13 @@ type SocialPostCreateRequest = {
|
|
|
413
413
|
*/
|
|
414
414
|
platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
|
|
415
415
|
/**
|
|
416
|
-
* IDs of connected social accounts to post to
|
|
416
|
+
* IDs of connected social accounts to post to. Optional when account_group_ids is sent; at least one of the two is required.
|
|
417
417
|
*/
|
|
418
|
-
account_ids
|
|
418
|
+
account_ids?: Array<number>;
|
|
419
|
+
/**
|
|
420
|
+
* IDs of account groups (GET /social/account-groups). Their connected accounts are added to account_ids, each account once. Send account_ids, account_group_ids or both. An unknown group id answers 404 RESOURCE_NOT_FOUND naming it; a group with no connected accounts left answers 422 VALIDATION_ERROR naming it.
|
|
421
|
+
*/
|
|
422
|
+
account_group_ids?: Array<number>;
|
|
419
423
|
/**
|
|
420
424
|
* Media URLs to attach to the post
|
|
421
425
|
*/
|
|
@@ -449,9 +453,13 @@ type SocialPostScheduleRequest = {
|
|
|
449
453
|
*/
|
|
450
454
|
platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
|
|
451
455
|
/**
|
|
452
|
-
* IDs of connected social accounts
|
|
456
|
+
* IDs of connected social accounts to post to. Optional when account_group_ids is sent; at least one of the two is required.
|
|
457
|
+
*/
|
|
458
|
+
account_ids?: Array<number>;
|
|
459
|
+
/**
|
|
460
|
+
* IDs of account groups (GET /social/account-groups). Their connected accounts are added to account_ids, each account once. Send account_ids, account_group_ids or both. An unknown group id answers 404 RESOURCE_NOT_FOUND naming it; a group with no connected accounts left answers 422 VALIDATION_ERROR naming it.
|
|
453
461
|
*/
|
|
454
|
-
|
|
462
|
+
account_group_ids?: Array<number>;
|
|
455
463
|
/**
|
|
456
464
|
* When to publish (ISO 8601)
|
|
457
465
|
*/
|
|
@@ -567,7 +575,14 @@ type SocialPostUpdateRequest = {
|
|
|
567
575
|
* Target platforms. Use `twitter` for X and `gmb` for Google Business. `telegram` posts via the workspace's connected bot (created with @BotFather); `discord` posts via the connected server webhook. Both are connected in the dashboard's Social Accounts page.
|
|
568
576
|
*/
|
|
569
577
|
platforms?: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
|
|
578
|
+
/**
|
|
579
|
+
* Replaces the accounts the post goes to.
|
|
580
|
+
*/
|
|
570
581
|
account_ids?: Array<number>;
|
|
582
|
+
/**
|
|
583
|
+
* IDs of account groups; their connected accounts are added to account_ids (each once) and the result replaces the post's accounts. Unknown or empty groups are refused by name.
|
|
584
|
+
*/
|
|
585
|
+
account_group_ids?: Array<number>;
|
|
571
586
|
scheduled_time?: string;
|
|
572
587
|
media_urls?: Array<string>;
|
|
573
588
|
link?: string;
|
|
@@ -9147,12 +9162,16 @@ type StopPostRecycleResponse = StopPostRecycleResponses[keyof StopPostRecycleRes
|
|
|
9147
9162
|
type BulkSchedulePostsData = {
|
|
9148
9163
|
body: {
|
|
9149
9164
|
/**
|
|
9150
|
-
* Up to 50 posts. Each row needs content, platforms, account_ids and scheduled_time.
|
|
9165
|
+
* Up to 50 posts. Each row needs content, platforms, account_ids or account_group_ids, and scheduled_time.
|
|
9151
9166
|
*/
|
|
9152
9167
|
posts?: Array<{
|
|
9153
9168
|
content: string;
|
|
9154
9169
|
platforms: Array<string>;
|
|
9155
|
-
account_ids
|
|
9170
|
+
account_ids?: Array<number>;
|
|
9171
|
+
/**
|
|
9172
|
+
* Account group ids; their connected accounts are added to account_ids. A row needs account_ids, account_group_ids or both. An unknown or empty group fails that row by name (the whole batch is rejected and refunded before anything is created).
|
|
9173
|
+
*/
|
|
9174
|
+
account_group_ids?: Array<number>;
|
|
9156
9175
|
/**
|
|
9157
9176
|
* When to publish (interpreted in `timezone`, default UTC).
|
|
9158
9177
|
*/
|
|
@@ -9172,7 +9191,7 @@ type BulkSchedulePostsData = {
|
|
|
9172
9191
|
};
|
|
9173
9192
|
}>;
|
|
9174
9193
|
/**
|
|
9175
|
-
* Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
|
|
9194
|
+
* Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, account_group_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
|
|
9176
9195
|
*/
|
|
9177
9196
|
csv?: string;
|
|
9178
9197
|
/**
|
|
@@ -9234,12 +9253,16 @@ type BulkSchedulePostsResponse = BulkSchedulePostsResponses[keyof BulkSchedulePo
|
|
|
9234
9253
|
type ValidateBulkBatchData = {
|
|
9235
9254
|
body: {
|
|
9236
9255
|
/**
|
|
9237
|
-
* Up to 50 posts. Each row needs content, platforms, account_ids and scheduled_time.
|
|
9256
|
+
* Up to 50 posts. Each row needs content, platforms, account_ids or account_group_ids, and scheduled_time.
|
|
9238
9257
|
*/
|
|
9239
9258
|
posts?: Array<{
|
|
9240
9259
|
content: string;
|
|
9241
9260
|
platforms: Array<string>;
|
|
9242
|
-
account_ids
|
|
9261
|
+
account_ids?: Array<number>;
|
|
9262
|
+
/**
|
|
9263
|
+
* Account group ids; their connected accounts are added to account_ids. A row needs account_ids, account_group_ids or both. An unknown or empty group fails that row by name (dry run: nothing is created or charged).
|
|
9264
|
+
*/
|
|
9265
|
+
account_group_ids?: Array<number>;
|
|
9243
9266
|
/**
|
|
9244
9267
|
* When to publish (interpreted in `timezone`, default UTC).
|
|
9245
9268
|
*/
|
|
@@ -9259,7 +9282,7 @@ type ValidateBulkBatchData = {
|
|
|
9259
9282
|
};
|
|
9260
9283
|
}>;
|
|
9261
9284
|
/**
|
|
9262
|
-
* Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
|
|
9285
|
+
* Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, account_group_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
|
|
9263
9286
|
*/
|
|
9264
9287
|
csv?: string;
|
|
9265
9288
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -413,9 +413,13 @@ type SocialPostCreateRequest = {
|
|
|
413
413
|
*/
|
|
414
414
|
platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
|
|
415
415
|
/**
|
|
416
|
-
* IDs of connected social accounts to post to
|
|
416
|
+
* IDs of connected social accounts to post to. Optional when account_group_ids is sent; at least one of the two is required.
|
|
417
417
|
*/
|
|
418
|
-
account_ids
|
|
418
|
+
account_ids?: Array<number>;
|
|
419
|
+
/**
|
|
420
|
+
* IDs of account groups (GET /social/account-groups). Their connected accounts are added to account_ids, each account once. Send account_ids, account_group_ids or both. An unknown group id answers 404 RESOURCE_NOT_FOUND naming it; a group with no connected accounts left answers 422 VALIDATION_ERROR naming it.
|
|
421
|
+
*/
|
|
422
|
+
account_group_ids?: Array<number>;
|
|
419
423
|
/**
|
|
420
424
|
* Media URLs to attach to the post
|
|
421
425
|
*/
|
|
@@ -449,9 +453,13 @@ type SocialPostScheduleRequest = {
|
|
|
449
453
|
*/
|
|
450
454
|
platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
|
|
451
455
|
/**
|
|
452
|
-
* IDs of connected social accounts
|
|
456
|
+
* IDs of connected social accounts to post to. Optional when account_group_ids is sent; at least one of the two is required.
|
|
457
|
+
*/
|
|
458
|
+
account_ids?: Array<number>;
|
|
459
|
+
/**
|
|
460
|
+
* IDs of account groups (GET /social/account-groups). Their connected accounts are added to account_ids, each account once. Send account_ids, account_group_ids or both. An unknown group id answers 404 RESOURCE_NOT_FOUND naming it; a group with no connected accounts left answers 422 VALIDATION_ERROR naming it.
|
|
453
461
|
*/
|
|
454
|
-
|
|
462
|
+
account_group_ids?: Array<number>;
|
|
455
463
|
/**
|
|
456
464
|
* When to publish (ISO 8601)
|
|
457
465
|
*/
|
|
@@ -567,7 +575,14 @@ type SocialPostUpdateRequest = {
|
|
|
567
575
|
* Target platforms. Use `twitter` for X and `gmb` for Google Business. `telegram` posts via the workspace's connected bot (created with @BotFather); `discord` posts via the connected server webhook. Both are connected in the dashboard's Social Accounts page.
|
|
568
576
|
*/
|
|
569
577
|
platforms?: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
|
|
578
|
+
/**
|
|
579
|
+
* Replaces the accounts the post goes to.
|
|
580
|
+
*/
|
|
570
581
|
account_ids?: Array<number>;
|
|
582
|
+
/**
|
|
583
|
+
* IDs of account groups; their connected accounts are added to account_ids (each once) and the result replaces the post's accounts. Unknown or empty groups are refused by name.
|
|
584
|
+
*/
|
|
585
|
+
account_group_ids?: Array<number>;
|
|
571
586
|
scheduled_time?: string;
|
|
572
587
|
media_urls?: Array<string>;
|
|
573
588
|
link?: string;
|
|
@@ -9147,12 +9162,16 @@ type StopPostRecycleResponse = StopPostRecycleResponses[keyof StopPostRecycleRes
|
|
|
9147
9162
|
type BulkSchedulePostsData = {
|
|
9148
9163
|
body: {
|
|
9149
9164
|
/**
|
|
9150
|
-
* Up to 50 posts. Each row needs content, platforms, account_ids and scheduled_time.
|
|
9165
|
+
* Up to 50 posts. Each row needs content, platforms, account_ids or account_group_ids, and scheduled_time.
|
|
9151
9166
|
*/
|
|
9152
9167
|
posts?: Array<{
|
|
9153
9168
|
content: string;
|
|
9154
9169
|
platforms: Array<string>;
|
|
9155
|
-
account_ids
|
|
9170
|
+
account_ids?: Array<number>;
|
|
9171
|
+
/**
|
|
9172
|
+
* Account group ids; their connected accounts are added to account_ids. A row needs account_ids, account_group_ids or both. An unknown or empty group fails that row by name (the whole batch is rejected and refunded before anything is created).
|
|
9173
|
+
*/
|
|
9174
|
+
account_group_ids?: Array<number>;
|
|
9156
9175
|
/**
|
|
9157
9176
|
* When to publish (interpreted in `timezone`, default UTC).
|
|
9158
9177
|
*/
|
|
@@ -9172,7 +9191,7 @@ type BulkSchedulePostsData = {
|
|
|
9172
9191
|
};
|
|
9173
9192
|
}>;
|
|
9174
9193
|
/**
|
|
9175
|
-
* Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
|
|
9194
|
+
* Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, account_group_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
|
|
9176
9195
|
*/
|
|
9177
9196
|
csv?: string;
|
|
9178
9197
|
/**
|
|
@@ -9234,12 +9253,16 @@ type BulkSchedulePostsResponse = BulkSchedulePostsResponses[keyof BulkSchedulePo
|
|
|
9234
9253
|
type ValidateBulkBatchData = {
|
|
9235
9254
|
body: {
|
|
9236
9255
|
/**
|
|
9237
|
-
* Up to 50 posts. Each row needs content, platforms, account_ids and scheduled_time.
|
|
9256
|
+
* Up to 50 posts. Each row needs content, platforms, account_ids or account_group_ids, and scheduled_time.
|
|
9238
9257
|
*/
|
|
9239
9258
|
posts?: Array<{
|
|
9240
9259
|
content: string;
|
|
9241
9260
|
platforms: Array<string>;
|
|
9242
|
-
account_ids
|
|
9261
|
+
account_ids?: Array<number>;
|
|
9262
|
+
/**
|
|
9263
|
+
* Account group ids; their connected accounts are added to account_ids. A row needs account_ids, account_group_ids or both. An unknown or empty group fails that row by name (dry run: nothing is created or charged).
|
|
9264
|
+
*/
|
|
9265
|
+
account_group_ids?: Array<number>;
|
|
9243
9266
|
/**
|
|
9244
9267
|
* When to publish (interpreted in `timezone`, default UTC).
|
|
9245
9268
|
*/
|
|
@@ -9259,7 +9282,7 @@ type ValidateBulkBatchData = {
|
|
|
9259
9282
|
};
|
|
9260
9283
|
}>;
|
|
9261
9284
|
/**
|
|
9262
|
-
* Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
|
|
9285
|
+
* Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, account_group_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
|
|
9263
9286
|
*/
|
|
9264
9287
|
csv?: string;
|
|
9265
9288
|
/**
|