@rezamirzapour/pod-sdk 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +21 -39
- package/dist/index.d.ts +21 -39
- package/dist/index.js +8 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -134,46 +134,29 @@ declare class SsoService {
|
|
|
134
134
|
/**
|
|
135
135
|
* Types for Captcha service
|
|
136
136
|
*/
|
|
137
|
-
interface GenerateCaptchaOptions {
|
|
138
|
-
/** Width of captcha image (default: 200) */
|
|
139
|
-
width?: number;
|
|
140
|
-
/** Height of captcha image (default: 80) */
|
|
141
|
-
height?: number;
|
|
142
|
-
/** Length of captcha code (default: 5) */
|
|
143
|
-
length?: number;
|
|
144
|
-
/** Type of captcha (e.g., 'numeric', 'alphanumeric') */
|
|
145
|
-
type?: string;
|
|
146
|
-
/** Output format: 'svg' or 'png' (default: 'svg') */
|
|
147
|
-
format?: 'svg' | 'png';
|
|
148
|
-
/** Add noise to image (default: true) */
|
|
149
|
-
noise?: boolean;
|
|
150
|
-
/** Background color (hex) */
|
|
151
|
-
bgColor?: string;
|
|
152
|
-
/** Font color (hex) */
|
|
153
|
-
fontColor?: string;
|
|
154
|
-
/** Font size */
|
|
155
|
-
fontSize?: number;
|
|
156
|
-
}
|
|
157
137
|
interface GenerateCaptchaResponse {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
138
|
+
referenceNumber: number;
|
|
139
|
+
hasError: boolean;
|
|
140
|
+
errorCode: number;
|
|
141
|
+
refId: string;
|
|
142
|
+
message: any[];
|
|
143
|
+
count: number;
|
|
144
|
+
aggregations: number;
|
|
145
|
+
result: ResultData;
|
|
146
|
+
metaData: any[];
|
|
147
|
+
}
|
|
148
|
+
interface ResultData {
|
|
149
|
+
hash: string;
|
|
150
|
+
expireTime: number;
|
|
151
|
+
challenge: string;
|
|
152
|
+
url: string;
|
|
166
153
|
}
|
|
167
154
|
interface CheckCaptchaOptions {
|
|
168
155
|
/** The captcha value entered by user */
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
interface CheckCaptchaResponse {
|
|
172
|
-
/** Whether captcha is valid */
|
|
173
|
-
valid: boolean;
|
|
174
|
-
/** Optional message */
|
|
175
|
-
message?: string;
|
|
156
|
+
value: string;
|
|
157
|
+
hash: string;
|
|
176
158
|
}
|
|
159
|
+
type CheckCaptchaResponse = boolean;
|
|
177
160
|
|
|
178
161
|
interface CaptchaServiceOptions {
|
|
179
162
|
baseUrl: string;
|
|
@@ -183,16 +166,15 @@ interface CaptchaServiceOptions {
|
|
|
183
166
|
declare class CaptchaService {
|
|
184
167
|
private http;
|
|
185
168
|
private clientId;
|
|
186
|
-
private accessToken;
|
|
187
169
|
constructor(options: CaptchaServiceOptions);
|
|
188
170
|
/**
|
|
189
171
|
* Get a new captcha image
|
|
190
172
|
*/
|
|
191
|
-
get(
|
|
173
|
+
get(): Promise<PodResponse<GenerateCaptchaResponse>>;
|
|
192
174
|
/**
|
|
193
175
|
* Check if the entered captcha value is valid
|
|
194
176
|
*/
|
|
195
|
-
check(
|
|
177
|
+
check(options: CheckCaptchaOptions): Promise<PodResponse<CheckCaptchaResponse>>;
|
|
196
178
|
}
|
|
197
179
|
|
|
198
180
|
interface SearchTimelineParamMetaQuery<T extends object = any> {
|
|
@@ -3427,4 +3409,4 @@ declare function resolvePodUrls(urls?: PodUrlsConfig, sandbox?: boolean): Requir
|
|
|
3427
3409
|
declare function encodeBase64(str: string): string;
|
|
3428
3410
|
declare function generatePodSignatureHeader(keyId: string, privateKeyPem?: string): Promise<string>;
|
|
3429
3411
|
|
|
3430
|
-
export { type AccessLevel, type AddCommentParams, type AddContentParams, type AddCustomPostParams, type AddCustomPostResponse, type AddProductParams, type ApiPageLink, type ApiPageList, type ApiSimplePageList, type ArchiveParams, type ArchiveProductParams, type BatchPublishParams, type BatchPublishProductParams, type BatchUnpublishParams, type BatchUnpublishProductParams, type Business, type CachePolicy, CaptchaService, type CaptchaServiceOptions, type CheckCaptchaOptions, type CheckCaptchaResponse, CmsDataFormatter, type CmsMetadata, CmsProductService, type CmsProductServiceOptions, type CmsRequestOptions, CmsService, type CmsServiceOptions, CmsTagService, type CmsTagServiceOptions, type CommentItem, type ContentBody, type CreateFolderParams, type CreateLinkParams, type CreateTagCategoryParams, type CreateTagTreeItemParams, type CreateUserGroupParams, type CreateWorkspaceParams, type CustomPostCrudConfig, CustomPostCrudService, type CustomPostItem, CustomPostService, type CustomPostServiceOptions, DEFAULT_POD_URLS, type DownloadFileParams, type DownloadImageParams, type DownloadThumbnailParams, type DownloadZipParams, type EditContentParams, type EditProductParams, type FileVersion, type FinalizeResumableParams, type FormattedGetContentResponse, type FormattedGetProductResponse, type FormattedProductSubject, type FormattedSubject, type
|
|
3412
|
+
export { type AccessLevel, type AddCommentParams, type AddContentParams, type AddCustomPostParams, type AddCustomPostResponse, type AddProductParams, type ApiPageLink, type ApiPageList, type ApiSimplePageList, type ArchiveParams, type ArchiveProductParams, type BatchPublishParams, type BatchPublishProductParams, type BatchUnpublishParams, type BatchUnpublishProductParams, type Business, type CachePolicy, CaptchaService, type CaptchaServiceOptions, type CheckCaptchaOptions, type CheckCaptchaResponse, CmsDataFormatter, type CmsMetadata, CmsProductService, type CmsProductServiceOptions, type CmsRequestOptions, CmsService, type CmsServiceOptions, CmsTagService, type CmsTagServiceOptions, type CommentItem, type ContentBody, type CreateFolderParams, type CreateLinkParams, type CreateTagCategoryParams, type CreateTagTreeItemParams, type CreateUserGroupParams, type CreateWorkspaceParams, type CustomPostCrudConfig, CustomPostCrudService, type CustomPostItem, CustomPostService, type CustomPostServiceOptions, DEFAULT_POD_URLS, type DownloadFileParams, type DownloadImageParams, type DownloadThumbnailParams, type DownloadZipParams, type EditContentParams, type EditProductParams, type FileVersion, type FinalizeResumableParams, type FormattedGetContentResponse, type FormattedGetProductResponse, type FormattedProductSubject, type FormattedSubject, type GenerateCaptchaResponse, type GetBookmarksParams, type GetCategoriesParams, type GetCategoryResponse, type GetCommentListParams, type GetCommentsParams, type GetContentByEntityIdParams, type GetContentParams, type GetContentResponse, type GetCustomPostParams, type GetCustomPostResponse, type GetFolderChildrenParams, type GetInfOfGraduatedByGraduateDateResponse, type GetProductByEntityIdParams, type GetProductParams, type GetProductResponse, type GetReactionsParams, type GetSessionClassInCurrentDayResponse, type GetTagCategoriesResponse, type GetTagTreeParams, type GetTagTreeResponse, type GetUploadLinkParams, type HandshakeResponse, type IumsResponse, IumsService, type IumsServiceOptions, type LikeCommentParams, type LikePostParams, type MakePublicParams, type MetaContent, type Metadata, NotificationService, type NotificationServiceOptions, type PaginationParams, type PodFormCreationDto, type PodFormDownloadLinkParams, type PodFormExportParams, type PodFormField, type PodFormFolderDto, type PodFormGetParams, type PodFormId, type PodFormItem, type PodFormJson, type PodFormListParams, type PodFormOtpParams, type PodFormPaymentListParams, type PodFormPreviewParams, type PodFormRequestOptions, type PodFormResponse, type PodFormResponseCreationDto, type PodFormResponseInitiationDto, type PodFormResponseListParams, PodFormService, type PodFormServiceOptions, type PodFormSettingsUpdateDto, type PodFormTemplateDto, type PodFormUpdateDto, type PodResponse, PodSdk, type PodSdkConfig, type PodUrlsConfig, PodspaceBookmarksService, type PodspaceBookmarksServiceOptions, PodspaceFilesService, type PodspaceFilesServiceOptions, PodspaceFoldersService, type PodspaceFoldersServiceOptions, PodspaceLinksService, type PodspaceLinksServiceOptions, PodspaceMeService, type PodspaceMeServiceOptions, PodspaceMetadataService, type PodspaceMetadataServiceOptions, type PodspaceRequestOptions, type PodspaceRestResponse, PodspaceResumableService, type PodspaceResumableServiceOptions, PodspaceService, type PodspaceServiceOptions, PodspaceSharesService, type PodspaceSharesServiceOptions, PodspaceTagsService, type PodspaceTagsServiceOptions, PodspaceTrashService, type PodspaceTrashServiceOptions, PodspaceUploadDownloadService, type PodspaceUploadDownloadServiceOptions, type PodspaceUploadResponse, type PodspaceUploadResult, type PodspaceUser, PodspaceUserGroupsService, type PodspaceUserGroupsServiceOptions, PodspaceWorkspacesService, type PodspaceWorkspacesServiceOptions, type ProductBody, type ProductItem, type ProductItemWithFormatted, type Rate, type ReplaceFileParams, type ResultItem, type ResultItemWithFormatted, SANDBOX_POD_URLS, type SearchFilesParams, type SearchTimelineByMetadataParam, type SearchTimelineParamMetaQuery, type SearchTimelineResponse, type SearchTimelineResultItem, type SendOtpOptions, type SendSmsParams, type SendSmsResponse, type SeoType, type Share, type ShareAccess, type ShareEntityParams, type ShareType, type SocialResponse, SocialService, type SocialServiceOptions, type SpaceEntity, type SpaceFile, type SpaceFolder, SsoService, type SsoServiceOptions, type SsoUserProfile, type Subject, type TagCategoryItem, type TagCategoryListParams, type TagTreeAncestorsParams, type TagTreeMetadata, type TagtreesType, type ThumbnailStatus, type TimelineResponse, type TimelineSearchBody, type TokenResponse, type UpdateCustomPostParams, type UpdateLinkParams, type UpdateTagCategoryParams, type UpdateTagTreeItemParams, type UpdateWorkspaceParams, type UploadFileParams, type UploadImageBase64Params, type UploadMultipleFilesParams, type UserGroup, type UserPlan, type UserPostInfo, type UserUsageReport, type VerifyResponse, type Workspace, type WorkspaceMember, createPodSdk, PodSdk as default, encodeBase64, generatePodSignatureHeader, resolvePodUrls };
|
package/dist/index.d.ts
CHANGED
|
@@ -134,46 +134,29 @@ declare class SsoService {
|
|
|
134
134
|
/**
|
|
135
135
|
* Types for Captcha service
|
|
136
136
|
*/
|
|
137
|
-
interface GenerateCaptchaOptions {
|
|
138
|
-
/** Width of captcha image (default: 200) */
|
|
139
|
-
width?: number;
|
|
140
|
-
/** Height of captcha image (default: 80) */
|
|
141
|
-
height?: number;
|
|
142
|
-
/** Length of captcha code (default: 5) */
|
|
143
|
-
length?: number;
|
|
144
|
-
/** Type of captcha (e.g., 'numeric', 'alphanumeric') */
|
|
145
|
-
type?: string;
|
|
146
|
-
/** Output format: 'svg' or 'png' (default: 'svg') */
|
|
147
|
-
format?: 'svg' | 'png';
|
|
148
|
-
/** Add noise to image (default: true) */
|
|
149
|
-
noise?: boolean;
|
|
150
|
-
/** Background color (hex) */
|
|
151
|
-
bgColor?: string;
|
|
152
|
-
/** Font color (hex) */
|
|
153
|
-
fontColor?: string;
|
|
154
|
-
/** Font size */
|
|
155
|
-
fontSize?: number;
|
|
156
|
-
}
|
|
157
137
|
interface GenerateCaptchaResponse {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
138
|
+
referenceNumber: number;
|
|
139
|
+
hasError: boolean;
|
|
140
|
+
errorCode: number;
|
|
141
|
+
refId: string;
|
|
142
|
+
message: any[];
|
|
143
|
+
count: number;
|
|
144
|
+
aggregations: number;
|
|
145
|
+
result: ResultData;
|
|
146
|
+
metaData: any[];
|
|
147
|
+
}
|
|
148
|
+
interface ResultData {
|
|
149
|
+
hash: string;
|
|
150
|
+
expireTime: number;
|
|
151
|
+
challenge: string;
|
|
152
|
+
url: string;
|
|
166
153
|
}
|
|
167
154
|
interface CheckCaptchaOptions {
|
|
168
155
|
/** The captcha value entered by user */
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
interface CheckCaptchaResponse {
|
|
172
|
-
/** Whether captcha is valid */
|
|
173
|
-
valid: boolean;
|
|
174
|
-
/** Optional message */
|
|
175
|
-
message?: string;
|
|
156
|
+
value: string;
|
|
157
|
+
hash: string;
|
|
176
158
|
}
|
|
159
|
+
type CheckCaptchaResponse = boolean;
|
|
177
160
|
|
|
178
161
|
interface CaptchaServiceOptions {
|
|
179
162
|
baseUrl: string;
|
|
@@ -183,16 +166,15 @@ interface CaptchaServiceOptions {
|
|
|
183
166
|
declare class CaptchaService {
|
|
184
167
|
private http;
|
|
185
168
|
private clientId;
|
|
186
|
-
private accessToken;
|
|
187
169
|
constructor(options: CaptchaServiceOptions);
|
|
188
170
|
/**
|
|
189
171
|
* Get a new captcha image
|
|
190
172
|
*/
|
|
191
|
-
get(
|
|
173
|
+
get(): Promise<PodResponse<GenerateCaptchaResponse>>;
|
|
192
174
|
/**
|
|
193
175
|
* Check if the entered captcha value is valid
|
|
194
176
|
*/
|
|
195
|
-
check(
|
|
177
|
+
check(options: CheckCaptchaOptions): Promise<PodResponse<CheckCaptchaResponse>>;
|
|
196
178
|
}
|
|
197
179
|
|
|
198
180
|
interface SearchTimelineParamMetaQuery<T extends object = any> {
|
|
@@ -3427,4 +3409,4 @@ declare function resolvePodUrls(urls?: PodUrlsConfig, sandbox?: boolean): Requir
|
|
|
3427
3409
|
declare function encodeBase64(str: string): string;
|
|
3428
3410
|
declare function generatePodSignatureHeader(keyId: string, privateKeyPem?: string): Promise<string>;
|
|
3429
3411
|
|
|
3430
|
-
export { type AccessLevel, type AddCommentParams, type AddContentParams, type AddCustomPostParams, type AddCustomPostResponse, type AddProductParams, type ApiPageLink, type ApiPageList, type ApiSimplePageList, type ArchiveParams, type ArchiveProductParams, type BatchPublishParams, type BatchPublishProductParams, type BatchUnpublishParams, type BatchUnpublishProductParams, type Business, type CachePolicy, CaptchaService, type CaptchaServiceOptions, type CheckCaptchaOptions, type CheckCaptchaResponse, CmsDataFormatter, type CmsMetadata, CmsProductService, type CmsProductServiceOptions, type CmsRequestOptions, CmsService, type CmsServiceOptions, CmsTagService, type CmsTagServiceOptions, type CommentItem, type ContentBody, type CreateFolderParams, type CreateLinkParams, type CreateTagCategoryParams, type CreateTagTreeItemParams, type CreateUserGroupParams, type CreateWorkspaceParams, type CustomPostCrudConfig, CustomPostCrudService, type CustomPostItem, CustomPostService, type CustomPostServiceOptions, DEFAULT_POD_URLS, type DownloadFileParams, type DownloadImageParams, type DownloadThumbnailParams, type DownloadZipParams, type EditContentParams, type EditProductParams, type FileVersion, type FinalizeResumableParams, type FormattedGetContentResponse, type FormattedGetProductResponse, type FormattedProductSubject, type FormattedSubject, type
|
|
3412
|
+
export { type AccessLevel, type AddCommentParams, type AddContentParams, type AddCustomPostParams, type AddCustomPostResponse, type AddProductParams, type ApiPageLink, type ApiPageList, type ApiSimplePageList, type ArchiveParams, type ArchiveProductParams, type BatchPublishParams, type BatchPublishProductParams, type BatchUnpublishParams, type BatchUnpublishProductParams, type Business, type CachePolicy, CaptchaService, type CaptchaServiceOptions, type CheckCaptchaOptions, type CheckCaptchaResponse, CmsDataFormatter, type CmsMetadata, CmsProductService, type CmsProductServiceOptions, type CmsRequestOptions, CmsService, type CmsServiceOptions, CmsTagService, type CmsTagServiceOptions, type CommentItem, type ContentBody, type CreateFolderParams, type CreateLinkParams, type CreateTagCategoryParams, type CreateTagTreeItemParams, type CreateUserGroupParams, type CreateWorkspaceParams, type CustomPostCrudConfig, CustomPostCrudService, type CustomPostItem, CustomPostService, type CustomPostServiceOptions, DEFAULT_POD_URLS, type DownloadFileParams, type DownloadImageParams, type DownloadThumbnailParams, type DownloadZipParams, type EditContentParams, type EditProductParams, type FileVersion, type FinalizeResumableParams, type FormattedGetContentResponse, type FormattedGetProductResponse, type FormattedProductSubject, type FormattedSubject, type GenerateCaptchaResponse, type GetBookmarksParams, type GetCategoriesParams, type GetCategoryResponse, type GetCommentListParams, type GetCommentsParams, type GetContentByEntityIdParams, type GetContentParams, type GetContentResponse, type GetCustomPostParams, type GetCustomPostResponse, type GetFolderChildrenParams, type GetInfOfGraduatedByGraduateDateResponse, type GetProductByEntityIdParams, type GetProductParams, type GetProductResponse, type GetReactionsParams, type GetSessionClassInCurrentDayResponse, type GetTagCategoriesResponse, type GetTagTreeParams, type GetTagTreeResponse, type GetUploadLinkParams, type HandshakeResponse, type IumsResponse, IumsService, type IumsServiceOptions, type LikeCommentParams, type LikePostParams, type MakePublicParams, type MetaContent, type Metadata, NotificationService, type NotificationServiceOptions, type PaginationParams, type PodFormCreationDto, type PodFormDownloadLinkParams, type PodFormExportParams, type PodFormField, type PodFormFolderDto, type PodFormGetParams, type PodFormId, type PodFormItem, type PodFormJson, type PodFormListParams, type PodFormOtpParams, type PodFormPaymentListParams, type PodFormPreviewParams, type PodFormRequestOptions, type PodFormResponse, type PodFormResponseCreationDto, type PodFormResponseInitiationDto, type PodFormResponseListParams, PodFormService, type PodFormServiceOptions, type PodFormSettingsUpdateDto, type PodFormTemplateDto, type PodFormUpdateDto, type PodResponse, PodSdk, type PodSdkConfig, type PodUrlsConfig, PodspaceBookmarksService, type PodspaceBookmarksServiceOptions, PodspaceFilesService, type PodspaceFilesServiceOptions, PodspaceFoldersService, type PodspaceFoldersServiceOptions, PodspaceLinksService, type PodspaceLinksServiceOptions, PodspaceMeService, type PodspaceMeServiceOptions, PodspaceMetadataService, type PodspaceMetadataServiceOptions, type PodspaceRequestOptions, type PodspaceRestResponse, PodspaceResumableService, type PodspaceResumableServiceOptions, PodspaceService, type PodspaceServiceOptions, PodspaceSharesService, type PodspaceSharesServiceOptions, PodspaceTagsService, type PodspaceTagsServiceOptions, PodspaceTrashService, type PodspaceTrashServiceOptions, PodspaceUploadDownloadService, type PodspaceUploadDownloadServiceOptions, type PodspaceUploadResponse, type PodspaceUploadResult, type PodspaceUser, PodspaceUserGroupsService, type PodspaceUserGroupsServiceOptions, PodspaceWorkspacesService, type PodspaceWorkspacesServiceOptions, type ProductBody, type ProductItem, type ProductItemWithFormatted, type Rate, type ReplaceFileParams, type ResultItem, type ResultItemWithFormatted, SANDBOX_POD_URLS, type SearchFilesParams, type SearchTimelineByMetadataParam, type SearchTimelineParamMetaQuery, type SearchTimelineResponse, type SearchTimelineResultItem, type SendOtpOptions, type SendSmsParams, type SendSmsResponse, type SeoType, type Share, type ShareAccess, type ShareEntityParams, type ShareType, type SocialResponse, SocialService, type SocialServiceOptions, type SpaceEntity, type SpaceFile, type SpaceFolder, SsoService, type SsoServiceOptions, type SsoUserProfile, type Subject, type TagCategoryItem, type TagCategoryListParams, type TagTreeAncestorsParams, type TagTreeMetadata, type TagtreesType, type ThumbnailStatus, type TimelineResponse, type TimelineSearchBody, type TokenResponse, type UpdateCustomPostParams, type UpdateLinkParams, type UpdateTagCategoryParams, type UpdateTagTreeItemParams, type UpdateWorkspaceParams, type UploadFileParams, type UploadImageBase64Params, type UploadMultipleFilesParams, type UserGroup, type UserPlan, type UserPostInfo, type UserUsageReport, type VerifyResponse, type Workspace, type WorkspaceMember, createPodSdk, PodSdk as default, encodeBase64, generatePodSignatureHeader, resolvePodUrls };
|
package/dist/index.js
CHANGED
|
@@ -259,10 +259,8 @@ var SsoService = class {
|
|
|
259
259
|
var CaptchaService = class {
|
|
260
260
|
http;
|
|
261
261
|
clientId;
|
|
262
|
-
accessToken;
|
|
263
262
|
constructor(options) {
|
|
264
263
|
this.clientId = options.clientId;
|
|
265
|
-
this.accessToken = options.accessToken;
|
|
266
264
|
this.http = http.createNextHttp({
|
|
267
265
|
baseUrl: options.baseUrl,
|
|
268
266
|
serviceName: "POD-CAPTCHA"
|
|
@@ -271,28 +269,18 @@ var CaptchaService = class {
|
|
|
271
269
|
/**
|
|
272
270
|
* Get a new captcha image
|
|
273
271
|
*/
|
|
274
|
-
async get(
|
|
272
|
+
async get() {
|
|
275
273
|
const params = {};
|
|
276
|
-
if (options?.width) params.width = options.width;
|
|
277
|
-
if (options?.height) params.height = options.height;
|
|
278
|
-
if (options?.length) params.length = options.length;
|
|
279
|
-
if (options?.type) params.type = options.type;
|
|
280
|
-
if (options?.format) params.format = options.format;
|
|
281
|
-
if (options?.noise !== void 0) params.noise = options.noise;
|
|
282
|
-
if (options?.bgColor) params.bgColor = options.bgColor;
|
|
283
|
-
if (options?.fontColor) params.fontColor = options.fontColor;
|
|
284
|
-
if (options?.fontSize) params.fontSize = options.fontSize;
|
|
285
274
|
try {
|
|
286
275
|
const result = await this.http.post(
|
|
287
|
-
"/api/core/
|
|
276
|
+
"/api/core/captcha/get",
|
|
288
277
|
void 0,
|
|
289
278
|
{
|
|
290
279
|
params,
|
|
291
280
|
headers: {
|
|
292
281
|
"Content-Type": "application/json",
|
|
293
282
|
Accept: "application/json",
|
|
294
|
-
"Client-Id": this.clientId
|
|
295
|
-
"Access-Token": this.accessToken
|
|
283
|
+
"Client-Id": this.clientId
|
|
296
284
|
}
|
|
297
285
|
}
|
|
298
286
|
);
|
|
@@ -311,19 +299,19 @@ var CaptchaService = class {
|
|
|
311
299
|
/**
|
|
312
300
|
* Check if the entered captcha value is valid
|
|
313
301
|
*/
|
|
314
|
-
async check(
|
|
302
|
+
async check(options) {
|
|
315
303
|
try {
|
|
316
304
|
const result = await this.http.post(
|
|
317
|
-
`/api/core/
|
|
305
|
+
`/api/core/captcha/check`,
|
|
318
306
|
{
|
|
319
|
-
|
|
307
|
+
value: options.value,
|
|
308
|
+
hash: options.hash
|
|
320
309
|
},
|
|
321
310
|
{
|
|
322
311
|
headers: {
|
|
323
312
|
"Content-Type": "application/json",
|
|
324
313
|
Accept: "application/json",
|
|
325
|
-
"Client-Id": this.clientId
|
|
326
|
-
"Access-Token": this.accessToken
|
|
314
|
+
"Client-Id": this.clientId
|
|
327
315
|
}
|
|
328
316
|
}
|
|
329
317
|
);
|