@schedulin/sdk 0.1.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/LICENSE +21 -0
- package/README.md +303 -0
- package/cjs/BaseClient.d.ts +42 -0
- package/cjs/BaseClient.js +74 -0
- package/cjs/Client.d.ts +35 -0
- package/cjs/Client.js +98 -0
- package/cjs/api/errors/InternalServerError.d.ts +6 -0
- package/cjs/api/errors/InternalServerError.js +54 -0
- package/cjs/api/errors/UnauthorizedError.d.ts +6 -0
- package/cjs/api/errors/UnauthorizedError.js +54 -0
- package/cjs/api/errors/index.d.ts +2 -0
- package/cjs/api/errors/index.js +18 -0
- package/cjs/api/index.d.ts +3 -0
- package/cjs/api/index.js +19 -0
- package/cjs/api/resources/index.d.ts +12 -0
- package/cjs/api/resources/index.js +51 -0
- package/cjs/api/resources/media/client/Client.d.ts +107 -0
- package/cjs/api/resources/media/client/Client.js +411 -0
- package/cjs/api/resources/media/client/index.d.ts +1 -0
- package/cjs/api/resources/media/client/index.js +17 -0
- package/cjs/api/resources/media/client/requests/CreatePresignedPost.d.ts +21 -0
- package/cjs/api/resources/media/client/requests/CreatePresignedPost.js +12 -0
- package/cjs/api/resources/media/client/requests/ListMediaRequest.d.ts +13 -0
- package/cjs/api/resources/media/client/requests/ListMediaRequest.js +3 -0
- package/cjs/api/resources/media/client/requests/RetrieveMediaRequest.d.ts +9 -0
- package/cjs/api/resources/media/client/requests/RetrieveMediaRequest.js +3 -0
- package/cjs/api/resources/media/client/requests/SetTagsMediaRequest.d.ts +11 -0
- package/cjs/api/resources/media/client/requests/SetTagsMediaRequest.js +3 -0
- package/cjs/api/resources/media/client/requests/UpdateMediaRequest.d.ts +16 -0
- package/cjs/api/resources/media/client/requests/UpdateMediaRequest.js +3 -0
- package/cjs/api/resources/media/client/requests/index.d.ts +5 -0
- package/cjs/api/resources/media/client/requests/index.js +5 -0
- package/cjs/api/resources/media/exports.d.ts +2 -0
- package/cjs/api/resources/media/exports.js +21 -0
- package/cjs/api/resources/media/index.d.ts +2 -0
- package/cjs/api/resources/media/index.js +18 -0
- package/cjs/api/resources/media/types/CountByTagMediaResponse.d.ts +12 -0
- package/cjs/api/resources/media/types/CountByTagMediaResponse.js +3 -0
- package/cjs/api/resources/media/types/ListMediaRequestCursor.d.ts +4 -0
- package/cjs/api/resources/media/types/ListMediaRequestCursor.js +3 -0
- package/cjs/api/resources/media/types/ListMediaRequestTagMode.d.ts +5 -0
- package/cjs/api/resources/media/types/ListMediaRequestTagMode.js +8 -0
- package/cjs/api/resources/media/types/ListMediaRequestType.d.ts +6 -0
- package/cjs/api/resources/media/types/ListMediaRequestType.js +9 -0
- package/cjs/api/resources/media/types/index.d.ts +4 -0
- package/cjs/api/resources/media/types/index.js +20 -0
- package/cjs/api/resources/posts/client/Client.d.ts +187 -0
- package/cjs/api/resources/posts/client/Client.js +710 -0
- package/cjs/api/resources/posts/client/index.d.ts +1 -0
- package/cjs/api/resources/posts/client/index.js +17 -0
- package/cjs/api/resources/posts/client/requests/AnalyticsSeriesPostsRequest.d.ts +10 -0
- package/cjs/api/resources/posts/client/requests/AnalyticsSeriesPostsRequest.js +3 -0
- package/cjs/api/resources/posts/client/requests/AnalyticsSummaryPostsRequest.d.ts +9 -0
- package/cjs/api/resources/posts/client/requests/AnalyticsSummaryPostsRequest.js +3 -0
- package/cjs/api/resources/posts/client/requests/DeletePostsRequest.d.ts +9 -0
- package/cjs/api/resources/posts/client/requests/DeletePostsRequest.js +3 -0
- package/cjs/api/resources/posts/client/requests/GetJobStatusPostsRequest.d.ts +9 -0
- package/cjs/api/resources/posts/client/requests/GetJobStatusPostsRequest.js +3 -0
- package/cjs/api/resources/posts/client/requests/ListPostsRequest.d.ts +15 -0
- package/cjs/api/resources/posts/client/requests/ListPostsRequest.js +3 -0
- package/cjs/api/resources/posts/client/requests/PostCreate.d.ts +183 -0
- package/cjs/api/resources/posts/client/requests/PostCreate.js +103 -0
- package/cjs/api/resources/posts/client/requests/PublishDraftPostsRequest.d.ts +10 -0
- package/cjs/api/resources/posts/client/requests/PublishDraftPostsRequest.js +3 -0
- package/cjs/api/resources/posts/client/requests/RetrievePostsRequest.d.ts +9 -0
- package/cjs/api/resources/posts/client/requests/RetrievePostsRequest.js +3 -0
- package/cjs/api/resources/posts/client/requests/UpdatePostsRequest.d.ts +36 -0
- package/cjs/api/resources/posts/client/requests/UpdatePostsRequest.js +14 -0
- package/cjs/api/resources/posts/client/requests/UpdateTagsPostsRequest.d.ts +11 -0
- package/cjs/api/resources/posts/client/requests/UpdateTagsPostsRequest.js +3 -0
- package/cjs/api/resources/posts/client/requests/V0PostCountByTabRequest.d.ts +7 -0
- package/cjs/api/resources/posts/client/requests/V0PostCountByTabRequest.js +3 -0
- package/cjs/api/resources/posts/client/requests/index.d.ts +11 -0
- package/cjs/api/resources/posts/client/requests/index.js +7 -0
- package/cjs/api/resources/posts/exports.d.ts +2 -0
- package/cjs/api/resources/posts/exports.js +21 -0
- package/cjs/api/resources/posts/index.d.ts +2 -0
- package/cjs/api/resources/posts/index.js +18 -0
- package/cjs/api/resources/posts/types/AnalyticsSeriesPostsResponse.d.ts +15 -0
- package/cjs/api/resources/posts/types/AnalyticsSeriesPostsResponse.js +3 -0
- package/cjs/api/resources/posts/types/AnalyticsSummaryPostsResponse.d.ts +6 -0
- package/cjs/api/resources/posts/types/AnalyticsSummaryPostsResponse.js +3 -0
- package/cjs/api/resources/posts/types/CreatePostsResponse.d.ts +59 -0
- package/cjs/api/resources/posts/types/CreatePostsResponse.js +36 -0
- package/cjs/api/resources/posts/types/ListPostsRequestApprovalStatus.d.ts +7 -0
- package/cjs/api/resources/posts/types/ListPostsRequestApprovalStatus.js +10 -0
- package/cjs/api/resources/posts/types/ListPostsRequestStatus.d.ts +8 -0
- package/cjs/api/resources/posts/types/ListPostsRequestStatus.js +11 -0
- package/cjs/api/resources/posts/types/ListPostsRequestTagMode.d.ts +5 -0
- package/cjs/api/resources/posts/types/ListPostsRequestTagMode.js +8 -0
- package/cjs/api/resources/posts/types/ListPostsResponse.d.ts +7 -0
- package/cjs/api/resources/posts/types/ListPostsResponse.js +3 -0
- package/cjs/api/resources/posts/types/index.d.ts +7 -0
- package/cjs/api/resources/posts/types/index.js +23 -0
- package/cjs/api/resources/socialAccounts/client/Client.d.ts +107 -0
- package/cjs/api/resources/socialAccounts/client/Client.js +415 -0
- package/cjs/api/resources/socialAccounts/client/index.d.ts +1 -0
- package/cjs/api/resources/socialAccounts/client/index.js +17 -0
- package/cjs/api/resources/socialAccounts/client/requests/DeleteSocialAccountsRequest.d.ts +9 -0
- package/cjs/api/resources/socialAccounts/client/requests/DeleteSocialAccountsRequest.js +3 -0
- package/cjs/api/resources/socialAccounts/client/requests/PinterestBoardsSocialAccountsRequest.d.ts +9 -0
- package/cjs/api/resources/socialAccounts/client/requests/PinterestBoardsSocialAccountsRequest.js +3 -0
- package/cjs/api/resources/socialAccounts/client/requests/TiktokCreatorInfoSocialAccountsRequest.d.ts +9 -0
- package/cjs/api/resources/socialAccounts/client/requests/TiktokCreatorInfoSocialAccountsRequest.js +3 -0
- package/cjs/api/resources/socialAccounts/client/requests/UpdateSocialAccountsRequest.d.ts +17 -0
- package/cjs/api/resources/socialAccounts/client/requests/UpdateSocialAccountsRequest.js +11 -0
- package/cjs/api/resources/socialAccounts/client/requests/UpdateTimezoneSocialAccountsRequest.d.ts +11 -0
- package/cjs/api/resources/socialAccounts/client/requests/UpdateTimezoneSocialAccountsRequest.js +3 -0
- package/cjs/api/resources/socialAccounts/client/requests/index.d.ts +5 -0
- package/cjs/api/resources/socialAccounts/client/requests/index.js +5 -0
- package/cjs/api/resources/socialAccounts/exports.d.ts +2 -0
- package/cjs/api/resources/socialAccounts/exports.js +21 -0
- package/cjs/api/resources/socialAccounts/index.d.ts +2 -0
- package/cjs/api/resources/socialAccounts/index.js +18 -0
- package/cjs/api/resources/socialAccounts/types/DeleteSocialAccountsResponse.d.ts +3 -0
- package/cjs/api/resources/socialAccounts/types/DeleteSocialAccountsResponse.js +3 -0
- package/cjs/api/resources/socialAccounts/types/ListSocialAccountsResponse.d.ts +41 -0
- package/cjs/api/resources/socialAccounts/types/ListSocialAccountsResponse.js +30 -0
- package/cjs/api/resources/socialAccounts/types/PinterestBoardsSocialAccountsResponse.d.ts +21 -0
- package/cjs/api/resources/socialAccounts/types/PinterestBoardsSocialAccountsResponse.js +18 -0
- package/cjs/api/resources/socialAccounts/types/TiktokCreatorInfoSocialAccountsResponse.d.ts +21 -0
- package/cjs/api/resources/socialAccounts/types/TiktokCreatorInfoSocialAccountsResponse.js +3 -0
- package/cjs/api/resources/socialAccounts/types/UpdateSocialAccountsResponse.d.ts +3 -0
- package/cjs/api/resources/socialAccounts/types/UpdateSocialAccountsResponse.js +3 -0
- package/cjs/api/resources/socialAccounts/types/UpdateTimezoneSocialAccountsResponse.d.ts +3 -0
- package/cjs/api/resources/socialAccounts/types/UpdateTimezoneSocialAccountsResponse.js +3 -0
- package/cjs/api/resources/socialAccounts/types/index.d.ts +6 -0
- package/cjs/api/resources/socialAccounts/types/index.js +22 -0
- package/cjs/api/resources/tags/client/Client.d.ts +78 -0
- package/cjs/api/resources/tags/client/Client.js +303 -0
- package/cjs/api/resources/tags/client/index.d.ts +1 -0
- package/cjs/api/resources/tags/client/index.js +17 -0
- package/cjs/api/resources/tags/client/requests/CreateTagsRequest.d.ts +11 -0
- package/cjs/api/resources/tags/client/requests/CreateTagsRequest.js +3 -0
- package/cjs/api/resources/tags/client/requests/DeleteTagsRequest.d.ts +9 -0
- package/cjs/api/resources/tags/client/requests/DeleteTagsRequest.js +3 -0
- package/cjs/api/resources/tags/client/requests/ListTagsRequest.d.ts +8 -0
- package/cjs/api/resources/tags/client/requests/ListTagsRequest.js +3 -0
- package/cjs/api/resources/tags/client/requests/UpdateTagsRequest.d.ts +13 -0
- package/cjs/api/resources/tags/client/requests/UpdateTagsRequest.js +3 -0
- package/cjs/api/resources/tags/client/requests/index.d.ts +4 -0
- package/cjs/api/resources/tags/client/requests/index.js +2 -0
- package/cjs/api/resources/tags/exports.d.ts +2 -0
- package/cjs/api/resources/tags/exports.js +21 -0
- package/cjs/api/resources/tags/index.d.ts +2 -0
- package/cjs/api/resources/tags/index.js +18 -0
- package/cjs/api/resources/tags/types/ListTagsResponse.d.ts +4 -0
- package/cjs/api/resources/tags/types/ListTagsResponse.js +3 -0
- package/cjs/api/resources/tags/types/index.d.ts +1 -0
- package/cjs/api/resources/tags/types/index.js +17 -0
- package/cjs/api/types/AnalyticsStatus.d.ts +6 -0
- package/cjs/api/types/AnalyticsStatus.js +9 -0
- package/cjs/api/types/ErrorResponse.d.ts +10 -0
- package/cjs/api/types/ErrorResponse.js +3 -0
- package/cjs/api/types/ImageProcessingStatus.d.ts +7 -0
- package/cjs/api/types/ImageProcessingStatus.js +10 -0
- package/cjs/api/types/ListPostsRequestScheduledAt.d.ts +4 -0
- package/cjs/api/types/ListPostsRequestScheduledAt.js +3 -0
- package/cjs/api/types/Media.d.ts +14 -0
- package/cjs/api/types/Media.js +3 -0
- package/cjs/api/types/MediaSearch.d.ts +25 -0
- package/cjs/api/types/MediaSearch.js +16 -0
- package/cjs/api/types/MediaSetTags.d.ts +4 -0
- package/cjs/api/types/MediaSetTags.js +3 -0
- package/cjs/api/types/MediaUpdate.d.ts +9 -0
- package/cjs/api/types/MediaUpdate.js +3 -0
- package/cjs/api/types/OauthScope.d.ts +36 -0
- package/cjs/api/types/OauthScope.js +39 -0
- package/cjs/api/types/Post.d.ts +19 -0
- package/cjs/api/types/Post.js +3 -0
- package/cjs/api/types/PostApprovalStatus.d.ts +7 -0
- package/cjs/api/types/PostApprovalStatus.js +10 -0
- package/cjs/api/types/PostPublishDraft.d.ts +4 -0
- package/cjs/api/types/PostPublishDraft.js +3 -0
- package/cjs/api/types/PostSearch.d.ts +36 -0
- package/cjs/api/types/PostSearch.js +24 -0
- package/cjs/api/types/PostStatus.d.ts +8 -0
- package/cjs/api/types/PostStatus.js +11 -0
- package/cjs/api/types/PostWithRelations.d.ts +68 -0
- package/cjs/api/types/PostWithRelations.js +36 -0
- package/cjs/api/types/PresignedPost.d.ts +11 -0
- package/cjs/api/types/PresignedPost.js +10 -0
- package/cjs/api/types/SocialAccount.d.ts +20 -0
- package/cjs/api/types/SocialAccount.js +11 -0
- package/cjs/api/types/SocialAccountDisconnectedReason.d.ts +9 -0
- package/cjs/api/types/SocialAccountDisconnectedReason.js +12 -0
- package/cjs/api/types/SocialAccountPublic.d.ts +17 -0
- package/cjs/api/types/SocialAccountPublic.js +11 -0
- package/cjs/api/types/SocialAccountUpdate.d.ts +11 -0
- package/cjs/api/types/SocialAccountUpdate.js +11 -0
- package/cjs/api/types/SocialPlatform.d.ts +14 -0
- package/cjs/api/types/SocialPlatform.js +17 -0
- package/cjs/api/types/Tag.d.ts +7 -0
- package/cjs/api/types/Tag.js +3 -0
- package/cjs/api/types/TagSearch.d.ts +4 -0
- package/cjs/api/types/TagSearch.js +3 -0
- package/cjs/api/types/TagUpsert.d.ts +5 -0
- package/cjs/api/types/TagUpsert.js +3 -0
- package/cjs/api/types/index.d.ts +24 -0
- package/cjs/api/types/index.js +40 -0
- package/cjs/auth/HeaderAuthProvider.d.ts +20 -0
- package/cjs/auth/HeaderAuthProvider.js +80 -0
- package/cjs/auth/index.d.ts +1 -0
- package/cjs/auth/index.js +5 -0
- package/cjs/core/auth/AuthProvider.d.ts +8 -0
- package/cjs/core/auth/AuthProvider.js +9 -0
- package/cjs/core/auth/AuthRequest.d.ts +9 -0
- package/cjs/core/auth/AuthRequest.js +2 -0
- package/cjs/core/auth/BasicAuth.d.ts +8 -0
- package/cjs/core/auth/BasicAuth.js +33 -0
- package/cjs/core/auth/BearerToken.d.ts +7 -0
- package/cjs/core/auth/BearerToken.js +16 -0
- package/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/cjs/core/auth/NoOpAuthProvider.js +9 -0
- package/cjs/core/auth/index.d.ts +5 -0
- package/cjs/core/auth/index.js +11 -0
- package/cjs/core/base64.d.ts +2 -0
- package/cjs/core/base64.js +26 -0
- package/cjs/core/exports.d.ts +1 -0
- package/cjs/core/exports.js +17 -0
- package/cjs/core/fetcher/APIResponse.d.ts +20 -0
- package/cjs/core/fetcher/APIResponse.js +2 -0
- package/cjs/core/fetcher/BinaryResponse.d.ts +19 -0
- package/cjs/core/fetcher/BinaryResponse.js +17 -0
- package/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/cjs/core/fetcher/EndpointMetadata.js +2 -0
- package/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/cjs/core/fetcher/EndpointSupplier.js +22 -0
- package/cjs/core/fetcher/Fetcher.d.ts +56 -0
- package/cjs/core/fetcher/Fetcher.js +327 -0
- package/cjs/core/fetcher/Headers.d.ts +2 -0
- package/cjs/core/fetcher/Headers.js +84 -0
- package/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/cjs/core/fetcher/HttpResponsePromise.js +103 -0
- package/cjs/core/fetcher/RawResponse.d.ts +29 -0
- package/cjs/core/fetcher/RawResponse.js +44 -0
- package/cjs/core/fetcher/Supplier.d.ts +4 -0
- package/cjs/core/fetcher/Supplier.js +22 -0
- package/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
- package/cjs/core/fetcher/createRequestUrl.js +8 -0
- package/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/cjs/core/fetcher/getErrorResponseBody.js +45 -0
- package/cjs/core/fetcher/getFetchFn.d.ts +1 -0
- package/cjs/core/fetcher/getFetchFn.js +17 -0
- package/cjs/core/fetcher/getHeader.d.ts +1 -0
- package/cjs/core/fetcher/getHeader.js +11 -0
- package/cjs/core/fetcher/getRequestBody.d.ts +7 -0
- package/cjs/core/fetcher/getRequestBody.js +27 -0
- package/cjs/core/fetcher/getResponseBody.d.ts +1 -0
- package/cjs/core/fetcher/getResponseBody.js +80 -0
- package/cjs/core/fetcher/index.d.ts +13 -0
- package/cjs/core/fetcher/index.js +19 -0
- package/cjs/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/cjs/core/fetcher/makePassthroughRequest.js +135 -0
- package/cjs/core/fetcher/makeRequest.d.ts +6 -0
- package/cjs/core/fetcher/makeRequest.js +61 -0
- package/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
- package/cjs/core/fetcher/requestWithRetries.js +70 -0
- package/cjs/core/fetcher/signals.d.ts +5 -0
- package/cjs/core/fetcher/signals.js +32 -0
- package/cjs/core/headers.d.ts +2 -0
- package/cjs/core/headers.js +31 -0
- package/cjs/core/index.d.ts +6 -0
- package/cjs/core/index.js +45 -0
- package/cjs/core/json.d.ts +15 -0
- package/cjs/core/json.js +24 -0
- package/cjs/core/logging/exports.d.ts +18 -0
- package/cjs/core/logging/exports.js +45 -0
- package/cjs/core/logging/index.d.ts +1 -0
- package/cjs/core/logging/index.js +17 -0
- package/cjs/core/logging/logger.d.ts +126 -0
- package/cjs/core/logging/logger.js +144 -0
- package/cjs/core/runtime/index.d.ts +1 -0
- package/cjs/core/runtime/index.js +5 -0
- package/cjs/core/runtime/runtime.d.ts +9 -0
- package/cjs/core/runtime/runtime.js +104 -0
- package/cjs/core/url/QueryStringBuilder.d.ts +47 -0
- package/cjs/core/url/QueryStringBuilder.js +83 -0
- package/cjs/core/url/encodePathParam.d.ts +1 -0
- package/cjs/core/url/encodePathParam.js +21 -0
- package/cjs/core/url/index.d.ts +4 -0
- package/cjs/core/url/index.js +11 -0
- package/cjs/core/url/join.d.ts +1 -0
- package/cjs/core/url/join.js +68 -0
- package/cjs/core/url/qs.d.ts +7 -0
- package/cjs/core/url/qs.js +76 -0
- package/cjs/environments.d.ts +4 -0
- package/cjs/environments.js +7 -0
- package/cjs/errors/SchedulinError.d.ts +14 -0
- package/cjs/errors/SchedulinError.js +35 -0
- package/cjs/errors/SchedulinTimeoutError.d.ts +6 -0
- package/cjs/errors/SchedulinTimeoutError.js +18 -0
- package/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
- package/cjs/errors/handleNonStatusCodeError.js +68 -0
- package/cjs/errors/index.d.ts +2 -0
- package/cjs/errors/index.js +7 -0
- package/cjs/exports.d.ts +1 -0
- package/cjs/exports.js +17 -0
- package/cjs/index.d.ts +6 -0
- package/cjs/index.js +48 -0
- package/esm/BaseClient.d.mts +42 -0
- package/esm/BaseClient.mjs +37 -0
- package/esm/Client.d.mts +35 -0
- package/esm/Client.mjs +61 -0
- package/esm/api/errors/InternalServerError.d.mts +6 -0
- package/esm/api/errors/InternalServerError.mjs +17 -0
- package/esm/api/errors/UnauthorizedError.d.mts +6 -0
- package/esm/api/errors/UnauthorizedError.mjs +17 -0
- package/esm/api/errors/index.d.mts +2 -0
- package/esm/api/errors/index.mjs +2 -0
- package/esm/api/index.d.mts +3 -0
- package/esm/api/index.mjs +3 -0
- package/esm/api/resources/index.d.mts +12 -0
- package/esm/api/resources/index.mjs +12 -0
- package/esm/api/resources/media/client/Client.d.mts +107 -0
- package/esm/api/resources/media/client/Client.mjs +374 -0
- package/esm/api/resources/media/client/index.d.mts +1 -0
- package/esm/api/resources/media/client/index.mjs +1 -0
- package/esm/api/resources/media/client/requests/CreatePresignedPost.d.mts +21 -0
- package/esm/api/resources/media/client/requests/CreatePresignedPost.mjs +9 -0
- package/esm/api/resources/media/client/requests/ListMediaRequest.d.mts +13 -0
- package/esm/api/resources/media/client/requests/ListMediaRequest.mjs +2 -0
- package/esm/api/resources/media/client/requests/RetrieveMediaRequest.d.mts +9 -0
- package/esm/api/resources/media/client/requests/RetrieveMediaRequest.mjs +2 -0
- package/esm/api/resources/media/client/requests/SetTagsMediaRequest.d.mts +11 -0
- package/esm/api/resources/media/client/requests/SetTagsMediaRequest.mjs +2 -0
- package/esm/api/resources/media/client/requests/UpdateMediaRequest.d.mts +16 -0
- package/esm/api/resources/media/client/requests/UpdateMediaRequest.mjs +2 -0
- package/esm/api/resources/media/client/requests/index.d.mts +5 -0
- package/esm/api/resources/media/client/requests/index.mjs +1 -0
- package/esm/api/resources/media/exports.d.mts +2 -0
- package/esm/api/resources/media/exports.mjs +3 -0
- package/esm/api/resources/media/index.d.mts +2 -0
- package/esm/api/resources/media/index.mjs +2 -0
- package/esm/api/resources/media/types/CountByTagMediaResponse.d.mts +12 -0
- package/esm/api/resources/media/types/CountByTagMediaResponse.mjs +2 -0
- package/esm/api/resources/media/types/ListMediaRequestCursor.d.mts +4 -0
- package/esm/api/resources/media/types/ListMediaRequestCursor.mjs +2 -0
- package/esm/api/resources/media/types/ListMediaRequestTagMode.d.mts +5 -0
- package/esm/api/resources/media/types/ListMediaRequestTagMode.mjs +5 -0
- package/esm/api/resources/media/types/ListMediaRequestType.d.mts +6 -0
- package/esm/api/resources/media/types/ListMediaRequestType.mjs +6 -0
- package/esm/api/resources/media/types/index.d.mts +4 -0
- package/esm/api/resources/media/types/index.mjs +4 -0
- package/esm/api/resources/posts/client/Client.d.mts +187 -0
- package/esm/api/resources/posts/client/Client.mjs +673 -0
- package/esm/api/resources/posts/client/index.d.mts +1 -0
- package/esm/api/resources/posts/client/index.mjs +1 -0
- package/esm/api/resources/posts/client/requests/AnalyticsSeriesPostsRequest.d.mts +10 -0
- package/esm/api/resources/posts/client/requests/AnalyticsSeriesPostsRequest.mjs +2 -0
- package/esm/api/resources/posts/client/requests/AnalyticsSummaryPostsRequest.d.mts +9 -0
- package/esm/api/resources/posts/client/requests/AnalyticsSummaryPostsRequest.mjs +2 -0
- package/esm/api/resources/posts/client/requests/DeletePostsRequest.d.mts +9 -0
- package/esm/api/resources/posts/client/requests/DeletePostsRequest.mjs +2 -0
- package/esm/api/resources/posts/client/requests/GetJobStatusPostsRequest.d.mts +9 -0
- package/esm/api/resources/posts/client/requests/GetJobStatusPostsRequest.mjs +2 -0
- package/esm/api/resources/posts/client/requests/ListPostsRequest.d.mts +15 -0
- package/esm/api/resources/posts/client/requests/ListPostsRequest.mjs +2 -0
- package/esm/api/resources/posts/client/requests/PostCreate.d.mts +183 -0
- package/esm/api/resources/posts/client/requests/PostCreate.mjs +100 -0
- package/esm/api/resources/posts/client/requests/PublishDraftPostsRequest.d.mts +10 -0
- package/esm/api/resources/posts/client/requests/PublishDraftPostsRequest.mjs +2 -0
- package/esm/api/resources/posts/client/requests/RetrievePostsRequest.d.mts +9 -0
- package/esm/api/resources/posts/client/requests/RetrievePostsRequest.mjs +2 -0
- package/esm/api/resources/posts/client/requests/UpdatePostsRequest.d.mts +36 -0
- package/esm/api/resources/posts/client/requests/UpdatePostsRequest.mjs +11 -0
- package/esm/api/resources/posts/client/requests/UpdateTagsPostsRequest.d.mts +11 -0
- package/esm/api/resources/posts/client/requests/UpdateTagsPostsRequest.mjs +2 -0
- package/esm/api/resources/posts/client/requests/V0PostCountByTabRequest.d.mts +7 -0
- package/esm/api/resources/posts/client/requests/V0PostCountByTabRequest.mjs +2 -0
- package/esm/api/resources/posts/client/requests/index.d.mts +11 -0
- package/esm/api/resources/posts/client/requests/index.mjs +2 -0
- package/esm/api/resources/posts/exports.d.mts +2 -0
- package/esm/api/resources/posts/exports.mjs +3 -0
- package/esm/api/resources/posts/index.d.mts +2 -0
- package/esm/api/resources/posts/index.mjs +2 -0
- package/esm/api/resources/posts/types/AnalyticsSeriesPostsResponse.d.mts +15 -0
- package/esm/api/resources/posts/types/AnalyticsSeriesPostsResponse.mjs +2 -0
- package/esm/api/resources/posts/types/AnalyticsSummaryPostsResponse.d.mts +6 -0
- package/esm/api/resources/posts/types/AnalyticsSummaryPostsResponse.mjs +2 -0
- package/esm/api/resources/posts/types/CreatePostsResponse.d.mts +59 -0
- package/esm/api/resources/posts/types/CreatePostsResponse.mjs +33 -0
- package/esm/api/resources/posts/types/ListPostsRequestApprovalStatus.d.mts +7 -0
- package/esm/api/resources/posts/types/ListPostsRequestApprovalStatus.mjs +7 -0
- package/esm/api/resources/posts/types/ListPostsRequestStatus.d.mts +8 -0
- package/esm/api/resources/posts/types/ListPostsRequestStatus.mjs +8 -0
- package/esm/api/resources/posts/types/ListPostsRequestTagMode.d.mts +5 -0
- package/esm/api/resources/posts/types/ListPostsRequestTagMode.mjs +5 -0
- package/esm/api/resources/posts/types/ListPostsResponse.d.mts +7 -0
- package/esm/api/resources/posts/types/ListPostsResponse.mjs +2 -0
- package/esm/api/resources/posts/types/index.d.mts +7 -0
- package/esm/api/resources/posts/types/index.mjs +7 -0
- package/esm/api/resources/socialAccounts/client/Client.d.mts +107 -0
- package/esm/api/resources/socialAccounts/client/Client.mjs +378 -0
- package/esm/api/resources/socialAccounts/client/index.d.mts +1 -0
- package/esm/api/resources/socialAccounts/client/index.mjs +1 -0
- package/esm/api/resources/socialAccounts/client/requests/DeleteSocialAccountsRequest.d.mts +9 -0
- package/esm/api/resources/socialAccounts/client/requests/DeleteSocialAccountsRequest.mjs +2 -0
- package/esm/api/resources/socialAccounts/client/requests/PinterestBoardsSocialAccountsRequest.d.mts +9 -0
- package/esm/api/resources/socialAccounts/client/requests/PinterestBoardsSocialAccountsRequest.mjs +2 -0
- package/esm/api/resources/socialAccounts/client/requests/TiktokCreatorInfoSocialAccountsRequest.d.mts +9 -0
- package/esm/api/resources/socialAccounts/client/requests/TiktokCreatorInfoSocialAccountsRequest.mjs +2 -0
- package/esm/api/resources/socialAccounts/client/requests/UpdateSocialAccountsRequest.d.mts +17 -0
- package/esm/api/resources/socialAccounts/client/requests/UpdateSocialAccountsRequest.mjs +8 -0
- package/esm/api/resources/socialAccounts/client/requests/UpdateTimezoneSocialAccountsRequest.d.mts +11 -0
- package/esm/api/resources/socialAccounts/client/requests/UpdateTimezoneSocialAccountsRequest.mjs +2 -0
- package/esm/api/resources/socialAccounts/client/requests/index.d.mts +5 -0
- package/esm/api/resources/socialAccounts/client/requests/index.mjs +1 -0
- package/esm/api/resources/socialAccounts/exports.d.mts +2 -0
- package/esm/api/resources/socialAccounts/exports.mjs +3 -0
- package/esm/api/resources/socialAccounts/index.d.mts +2 -0
- package/esm/api/resources/socialAccounts/index.mjs +2 -0
- package/esm/api/resources/socialAccounts/types/DeleteSocialAccountsResponse.d.mts +3 -0
- package/esm/api/resources/socialAccounts/types/DeleteSocialAccountsResponse.mjs +2 -0
- package/esm/api/resources/socialAccounts/types/ListSocialAccountsResponse.d.mts +41 -0
- package/esm/api/resources/socialAccounts/types/ListSocialAccountsResponse.mjs +27 -0
- package/esm/api/resources/socialAccounts/types/PinterestBoardsSocialAccountsResponse.d.mts +21 -0
- package/esm/api/resources/socialAccounts/types/PinterestBoardsSocialAccountsResponse.mjs +15 -0
- package/esm/api/resources/socialAccounts/types/TiktokCreatorInfoSocialAccountsResponse.d.mts +21 -0
- package/esm/api/resources/socialAccounts/types/TiktokCreatorInfoSocialAccountsResponse.mjs +2 -0
- package/esm/api/resources/socialAccounts/types/UpdateSocialAccountsResponse.d.mts +3 -0
- package/esm/api/resources/socialAccounts/types/UpdateSocialAccountsResponse.mjs +2 -0
- package/esm/api/resources/socialAccounts/types/UpdateTimezoneSocialAccountsResponse.d.mts +3 -0
- package/esm/api/resources/socialAccounts/types/UpdateTimezoneSocialAccountsResponse.mjs +2 -0
- package/esm/api/resources/socialAccounts/types/index.d.mts +6 -0
- package/esm/api/resources/socialAccounts/types/index.mjs +6 -0
- package/esm/api/resources/tags/client/Client.d.mts +78 -0
- package/esm/api/resources/tags/client/Client.mjs +266 -0
- package/esm/api/resources/tags/client/index.d.mts +1 -0
- package/esm/api/resources/tags/client/index.mjs +1 -0
- package/esm/api/resources/tags/client/requests/CreateTagsRequest.d.mts +11 -0
- package/esm/api/resources/tags/client/requests/CreateTagsRequest.mjs +2 -0
- package/esm/api/resources/tags/client/requests/DeleteTagsRequest.d.mts +9 -0
- package/esm/api/resources/tags/client/requests/DeleteTagsRequest.mjs +2 -0
- package/esm/api/resources/tags/client/requests/ListTagsRequest.d.mts +8 -0
- package/esm/api/resources/tags/client/requests/ListTagsRequest.mjs +2 -0
- package/esm/api/resources/tags/client/requests/UpdateTagsRequest.d.mts +13 -0
- package/esm/api/resources/tags/client/requests/UpdateTagsRequest.mjs +2 -0
- package/esm/api/resources/tags/client/requests/index.d.mts +4 -0
- package/esm/api/resources/tags/client/requests/index.mjs +1 -0
- package/esm/api/resources/tags/exports.d.mts +2 -0
- package/esm/api/resources/tags/exports.mjs +3 -0
- package/esm/api/resources/tags/index.d.mts +2 -0
- package/esm/api/resources/tags/index.mjs +2 -0
- package/esm/api/resources/tags/types/ListTagsResponse.d.mts +4 -0
- package/esm/api/resources/tags/types/ListTagsResponse.mjs +2 -0
- package/esm/api/resources/tags/types/index.d.mts +1 -0
- package/esm/api/resources/tags/types/index.mjs +1 -0
- package/esm/api/types/AnalyticsStatus.d.mts +6 -0
- package/esm/api/types/AnalyticsStatus.mjs +6 -0
- package/esm/api/types/ErrorResponse.d.mts +10 -0
- package/esm/api/types/ErrorResponse.mjs +2 -0
- package/esm/api/types/ImageProcessingStatus.d.mts +7 -0
- package/esm/api/types/ImageProcessingStatus.mjs +7 -0
- package/esm/api/types/ListPostsRequestScheduledAt.d.mts +4 -0
- package/esm/api/types/ListPostsRequestScheduledAt.mjs +2 -0
- package/esm/api/types/Media.d.mts +14 -0
- package/esm/api/types/Media.mjs +2 -0
- package/esm/api/types/MediaSearch.d.mts +25 -0
- package/esm/api/types/MediaSearch.mjs +13 -0
- package/esm/api/types/MediaSetTags.d.mts +4 -0
- package/esm/api/types/MediaSetTags.mjs +2 -0
- package/esm/api/types/MediaUpdate.d.mts +9 -0
- package/esm/api/types/MediaUpdate.mjs +2 -0
- package/esm/api/types/OauthScope.d.mts +36 -0
- package/esm/api/types/OauthScope.mjs +36 -0
- package/esm/api/types/Post.d.mts +19 -0
- package/esm/api/types/Post.mjs +2 -0
- package/esm/api/types/PostApprovalStatus.d.mts +7 -0
- package/esm/api/types/PostApprovalStatus.mjs +7 -0
- package/esm/api/types/PostPublishDraft.d.mts +4 -0
- package/esm/api/types/PostPublishDraft.mjs +2 -0
- package/esm/api/types/PostSearch.d.mts +36 -0
- package/esm/api/types/PostSearch.mjs +21 -0
- package/esm/api/types/PostStatus.d.mts +8 -0
- package/esm/api/types/PostStatus.mjs +8 -0
- package/esm/api/types/PostWithRelations.d.mts +68 -0
- package/esm/api/types/PostWithRelations.mjs +33 -0
- package/esm/api/types/PresignedPost.d.mts +11 -0
- package/esm/api/types/PresignedPost.mjs +7 -0
- package/esm/api/types/SocialAccount.d.mts +20 -0
- package/esm/api/types/SocialAccount.mjs +8 -0
- package/esm/api/types/SocialAccountDisconnectedReason.d.mts +9 -0
- package/esm/api/types/SocialAccountDisconnectedReason.mjs +9 -0
- package/esm/api/types/SocialAccountPublic.d.mts +17 -0
- package/esm/api/types/SocialAccountPublic.mjs +8 -0
- package/esm/api/types/SocialAccountUpdate.d.mts +11 -0
- package/esm/api/types/SocialAccountUpdate.mjs +8 -0
- package/esm/api/types/SocialPlatform.d.mts +14 -0
- package/esm/api/types/SocialPlatform.mjs +14 -0
- package/esm/api/types/Tag.d.mts +7 -0
- package/esm/api/types/Tag.mjs +2 -0
- package/esm/api/types/TagSearch.d.mts +4 -0
- package/esm/api/types/TagSearch.mjs +2 -0
- package/esm/api/types/TagUpsert.d.mts +5 -0
- package/esm/api/types/TagUpsert.mjs +2 -0
- package/esm/api/types/index.d.mts +24 -0
- package/esm/api/types/index.mjs +24 -0
- package/esm/auth/HeaderAuthProvider.d.mts +20 -0
- package/esm/auth/HeaderAuthProvider.mjs +43 -0
- package/esm/auth/index.d.mts +1 -0
- package/esm/auth/index.mjs +1 -0
- package/esm/core/auth/AuthProvider.d.mts +8 -0
- package/esm/core/auth/AuthProvider.mjs +6 -0
- package/esm/core/auth/AuthRequest.d.mts +9 -0
- package/esm/core/auth/AuthRequest.mjs +1 -0
- package/esm/core/auth/BasicAuth.d.mts +8 -0
- package/esm/core/auth/BasicAuth.mjs +30 -0
- package/esm/core/auth/BearerToken.d.mts +7 -0
- package/esm/core/auth/BearerToken.mjs +13 -0
- package/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
- package/esm/core/auth/NoOpAuthProvider.mjs +5 -0
- package/esm/core/auth/index.d.mts +5 -0
- package/esm/core/auth/index.mjs +4 -0
- package/esm/core/base64.d.mts +2 -0
- package/esm/core/base64.mjs +22 -0
- package/esm/core/exports.d.mts +1 -0
- package/esm/core/exports.mjs +1 -0
- package/esm/core/fetcher/APIResponse.d.mts +20 -0
- package/esm/core/fetcher/APIResponse.mjs +1 -0
- package/esm/core/fetcher/BinaryResponse.d.mts +19 -0
- package/esm/core/fetcher/BinaryResponse.mjs +14 -0
- package/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
- package/esm/core/fetcher/EndpointMetadata.mjs +1 -0
- package/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
- package/esm/core/fetcher/EndpointSupplier.mjs +19 -0
- package/esm/core/fetcher/Fetcher.d.mts +56 -0
- package/esm/core/fetcher/Fetcher.mjs +323 -0
- package/esm/core/fetcher/Headers.d.mts +2 -0
- package/esm/core/fetcher/Headers.mjs +82 -0
- package/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
- package/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
- package/esm/core/fetcher/RawResponse.d.mts +29 -0
- package/esm/core/fetcher/RawResponse.mjs +40 -0
- package/esm/core/fetcher/Supplier.d.mts +4 -0
- package/esm/core/fetcher/Supplier.mjs +19 -0
- package/esm/core/fetcher/createRequestUrl.d.mts +1 -0
- package/esm/core/fetcher/createRequestUrl.mjs +5 -0
- package/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
- package/esm/core/fetcher/getErrorResponseBody.mjs +42 -0
- package/esm/core/fetcher/getFetchFn.d.mts +1 -0
- package/esm/core/fetcher/getFetchFn.mjs +14 -0
- package/esm/core/fetcher/getHeader.d.mts +1 -0
- package/esm/core/fetcher/getHeader.mjs +8 -0
- package/esm/core/fetcher/getRequestBody.d.mts +7 -0
- package/esm/core/fetcher/getRequestBody.mjs +24 -0
- package/esm/core/fetcher/getResponseBody.d.mts +1 -0
- package/esm/core/fetcher/getResponseBody.mjs +77 -0
- package/esm/core/fetcher/index.d.mts +13 -0
- package/esm/core/fetcher/index.mjs +7 -0
- package/esm/core/fetcher/makePassthroughRequest.d.mts +49 -0
- package/esm/core/fetcher/makePassthroughRequest.mjs +132 -0
- package/esm/core/fetcher/makeRequest.d.mts +6 -0
- package/esm/core/fetcher/makeRequest.mjs +55 -0
- package/esm/core/fetcher/requestWithRetries.d.mts +1 -0
- package/esm/core/fetcher/requestWithRetries.mjs +67 -0
- package/esm/core/fetcher/signals.d.mts +5 -0
- package/esm/core/fetcher/signals.mjs +28 -0
- package/esm/core/headers.d.mts +2 -0
- package/esm/core/headers.mjs +27 -0
- package/esm/core/index.d.mts +6 -0
- package/esm/core/index.mjs +6 -0
- package/esm/core/json.d.mts +15 -0
- package/esm/core/json.mjs +19 -0
- package/esm/core/logging/exports.d.mts +18 -0
- package/esm/core/logging/exports.mjs +9 -0
- package/esm/core/logging/index.d.mts +1 -0
- package/esm/core/logging/index.mjs +1 -0
- package/esm/core/logging/logger.d.mts +126 -0
- package/esm/core/logging/logger.mjs +138 -0
- package/esm/core/runtime/index.d.mts +1 -0
- package/esm/core/runtime/index.mjs +1 -0
- package/esm/core/runtime/runtime.d.mts +9 -0
- package/esm/core/runtime/runtime.mjs +101 -0
- package/esm/core/url/QueryStringBuilder.d.mts +47 -0
- package/esm/core/url/QueryStringBuilder.mjs +80 -0
- package/esm/core/url/encodePathParam.d.mts +1 -0
- package/esm/core/url/encodePathParam.mjs +18 -0
- package/esm/core/url/index.d.mts +4 -0
- package/esm/core/url/index.mjs +4 -0
- package/esm/core/url/join.d.mts +1 -0
- package/esm/core/url/join.mjs +65 -0
- package/esm/core/url/qs.d.mts +7 -0
- package/esm/core/url/qs.mjs +73 -0
- package/esm/environments.d.mts +4 -0
- package/esm/environments.mjs +4 -0
- package/esm/errors/SchedulinError.d.mts +14 -0
- package/esm/errors/SchedulinError.mjs +31 -0
- package/esm/errors/SchedulinTimeoutError.d.mts +6 -0
- package/esm/errors/SchedulinTimeoutError.mjs +14 -0
- package/esm/errors/handleNonStatusCodeError.d.mts +2 -0
- package/esm/errors/handleNonStatusCodeError.mjs +32 -0
- package/esm/errors/index.d.mts +2 -0
- package/esm/errors/index.mjs +2 -0
- package/esm/exports.d.mts +1 -0
- package/esm/exports.mjs +1 -0
- package/esm/index.d.mts +6 -0
- package/esm/index.mjs +5 -0
- package/package.json +44 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListSocialAccountsResponse = void 0;
|
|
5
|
+
var ListSocialAccountsResponse;
|
|
6
|
+
(function (ListSocialAccountsResponse) {
|
|
7
|
+
let Data;
|
|
8
|
+
(function (Data) {
|
|
9
|
+
let Item;
|
|
10
|
+
(function (Item) {
|
|
11
|
+
Item.Platform = {
|
|
12
|
+
Bluesky: "bluesky",
|
|
13
|
+
Facebook: "facebook",
|
|
14
|
+
GoogleBusinessProfile: "google_business_profile",
|
|
15
|
+
Instagram: "instagram",
|
|
16
|
+
Linkedin: "linkedin",
|
|
17
|
+
Pinterest: "pinterest",
|
|
18
|
+
Reddit: "reddit",
|
|
19
|
+
Threads: "threads",
|
|
20
|
+
Tiktok: "tiktok",
|
|
21
|
+
Twitter: "twitter",
|
|
22
|
+
Youtube: "youtube",
|
|
23
|
+
};
|
|
24
|
+
Item.Status = {
|
|
25
|
+
Connected: "connected",
|
|
26
|
+
Disconnected: "disconnected",
|
|
27
|
+
};
|
|
28
|
+
})(Item = Data.Item || (Data.Item = {}));
|
|
29
|
+
})(Data = ListSocialAccountsResponse.Data || (ListSocialAccountsResponse.Data = {}));
|
|
30
|
+
})(ListSocialAccountsResponse || (exports.ListSocialAccountsResponse = ListSocialAccountsResponse = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface PinterestBoardsSocialAccountsResponse {
|
|
2
|
+
data: PinterestBoardsSocialAccountsResponse.Data.Item[];
|
|
3
|
+
}
|
|
4
|
+
export declare namespace PinterestBoardsSocialAccountsResponse {
|
|
5
|
+
type Data = Data.Item[];
|
|
6
|
+
namespace Data {
|
|
7
|
+
interface Item {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
privacy?: Item.Privacy | undefined;
|
|
11
|
+
}
|
|
12
|
+
namespace Item {
|
|
13
|
+
const Privacy: {
|
|
14
|
+
readonly Public: "PUBLIC";
|
|
15
|
+
readonly Protected: "PROTECTED";
|
|
16
|
+
readonly Secret: "SECRET";
|
|
17
|
+
};
|
|
18
|
+
type Privacy = (typeof Privacy)[keyof typeof Privacy];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PinterestBoardsSocialAccountsResponse = void 0;
|
|
5
|
+
var PinterestBoardsSocialAccountsResponse;
|
|
6
|
+
(function (PinterestBoardsSocialAccountsResponse) {
|
|
7
|
+
let Data;
|
|
8
|
+
(function (Data) {
|
|
9
|
+
let Item;
|
|
10
|
+
(function (Item) {
|
|
11
|
+
Item.Privacy = {
|
|
12
|
+
Public: "PUBLIC",
|
|
13
|
+
Protected: "PROTECTED",
|
|
14
|
+
Secret: "SECRET",
|
|
15
|
+
};
|
|
16
|
+
})(Item = Data.Item || (Data.Item = {}));
|
|
17
|
+
})(Data = PinterestBoardsSocialAccountsResponse.Data || (PinterestBoardsSocialAccountsResponse.Data = {}));
|
|
18
|
+
})(PinterestBoardsSocialAccountsResponse || (exports.PinterestBoardsSocialAccountsResponse = PinterestBoardsSocialAccountsResponse = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface TiktokCreatorInfoSocialAccountsResponse {
|
|
2
|
+
error: TiktokCreatorInfoSocialAccountsResponse.Error_;
|
|
3
|
+
data: TiktokCreatorInfoSocialAccountsResponse.Data;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace TiktokCreatorInfoSocialAccountsResponse {
|
|
6
|
+
interface Error_ {
|
|
7
|
+
code: string;
|
|
8
|
+
message: string;
|
|
9
|
+
log_id: string;
|
|
10
|
+
}
|
|
11
|
+
interface Data {
|
|
12
|
+
creator_avatar_url: string;
|
|
13
|
+
creator_username: string;
|
|
14
|
+
creator_nickname: string;
|
|
15
|
+
privacy_level_options: string[];
|
|
16
|
+
comment_disabled: boolean;
|
|
17
|
+
duet_disabled: boolean;
|
|
18
|
+
stitch_disabled: boolean;
|
|
19
|
+
max_video_post_duration_sec: number;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./DeleteSocialAccountsResponse.js";
|
|
2
|
+
export * from "./ListSocialAccountsResponse.js";
|
|
3
|
+
export * from "./PinterestBoardsSocialAccountsResponse.js";
|
|
4
|
+
export * from "./TiktokCreatorInfoSocialAccountsResponse.js";
|
|
5
|
+
export * from "./UpdateSocialAccountsResponse.js";
|
|
6
|
+
export * from "./UpdateTimezoneSocialAccountsResponse.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DeleteSocialAccountsResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./ListSocialAccountsResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./PinterestBoardsSocialAccountsResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./TiktokCreatorInfoSocialAccountsResponse.js"), exports);
|
|
21
|
+
__exportStar(require("./UpdateSocialAccountsResponse.js"), exports);
|
|
22
|
+
__exportStar(require("./UpdateTimezoneSocialAccountsResponse.js"), exports);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Schedulin from "../../../index.js";
|
|
5
|
+
export declare namespace TagsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class TagsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<TagsClient.Options>;
|
|
12
|
+
constructor(options: TagsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve a list of tags for the authenticated user with optional search filtering
|
|
15
|
+
*
|
|
16
|
+
* @param {Schedulin.ListTagsRequest} request
|
|
17
|
+
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
20
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* await client.tags.list()
|
|
24
|
+
*/
|
|
25
|
+
list(request?: Schedulin.ListTagsRequest, requestOptions?: TagsClient.RequestOptions): core.HttpResponsePromise<Schedulin.ListTagsResponse>;
|
|
26
|
+
private __list;
|
|
27
|
+
/**
|
|
28
|
+
* Create a new tag. Users can have up to 5 tags.
|
|
29
|
+
*
|
|
30
|
+
* @param {Schedulin.CreateTagsRequest} request
|
|
31
|
+
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
|
+
*
|
|
33
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
34
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* await client.tags.create({
|
|
38
|
+
* name: "name",
|
|
39
|
+
* color: "color"
|
|
40
|
+
* })
|
|
41
|
+
*/
|
|
42
|
+
create(request: Schedulin.CreateTagsRequest, requestOptions?: TagsClient.RequestOptions): core.HttpResponsePromise<Schedulin.Tag>;
|
|
43
|
+
private __create;
|
|
44
|
+
/**
|
|
45
|
+
* Update an existing tag by its ID. Only the tag owner can update their tags.
|
|
46
|
+
*
|
|
47
|
+
* @param {Schedulin.UpdateTagsRequest} request
|
|
48
|
+
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
51
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* await client.tags.update({
|
|
55
|
+
* id: "id",
|
|
56
|
+
* name: "name",
|
|
57
|
+
* color: "color"
|
|
58
|
+
* })
|
|
59
|
+
*/
|
|
60
|
+
update(request: Schedulin.UpdateTagsRequest, requestOptions?: TagsClient.RequestOptions): core.HttpResponsePromise<Schedulin.Tag>;
|
|
61
|
+
private __update;
|
|
62
|
+
/**
|
|
63
|
+
* Delete a tag by its ID. Only the tag owner can delete their tags.
|
|
64
|
+
*
|
|
65
|
+
* @param {Schedulin.DeleteTagsRequest} request
|
|
66
|
+
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
69
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* await client.tags.delete({
|
|
73
|
+
* id: "id"
|
|
74
|
+
* })
|
|
75
|
+
*/
|
|
76
|
+
delete(request: Schedulin.DeleteTagsRequest, requestOptions?: TagsClient.RequestOptions): core.HttpResponsePromise<Schedulin.Tag>;
|
|
77
|
+
private __delete;
|
|
78
|
+
}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
56
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
+
exports.TagsClient = void 0;
|
|
58
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
59
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
60
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
61
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
62
|
+
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
63
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
64
|
+
const Schedulin = __importStar(require("../../../index.js"));
|
|
65
|
+
class TagsClient {
|
|
66
|
+
constructor(options) {
|
|
67
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Retrieve a list of tags for the authenticated user with optional search filtering
|
|
71
|
+
*
|
|
72
|
+
* @param {Schedulin.ListTagsRequest} request
|
|
73
|
+
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
76
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* await client.tags.list()
|
|
80
|
+
*/
|
|
81
|
+
list(request = {}, requestOptions) {
|
|
82
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
83
|
+
}
|
|
84
|
+
__list() {
|
|
85
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
86
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
87
|
+
const { q, limit } = request;
|
|
88
|
+
const _queryParams = {
|
|
89
|
+
q,
|
|
90
|
+
limit,
|
|
91
|
+
};
|
|
92
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
93
|
+
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);
|
|
94
|
+
const _response = yield core.fetcher({
|
|
95
|
+
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/tags"),
|
|
96
|
+
method: "GET",
|
|
97
|
+
headers: _headers,
|
|
98
|
+
queryString: core.url
|
|
99
|
+
.queryBuilder()
|
|
100
|
+
.addMany(_queryParams)
|
|
101
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
102
|
+
.build(),
|
|
103
|
+
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,
|
|
104
|
+
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,
|
|
105
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
106
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
107
|
+
logging: this._options.logging,
|
|
108
|
+
});
|
|
109
|
+
if (_response.ok) {
|
|
110
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
111
|
+
}
|
|
112
|
+
if (_response.error.reason === "status-code") {
|
|
113
|
+
switch (_response.error.statusCode) {
|
|
114
|
+
case 401:
|
|
115
|
+
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
116
|
+
case 500:
|
|
117
|
+
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
118
|
+
default:
|
|
119
|
+
throw new errors.SchedulinError({
|
|
120
|
+
statusCode: _response.error.statusCode,
|
|
121
|
+
body: _response.error.body,
|
|
122
|
+
rawResponse: _response.rawResponse,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/tags");
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Create a new tag. Users can have up to 5 tags.
|
|
131
|
+
*
|
|
132
|
+
* @param {Schedulin.CreateTagsRequest} request
|
|
133
|
+
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
136
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* await client.tags.create({
|
|
140
|
+
* name: "name",
|
|
141
|
+
* color: "color"
|
|
142
|
+
* })
|
|
143
|
+
*/
|
|
144
|
+
create(request, requestOptions) {
|
|
145
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
146
|
+
}
|
|
147
|
+
__create(request, requestOptions) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
150
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
151
|
+
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);
|
|
152
|
+
const _response = yield core.fetcher({
|
|
153
|
+
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/tags"),
|
|
154
|
+
method: "POST",
|
|
155
|
+
headers: _headers,
|
|
156
|
+
contentType: "application/json",
|
|
157
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
158
|
+
requestType: "json",
|
|
159
|
+
body: request,
|
|
160
|
+
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
|
+
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
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
163
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
164
|
+
logging: this._options.logging,
|
|
165
|
+
});
|
|
166
|
+
if (_response.ok) {
|
|
167
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
168
|
+
}
|
|
169
|
+
if (_response.error.reason === "status-code") {
|
|
170
|
+
switch (_response.error.statusCode) {
|
|
171
|
+
case 401:
|
|
172
|
+
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
173
|
+
case 500:
|
|
174
|
+
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
175
|
+
default:
|
|
176
|
+
throw new errors.SchedulinError({
|
|
177
|
+
statusCode: _response.error.statusCode,
|
|
178
|
+
body: _response.error.body,
|
|
179
|
+
rawResponse: _response.rawResponse,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v0/tags");
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Update an existing tag by its ID. Only the tag owner can update their tags.
|
|
188
|
+
*
|
|
189
|
+
* @param {Schedulin.UpdateTagsRequest} request
|
|
190
|
+
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
|
+
*
|
|
192
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
193
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* await client.tags.update({
|
|
197
|
+
* id: "id",
|
|
198
|
+
* name: "name",
|
|
199
|
+
* color: "color"
|
|
200
|
+
* })
|
|
201
|
+
*/
|
|
202
|
+
update(request, requestOptions) {
|
|
203
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
204
|
+
}
|
|
205
|
+
__update(request, requestOptions) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
208
|
+
const { id } = request, _body = __rest(request, ["id"]);
|
|
209
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
210
|
+
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);
|
|
211
|
+
const _response = yield core.fetcher({
|
|
212
|
+
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/tags/${core.url.encodePathParam(id)}`),
|
|
213
|
+
method: "PUT",
|
|
214
|
+
headers: _headers,
|
|
215
|
+
contentType: "application/json",
|
|
216
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
217
|
+
requestType: "json",
|
|
218
|
+
body: _body,
|
|
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 { data: _response.body, rawResponse: _response.rawResponse };
|
|
227
|
+
}
|
|
228
|
+
if (_response.error.reason === "status-code") {
|
|
229
|
+
switch (_response.error.statusCode) {
|
|
230
|
+
case 401:
|
|
231
|
+
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
232
|
+
case 500:
|
|
233
|
+
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
234
|
+
default:
|
|
235
|
+
throw new errors.SchedulinError({
|
|
236
|
+
statusCode: _response.error.statusCode,
|
|
237
|
+
body: _response.error.body,
|
|
238
|
+
rawResponse: _response.rawResponse,
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/v0/tags/{id}");
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Delete a tag by its ID. Only the tag owner can delete their tags.
|
|
247
|
+
*
|
|
248
|
+
* @param {Schedulin.DeleteTagsRequest} request
|
|
249
|
+
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
250
|
+
*
|
|
251
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
252
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* await client.tags.delete({
|
|
256
|
+
* id: "id"
|
|
257
|
+
* })
|
|
258
|
+
*/
|
|
259
|
+
delete(request, requestOptions) {
|
|
260
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
|
|
261
|
+
}
|
|
262
|
+
__delete(request, requestOptions) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
265
|
+
const { id } = request, _body = __rest(request, ["id"]);
|
|
266
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
267
|
+
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);
|
|
268
|
+
const _response = yield core.fetcher({
|
|
269
|
+
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/tags/${core.url.encodePathParam(id)}`),
|
|
270
|
+
method: "DELETE",
|
|
271
|
+
headers: _headers,
|
|
272
|
+
contentType: "application/json",
|
|
273
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
274
|
+
requestType: "json",
|
|
275
|
+
body: _body,
|
|
276
|
+
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,
|
|
277
|
+
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,
|
|
278
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
279
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
280
|
+
logging: this._options.logging,
|
|
281
|
+
});
|
|
282
|
+
if (_response.ok) {
|
|
283
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
284
|
+
}
|
|
285
|
+
if (_response.error.reason === "status-code") {
|
|
286
|
+
switch (_response.error.statusCode) {
|
|
287
|
+
case 401:
|
|
288
|
+
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
289
|
+
case 500:
|
|
290
|
+
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
291
|
+
default:
|
|
292
|
+
throw new errors.SchedulinError({
|
|
293
|
+
statusCode: _response.error.statusCode,
|
|
294
|
+
body: _response.error.body,
|
|
295
|
+
rawResponse: _response.rawResponse,
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v0/tags/{id}");
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
exports.TagsClient = TagsClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|