@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
|
@@ -58,6 +58,7 @@ exports.SocialAccountsClient = void 0;
|
|
|
58
58
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
59
59
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
60
60
|
const core = __importStar(require("../../../../core/index.js"));
|
|
61
|
+
const requestBody_js_1 = require("../../../../core/requestBody.js");
|
|
61
62
|
const environments = __importStar(require("../../../../environments.js"));
|
|
62
63
|
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
63
64
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
@@ -73,6 +74,8 @@ class SocialAccountsClient {
|
|
|
73
74
|
*
|
|
74
75
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
75
76
|
* @throws {@link Schedulin.InternalServerError}
|
|
77
|
+
* @throws {@link errors.SchedulinError}
|
|
78
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
76
79
|
*
|
|
77
80
|
* @example
|
|
78
81
|
* await client.socialAccounts.list()
|
|
@@ -116,6 +119,132 @@ class SocialAccountsClient {
|
|
|
116
119
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/social-accounts");
|
|
117
120
|
});
|
|
118
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* List companies available to a connected Whop account. Select one before requesting its forum experiences.
|
|
124
|
+
*
|
|
125
|
+
* @param {Schedulin.ListWhopCompaniesSocialAccountsRequest} request
|
|
126
|
+
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
129
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
130
|
+
* @throws {@link errors.SchedulinError}
|
|
131
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* await client.socialAccounts.listWhopCompanies({
|
|
135
|
+
* id: "id"
|
|
136
|
+
* })
|
|
137
|
+
*/
|
|
138
|
+
listWhopCompanies(request, requestOptions) {
|
|
139
|
+
return core.HttpResponsePromise.fromPromise(this.__listWhopCompanies(request, requestOptions));
|
|
140
|
+
}
|
|
141
|
+
__listWhopCompanies(request, requestOptions) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
144
|
+
const { id } = request;
|
|
145
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
146
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
147
|
+
const _response = yield core.fetcher({
|
|
148
|
+
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`),
|
|
149
|
+
method: "GET",
|
|
150
|
+
headers: _headers,
|
|
151
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
152
|
+
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,
|
|
153
|
+
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,
|
|
154
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
155
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
156
|
+
logging: this._options.logging,
|
|
157
|
+
});
|
|
158
|
+
if (_response.ok) {
|
|
159
|
+
return {
|
|
160
|
+
data: _response.body,
|
|
161
|
+
rawResponse: _response.rawResponse,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
if (_response.error.reason === "status-code") {
|
|
165
|
+
switch (_response.error.statusCode) {
|
|
166
|
+
case 401:
|
|
167
|
+
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
168
|
+
case 500:
|
|
169
|
+
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
170
|
+
default:
|
|
171
|
+
throw new errors.SchedulinError({
|
|
172
|
+
statusCode: _response.error.statusCode,
|
|
173
|
+
body: _response.error.body,
|
|
174
|
+
rawResponse: _response.rawResponse,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/social-accounts/{id}/whop-companies");
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* List forum experiences for a Whop company. Use an item id as platformConfiguration.experience.
|
|
183
|
+
*
|
|
184
|
+
* @param {Schedulin.ListWhopForumsSocialAccountsRequest} request
|
|
185
|
+
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
186
|
+
*
|
|
187
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
188
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
189
|
+
* @throws {@link errors.SchedulinError}
|
|
190
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* await client.socialAccounts.listWhopForums({
|
|
194
|
+
* id: "id",
|
|
195
|
+
* companyId: "companyId"
|
|
196
|
+
* })
|
|
197
|
+
*/
|
|
198
|
+
listWhopForums(request, requestOptions) {
|
|
199
|
+
return core.HttpResponsePromise.fromPromise(this.__listWhopForums(request, requestOptions));
|
|
200
|
+
}
|
|
201
|
+
__listWhopForums(request, requestOptions) {
|
|
202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
203
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
204
|
+
const { id, companyId } = request;
|
|
205
|
+
const _queryParams = {
|
|
206
|
+
companyId,
|
|
207
|
+
};
|
|
208
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
209
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
210
|
+
const _response = yield core.fetcher({
|
|
211
|
+
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`),
|
|
212
|
+
method: "GET",
|
|
213
|
+
headers: _headers,
|
|
214
|
+
queryString: core.url
|
|
215
|
+
.queryBuilder()
|
|
216
|
+
.addMany(_queryParams)
|
|
217
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
218
|
+
.build(),
|
|
219
|
+
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,
|
|
220
|
+
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,
|
|
221
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
222
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
223
|
+
logging: this._options.logging,
|
|
224
|
+
});
|
|
225
|
+
if (_response.ok) {
|
|
226
|
+
return {
|
|
227
|
+
data: _response.body,
|
|
228
|
+
rawResponse: _response.rawResponse,
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
if (_response.error.reason === "status-code") {
|
|
232
|
+
switch (_response.error.statusCode) {
|
|
233
|
+
case 401:
|
|
234
|
+
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
235
|
+
case 500:
|
|
236
|
+
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
237
|
+
default:
|
|
238
|
+
throw new errors.SchedulinError({
|
|
239
|
+
statusCode: _response.error.statusCode,
|
|
240
|
+
body: _response.error.body,
|
|
241
|
+
rawResponse: _response.rawResponse,
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/social-accounts/{id}/whop-forums");
|
|
246
|
+
});
|
|
247
|
+
}
|
|
119
248
|
/**
|
|
120
249
|
* Update social media account settings and information
|
|
121
250
|
*
|
|
@@ -124,6 +253,8 @@ class SocialAccountsClient {
|
|
|
124
253
|
*
|
|
125
254
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
126
255
|
* @throws {@link Schedulin.InternalServerError}
|
|
256
|
+
* @throws {@link errors.SchedulinError}
|
|
257
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
127
258
|
*
|
|
128
259
|
* @example
|
|
129
260
|
* await client.socialAccounts.update({
|
|
@@ -146,7 +277,7 @@ class SocialAccountsClient {
|
|
|
146
277
|
contentType: "application/json",
|
|
147
278
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
148
279
|
requestType: "json",
|
|
149
|
-
body: _body,
|
|
280
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
150
281
|
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,
|
|
151
282
|
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,
|
|
152
283
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -184,6 +315,8 @@ class SocialAccountsClient {
|
|
|
184
315
|
*
|
|
185
316
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
186
317
|
* @throws {@link Schedulin.InternalServerError}
|
|
318
|
+
* @throws {@link errors.SchedulinError}
|
|
319
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
187
320
|
*
|
|
188
321
|
* @example
|
|
189
322
|
* await client.socialAccounts.delete({
|
|
@@ -206,7 +339,7 @@ class SocialAccountsClient {
|
|
|
206
339
|
contentType: "application/json",
|
|
207
340
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
208
341
|
requestType: "json",
|
|
209
|
-
body: _body,
|
|
342
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
210
343
|
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,
|
|
211
344
|
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,
|
|
212
345
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -237,13 +370,15 @@ class SocialAccountsClient {
|
|
|
237
370
|
});
|
|
238
371
|
}
|
|
239
372
|
/**
|
|
240
|
-
* Set the IANA timezone (e.g. 'America/Los_Angeles') used to interpret queue times for this account.
|
|
373
|
+
* 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.
|
|
241
374
|
*
|
|
242
375
|
* @param {Schedulin.UpdateTimezoneSocialAccountsRequest} request
|
|
243
376
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
244
377
|
*
|
|
245
378
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
246
379
|
* @throws {@link Schedulin.InternalServerError}
|
|
380
|
+
* @throws {@link errors.SchedulinError}
|
|
381
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
247
382
|
*
|
|
248
383
|
* @example
|
|
249
384
|
* await client.socialAccounts.updateTimezone({
|
|
@@ -267,7 +402,7 @@ class SocialAccountsClient {
|
|
|
267
402
|
contentType: "application/json",
|
|
268
403
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
269
404
|
requestType: "json",
|
|
270
|
-
body: _body,
|
|
405
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
271
406
|
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,
|
|
272
407
|
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,
|
|
273
408
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -297,6 +432,73 @@ class SocialAccountsClient {
|
|
|
297
432
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/v0/social-accounts/{id}/timezone");
|
|
298
433
|
});
|
|
299
434
|
}
|
|
435
|
+
/**
|
|
436
|
+
* 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.
|
|
437
|
+
*
|
|
438
|
+
* @param {Schedulin.NextSlotsSocialAccountsRequest} request
|
|
439
|
+
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
440
|
+
*
|
|
441
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
442
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
443
|
+
* @throws {@link errors.SchedulinError}
|
|
444
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
445
|
+
*
|
|
446
|
+
* @example
|
|
447
|
+
* await client.socialAccounts.nextSlots({
|
|
448
|
+
* id: "id"
|
|
449
|
+
* })
|
|
450
|
+
*/
|
|
451
|
+
nextSlots(request, requestOptions) {
|
|
452
|
+
return core.HttpResponsePromise.fromPromise(this.__nextSlots(request, requestOptions));
|
|
453
|
+
}
|
|
454
|
+
__nextSlots(request, requestOptions) {
|
|
455
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
456
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
457
|
+
const { id, limit, after } = request;
|
|
458
|
+
const _queryParams = {
|
|
459
|
+
limit,
|
|
460
|
+
after,
|
|
461
|
+
};
|
|
462
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
463
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
464
|
+
const _response = yield core.fetcher({
|
|
465
|
+
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`),
|
|
466
|
+
method: "GET",
|
|
467
|
+
headers: _headers,
|
|
468
|
+
queryString: core.url
|
|
469
|
+
.queryBuilder()
|
|
470
|
+
.addMany(_queryParams)
|
|
471
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
472
|
+
.build(),
|
|
473
|
+
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,
|
|
474
|
+
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,
|
|
475
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
476
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
477
|
+
logging: this._options.logging,
|
|
478
|
+
});
|
|
479
|
+
if (_response.ok) {
|
|
480
|
+
return {
|
|
481
|
+
data: _response.body,
|
|
482
|
+
rawResponse: _response.rawResponse,
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
if (_response.error.reason === "status-code") {
|
|
486
|
+
switch (_response.error.statusCode) {
|
|
487
|
+
case 401:
|
|
488
|
+
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
489
|
+
case 500:
|
|
490
|
+
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
491
|
+
default:
|
|
492
|
+
throw new errors.SchedulinError({
|
|
493
|
+
statusCode: _response.error.statusCode,
|
|
494
|
+
body: _response.error.body,
|
|
495
|
+
rawResponse: _response.rawResponse,
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/social-accounts/{id}/next-slots");
|
|
500
|
+
});
|
|
501
|
+
}
|
|
300
502
|
/**
|
|
301
503
|
* List the boards for a connected Pinterest account. Use a board id in `platformConfiguration.board_ids` when creating a Pinterest post.
|
|
302
504
|
*
|
|
@@ -305,6 +507,8 @@ class SocialAccountsClient {
|
|
|
305
507
|
*
|
|
306
508
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
307
509
|
* @throws {@link Schedulin.InternalServerError}
|
|
510
|
+
* @throws {@link errors.SchedulinError}
|
|
511
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
308
512
|
*
|
|
309
513
|
* @example
|
|
310
514
|
* await client.socialAccounts.pinterestBoards({
|
|
@@ -362,6 +566,8 @@ class SocialAccountsClient {
|
|
|
362
566
|
*
|
|
363
567
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
364
568
|
* @throws {@link Schedulin.InternalServerError}
|
|
569
|
+
* @throws {@link errors.SchedulinError}
|
|
570
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
365
571
|
*
|
|
366
572
|
* @example
|
|
367
573
|
* await client.socialAccounts.tiktokCreatorInfo({
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export type { DeleteSocialAccountsRequest } from "./DeleteSocialAccountsRequest.js";
|
|
2
|
+
export type { ListWhopCompaniesSocialAccountsRequest } from "./ListWhopCompaniesSocialAccountsRequest.js";
|
|
3
|
+
export type { ListWhopForumsSocialAccountsRequest } from "./ListWhopForumsSocialAccountsRequest.js";
|
|
4
|
+
export type { NextSlotsSocialAccountsRequest } from "./NextSlotsSocialAccountsRequest.js";
|
|
2
5
|
export type { PinterestBoardsSocialAccountsRequest } from "./PinterestBoardsSocialAccountsRequest.js";
|
|
3
6
|
export type { TiktokCreatorInfoSocialAccountsRequest } from "./TiktokCreatorInfoSocialAccountsRequest.js";
|
|
4
7
|
export { UpdateSocialAccountsRequest } from "./UpdateSocialAccountsRequest.js";
|
|
@@ -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: {
|
|
@@ -16,10 +16,31 @@ var ListSocialAccountsResponse;
|
|
|
16
16
|
Linkedin: "linkedin",
|
|
17
17
|
Pinterest: "pinterest",
|
|
18
18
|
Reddit: "reddit",
|
|
19
|
+
Snapchat: "snapchat",
|
|
19
20
|
Threads: "threads",
|
|
20
21
|
Tiktok: "tiktok",
|
|
21
22
|
Twitter: "twitter",
|
|
22
23
|
Youtube: "youtube",
|
|
24
|
+
Mastodon: "mastodon",
|
|
25
|
+
Telegram: "telegram",
|
|
26
|
+
Devto: "devto",
|
|
27
|
+
Hashnode: "hashnode",
|
|
28
|
+
Medium: "medium",
|
|
29
|
+
Wordpress: "wordpress",
|
|
30
|
+
Lemmy: "lemmy",
|
|
31
|
+
Nostr: "nostr",
|
|
32
|
+
Discord: "discord",
|
|
33
|
+
Dribbble: "dribbble",
|
|
34
|
+
Farcaster: "farcaster",
|
|
35
|
+
Kick: "kick",
|
|
36
|
+
Listmonk: "listmonk",
|
|
37
|
+
Mewe: "mewe",
|
|
38
|
+
Moltbook: "moltbook",
|
|
39
|
+
Skool: "skool",
|
|
40
|
+
Slack: "slack",
|
|
41
|
+
Twitch: "twitch",
|
|
42
|
+
Vk: "vk",
|
|
43
|
+
Whop: "whop",
|
|
23
44
|
};
|
|
24
45
|
Item.Status = {
|
|
25
46
|
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.js";
|
|
2
2
|
export * from "./ListSocialAccountsResponse.js";
|
|
3
|
+
export * from "./ListWhopCompaniesSocialAccountsResponse.js";
|
|
4
|
+
export * from "./ListWhopForumsSocialAccountsResponse.js";
|
|
5
|
+
export * from "./NextSlotsSocialAccountsResponse.js";
|
|
3
6
|
export * from "./PinterestBoardsSocialAccountsResponse.js";
|
|
4
7
|
export * from "./TiktokCreatorInfoSocialAccountsResponse.js";
|
|
5
8
|
export * from "./UpdateSocialAccountsResponse.js";
|
|
@@ -16,6 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./DeleteSocialAccountsResponse.js"), exports);
|
|
18
18
|
__exportStar(require("./ListSocialAccountsResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./ListWhopCompaniesSocialAccountsResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./ListWhopForumsSocialAccountsResponse.js"), exports);
|
|
21
|
+
__exportStar(require("./NextSlotsSocialAccountsResponse.js"), exports);
|
|
19
22
|
__exportStar(require("./PinterestBoardsSocialAccountsResponse.js"), exports);
|
|
20
23
|
__exportStar(require("./TiktokCreatorInfoSocialAccountsResponse.js"), exports);
|
|
21
24
|
__exportStar(require("./UpdateSocialAccountsResponse.js"), exports);
|
|
@@ -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({
|
|
@@ -58,6 +58,7 @@ exports.TagsClient = void 0;
|
|
|
58
58
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
59
59
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
60
60
|
const core = __importStar(require("../../../../core/index.js"));
|
|
61
|
+
const requestBody_js_1 = require("../../../../core/requestBody.js");
|
|
61
62
|
const environments = __importStar(require("../../../../environments.js"));
|
|
62
63
|
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
63
64
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
@@ -74,6 +75,8 @@ class TagsClient {
|
|
|
74
75
|
*
|
|
75
76
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
76
77
|
* @throws {@link Schedulin.InternalServerError}
|
|
78
|
+
* @throws {@link errors.SchedulinError}
|
|
79
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
77
80
|
*
|
|
78
81
|
* @example
|
|
79
82
|
* await client.tags.list()
|
|
@@ -134,6 +137,8 @@ class TagsClient {
|
|
|
134
137
|
*
|
|
135
138
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
136
139
|
* @throws {@link Schedulin.InternalServerError}
|
|
140
|
+
* @throws {@link errors.SchedulinError}
|
|
141
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
137
142
|
*
|
|
138
143
|
* @example
|
|
139
144
|
* await client.tags.create({
|
|
@@ -156,7 +161,7 @@ class TagsClient {
|
|
|
156
161
|
contentType: "application/json",
|
|
157
162
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
158
163
|
requestType: "json",
|
|
159
|
-
body: request,
|
|
164
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
160
165
|
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,
|
|
161
166
|
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,
|
|
162
167
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -191,6 +196,8 @@ class TagsClient {
|
|
|
191
196
|
*
|
|
192
197
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
193
198
|
* @throws {@link Schedulin.InternalServerError}
|
|
199
|
+
* @throws {@link errors.SchedulinError}
|
|
200
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
194
201
|
*
|
|
195
202
|
* @example
|
|
196
203
|
* await client.tags.update({
|
|
@@ -213,7 +220,7 @@ class TagsClient {
|
|
|
213
220
|
contentType: "application/json",
|
|
214
221
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
215
222
|
requestType: "json",
|
|
216
|
-
body: _body,
|
|
223
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
217
224
|
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,
|
|
218
225
|
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,
|
|
219
226
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -248,6 +255,8 @@ class TagsClient {
|
|
|
248
255
|
*
|
|
249
256
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
250
257
|
* @throws {@link Schedulin.InternalServerError}
|
|
258
|
+
* @throws {@link errors.SchedulinError}
|
|
259
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
251
260
|
*
|
|
252
261
|
* @example
|
|
253
262
|
* await client.tags.delete({
|
|
@@ -270,7 +279,7 @@ class TagsClient {
|
|
|
270
279
|
contentType: "application/json",
|
|
271
280
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
272
281
|
requestType: "json",
|
|
273
|
-
body: _body,
|
|
282
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
274
283
|
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,
|
|
275
284
|
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,
|
|
276
285
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|