@growi/sdk-typescript 1.0.0 → 1.2.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/CHANGELOG.md +14 -0
- package/dist/apiv1/index.d.ts +8 -5
- package/dist/apiv1/index.d.ts.map +1 -1
- package/dist/generated/v1/index.d.ts +14 -8
- package/dist/generated/v1/index.d.ts.map +1 -1
- package/dist/generated/v1/index.js +30 -6
- package/dist/generated/v1/index.js.map +1 -1
- package/dist/generated/v1/index.schemas.d.ts +132 -73
- package/dist/generated/v1/index.schemas.d.ts.map +1 -1
- package/dist/generated/v1/index.schemas.js +0 -4
- package/dist/generated/v1/index.schemas.js.map +1 -1
- package/dist/generated/v3/index.d.ts +1 -1
- package/dist/generated/v3/index.schemas.d.ts +45 -11
- package/dist/generated/v3/index.schemas.d.ts.map +1 -1
- package/dist/generated/v3/index.schemas.js.map +1 -1
- package/package.json +5 -3
- package/src/generated/v1/index.schemas.ts +153 -75
- package/src/generated/v1/index.ts +63 -20
- package/src/generated/v3/index.schemas.ts +51 -11
- package/src/generated/v3/index.ts +1 -1
- package/src/utils/axios-default-instance.test.ts +108 -0
- package/src/utils/v1/axios-instance.test.ts +250 -0
- package/src/utils/v3/axios-instance.test.ts +369 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval v7.9.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* GROWI REST API v1
|
|
5
|
-
* OpenAPI spec version: 7.2.
|
|
5
|
+
* OpenAPI spec version: 7.2.8-RC.0
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* The type for Comment.comment
|
|
@@ -30,37 +30,43 @@ export interface Comment {
|
|
|
30
30
|
createdAt?: string;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
export interface PageTagsData {
|
|
34
|
+
/** Array of tag names associated with the page */
|
|
35
|
+
tags?: string[];
|
|
36
|
+
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
38
|
+
export interface UpdatePostData {
|
|
39
|
+
/** Array of channel names for notifications */
|
|
40
|
+
updatePost?: string[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface PageRemoveData {
|
|
44
|
+
/** Path of the deleted page */
|
|
45
|
+
path: string;
|
|
46
|
+
/** Whether deletion was recursive */
|
|
47
|
+
isRecursively?: boolean;
|
|
48
|
+
/** Whether deletion was complete */
|
|
49
|
+
isCompletely?: boolean;
|
|
50
|
+
}
|
|
42
51
|
|
|
43
52
|
/**
|
|
44
|
-
*
|
|
53
|
+
* Restored page object
|
|
45
54
|
*/
|
|
46
|
-
export
|
|
47
|
-
/** update post ID */
|
|
55
|
+
export type PageRevertDataPage = {
|
|
48
56
|
_id?: string;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
/** date created at */
|
|
63
|
-
createdAt?: string;
|
|
57
|
+
path?: string;
|
|
58
|
+
title?: string;
|
|
59
|
+
status?: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export interface PageRevertData {
|
|
63
|
+
/** Restored page object */
|
|
64
|
+
page?: PageRevertDataPage;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface PageUnlinkData {
|
|
68
|
+
/** Path for which redirects were removed */
|
|
69
|
+
path?: string;
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
export interface ElasticsearchResultMeta {
|
|
@@ -345,38 +351,90 @@ export interface Tag {
|
|
|
345
351
|
count?: number;
|
|
346
352
|
}
|
|
347
353
|
|
|
354
|
+
export interface ApiResponseBase {
|
|
355
|
+
/** Indicates if the request was successful */
|
|
356
|
+
ok: boolean;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export type ApiResponseSuccessAllOf = {
|
|
360
|
+
/** Success indicator (always true for successful responses) */
|
|
361
|
+
ok?: boolean;
|
|
362
|
+
};
|
|
363
|
+
|
|
348
364
|
/**
|
|
349
|
-
* API
|
|
365
|
+
* Successful API response
|
|
350
366
|
*/
|
|
351
|
-
export type
|
|
367
|
+
export type ApiResponseSuccess = ApiResponseBase & ApiResponseSuccessAllOf;
|
|
352
368
|
|
|
353
369
|
/**
|
|
354
|
-
*
|
|
370
|
+
* Detailed error object
|
|
355
371
|
*/
|
|
356
|
-
export
|
|
357
|
-
|
|
358
|
-
|
|
372
|
+
export type ApiResponseErrorAllOfErrorOneOf = { [key: string]: unknown };
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Error message or error object containing details about the failure
|
|
376
|
+
*/
|
|
377
|
+
export type ApiResponseErrorAllOfError = string | ApiResponseErrorAllOfErrorOneOf;
|
|
378
|
+
|
|
379
|
+
export type ApiResponseErrorAllOf = {
|
|
380
|
+
/** Success indicator (always false for error responses) */
|
|
381
|
+
ok?: boolean;
|
|
382
|
+
/** Error message or error object containing details about the failure */
|
|
383
|
+
error?: ApiResponseErrorAllOfError;
|
|
384
|
+
};
|
|
359
385
|
|
|
360
386
|
/**
|
|
361
|
-
*
|
|
387
|
+
* Error API response
|
|
362
388
|
*/
|
|
363
|
-
export type
|
|
389
|
+
export type ApiResponseError = ApiResponseBase & ApiResponseErrorAllOf;
|
|
390
|
+
|
|
391
|
+
export type PageTagsSuccessResponse = ApiResponseSuccess & PageTagsData;
|
|
392
|
+
|
|
393
|
+
export type UpdatePostSuccessResponse = ApiResponseSuccess & UpdatePostData;
|
|
394
|
+
|
|
395
|
+
export type PageRemoveSuccessResponse = ApiResponseSuccess & PageRemoveData;
|
|
396
|
+
|
|
397
|
+
export type PageRevertSuccessResponse = ApiResponseSuccess & PageRevertData;
|
|
398
|
+
|
|
399
|
+
export type PageUnlinkSuccessResponse = ApiResponseSuccess & PageUnlinkData;
|
|
364
400
|
|
|
365
401
|
/**
|
|
366
|
-
*
|
|
402
|
+
* Bad request
|
|
367
403
|
*/
|
|
368
|
-
export type
|
|
404
|
+
export type BadRequestResponse = ApiResponseError;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Forbidden - insufficient permissions
|
|
408
|
+
*/
|
|
409
|
+
export type ForbiddenResponse = ApiResponseError;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Resource not found
|
|
413
|
+
*/
|
|
414
|
+
export type NotFoundResponse = ApiResponseError;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Conflict
|
|
418
|
+
*/
|
|
419
|
+
export type ConflictResponse = ApiResponseError;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Internal server error
|
|
423
|
+
*/
|
|
424
|
+
export type InternalServerErrorResponse = ApiResponseError;
|
|
369
425
|
|
|
370
426
|
export type GetCommentsParams = {
|
|
371
427
|
page_id?: ObjectId;
|
|
372
428
|
revision_id?: ObjectId;
|
|
373
429
|
};
|
|
374
430
|
|
|
375
|
-
export type
|
|
376
|
-
|
|
431
|
+
export type GetComments200AllOf = {
|
|
432
|
+
/** List of comments for the page revision */
|
|
377
433
|
comments?: Comment[];
|
|
378
434
|
};
|
|
379
435
|
|
|
436
|
+
export type GetComments200 = ApiResponseSuccess & GetComments200AllOf;
|
|
437
|
+
|
|
380
438
|
export type AddCommentBodyCommentForm = {
|
|
381
439
|
page_id?: ObjectId;
|
|
382
440
|
revision_id?: ObjectId;
|
|
@@ -388,11 +446,13 @@ export type AddCommentBody = {
|
|
|
388
446
|
commentForm: AddCommentBodyCommentForm;
|
|
389
447
|
};
|
|
390
448
|
|
|
391
|
-
export type
|
|
392
|
-
|
|
449
|
+
export type AddComment200AllOf = {
|
|
450
|
+
/** The newly created comment */
|
|
393
451
|
comment?: Comment;
|
|
394
452
|
};
|
|
395
453
|
|
|
454
|
+
export type AddComment200 = ApiResponseSuccess & AddComment200AllOf;
|
|
455
|
+
|
|
396
456
|
export type UpdateCommentBodyFormCommentForm = {
|
|
397
457
|
page_id?: ObjectId;
|
|
398
458
|
revision_id?: ObjectId;
|
|
@@ -408,20 +468,17 @@ export type UpdateCommentBody = {
|
|
|
408
468
|
form: UpdateCommentBodyForm;
|
|
409
469
|
};
|
|
410
470
|
|
|
411
|
-
export type
|
|
412
|
-
|
|
471
|
+
export type UpdateComment200AllOf = {
|
|
472
|
+
/** The updated comment */
|
|
413
473
|
comment?: Comment;
|
|
414
474
|
};
|
|
415
475
|
|
|
476
|
+
export type UpdateComment200 = ApiResponseSuccess & UpdateComment200AllOf;
|
|
477
|
+
|
|
416
478
|
export type RemoveCommentBody = {
|
|
417
479
|
comment_id: ObjectId;
|
|
418
480
|
};
|
|
419
481
|
|
|
420
|
-
export type RemoveComment200 = {
|
|
421
|
-
ok?: V1ResponseOK;
|
|
422
|
-
comment?: Comment;
|
|
423
|
-
};
|
|
424
|
-
|
|
425
482
|
export type PostLoginBodyLoginForm = {
|
|
426
483
|
username?: string;
|
|
427
484
|
password?: string;
|
|
@@ -451,21 +508,40 @@ export type PostRegister200 = {
|
|
|
451
508
|
};
|
|
452
509
|
|
|
453
510
|
export type GetPageTagParams = {
|
|
454
|
-
|
|
511
|
+
/**
|
|
512
|
+
* Unique identifier of the page
|
|
513
|
+
*/
|
|
514
|
+
pageId: string;
|
|
455
515
|
};
|
|
456
516
|
|
|
457
|
-
export type
|
|
458
|
-
|
|
459
|
-
|
|
517
|
+
export type GetUpdatePostParams = {
|
|
518
|
+
/**
|
|
519
|
+
* Page path to get UpdatePost settings for
|
|
520
|
+
*/
|
|
521
|
+
path: string;
|
|
460
522
|
};
|
|
461
523
|
|
|
462
|
-
export type
|
|
463
|
-
|
|
524
|
+
export type RemovePageBody = {
|
|
525
|
+
/** Unique identifier of the page to delete */
|
|
526
|
+
page_id: string;
|
|
527
|
+
/** Revision ID for conflict detection */
|
|
528
|
+
revision_id?: string;
|
|
529
|
+
/** Whether to delete the page completely (true) or soft delete (false) */
|
|
530
|
+
completely?: boolean;
|
|
531
|
+
/** Whether to delete child pages recursively */
|
|
532
|
+
recursively?: boolean;
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
export type RevertRemovePageBody = {
|
|
536
|
+
/** Unique identifier of the page to restore */
|
|
537
|
+
page_id: string;
|
|
538
|
+
/** Whether to restore child pages recursively */
|
|
539
|
+
recursively?: boolean;
|
|
464
540
|
};
|
|
465
541
|
|
|
466
|
-
export type
|
|
467
|
-
|
|
468
|
-
|
|
542
|
+
export type UnlinkPageBody = {
|
|
543
|
+
/** Target path to remove redirects for */
|
|
544
|
+
path: string;
|
|
469
545
|
};
|
|
470
546
|
|
|
471
547
|
export type SearchPagesParams = {
|
|
@@ -475,8 +551,8 @@ export type SearchPagesParams = {
|
|
|
475
551
|
limit?: Limit;
|
|
476
552
|
};
|
|
477
553
|
|
|
478
|
-
export type
|
|
479
|
-
|
|
554
|
+
export type SearchPages200AllOf = {
|
|
555
|
+
/** Elasticsearch metadata */
|
|
480
556
|
meta?: ElasticsearchResultMeta;
|
|
481
557
|
/** total count of pages */
|
|
482
558
|
totalCount?: number;
|
|
@@ -484,6 +560,8 @@ export type SearchPages200 = {
|
|
|
484
560
|
data?: Page[];
|
|
485
561
|
};
|
|
486
562
|
|
|
563
|
+
export type SearchPages200 = ApiResponseSuccess & SearchPages200AllOf;
|
|
564
|
+
|
|
487
565
|
export type SearchTagsParams = {
|
|
488
566
|
/**
|
|
489
567
|
* keyword to search
|
|
@@ -491,32 +569,38 @@ export type SearchTagsParams = {
|
|
|
491
569
|
q?: string;
|
|
492
570
|
};
|
|
493
571
|
|
|
494
|
-
export type
|
|
495
|
-
|
|
572
|
+
export type SearchTags200AllOf = {
|
|
573
|
+
/** List of matching tags */
|
|
496
574
|
tags?: Tags;
|
|
497
575
|
};
|
|
498
576
|
|
|
577
|
+
export type SearchTags200 = ApiResponseSuccess & SearchTags200AllOf;
|
|
578
|
+
|
|
499
579
|
export type UpdateTagBody = {
|
|
500
580
|
pageId?: ObjectId;
|
|
501
581
|
revisionId?: ObjectId;
|
|
502
582
|
tags?: Tags;
|
|
503
583
|
};
|
|
504
584
|
|
|
505
|
-
export type
|
|
506
|
-
|
|
585
|
+
export type UpdateTag200AllOf = {
|
|
586
|
+
/** Updated tags for the page */
|
|
507
587
|
tags?: Tags;
|
|
508
588
|
};
|
|
509
589
|
|
|
590
|
+
export type UpdateTag200 = ApiResponseSuccess & UpdateTag200AllOf;
|
|
591
|
+
|
|
510
592
|
export type ListTagsParams = {
|
|
511
593
|
limit?: Limit;
|
|
512
594
|
offset?: Offset;
|
|
513
595
|
};
|
|
514
596
|
|
|
515
|
-
export type
|
|
516
|
-
|
|
597
|
+
export type ListTags200AllOf = {
|
|
598
|
+
/** List of tags with count information */
|
|
517
599
|
data?: Tag[];
|
|
518
600
|
};
|
|
519
601
|
|
|
602
|
+
export type ListTags200 = ApiResponseSuccess & ListTags200AllOf;
|
|
603
|
+
|
|
520
604
|
export type UploadProfileImageBodyOne = {
|
|
521
605
|
/** attachment data */
|
|
522
606
|
file?: Blob;
|
|
@@ -531,24 +615,18 @@ export type UploadProfileImageBodyTwo = {
|
|
|
531
615
|
user?: string;
|
|
532
616
|
};
|
|
533
617
|
|
|
534
|
-
export type
|
|
535
|
-
|
|
618
|
+
export type UploadProfileImage200AllOf = {
|
|
619
|
+
/** The uploaded profile image attachment */
|
|
536
620
|
attachment?: AttachmentProfile;
|
|
537
621
|
};
|
|
538
622
|
|
|
623
|
+
export type UploadProfileImage200 = ApiResponseSuccess & UploadProfileImage200AllOf;
|
|
624
|
+
|
|
539
625
|
export type RemoveAttachmentBody = {
|
|
540
626
|
attachment_id: ObjectId;
|
|
541
627
|
};
|
|
542
628
|
|
|
543
|
-
export type RemoveAttachment200 = {
|
|
544
|
-
ok?: V1ResponseOK;
|
|
545
|
-
};
|
|
546
|
-
|
|
547
629
|
export type RemoveProfileImageBody = {
|
|
548
630
|
/** user to remove profile image */
|
|
549
631
|
user?: string;
|
|
550
632
|
};
|
|
551
|
-
|
|
552
|
-
export type RemoveProfileImage200 = {
|
|
553
|
-
ok?: V1ResponseOK;
|
|
554
|
-
};
|
|
@@ -2,35 +2,39 @@
|
|
|
2
2
|
* Generated by orval v7.9.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* GROWI REST API v1
|
|
5
|
-
* OpenAPI spec version: 7.2.
|
|
5
|
+
* OpenAPI spec version: 7.2.8-RC.0
|
|
6
6
|
*/
|
|
7
7
|
import type {
|
|
8
8
|
AddComment200,
|
|
9
9
|
AddCommentBody,
|
|
10
|
+
ApiResponseSuccess,
|
|
10
11
|
GetComments200,
|
|
11
12
|
GetCommentsParams,
|
|
12
|
-
GetPageTag200,
|
|
13
13
|
GetPageTagParams,
|
|
14
|
-
|
|
15
|
-
GetUpdatePostPageParams,
|
|
14
|
+
GetUpdatePostParams,
|
|
16
15
|
ListTags200,
|
|
17
16
|
ListTagsParams,
|
|
17
|
+
PageRemoveSuccessResponse,
|
|
18
|
+
PageRevertSuccessResponse,
|
|
19
|
+
PageTagsSuccessResponse,
|
|
20
|
+
PageUnlinkSuccessResponse,
|
|
18
21
|
PostLogin200,
|
|
19
22
|
PostLoginBody,
|
|
20
23
|
PostRegister200,
|
|
21
24
|
PostRegisterBody,
|
|
22
|
-
RemoveAttachment200,
|
|
23
25
|
RemoveAttachmentBody,
|
|
24
|
-
RemoveComment200,
|
|
25
26
|
RemoveCommentBody,
|
|
26
|
-
|
|
27
|
+
RemovePageBody,
|
|
27
28
|
RemoveProfileImageBody,
|
|
29
|
+
RevertRemovePageBody,
|
|
28
30
|
SearchPages200,
|
|
29
31
|
SearchPagesParams,
|
|
30
32
|
SearchTags200,
|
|
31
33
|
SearchTagsParams,
|
|
34
|
+
UnlinkPageBody,
|
|
32
35
|
UpdateComment200,
|
|
33
36
|
UpdateCommentBody,
|
|
37
|
+
UpdatePostSuccessResponse,
|
|
34
38
|
UpdateTag200,
|
|
35
39
|
UpdateTagBody,
|
|
36
40
|
UploadProfileImage200,
|
|
@@ -78,7 +82,7 @@ export const getGrowirestapiv1 = () => {
|
|
|
78
82
|
* @summary /comments.remove
|
|
79
83
|
*/
|
|
80
84
|
const removeComment = (removeCommentBody: RemoveCommentBody, options?: SecondParameter<typeof customInstance>) => {
|
|
81
|
-
return customInstance<
|
|
85
|
+
return customInstance<ApiResponseSuccess>(
|
|
82
86
|
{ url: `/comments.remove`, method: 'POST', headers: { 'Content-Type': 'application/json' }, data: removeCommentBody },
|
|
83
87
|
options,
|
|
84
88
|
);
|
|
@@ -102,19 +106,52 @@ export const getGrowirestapiv1 = () => {
|
|
|
102
106
|
};
|
|
103
107
|
|
|
104
108
|
/**
|
|
105
|
-
*
|
|
106
|
-
* @summary
|
|
109
|
+
* Retrieve all tags associated with a specific page
|
|
110
|
+
* @summary Get page tags
|
|
107
111
|
*/
|
|
108
|
-
const getPageTag = (params
|
|
109
|
-
return customInstance<
|
|
112
|
+
const getPageTag = (params: GetPageTagParams, options?: SecondParameter<typeof customInstance>) => {
|
|
113
|
+
return customInstance<PageTagsSuccessResponse>({ url: `/pages.getPageTag`, method: 'GET', params }, options);
|
|
110
114
|
};
|
|
111
115
|
|
|
112
116
|
/**
|
|
113
|
-
*
|
|
114
|
-
* @summary
|
|
117
|
+
* Retrieve UpdatePost notification settings for a specific path
|
|
118
|
+
* @summary Get UpdatePost settings
|
|
115
119
|
*/
|
|
116
|
-
const
|
|
117
|
-
return customInstance<
|
|
120
|
+
const getUpdatePost = (params: GetUpdatePostParams, options?: SecondParameter<typeof customInstance>) => {
|
|
121
|
+
return customInstance<UpdatePostSuccessResponse>({ url: `/pages.updatePost`, method: 'GET', params }, options);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Delete a page either softly or completely, with optional recursive deletion
|
|
126
|
+
* @summary Remove page
|
|
127
|
+
*/
|
|
128
|
+
const removePage = (removePageBody: RemovePageBody, options?: SecondParameter<typeof customInstance>) => {
|
|
129
|
+
return customInstance<PageRemoveSuccessResponse>(
|
|
130
|
+
{ url: `/pages.remove`, method: 'POST', headers: { 'Content-Type': 'application/json' }, data: removePageBody },
|
|
131
|
+
options,
|
|
132
|
+
);
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Restore a previously deleted (soft-deleted) page
|
|
137
|
+
* @summary Revert removed page
|
|
138
|
+
*/
|
|
139
|
+
const revertRemovePage = (revertRemovePageBody: RevertRemovePageBody, options?: SecondParameter<typeof customInstance>) => {
|
|
140
|
+
return customInstance<PageRevertSuccessResponse>(
|
|
141
|
+
{ url: `/pages.revertRemove`, method: 'POST', headers: { 'Content-Type': 'application/json' }, data: revertRemovePageBody },
|
|
142
|
+
options,
|
|
143
|
+
);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Remove all redirect entries that point to the specified page path
|
|
148
|
+
* @summary Remove page redirects
|
|
149
|
+
*/
|
|
150
|
+
const unlinkPage = (unlinkPageBody: UnlinkPageBody, options?: SecondParameter<typeof customInstance>) => {
|
|
151
|
+
return customInstance<PageUnlinkSuccessResponse>(
|
|
152
|
+
{ url: `/pages.unlink`, method: 'POST', headers: { 'Content-Type': 'application/json' }, data: unlinkPageBody },
|
|
153
|
+
options,
|
|
154
|
+
);
|
|
118
155
|
};
|
|
119
156
|
|
|
120
157
|
/**
|
|
@@ -172,7 +209,7 @@ export const getGrowirestapiv1 = () => {
|
|
|
172
209
|
* @summary /attachments.remove
|
|
173
210
|
*/
|
|
174
211
|
const removeAttachment = (removeAttachmentBody: RemoveAttachmentBody, options?: SecondParameter<typeof customInstance>) => {
|
|
175
|
-
return customInstance<
|
|
212
|
+
return customInstance<ApiResponseSuccess>(
|
|
176
213
|
{ url: `/attachments.remove`, method: 'POST', headers: { 'Content-Type': 'application/json' }, data: removeAttachmentBody },
|
|
177
214
|
options,
|
|
178
215
|
);
|
|
@@ -183,7 +220,7 @@ export const getGrowirestapiv1 = () => {
|
|
|
183
220
|
* @summary /attachments.removeProfileImage
|
|
184
221
|
*/
|
|
185
222
|
const removeProfileImage = (removeProfileImageBody: RemoveProfileImageBody, options?: SecondParameter<typeof customInstance>) => {
|
|
186
|
-
return customInstance<
|
|
223
|
+
return customInstance<ApiResponseSuccess>(
|
|
187
224
|
{ url: `/attachments.removeProfileImage`, method: 'POST', headers: { 'Content-Type': 'application/json' }, data: removeProfileImageBody },
|
|
188
225
|
options,
|
|
189
226
|
);
|
|
@@ -197,7 +234,10 @@ export const getGrowirestapiv1 = () => {
|
|
|
197
234
|
postLogin,
|
|
198
235
|
postRegister,
|
|
199
236
|
getPageTag,
|
|
200
|
-
|
|
237
|
+
getUpdatePost,
|
|
238
|
+
removePage,
|
|
239
|
+
revertRemovePage,
|
|
240
|
+
unlinkPage,
|
|
201
241
|
searchPages,
|
|
202
242
|
searchTags,
|
|
203
243
|
updateTag,
|
|
@@ -220,7 +260,10 @@ export type RemoveCommentResult = NonNullable<Awaited<ReturnType<ReturnType<type
|
|
|
220
260
|
export type PostLoginResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getGrowirestapiv1>['postLogin']>>>;
|
|
221
261
|
export type PostRegisterResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getGrowirestapiv1>['postRegister']>>>;
|
|
222
262
|
export type GetPageTagResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getGrowirestapiv1>['getPageTag']>>>;
|
|
223
|
-
export type
|
|
263
|
+
export type GetUpdatePostResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getGrowirestapiv1>['getUpdatePost']>>>;
|
|
264
|
+
export type RemovePageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getGrowirestapiv1>['removePage']>>>;
|
|
265
|
+
export type RevertRemovePageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getGrowirestapiv1>['revertRemovePage']>>>;
|
|
266
|
+
export type UnlinkPageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getGrowirestapiv1>['unlinkPage']>>>;
|
|
224
267
|
export type SearchPagesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getGrowirestapiv1>['searchPages']>>>;
|
|
225
268
|
export type SearchTagsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getGrowirestapiv1>['searchTags']>>>;
|
|
226
269
|
export type UpdateTagResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getGrowirestapiv1>['updateTag']>>>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval v7.9.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* GROWI REST API v3
|
|
5
|
-
* OpenAPI spec version: 7.2.
|
|
5
|
+
* OpenAPI spec version: 7.2.8-RC.0
|
|
6
6
|
*/
|
|
7
7
|
export interface SyncStatus {
|
|
8
8
|
isExecutingSync?: boolean;
|
|
@@ -1614,27 +1614,67 @@ export interface Tag {
|
|
|
1614
1614
|
count?: number;
|
|
1615
1615
|
}
|
|
1616
1616
|
|
|
1617
|
+
export interface ApiResponseBase {
|
|
1618
|
+
/** Indicates if the request was successful */
|
|
1619
|
+
ok: boolean;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
export type ApiResponseSuccessAllOf = {
|
|
1623
|
+
/** Success indicator (always true for successful responses) */
|
|
1624
|
+
ok?: boolean;
|
|
1625
|
+
};
|
|
1626
|
+
|
|
1617
1627
|
/**
|
|
1618
|
-
* API
|
|
1628
|
+
* Successful API response
|
|
1619
1629
|
*/
|
|
1620
|
-
export type
|
|
1630
|
+
export type ApiResponseSuccess = ApiResponseBase & ApiResponseSuccessAllOf;
|
|
1621
1631
|
|
|
1622
1632
|
/**
|
|
1623
|
-
*
|
|
1633
|
+
* Detailed error object
|
|
1624
1634
|
*/
|
|
1625
|
-
export
|
|
1626
|
-
|
|
1627
|
-
|
|
1635
|
+
export type ApiResponseErrorAllOfErrorOneOf = { [key: string]: unknown };
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* Error message or error object containing details about the failure
|
|
1639
|
+
*/
|
|
1640
|
+
export type ApiResponseErrorAllOfError = string | ApiResponseErrorAllOfErrorOneOf;
|
|
1641
|
+
|
|
1642
|
+
export type ApiResponseErrorAllOf = {
|
|
1643
|
+
/** Success indicator (always false for error responses) */
|
|
1644
|
+
ok?: boolean;
|
|
1645
|
+
/** Error message or error object containing details about the failure */
|
|
1646
|
+
error?: ApiResponseErrorAllOfError;
|
|
1647
|
+
};
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* Error API response
|
|
1651
|
+
*/
|
|
1652
|
+
export type ApiResponseError = ApiResponseBase & ApiResponseErrorAllOf;
|
|
1653
|
+
|
|
1654
|
+
/**
|
|
1655
|
+
* Bad request
|
|
1656
|
+
*/
|
|
1657
|
+
export type BadRequestResponse = ApiResponseError;
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Forbidden - insufficient permissions
|
|
1661
|
+
*/
|
|
1662
|
+
export type ForbiddenResponse = ApiResponseError;
|
|
1663
|
+
|
|
1664
|
+
/**
|
|
1665
|
+
* Resource not found
|
|
1666
|
+
*/
|
|
1667
|
+
export type NotFoundResponse = ApiResponseError;
|
|
1628
1668
|
|
|
1629
1669
|
/**
|
|
1630
|
-
*
|
|
1670
|
+
* Conflict
|
|
1631
1671
|
*/
|
|
1632
|
-
export type
|
|
1672
|
+
export type ConflictResponse = ApiResponseError;
|
|
1633
1673
|
|
|
1634
1674
|
/**
|
|
1635
|
-
* Internal
|
|
1675
|
+
* Internal server error
|
|
1636
1676
|
*/
|
|
1637
|
-
export type
|
|
1677
|
+
export type InternalServerErrorResponse = ApiResponseError;
|
|
1638
1678
|
|
|
1639
1679
|
export type GetExternalUserGroupRelationsParams = {
|
|
1640
1680
|
/**
|