@schedulin/sdk 0.1.2 → 0.3.0
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/README.md +45 -0
- package/cjs/BaseClient.d.ts +12 -0
- package/cjs/Client.d.ts +9 -0
- package/cjs/Client.js +23 -8
- package/cjs/api/errors/InternalServerError.d.ts +1 -0
- package/cjs/api/errors/UnauthorizedError.d.ts +1 -0
- package/cjs/api/resources/ai/client/Client.d.ts +49 -0
- package/cjs/api/resources/ai/client/Client.js +181 -0
- package/cjs/api/resources/ai/client/index.d.ts +1 -0
- package/cjs/api/resources/ai/client/index.js +17 -0
- package/cjs/api/resources/ai/client/requests/GenerateImageAiRequest.d.ts +20 -0
- package/cjs/api/resources/ai/client/requests/GenerateImageAiRequest.js +12 -0
- package/cjs/api/resources/{posts/client/requests/GetJobStatusPostsRequest.d.ts → ai/client/requests/GetGenerationAiRequest.d.ts} +1 -1
- package/cjs/api/resources/ai/client/requests/index.d.ts +2 -0
- package/cjs/api/resources/ai/client/requests/index.js +5 -0
- package/cjs/api/resources/ai/exports.d.ts +2 -0
- package/cjs/api/resources/ai/exports.js +21 -0
- package/cjs/api/resources/ai/index.d.ts +1 -0
- package/cjs/api/resources/ai/index.js +17 -0
- package/cjs/api/resources/index.d.ts +6 -0
- package/cjs/api/resources/index.js +7 -1
- package/cjs/api/resources/media/client/Client.d.ts +83 -0
- package/cjs/api/resources/media/client/Client.js +260 -3
- package/cjs/api/resources/media/client/requests/CreateFromUrlMediaRequest.d.ts +12 -0
- package/cjs/api/resources/media/client/requests/CreateFromUrlMediaRequest.js +3 -0
- package/cjs/api/resources/media/client/requests/CreateUploadLinkMediaRequest.d.ts +7 -0
- package/cjs/api/resources/media/client/requests/CreateUploadLinkMediaRequest.js +3 -0
- package/{esm/api/resources/posts/client/requests/GetJobStatusPostsRequest.d.mts → cjs/api/resources/media/client/requests/DeleteMediaRequest.d.ts} +1 -1
- package/cjs/api/resources/media/client/requests/DeleteMediaRequest.js +3 -0
- package/cjs/api/resources/media/client/requests/UploadMediaRequest.d.ts +13 -0
- package/cjs/api/resources/media/client/requests/UploadMediaRequest.js +3 -0
- package/cjs/api/resources/media/client/requests/index.d.ts +4 -0
- package/cjs/api/resources/platforms/client/Client.d.ts +28 -0
- package/cjs/api/resources/platforms/client/Client.js +111 -0
- package/cjs/api/resources/platforms/client/index.d.ts +1 -0
- package/cjs/api/resources/platforms/client/index.js +2 -0
- package/cjs/api/resources/platforms/exports.d.ts +2 -0
- package/cjs/api/resources/platforms/exports.js +21 -0
- package/cjs/api/resources/platforms/index.d.ts +2 -0
- package/cjs/api/resources/platforms/index.js +18 -0
- package/cjs/api/resources/platforms/types/ListPlatformsResponse.d.ts +56 -0
- package/cjs/api/resources/platforms/types/ListPlatformsResponse.js +24 -0
- package/cjs/api/resources/platforms/types/index.d.ts +1 -0
- package/cjs/api/resources/platforms/types/index.js +17 -0
- package/cjs/api/resources/posts/client/Client.d.ts +22 -18
- package/cjs/api/resources/posts/client/Client.js +30 -62
- package/cjs/api/resources/posts/client/requests/ListPostsRequest.d.ts +1 -0
- package/cjs/api/resources/posts/client/requests/PostCreate.d.ts +64 -0
- package/cjs/api/resources/posts/client/requests/PostCreate.js +63 -0
- package/cjs/api/resources/posts/client/requests/UpdatePostsRequest.d.ts +0 -2
- package/cjs/api/resources/posts/client/requests/UpdatePostsRequest.js +0 -2
- package/cjs/api/resources/posts/client/requests/index.d.ts +0 -1
- package/cjs/api/resources/posts/types/CreatePostsResponse.d.ts +21 -0
- package/cjs/api/resources/posts/types/CreatePostsResponse.js +21 -0
- package/cjs/api/resources/posts/types/ListPostsRequestStatusesItem.d.ts +8 -0
- package/cjs/api/resources/posts/types/ListPostsRequestStatusesItem.js +11 -0
- package/cjs/api/resources/posts/types/index.d.ts +1 -0
- package/cjs/api/resources/posts/types/index.js +1 -0
- package/cjs/api/resources/socialAccounts/client/Client.d.ts +68 -1
- package/cjs/api/resources/socialAccounts/client/Client.js +210 -4
- package/cjs/api/resources/socialAccounts/client/requests/ListWhopCompaniesSocialAccountsRequest.d.ts +9 -0
- package/cjs/api/resources/socialAccounts/client/requests/ListWhopCompaniesSocialAccountsRequest.js +3 -0
- package/cjs/api/resources/socialAccounts/client/requests/ListWhopForumsSocialAccountsRequest.d.ts +11 -0
- package/cjs/api/resources/socialAccounts/client/requests/ListWhopForumsSocialAccountsRequest.js +3 -0
- package/cjs/api/resources/socialAccounts/client/requests/NextSlotsSocialAccountsRequest.d.ts +11 -0
- package/cjs/api/resources/socialAccounts/client/requests/NextSlotsSocialAccountsRequest.js +3 -0
- package/cjs/api/resources/socialAccounts/client/requests/index.d.ts +3 -0
- package/cjs/api/resources/socialAccounts/types/ListSocialAccountsResponse.d.ts +22 -0
- package/cjs/api/resources/socialAccounts/types/ListSocialAccountsResponse.js +21 -0
- package/cjs/api/resources/socialAccounts/types/ListWhopCompaniesSocialAccountsResponse.d.ts +12 -0
- package/cjs/api/resources/socialAccounts/types/ListWhopCompaniesSocialAccountsResponse.js +3 -0
- package/cjs/api/resources/socialAccounts/types/ListWhopForumsSocialAccountsResponse.d.ts +12 -0
- package/cjs/api/resources/socialAccounts/types/ListWhopForumsSocialAccountsResponse.js +3 -0
- package/cjs/api/resources/socialAccounts/types/NextSlotsSocialAccountsResponse.d.ts +3 -0
- package/cjs/api/resources/socialAccounts/types/NextSlotsSocialAccountsResponse.js +3 -0
- package/cjs/api/resources/socialAccounts/types/index.d.ts +3 -0
- package/cjs/api/resources/socialAccounts/types/index.js +3 -0
- package/cjs/api/resources/tags/client/Client.d.ts +8 -0
- package/cjs/api/resources/tags/client/Client.js +12 -3
- package/cjs/api/resources/webhooks/client/Client.d.ts +155 -0
- package/cjs/api/resources/webhooks/client/Client.js +538 -0
- package/cjs/api/resources/webhooks/client/index.d.ts +1 -0
- package/cjs/api/resources/webhooks/client/index.js +17 -0
- package/cjs/api/resources/webhooks/client/requests/CreateWebhooksRequest.d.ts +24 -0
- package/cjs/api/resources/webhooks/client/requests/CreateWebhooksRequest.js +16 -0
- package/cjs/api/resources/webhooks/client/requests/DeleteWebhooksRequest.d.ts +9 -0
- package/cjs/api/resources/webhooks/client/requests/DeleteWebhooksRequest.js +3 -0
- package/cjs/api/resources/webhooks/client/requests/ListDeliveriesWebhooksRequest.d.ts +11 -0
- package/cjs/api/resources/webhooks/client/requests/ListDeliveriesWebhooksRequest.js +3 -0
- package/cjs/api/resources/webhooks/client/requests/RetrieveWebhooksRequest.d.ts +9 -0
- package/cjs/api/resources/webhooks/client/requests/RetrieveWebhooksRequest.js +3 -0
- package/cjs/api/resources/webhooks/client/requests/RotateSecretWebhooksRequest.d.ts +9 -0
- package/cjs/api/resources/webhooks/client/requests/RotateSecretWebhooksRequest.js +3 -0
- package/cjs/api/resources/webhooks/client/requests/TestWebhooksRequest.d.ts +9 -0
- package/cjs/api/resources/webhooks/client/requests/TestWebhooksRequest.js +3 -0
- package/cjs/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.ts +25 -0
- package/cjs/api/resources/webhooks/client/requests/UpdateWebhooksRequest.js +16 -0
- package/cjs/api/resources/webhooks/client/requests/index.d.ts +7 -0
- package/cjs/api/resources/webhooks/client/requests/index.js +7 -0
- package/cjs/api/resources/webhooks/exports.d.ts +2 -0
- package/cjs/api/resources/webhooks/exports.js +21 -0
- package/cjs/api/resources/webhooks/index.d.ts +1 -0
- package/cjs/api/resources/webhooks/index.js +17 -0
- package/cjs/api/types/OauthScope.d.ts +12 -0
- package/cjs/api/types/OauthScope.js +12 -0
- package/cjs/api/types/PostSearch.d.ts +12 -0
- package/cjs/api/types/PostSearch.js +10 -0
- package/cjs/api/types/PostWithRelations.d.ts +21 -0
- package/cjs/api/types/PostWithRelations.js +21 -0
- package/cjs/api/types/SocialAccountDisconnectedReason.d.ts +1 -0
- package/cjs/api/types/SocialAccountDisconnectedReason.js +1 -0
- package/cjs/api/types/SocialPlatform.d.ts +21 -0
- package/cjs/api/types/SocialPlatform.js +21 -0
- package/cjs/core/exports.d.ts +1 -0
- package/cjs/core/exports.js +1 -0
- package/cjs/core/fetcher/Fetcher.js +9 -92
- package/cjs/core/fetcher/makePassthroughRequest.js +26 -4
- package/cjs/core/fetcher/redactUrl.d.ts +2 -0
- package/cjs/core/fetcher/redactUrl.js +88 -0
- package/cjs/core/file/exports.d.ts +1 -0
- package/cjs/core/file/exports.js +2 -0
- package/cjs/core/file/file.d.ts +10 -0
- package/cjs/core/file/file.js +225 -0
- package/cjs/core/file/index.d.ts +2 -0
- package/cjs/core/file/index.js +18 -0
- package/cjs/core/file/types.d.ts +66 -0
- package/cjs/core/file/types.js +2 -0
- package/cjs/core/form-data-utils/FormDataWrapper.d.ts +15 -0
- package/cjs/core/form-data-utils/FormDataWrapper.js +188 -0
- package/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
- package/cjs/core/form-data-utils/encodeAsFormParameter.js +12 -0
- package/cjs/core/form-data-utils/index.d.ts +2 -0
- package/cjs/core/form-data-utils/index.js +20 -0
- package/cjs/core/index.d.ts +2 -0
- package/cjs/core/index.js +3 -1
- package/cjs/core/requestBody.d.ts +12 -0
- package/cjs/core/requestBody.js +26 -0
- package/cjs/core/runtime/index.d.ts +1 -1
- package/cjs/core/runtime/index.js +2 -1
- package/cjs/core/runtime/runtime.d.ts +19 -0
- package/cjs/core/runtime/runtime.js +74 -2
- package/cjs/core/url/qs.js +2 -2
- package/cjs/errors/SchedulinError.d.ts +1 -0
- package/cjs/errors/SchedulinError.js +4 -0
- package/cjs/errors/SchedulinTimeoutError.d.ts +2 -2
- package/cjs/errors/SchedulinTimeoutError.js +39 -5
- package/esm/BaseClient.d.mts +12 -0
- package/esm/Client.d.mts +9 -0
- package/esm/Client.mjs +15 -0
- package/esm/api/errors/InternalServerError.d.mts +1 -0
- package/esm/api/errors/UnauthorizedError.d.mts +1 -0
- package/esm/api/resources/ai/client/Client.d.mts +49 -0
- package/esm/api/resources/ai/client/Client.mjs +144 -0
- package/esm/api/resources/ai/client/index.d.mts +1 -0
- package/esm/api/resources/ai/client/index.mjs +1 -0
- package/esm/api/resources/ai/client/requests/GenerateImageAiRequest.d.mts +20 -0
- package/esm/api/resources/ai/client/requests/GenerateImageAiRequest.mjs +9 -0
- package/esm/api/resources/ai/client/requests/GetGenerationAiRequest.d.mts +9 -0
- package/esm/api/resources/ai/client/requests/index.d.mts +2 -0
- package/esm/api/resources/ai/client/requests/index.mjs +1 -0
- package/esm/api/resources/ai/exports.d.mts +2 -0
- package/esm/api/resources/ai/exports.mjs +3 -0
- package/esm/api/resources/ai/index.d.mts +1 -0
- package/esm/api/resources/ai/index.mjs +1 -0
- package/esm/api/resources/index.d.mts +6 -0
- package/esm/api/resources/index.mjs +6 -0
- package/esm/api/resources/media/client/Client.d.mts +83 -0
- package/esm/api/resources/media/client/Client.mjs +261 -4
- package/esm/api/resources/media/client/requests/CreateFromUrlMediaRequest.d.mts +12 -0
- package/esm/api/resources/media/client/requests/CreateFromUrlMediaRequest.mjs +2 -0
- package/esm/api/resources/media/client/requests/CreateUploadLinkMediaRequest.d.mts +7 -0
- package/esm/api/resources/media/client/requests/CreateUploadLinkMediaRequest.mjs +2 -0
- package/esm/api/resources/media/client/requests/DeleteMediaRequest.d.mts +9 -0
- package/esm/api/resources/media/client/requests/DeleteMediaRequest.mjs +2 -0
- package/esm/api/resources/media/client/requests/UploadMediaRequest.d.mts +13 -0
- package/esm/api/resources/media/client/requests/UploadMediaRequest.mjs +2 -0
- package/esm/api/resources/media/client/requests/index.d.mts +4 -0
- package/esm/api/resources/platforms/client/Client.d.mts +28 -0
- package/esm/api/resources/platforms/client/Client.mjs +74 -0
- package/esm/api/resources/platforms/client/index.d.mts +1 -0
- package/esm/api/resources/platforms/client/index.mjs +1 -0
- package/esm/api/resources/platforms/exports.d.mts +2 -0
- package/esm/api/resources/platforms/exports.mjs +3 -0
- package/esm/api/resources/platforms/index.d.mts +2 -0
- package/esm/api/resources/platforms/index.mjs +2 -0
- package/esm/api/resources/platforms/types/ListPlatformsResponse.d.mts +56 -0
- package/esm/api/resources/platforms/types/ListPlatformsResponse.mjs +21 -0
- package/esm/api/resources/platforms/types/index.d.mts +1 -0
- package/esm/api/resources/platforms/types/index.mjs +1 -0
- package/esm/api/resources/posts/client/Client.d.mts +22 -18
- package/esm/api/resources/posts/client/Client.mjs +30 -62
- package/esm/api/resources/posts/client/requests/ListPostsRequest.d.mts +1 -0
- package/esm/api/resources/posts/client/requests/PostCreate.d.mts +64 -0
- package/esm/api/resources/posts/client/requests/PostCreate.mjs +63 -0
- package/esm/api/resources/posts/client/requests/UpdatePostsRequest.d.mts +0 -2
- package/esm/api/resources/posts/client/requests/UpdatePostsRequest.mjs +0 -2
- package/esm/api/resources/posts/client/requests/index.d.mts +0 -1
- package/esm/api/resources/posts/types/CreatePostsResponse.d.mts +21 -0
- package/esm/api/resources/posts/types/CreatePostsResponse.mjs +21 -0
- package/esm/api/resources/posts/types/ListPostsRequestStatusesItem.d.mts +8 -0
- package/esm/api/resources/posts/types/ListPostsRequestStatusesItem.mjs +8 -0
- package/esm/api/resources/posts/types/index.d.mts +1 -0
- package/esm/api/resources/posts/types/index.mjs +1 -0
- package/esm/api/resources/socialAccounts/client/Client.d.mts +68 -1
- package/esm/api/resources/socialAccounts/client/Client.mjs +210 -4
- package/esm/api/resources/socialAccounts/client/requests/ListWhopCompaniesSocialAccountsRequest.d.mts +9 -0
- package/esm/api/resources/socialAccounts/client/requests/ListWhopCompaniesSocialAccountsRequest.mjs +2 -0
- package/esm/api/resources/socialAccounts/client/requests/ListWhopForumsSocialAccountsRequest.d.mts +11 -0
- package/esm/api/resources/socialAccounts/client/requests/ListWhopForumsSocialAccountsRequest.mjs +2 -0
- package/esm/api/resources/socialAccounts/client/requests/NextSlotsSocialAccountsRequest.d.mts +11 -0
- package/esm/api/resources/socialAccounts/client/requests/NextSlotsSocialAccountsRequest.mjs +2 -0
- package/esm/api/resources/socialAccounts/client/requests/index.d.mts +3 -0
- package/esm/api/resources/socialAccounts/types/ListSocialAccountsResponse.d.mts +22 -0
- package/esm/api/resources/socialAccounts/types/ListSocialAccountsResponse.mjs +21 -0
- package/esm/api/resources/socialAccounts/types/ListWhopCompaniesSocialAccountsResponse.d.mts +12 -0
- package/esm/api/resources/socialAccounts/types/ListWhopCompaniesSocialAccountsResponse.mjs +2 -0
- package/esm/api/resources/socialAccounts/types/ListWhopForumsSocialAccountsResponse.d.mts +12 -0
- package/esm/api/resources/socialAccounts/types/ListWhopForumsSocialAccountsResponse.mjs +2 -0
- package/esm/api/resources/socialAccounts/types/NextSlotsSocialAccountsResponse.d.mts +3 -0
- package/esm/api/resources/socialAccounts/types/NextSlotsSocialAccountsResponse.mjs +2 -0
- package/esm/api/resources/socialAccounts/types/index.d.mts +3 -0
- package/esm/api/resources/socialAccounts/types/index.mjs +3 -0
- package/esm/api/resources/tags/client/Client.d.mts +8 -0
- package/esm/api/resources/tags/client/Client.mjs +12 -3
- package/esm/api/resources/webhooks/client/Client.d.mts +155 -0
- package/esm/api/resources/webhooks/client/Client.mjs +501 -0
- package/esm/api/resources/webhooks/client/index.d.mts +1 -0
- package/esm/api/resources/webhooks/client/index.mjs +1 -0
- package/esm/api/resources/webhooks/client/requests/CreateWebhooksRequest.d.mts +24 -0
- package/esm/api/resources/webhooks/client/requests/CreateWebhooksRequest.mjs +13 -0
- package/esm/api/resources/webhooks/client/requests/DeleteWebhooksRequest.d.mts +9 -0
- package/esm/api/resources/webhooks/client/requests/DeleteWebhooksRequest.mjs +2 -0
- package/esm/api/resources/webhooks/client/requests/ListDeliveriesWebhooksRequest.d.mts +11 -0
- package/esm/api/resources/webhooks/client/requests/ListDeliveriesWebhooksRequest.mjs +2 -0
- package/esm/api/resources/webhooks/client/requests/RetrieveWebhooksRequest.d.mts +9 -0
- package/esm/api/resources/webhooks/client/requests/RetrieveWebhooksRequest.mjs +2 -0
- package/esm/api/resources/webhooks/client/requests/RotateSecretWebhooksRequest.d.mts +9 -0
- package/esm/api/resources/webhooks/client/requests/RotateSecretWebhooksRequest.mjs +2 -0
- package/esm/api/resources/webhooks/client/requests/TestWebhooksRequest.d.mts +9 -0
- package/esm/api/resources/webhooks/client/requests/TestWebhooksRequest.mjs +2 -0
- package/esm/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.mts +25 -0
- package/esm/api/resources/webhooks/client/requests/UpdateWebhooksRequest.mjs +13 -0
- package/esm/api/resources/webhooks/client/requests/index.d.mts +7 -0
- package/esm/api/resources/webhooks/client/requests/index.mjs +2 -0
- package/esm/api/resources/webhooks/exports.d.mts +2 -0
- package/esm/api/resources/webhooks/exports.mjs +3 -0
- package/esm/api/resources/webhooks/index.d.mts +1 -0
- package/esm/api/resources/webhooks/index.mjs +1 -0
- package/esm/api/types/OauthScope.d.mts +12 -0
- package/esm/api/types/OauthScope.mjs +12 -0
- package/esm/api/types/PostSearch.d.mts +12 -0
- package/esm/api/types/PostSearch.mjs +10 -0
- package/esm/api/types/PostWithRelations.d.mts +21 -0
- package/esm/api/types/PostWithRelations.mjs +21 -0
- package/esm/api/types/SocialAccountDisconnectedReason.d.mts +1 -0
- package/esm/api/types/SocialAccountDisconnectedReason.mjs +1 -0
- package/esm/api/types/SocialPlatform.d.mts +21 -0
- package/esm/api/types/SocialPlatform.mjs +21 -0
- package/esm/core/exports.d.mts +1 -0
- package/esm/core/exports.mjs +1 -0
- package/esm/core/fetcher/Fetcher.mjs +1 -84
- package/esm/core/fetcher/makePassthroughRequest.mjs +26 -4
- package/esm/core/fetcher/redactUrl.d.mts +2 -0
- package/esm/core/fetcher/redactUrl.mjs +84 -0
- package/esm/core/file/exports.d.mts +1 -0
- package/esm/core/file/exports.mjs +1 -0
- package/esm/core/file/file.d.mts +10 -0
- package/esm/core/file/file.mjs +188 -0
- package/esm/core/file/index.d.mts +2 -0
- package/esm/core/file/index.mjs +2 -0
- package/esm/core/file/types.d.mts +66 -0
- package/esm/core/file/types.mjs +1 -0
- package/esm/core/form-data-utils/FormDataWrapper.d.mts +15 -0
- package/esm/core/form-data-utils/FormDataWrapper.mjs +150 -0
- package/esm/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
- package/esm/core/form-data-utils/encodeAsFormParameter.mjs +9 -0
- package/esm/core/form-data-utils/index.d.mts +2 -0
- package/esm/core/form-data-utils/index.mjs +2 -0
- package/esm/core/index.d.mts +2 -0
- package/esm/core/index.mjs +2 -0
- package/esm/core/requestBody.d.mts +12 -0
- package/esm/core/requestBody.mjs +23 -0
- package/esm/core/runtime/index.d.mts +1 -1
- package/esm/core/runtime/index.mjs +1 -1
- package/esm/core/runtime/runtime.d.mts +19 -0
- package/esm/core/runtime/runtime.mjs +73 -2
- package/esm/core/url/qs.mjs +2 -2
- package/esm/errors/SchedulinError.d.mts +1 -0
- package/esm/errors/SchedulinError.mjs +4 -0
- package/esm/errors/SchedulinTimeoutError.d.mts +2 -2
- package/esm/errors/SchedulinTimeoutError.mjs +6 -5
- package/package.json +1 -1
- /package/cjs/api/resources/{posts/client/requests/GetJobStatusPostsRequest.js → ai/client/requests/GetGenerationAiRequest.js} +0 -0
- /package/esm/api/resources/{posts/client/requests/GetJobStatusPostsRequest.mjs → ai/client/requests/GetGenerationAiRequest.mjs} +0 -0
|
@@ -22,6 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
23
23
|
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
24
24
|
import * as core from "../../../../core/index.mjs";
|
|
25
|
+
import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.mjs";
|
|
25
26
|
import * as environments from "../../../../environments.mjs";
|
|
26
27
|
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
27
28
|
import * as errors from "../../../../errors/index.mjs";
|
|
@@ -37,6 +38,8 @@ export class SocialAccountsClient {
|
|
|
37
38
|
*
|
|
38
39
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
39
40
|
* @throws {@link Schedulin.InternalServerError}
|
|
41
|
+
* @throws {@link errors.SchedulinError}
|
|
42
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
40
43
|
*
|
|
41
44
|
* @example
|
|
42
45
|
* await client.socialAccounts.list()
|
|
@@ -80,6 +83,132 @@ export class SocialAccountsClient {
|
|
|
80
83
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/social-accounts");
|
|
81
84
|
});
|
|
82
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* List companies available to a connected Whop account. Select one before requesting its forum experiences.
|
|
88
|
+
*
|
|
89
|
+
* @param {Schedulin.ListWhopCompaniesSocialAccountsRequest} request
|
|
90
|
+
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
93
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
94
|
+
* @throws {@link errors.SchedulinError}
|
|
95
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* await client.socialAccounts.listWhopCompanies({
|
|
99
|
+
* id: "id"
|
|
100
|
+
* })
|
|
101
|
+
*/
|
|
102
|
+
listWhopCompanies(request, requestOptions) {
|
|
103
|
+
return core.HttpResponsePromise.fromPromise(this.__listWhopCompanies(request, requestOptions));
|
|
104
|
+
}
|
|
105
|
+
__listWhopCompanies(request, requestOptions) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
108
|
+
const { id } = request;
|
|
109
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
110
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
111
|
+
const _response = yield core.fetcher({
|
|
112
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchedulinEnvironment.Default, `v0/social-accounts/${core.url.encodePathParam(id)}/whop-companies`),
|
|
113
|
+
method: "GET",
|
|
114
|
+
headers: _headers,
|
|
115
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
116
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
117
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
118
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
119
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
120
|
+
logging: this._options.logging,
|
|
121
|
+
});
|
|
122
|
+
if (_response.ok) {
|
|
123
|
+
return {
|
|
124
|
+
data: _response.body,
|
|
125
|
+
rawResponse: _response.rawResponse,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
if (_response.error.reason === "status-code") {
|
|
129
|
+
switch (_response.error.statusCode) {
|
|
130
|
+
case 401:
|
|
131
|
+
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
132
|
+
case 500:
|
|
133
|
+
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
134
|
+
default:
|
|
135
|
+
throw new errors.SchedulinError({
|
|
136
|
+
statusCode: _response.error.statusCode,
|
|
137
|
+
body: _response.error.body,
|
|
138
|
+
rawResponse: _response.rawResponse,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/social-accounts/{id}/whop-companies");
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* List forum experiences for a Whop company. Use an item id as platformConfiguration.experience.
|
|
147
|
+
*
|
|
148
|
+
* @param {Schedulin.ListWhopForumsSocialAccountsRequest} request
|
|
149
|
+
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
150
|
+
*
|
|
151
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
152
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
153
|
+
* @throws {@link errors.SchedulinError}
|
|
154
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* await client.socialAccounts.listWhopForums({
|
|
158
|
+
* id: "id",
|
|
159
|
+
* companyId: "companyId"
|
|
160
|
+
* })
|
|
161
|
+
*/
|
|
162
|
+
listWhopForums(request, requestOptions) {
|
|
163
|
+
return core.HttpResponsePromise.fromPromise(this.__listWhopForums(request, requestOptions));
|
|
164
|
+
}
|
|
165
|
+
__listWhopForums(request, requestOptions) {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
168
|
+
const { id, companyId } = request;
|
|
169
|
+
const _queryParams = {
|
|
170
|
+
companyId,
|
|
171
|
+
};
|
|
172
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
173
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
174
|
+
const _response = yield core.fetcher({
|
|
175
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchedulinEnvironment.Default, `v0/social-accounts/${core.url.encodePathParam(id)}/whop-forums`),
|
|
176
|
+
method: "GET",
|
|
177
|
+
headers: _headers,
|
|
178
|
+
queryString: core.url
|
|
179
|
+
.queryBuilder()
|
|
180
|
+
.addMany(_queryParams)
|
|
181
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
182
|
+
.build(),
|
|
183
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
184
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
185
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
186
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
187
|
+
logging: this._options.logging,
|
|
188
|
+
});
|
|
189
|
+
if (_response.ok) {
|
|
190
|
+
return {
|
|
191
|
+
data: _response.body,
|
|
192
|
+
rawResponse: _response.rawResponse,
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
if (_response.error.reason === "status-code") {
|
|
196
|
+
switch (_response.error.statusCode) {
|
|
197
|
+
case 401:
|
|
198
|
+
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
199
|
+
case 500:
|
|
200
|
+
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
201
|
+
default:
|
|
202
|
+
throw new errors.SchedulinError({
|
|
203
|
+
statusCode: _response.error.statusCode,
|
|
204
|
+
body: _response.error.body,
|
|
205
|
+
rawResponse: _response.rawResponse,
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/social-accounts/{id}/whop-forums");
|
|
210
|
+
});
|
|
211
|
+
}
|
|
83
212
|
/**
|
|
84
213
|
* Update social media account settings and information
|
|
85
214
|
*
|
|
@@ -88,6 +217,8 @@ export class SocialAccountsClient {
|
|
|
88
217
|
*
|
|
89
218
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
90
219
|
* @throws {@link Schedulin.InternalServerError}
|
|
220
|
+
* @throws {@link errors.SchedulinError}
|
|
221
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
91
222
|
*
|
|
92
223
|
* @example
|
|
93
224
|
* await client.socialAccounts.update({
|
|
@@ -110,7 +241,7 @@ export class SocialAccountsClient {
|
|
|
110
241
|
contentType: "application/json",
|
|
111
242
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
112
243
|
requestType: "json",
|
|
113
|
-
body: _body,
|
|
244
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
114
245
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
115
246
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
116
247
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -148,6 +279,8 @@ export class SocialAccountsClient {
|
|
|
148
279
|
*
|
|
149
280
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
150
281
|
* @throws {@link Schedulin.InternalServerError}
|
|
282
|
+
* @throws {@link errors.SchedulinError}
|
|
283
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
151
284
|
*
|
|
152
285
|
* @example
|
|
153
286
|
* await client.socialAccounts.delete({
|
|
@@ -170,7 +303,7 @@ export class SocialAccountsClient {
|
|
|
170
303
|
contentType: "application/json",
|
|
171
304
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
172
305
|
requestType: "json",
|
|
173
|
-
body: _body,
|
|
306
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
174
307
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
175
308
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
176
309
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -201,13 +334,15 @@ export class SocialAccountsClient {
|
|
|
201
334
|
});
|
|
202
335
|
}
|
|
203
336
|
/**
|
|
204
|
-
* Set the IANA timezone (e.g. 'America/Los_Angeles') used to interpret queue times for this account.
|
|
337
|
+
* Set the IANA timezone (e.g. 'America/Los_Angeles') used to interpret queue times for this account. Unknown names and UTC-offset strings (e.g. '+05:00') are rejected with 422.
|
|
205
338
|
*
|
|
206
339
|
* @param {Schedulin.UpdateTimezoneSocialAccountsRequest} request
|
|
207
340
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
208
341
|
*
|
|
209
342
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
210
343
|
* @throws {@link Schedulin.InternalServerError}
|
|
344
|
+
* @throws {@link errors.SchedulinError}
|
|
345
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
211
346
|
*
|
|
212
347
|
* @example
|
|
213
348
|
* await client.socialAccounts.updateTimezone({
|
|
@@ -231,7 +366,7 @@ export class SocialAccountsClient {
|
|
|
231
366
|
contentType: "application/json",
|
|
232
367
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
233
368
|
requestType: "json",
|
|
234
|
-
body: _body,
|
|
369
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
235
370
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
236
371
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
237
372
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -261,6 +396,73 @@ export class SocialAccountsClient {
|
|
|
261
396
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/v0/social-accounts/{id}/timezone");
|
|
262
397
|
});
|
|
263
398
|
}
|
|
399
|
+
/**
|
|
400
|
+
* Return the next available queue slot times (UTC) for a social account, computed from its queue schedule, per-slot capacity, and timezone. Empty when the account has no queue times configured. Use a slot as `scheduledAt`, or pass `action: "queue"` when creating a post to take the next slot automatically.
|
|
401
|
+
*
|
|
402
|
+
* @param {Schedulin.NextSlotsSocialAccountsRequest} request
|
|
403
|
+
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
404
|
+
*
|
|
405
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
406
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
407
|
+
* @throws {@link errors.SchedulinError}
|
|
408
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
409
|
+
*
|
|
410
|
+
* @example
|
|
411
|
+
* await client.socialAccounts.nextSlots({
|
|
412
|
+
* id: "id"
|
|
413
|
+
* })
|
|
414
|
+
*/
|
|
415
|
+
nextSlots(request, requestOptions) {
|
|
416
|
+
return core.HttpResponsePromise.fromPromise(this.__nextSlots(request, requestOptions));
|
|
417
|
+
}
|
|
418
|
+
__nextSlots(request, requestOptions) {
|
|
419
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
420
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
421
|
+
const { id, limit, after } = request;
|
|
422
|
+
const _queryParams = {
|
|
423
|
+
limit,
|
|
424
|
+
after,
|
|
425
|
+
};
|
|
426
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
427
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
428
|
+
const _response = yield core.fetcher({
|
|
429
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchedulinEnvironment.Default, `v0/social-accounts/${core.url.encodePathParam(id)}/next-slots`),
|
|
430
|
+
method: "GET",
|
|
431
|
+
headers: _headers,
|
|
432
|
+
queryString: core.url
|
|
433
|
+
.queryBuilder()
|
|
434
|
+
.addMany(_queryParams)
|
|
435
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
436
|
+
.build(),
|
|
437
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
438
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
439
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
440
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
441
|
+
logging: this._options.logging,
|
|
442
|
+
});
|
|
443
|
+
if (_response.ok) {
|
|
444
|
+
return {
|
|
445
|
+
data: _response.body,
|
|
446
|
+
rawResponse: _response.rawResponse,
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
if (_response.error.reason === "status-code") {
|
|
450
|
+
switch (_response.error.statusCode) {
|
|
451
|
+
case 401:
|
|
452
|
+
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
453
|
+
case 500:
|
|
454
|
+
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
455
|
+
default:
|
|
456
|
+
throw new errors.SchedulinError({
|
|
457
|
+
statusCode: _response.error.statusCode,
|
|
458
|
+
body: _response.error.body,
|
|
459
|
+
rawResponse: _response.rawResponse,
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/social-accounts/{id}/next-slots");
|
|
464
|
+
});
|
|
465
|
+
}
|
|
264
466
|
/**
|
|
265
467
|
* List the boards for a connected Pinterest account. Use a board id in `platformConfiguration.board_ids` when creating a Pinterest post.
|
|
266
468
|
*
|
|
@@ -269,6 +471,8 @@ export class SocialAccountsClient {
|
|
|
269
471
|
*
|
|
270
472
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
271
473
|
* @throws {@link Schedulin.InternalServerError}
|
|
474
|
+
* @throws {@link errors.SchedulinError}
|
|
475
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
272
476
|
*
|
|
273
477
|
* @example
|
|
274
478
|
* await client.socialAccounts.pinterestBoards({
|
|
@@ -326,6 +530,8 @@ export class SocialAccountsClient {
|
|
|
326
530
|
*
|
|
327
531
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
328
532
|
* @throws {@link Schedulin.InternalServerError}
|
|
533
|
+
* @throws {@link errors.SchedulinError}
|
|
534
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
329
535
|
*
|
|
330
536
|
* @example
|
|
331
537
|
* await client.socialAccounts.tiktokCreatorInfo({
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export type { DeleteSocialAccountsRequest } from "./DeleteSocialAccountsRequest.mjs";
|
|
2
|
+
export type { ListWhopCompaniesSocialAccountsRequest } from "./ListWhopCompaniesSocialAccountsRequest.mjs";
|
|
3
|
+
export type { ListWhopForumsSocialAccountsRequest } from "./ListWhopForumsSocialAccountsRequest.mjs";
|
|
4
|
+
export type { NextSlotsSocialAccountsRequest } from "./NextSlotsSocialAccountsRequest.mjs";
|
|
2
5
|
export type { PinterestBoardsSocialAccountsRequest } from "./PinterestBoardsSocialAccountsRequest.mjs";
|
|
3
6
|
export type { TiktokCreatorInfoSocialAccountsRequest } from "./TiktokCreatorInfoSocialAccountsRequest.mjs";
|
|
4
7
|
export { UpdateSocialAccountsRequest } from "./UpdateSocialAccountsRequest.mjs";
|
|
@@ -13,6 +13,7 @@ export declare namespace ListSocialAccountsResponse {
|
|
|
13
13
|
profileImageUrl: string | null;
|
|
14
14
|
refreshTokenValid: boolean;
|
|
15
15
|
analyticsDisabledAt: string | null;
|
|
16
|
+
webhookSubscriptionFailedAt: string | null;
|
|
16
17
|
createdAt: string;
|
|
17
18
|
updatedAt: string;
|
|
18
19
|
}
|
|
@@ -25,10 +26,31 @@ export declare namespace ListSocialAccountsResponse {
|
|
|
25
26
|
readonly Linkedin: "linkedin";
|
|
26
27
|
readonly Pinterest: "pinterest";
|
|
27
28
|
readonly Reddit: "reddit";
|
|
29
|
+
readonly Snapchat: "snapchat";
|
|
28
30
|
readonly Threads: "threads";
|
|
29
31
|
readonly Tiktok: "tiktok";
|
|
30
32
|
readonly Twitter: "twitter";
|
|
31
33
|
readonly Youtube: "youtube";
|
|
34
|
+
readonly Mastodon: "mastodon";
|
|
35
|
+
readonly Telegram: "telegram";
|
|
36
|
+
readonly Devto: "devto";
|
|
37
|
+
readonly Hashnode: "hashnode";
|
|
38
|
+
readonly Medium: "medium";
|
|
39
|
+
readonly Wordpress: "wordpress";
|
|
40
|
+
readonly Lemmy: "lemmy";
|
|
41
|
+
readonly Nostr: "nostr";
|
|
42
|
+
readonly Discord: "discord";
|
|
43
|
+
readonly Dribbble: "dribbble";
|
|
44
|
+
readonly Farcaster: "farcaster";
|
|
45
|
+
readonly Kick: "kick";
|
|
46
|
+
readonly Listmonk: "listmonk";
|
|
47
|
+
readonly Mewe: "mewe";
|
|
48
|
+
readonly Moltbook: "moltbook";
|
|
49
|
+
readonly Skool: "skool";
|
|
50
|
+
readonly Slack: "slack";
|
|
51
|
+
readonly Twitch: "twitch";
|
|
52
|
+
readonly Vk: "vk";
|
|
53
|
+
readonly Whop: "whop";
|
|
32
54
|
};
|
|
33
55
|
type Platform = (typeof Platform)[keyof typeof Platform];
|
|
34
56
|
const Status: {
|
|
@@ -13,10 +13,31 @@ export var ListSocialAccountsResponse;
|
|
|
13
13
|
Linkedin: "linkedin",
|
|
14
14
|
Pinterest: "pinterest",
|
|
15
15
|
Reddit: "reddit",
|
|
16
|
+
Snapchat: "snapchat",
|
|
16
17
|
Threads: "threads",
|
|
17
18
|
Tiktok: "tiktok",
|
|
18
19
|
Twitter: "twitter",
|
|
19
20
|
Youtube: "youtube",
|
|
21
|
+
Mastodon: "mastodon",
|
|
22
|
+
Telegram: "telegram",
|
|
23
|
+
Devto: "devto",
|
|
24
|
+
Hashnode: "hashnode",
|
|
25
|
+
Medium: "medium",
|
|
26
|
+
Wordpress: "wordpress",
|
|
27
|
+
Lemmy: "lemmy",
|
|
28
|
+
Nostr: "nostr",
|
|
29
|
+
Discord: "discord",
|
|
30
|
+
Dribbble: "dribbble",
|
|
31
|
+
Farcaster: "farcaster",
|
|
32
|
+
Kick: "kick",
|
|
33
|
+
Listmonk: "listmonk",
|
|
34
|
+
Mewe: "mewe",
|
|
35
|
+
Moltbook: "moltbook",
|
|
36
|
+
Skool: "skool",
|
|
37
|
+
Slack: "slack",
|
|
38
|
+
Twitch: "twitch",
|
|
39
|
+
Vk: "vk",
|
|
40
|
+
Whop: "whop",
|
|
20
41
|
};
|
|
21
42
|
Item.Status = {
|
|
22
43
|
Connected: "connected",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ListWhopCompaniesSocialAccountsResponse {
|
|
2
|
+
items: ListWhopCompaniesSocialAccountsResponse.Items.Item[];
|
|
3
|
+
}
|
|
4
|
+
export declare namespace ListWhopCompaniesSocialAccountsResponse {
|
|
5
|
+
type Items = Items.Item[];
|
|
6
|
+
namespace Items {
|
|
7
|
+
interface Item {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ListWhopForumsSocialAccountsResponse {
|
|
2
|
+
items: ListWhopForumsSocialAccountsResponse.Items.Item[];
|
|
3
|
+
}
|
|
4
|
+
export declare namespace ListWhopForumsSocialAccountsResponse {
|
|
5
|
+
type Items = Items.Item[];
|
|
6
|
+
namespace Items {
|
|
7
|
+
interface Item {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from "./DeleteSocialAccountsResponse.mjs";
|
|
2
2
|
export * from "./ListSocialAccountsResponse.mjs";
|
|
3
|
+
export * from "./ListWhopCompaniesSocialAccountsResponse.mjs";
|
|
4
|
+
export * from "./ListWhopForumsSocialAccountsResponse.mjs";
|
|
5
|
+
export * from "./NextSlotsSocialAccountsResponse.mjs";
|
|
3
6
|
export * from "./PinterestBoardsSocialAccountsResponse.mjs";
|
|
4
7
|
export * from "./TiktokCreatorInfoSocialAccountsResponse.mjs";
|
|
5
8
|
export * from "./UpdateSocialAccountsResponse.mjs";
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from "./DeleteSocialAccountsResponse.mjs";
|
|
2
2
|
export * from "./ListSocialAccountsResponse.mjs";
|
|
3
|
+
export * from "./ListWhopCompaniesSocialAccountsResponse.mjs";
|
|
4
|
+
export * from "./ListWhopForumsSocialAccountsResponse.mjs";
|
|
5
|
+
export * from "./NextSlotsSocialAccountsResponse.mjs";
|
|
3
6
|
export * from "./PinterestBoardsSocialAccountsResponse.mjs";
|
|
4
7
|
export * from "./TiktokCreatorInfoSocialAccountsResponse.mjs";
|
|
5
8
|
export * from "./UpdateSocialAccountsResponse.mjs";
|
|
@@ -18,6 +18,8 @@ export declare class TagsClient {
|
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
20
20
|
* @throws {@link Schedulin.InternalServerError}
|
|
21
|
+
* @throws {@link errors.SchedulinError}
|
|
22
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
21
23
|
*
|
|
22
24
|
* @example
|
|
23
25
|
* await client.tags.list()
|
|
@@ -32,6 +34,8 @@ export declare class TagsClient {
|
|
|
32
34
|
*
|
|
33
35
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
34
36
|
* @throws {@link Schedulin.InternalServerError}
|
|
37
|
+
* @throws {@link errors.SchedulinError}
|
|
38
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
35
39
|
*
|
|
36
40
|
* @example
|
|
37
41
|
* await client.tags.create({
|
|
@@ -49,6 +53,8 @@ export declare class TagsClient {
|
|
|
49
53
|
*
|
|
50
54
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
51
55
|
* @throws {@link Schedulin.InternalServerError}
|
|
56
|
+
* @throws {@link errors.SchedulinError}
|
|
57
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
52
58
|
*
|
|
53
59
|
* @example
|
|
54
60
|
* await client.tags.update({
|
|
@@ -65,6 +71,8 @@ export declare class TagsClient {
|
|
|
65
71
|
*
|
|
66
72
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
67
73
|
* @throws {@link Schedulin.InternalServerError}
|
|
74
|
+
* @throws {@link errors.SchedulinError}
|
|
75
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
68
76
|
*
|
|
69
77
|
* @example
|
|
70
78
|
* await client.tags.delete({
|
|
@@ -22,6 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
23
23
|
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
24
24
|
import * as core from "../../../../core/index.mjs";
|
|
25
|
+
import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.mjs";
|
|
25
26
|
import * as environments from "../../../../environments.mjs";
|
|
26
27
|
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
27
28
|
import * as errors from "../../../../errors/index.mjs";
|
|
@@ -38,6 +39,8 @@ export class TagsClient {
|
|
|
38
39
|
*
|
|
39
40
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
40
41
|
* @throws {@link Schedulin.InternalServerError}
|
|
42
|
+
* @throws {@link errors.SchedulinError}
|
|
43
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
41
44
|
*
|
|
42
45
|
* @example
|
|
43
46
|
* await client.tags.list()
|
|
@@ -98,6 +101,8 @@ export class TagsClient {
|
|
|
98
101
|
*
|
|
99
102
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
100
103
|
* @throws {@link Schedulin.InternalServerError}
|
|
104
|
+
* @throws {@link errors.SchedulinError}
|
|
105
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
101
106
|
*
|
|
102
107
|
* @example
|
|
103
108
|
* await client.tags.create({
|
|
@@ -120,7 +125,7 @@ export class TagsClient {
|
|
|
120
125
|
contentType: "application/json",
|
|
121
126
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
122
127
|
requestType: "json",
|
|
123
|
-
body: request,
|
|
128
|
+
body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
124
129
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
125
130
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
126
131
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -155,6 +160,8 @@ export class TagsClient {
|
|
|
155
160
|
*
|
|
156
161
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
157
162
|
* @throws {@link Schedulin.InternalServerError}
|
|
163
|
+
* @throws {@link errors.SchedulinError}
|
|
164
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
158
165
|
*
|
|
159
166
|
* @example
|
|
160
167
|
* await client.tags.update({
|
|
@@ -177,7 +184,7 @@ export class TagsClient {
|
|
|
177
184
|
contentType: "application/json",
|
|
178
185
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
179
186
|
requestType: "json",
|
|
180
|
-
body: _body,
|
|
187
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
181
188
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
182
189
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
183
190
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -212,6 +219,8 @@ export class TagsClient {
|
|
|
212
219
|
*
|
|
213
220
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
214
221
|
* @throws {@link Schedulin.InternalServerError}
|
|
222
|
+
* @throws {@link errors.SchedulinError}
|
|
223
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
215
224
|
*
|
|
216
225
|
* @example
|
|
217
226
|
* await client.tags.delete({
|
|
@@ -234,7 +243,7 @@ export class TagsClient {
|
|
|
234
243
|
contentType: "application/json",
|
|
235
244
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
236
245
|
requestType: "json",
|
|
237
|
-
body: _body,
|
|
246
|
+
body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
238
247
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
239
248
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
240
249
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|