@intlayer/api 9.6.0 → 9.7.1
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/cjs/cms/createAuthManager.cjs +2 -3
- package/dist/cjs/cms/createIntlayerCMS.cjs +2 -3
- package/dist/cjs/cms/index.cjs +2 -2
- package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs +3 -4
- package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs.map +1 -1
- package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs +3 -4
- package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs.map +1 -1
- package/dist/cjs/distantDictionary/index.cjs +2 -2
- package/dist/cjs/fetcher.cjs +2 -3
- package/dist/cjs/fetcher.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/ai.cjs +79 -26
- package/dist/cjs/getIntlayerAPI/ai.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/analytics.cjs +47 -14
- package/dist/cjs/getIntlayerAPI/analytics.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/asset.cjs +41 -12
- package/dist/cjs/getIntlayerAPI/asset.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/audit.cjs +73 -20
- package/dist/cjs/getIntlayerAPI/audit.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/bitbucket.cjs +42 -13
- package/dist/cjs/getIntlayerAPI/bitbucket.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/codeberg.cjs +20 -0
- package/dist/cjs/getIntlayerAPI/codeberg.cjs.map +1 -0
- package/dist/cjs/getIntlayerAPI/dictionary.cjs +62 -17
- package/dist/cjs/getIntlayerAPI/dictionary.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/editor.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/editor.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/environment.cjs +47 -14
- package/dist/cjs/getIntlayerAPI/environment.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/forge.cjs +63 -0
- package/dist/cjs/getIntlayerAPI/forge.cjs.map +1 -0
- package/dist/cjs/getIntlayerAPI/gitee.cjs +20 -0
- package/dist/cjs/getIntlayerAPI/gitee.cjs.map +1 -0
- package/dist/cjs/getIntlayerAPI/github.cjs +47 -14
- package/dist/cjs/getIntlayerAPI/github.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/gitlab.cjs +42 -13
- package/dist/cjs/getIntlayerAPI/gitlab.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/index.cjs +27 -24
- package/dist/cjs/getIntlayerAPI/index.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/newsletter.cjs +31 -10
- package/dist/cjs/getIntlayerAPI/newsletter.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/oAuth.cjs +33 -8
- package/dist/cjs/getIntlayerAPI/oAuth.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/organization.cjs +75 -24
- package/dist/cjs/getIntlayerAPI/organization.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/project.cjs +115 -33
- package/dist/cjs/getIntlayerAPI/project.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/reviewer.cjs +145 -35
- package/dist/cjs/getIntlayerAPI/reviewer.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/search.cjs +18 -7
- package/dist/cjs/getIntlayerAPI/search.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/showcaseProject.cjs +64 -19
- package/dist/cjs/getIntlayerAPI/showcaseProject.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/status.cjs +19 -7
- package/dist/cjs/getIntlayerAPI/status.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/stripe.cjs +144 -39
- package/dist/cjs/getIntlayerAPI/stripe.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/tag.cjs +36 -11
- package/dist/cjs/getIntlayerAPI/tag.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/translate.cjs +49 -12
- package/dist/cjs/getIntlayerAPI/translate.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/user.cjs +61 -18
- package/dist/cjs/getIntlayerAPI/user.cjs.map +1 -1
- package/dist/cjs/index.cjs +38 -30
- package/dist/cjs/proxy.cjs +28 -25
- package/dist/cjs/proxy.cjs.map +1 -1
- package/dist/cjs/public/createPublicClient.cjs +26 -7
- package/dist/cjs/public/createPublicClient.cjs.map +1 -1
- package/dist/cjs/public/index.cjs +1 -1
- package/dist/cjs/resolveInternalBackendUrl.cjs +1 -2
- package/dist/esm/cms/createAuthManager.mjs +1 -2
- package/dist/esm/cms/createIntlayerCMS.mjs +1 -2
- package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs +1 -2
- package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs.map +1 -1
- package/dist/esm/distantDictionary/fetchDistantDictionary.mjs +1 -2
- package/dist/esm/distantDictionary/fetchDistantDictionary.mjs.map +1 -1
- package/dist/esm/fetcher.mjs +1 -2
- package/dist/esm/fetcher.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/ai.mjs +78 -25
- package/dist/esm/getIntlayerAPI/ai.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/analytics.mjs +46 -13
- package/dist/esm/getIntlayerAPI/analytics.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/asset.mjs +40 -11
- package/dist/esm/getIntlayerAPI/asset.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/audit.mjs +72 -19
- package/dist/esm/getIntlayerAPI/audit.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/bitbucket.mjs +41 -12
- package/dist/esm/getIntlayerAPI/bitbucket.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/codeberg.mjs +18 -0
- package/dist/esm/getIntlayerAPI/codeberg.mjs.map +1 -0
- package/dist/esm/getIntlayerAPI/dictionary.mjs +61 -16
- package/dist/esm/getIntlayerAPI/dictionary.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/editor.mjs +2 -3
- package/dist/esm/getIntlayerAPI/editor.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/environment.mjs +46 -13
- package/dist/esm/getIntlayerAPI/environment.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/forge.mjs +62 -0
- package/dist/esm/getIntlayerAPI/forge.mjs.map +1 -0
- package/dist/esm/getIntlayerAPI/gitee.mjs +18 -0
- package/dist/esm/getIntlayerAPI/gitee.mjs.map +1 -0
- package/dist/esm/getIntlayerAPI/github.mjs +46 -13
- package/dist/esm/getIntlayerAPI/github.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/gitlab.mjs +41 -12
- package/dist/esm/getIntlayerAPI/gitlab.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/index.mjs +6 -3
- package/dist/esm/getIntlayerAPI/index.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/newsletter.mjs +30 -9
- package/dist/esm/getIntlayerAPI/newsletter.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/oAuth.mjs +32 -7
- package/dist/esm/getIntlayerAPI/oAuth.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/organization.mjs +74 -23
- package/dist/esm/getIntlayerAPI/organization.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/project.mjs +114 -32
- package/dist/esm/getIntlayerAPI/project.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/reviewer.mjs +144 -34
- package/dist/esm/getIntlayerAPI/reviewer.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/search.mjs +17 -6
- package/dist/esm/getIntlayerAPI/search.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/showcaseProject.mjs +63 -18
- package/dist/esm/getIntlayerAPI/showcaseProject.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/status.mjs +18 -6
- package/dist/esm/getIntlayerAPI/status.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/stripe.mjs +143 -38
- package/dist/esm/getIntlayerAPI/stripe.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/tag.mjs +35 -10
- package/dist/esm/getIntlayerAPI/tag.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/translate.mjs +48 -11
- package/dist/esm/getIntlayerAPI/translate.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/user.mjs +60 -17
- package/dist/esm/getIntlayerAPI/user.mjs.map +1 -1
- package/dist/esm/index.mjs +10 -7
- package/dist/esm/proxy.mjs +6 -3
- package/dist/esm/proxy.mjs.map +1 -1
- package/dist/esm/public/createPublicClient.mjs +26 -7
- package/dist/esm/public/createPublicClient.mjs.map +1 -1
- package/dist/esm/resolveInternalBackendUrl.mjs +1 -2
- package/dist/types/cms/createAuthManager.d.ts +1 -2
- package/dist/types/cms/createAuthManager.d.ts.map +1 -1
- package/dist/types/cms/createIntlayerCMS.d.ts +0 -2
- package/dist/types/cms/createIntlayerCMS.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +1 -3
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +1 -3
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
- package/dist/types/fetcher.d.ts +1 -3
- package/dist/types/fetcher.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/ai.d.ts +3 -5
- package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/analytics.d.ts +3 -5
- package/dist/types/getIntlayerAPI/analytics.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/asset.d.ts +3 -4
- package/dist/types/getIntlayerAPI/asset.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/audit.d.ts +49 -7
- package/dist/types/getIntlayerAPI/audit.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/bitbucket.d.ts +2 -4
- package/dist/types/getIntlayerAPI/bitbucket.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/codeberg.d.ts +59 -0
- package/dist/types/getIntlayerAPI/codeberg.d.ts.map +1 -0
- package/dist/types/getIntlayerAPI/dictionary.d.ts +3 -5
- package/dist/types/getIntlayerAPI/dictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/editor.d.ts +4 -5
- package/dist/types/getIntlayerAPI/editor.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/environment.d.ts +3 -5
- package/dist/types/getIntlayerAPI/environment.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/forge.d.ts +34 -0
- package/dist/types/getIntlayerAPI/forge.d.ts.map +1 -0
- package/dist/types/getIntlayerAPI/gitee.d.ts +59 -0
- package/dist/types/getIntlayerAPI/gitee.d.ts.map +1 -0
- package/dist/types/getIntlayerAPI/github.d.ts +2 -4
- package/dist/types/getIntlayerAPI/github.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/gitlab.d.ts +2 -4
- package/dist/types/getIntlayerAPI/gitlab.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/index.d.ts +6 -3
- package/dist/types/getIntlayerAPI/index.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/newsletter.d.ts +3 -5
- package/dist/types/getIntlayerAPI/newsletter.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/oAuth.d.ts +2 -2
- package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/organization.d.ts +3 -7
- package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/project.d.ts +4 -5
- package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/reviewer.d.ts +682 -39
- package/dist/types/getIntlayerAPI/reviewer.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/search.d.ts +3 -5
- package/dist/types/getIntlayerAPI/search.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts +3 -5
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/status.d.ts +5 -8
- package/dist/types/getIntlayerAPI/status.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/stripe.d.ts +3 -5
- package/dist/types/getIntlayerAPI/stripe.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/tag.d.ts +3 -5
- package/dist/types/getIntlayerAPI/tag.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/translate.d.ts +3 -5
- package/dist/types/getIntlayerAPI/translate.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/user.d.ts +6 -8
- package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
- package/dist/types/index.d.ts +12 -9
- package/dist/types/proxy.d.ts +0 -2
- package/dist/types/proxy.d.ts.map +1 -1
- package/dist/types/public/createPublicClient.d.ts +1 -9
- package/dist/types/public/createPublicClient.d.ts.map +1 -1
- package/dist/types/resolveInternalBackendUrl.d.ts +0 -2
- package/dist/types/resolveInternalBackendUrl.d.ts.map +1 -1
- package/dist/types/types.d.ts +5 -2
- package/package.json +23 -6
|
@@ -1,45 +1,367 @@
|
|
|
1
|
-
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
1
|
import "../index.js";
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
4
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { PaginatedResponse, ResponseData } from "@intlayer/backend-contract/responseData";
|
|
6
|
+
import { CreateMissionBody, EstimateMissionBody, GetMarketplaceQuery, RegisterReviewerBody, SendMessageBody, SubmitReviewBody, UpdateMissionStatusBody, UpdateReviewerBody, UploadReviewerPictureResult } from "@intlayer/backend-contract/reviewer";
|
|
7
7
|
export declare const getReviewerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
8
|
-
getMarketplace: (params?: GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
getMarketplace: (params?: GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
|
|
9
|
+
[x: string]: unknown;
|
|
10
|
+
id: string;
|
|
11
|
+
userId: string;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
avatar?: string | undefined;
|
|
14
|
+
bio?: string | undefined;
|
|
15
|
+
mainPicture?: string | undefined;
|
|
16
|
+
coverPicture?: string | undefined;
|
|
17
|
+
languagePairs: {
|
|
18
|
+
from: string;
|
|
19
|
+
to: string;
|
|
20
|
+
}[];
|
|
21
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
22
|
+
pricePerHour: number;
|
|
23
|
+
status: "active" | "pending" | "suspended";
|
|
24
|
+
totalMissions: number;
|
|
25
|
+
averageRating: number;
|
|
26
|
+
reviewCount: number;
|
|
27
|
+
socialLinks?: {
|
|
28
|
+
github?: string | undefined;
|
|
29
|
+
linkedin?: string | undefined;
|
|
30
|
+
portfolio?: string | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
isHidden?: boolean | undefined;
|
|
33
|
+
createdAt: string;
|
|
34
|
+
updatedAt: string;
|
|
35
|
+
}>>;
|
|
36
|
+
getPriceDistribution: (params?: Pick<GetMarketplaceQuery, 'fromLocale' | 'toLocale' | 'minRating' | 'categories'>, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
37
|
+
buckets: {
|
|
38
|
+
min: number;
|
|
39
|
+
max: number;
|
|
40
|
+
count: number;
|
|
41
|
+
}[];
|
|
42
|
+
globalMin: number;
|
|
43
|
+
globalMax: number;
|
|
44
|
+
}>>;
|
|
45
|
+
getReviewerById: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
46
|
+
[x: string]: unknown;
|
|
47
|
+
id: string;
|
|
48
|
+
userId: string;
|
|
49
|
+
name?: string | undefined;
|
|
50
|
+
avatar?: string | undefined;
|
|
51
|
+
bio?: string | undefined;
|
|
52
|
+
mainPicture?: string | undefined;
|
|
53
|
+
coverPicture?: string | undefined;
|
|
54
|
+
languagePairs: {
|
|
55
|
+
from: string;
|
|
56
|
+
to: string;
|
|
57
|
+
}[];
|
|
58
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
59
|
+
pricePerHour: number;
|
|
60
|
+
status: "active" | "pending" | "suspended";
|
|
61
|
+
totalMissions: number;
|
|
62
|
+
averageRating: number;
|
|
63
|
+
reviewCount: number;
|
|
64
|
+
socialLinks?: {
|
|
65
|
+
github?: string | undefined;
|
|
66
|
+
linkedin?: string | undefined;
|
|
67
|
+
portfolio?: string | undefined;
|
|
68
|
+
} | undefined;
|
|
69
|
+
isHidden?: boolean | undefined;
|
|
70
|
+
createdAt: string;
|
|
71
|
+
updatedAt: string;
|
|
72
|
+
}>>;
|
|
11
73
|
getReviewerReviews: (reviewerId: string, params?: {
|
|
12
74
|
page?: number;
|
|
13
75
|
pageSize?: number;
|
|
14
|
-
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
76
|
+
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
|
|
77
|
+
[x: string]: unknown;
|
|
78
|
+
id: string;
|
|
79
|
+
missionId: string;
|
|
80
|
+
reviewerId: string;
|
|
81
|
+
rating: number;
|
|
82
|
+
comment?: string | undefined;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
updatedAt: string;
|
|
85
|
+
}>>;
|
|
86
|
+
getMyReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
87
|
+
[x: string]: unknown;
|
|
88
|
+
id: string;
|
|
89
|
+
userId: string;
|
|
90
|
+
name?: string | undefined;
|
|
91
|
+
avatar?: string | undefined;
|
|
92
|
+
bio?: string | undefined;
|
|
93
|
+
mainPicture?: string | undefined;
|
|
94
|
+
coverPicture?: string | undefined;
|
|
95
|
+
languagePairs: {
|
|
96
|
+
from: string;
|
|
97
|
+
to: string;
|
|
98
|
+
}[];
|
|
99
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
100
|
+
pricePerHour: number;
|
|
101
|
+
status: "active" | "pending" | "suspended";
|
|
102
|
+
totalMissions: number;
|
|
103
|
+
averageRating: number;
|
|
104
|
+
reviewCount: number;
|
|
105
|
+
socialLinks?: {
|
|
106
|
+
github?: string | undefined;
|
|
107
|
+
linkedin?: string | undefined;
|
|
108
|
+
portfolio?: string | undefined;
|
|
109
|
+
} | undefined;
|
|
110
|
+
isHidden?: boolean | undefined;
|
|
111
|
+
createdAt: string;
|
|
112
|
+
updatedAt: string;
|
|
113
|
+
} | null>>;
|
|
114
|
+
registerAsReviewer: (body: RegisterReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
115
|
+
[x: string]: unknown;
|
|
116
|
+
id: string;
|
|
117
|
+
userId: string;
|
|
118
|
+
name?: string | undefined;
|
|
119
|
+
avatar?: string | undefined;
|
|
120
|
+
bio?: string | undefined;
|
|
121
|
+
mainPicture?: string | undefined;
|
|
122
|
+
coverPicture?: string | undefined;
|
|
123
|
+
languagePairs: {
|
|
124
|
+
from: string;
|
|
125
|
+
to: string;
|
|
126
|
+
}[];
|
|
127
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
128
|
+
pricePerHour: number;
|
|
129
|
+
status: "active" | "pending" | "suspended";
|
|
130
|
+
totalMissions: number;
|
|
131
|
+
averageRating: number;
|
|
132
|
+
reviewCount: number;
|
|
133
|
+
socialLinks?: {
|
|
134
|
+
github?: string | undefined;
|
|
135
|
+
linkedin?: string | undefined;
|
|
136
|
+
portfolio?: string | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
isHidden?: boolean | undefined;
|
|
139
|
+
createdAt: string;
|
|
140
|
+
updatedAt: string;
|
|
141
|
+
}>>;
|
|
142
|
+
updateReviewerProfile: (body: UpdateReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
143
|
+
[x: string]: unknown;
|
|
144
|
+
id: string;
|
|
145
|
+
userId: string;
|
|
146
|
+
name?: string | undefined;
|
|
147
|
+
avatar?: string | undefined;
|
|
148
|
+
bio?: string | undefined;
|
|
149
|
+
mainPicture?: string | undefined;
|
|
150
|
+
coverPicture?: string | undefined;
|
|
151
|
+
languagePairs: {
|
|
152
|
+
from: string;
|
|
153
|
+
to: string;
|
|
154
|
+
}[];
|
|
155
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
156
|
+
pricePerHour: number;
|
|
157
|
+
status: "active" | "pending" | "suspended";
|
|
158
|
+
totalMissions: number;
|
|
159
|
+
averageRating: number;
|
|
160
|
+
reviewCount: number;
|
|
161
|
+
socialLinks?: {
|
|
162
|
+
github?: string | undefined;
|
|
163
|
+
linkedin?: string | undefined;
|
|
164
|
+
portfolio?: string | undefined;
|
|
165
|
+
} | undefined;
|
|
166
|
+
isHidden?: boolean | undefined;
|
|
167
|
+
createdAt: string;
|
|
168
|
+
updatedAt: string;
|
|
169
|
+
}>>;
|
|
18
170
|
deleteReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
|
|
19
|
-
estimateMission: (body: EstimateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<
|
|
20
|
-
|
|
171
|
+
estimateMission: (body: EstimateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
172
|
+
wordCount: number;
|
|
173
|
+
estimatedHours: number;
|
|
174
|
+
totalPrice: number;
|
|
175
|
+
currency: string;
|
|
176
|
+
}>>;
|
|
177
|
+
createMission: (body: CreateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
178
|
+
[x: string]: unknown;
|
|
179
|
+
id: string;
|
|
180
|
+
reviewerId: string;
|
|
181
|
+
clientUserId: string;
|
|
182
|
+
projectId?: string | undefined;
|
|
183
|
+
dictionaryIds: string[];
|
|
184
|
+
sourceLocale?: string | undefined;
|
|
185
|
+
targetLocales: string[];
|
|
186
|
+
wordCount: number;
|
|
187
|
+
estimatedHours: number;
|
|
188
|
+
pricePerHour: number;
|
|
189
|
+
totalPrice: number;
|
|
190
|
+
currency: string;
|
|
191
|
+
status: "accepted" | "canceled" | "client_review" | "completed" | "in_progress" | "pending" | "reviewer_review";
|
|
192
|
+
notes?: string | undefined;
|
|
193
|
+
aiPreGeneratedAt?: string | undefined;
|
|
194
|
+
completedAt?: string | undefined;
|
|
195
|
+
canceledAt?: string | undefined;
|
|
196
|
+
createdAt: string;
|
|
197
|
+
updatedAt: string;
|
|
198
|
+
}>>;
|
|
21
199
|
getMyMissions: (params?: {
|
|
22
200
|
role?: 'client' | 'reviewer';
|
|
23
201
|
page?: number;
|
|
24
202
|
pageSize?: number;
|
|
25
|
-
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
203
|
+
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
|
|
204
|
+
[x: string]: unknown;
|
|
205
|
+
id: string;
|
|
206
|
+
reviewerId: string;
|
|
207
|
+
clientUserId: string;
|
|
208
|
+
projectId?: string | undefined;
|
|
209
|
+
dictionaryIds: string[];
|
|
210
|
+
sourceLocale?: string | undefined;
|
|
211
|
+
targetLocales: string[];
|
|
212
|
+
wordCount: number;
|
|
213
|
+
estimatedHours: number;
|
|
214
|
+
pricePerHour: number;
|
|
215
|
+
totalPrice: number;
|
|
216
|
+
currency: string;
|
|
217
|
+
status: "accepted" | "canceled" | "client_review" | "completed" | "in_progress" | "pending" | "reviewer_review";
|
|
218
|
+
notes?: string | undefined;
|
|
219
|
+
aiPreGeneratedAt?: string | undefined;
|
|
220
|
+
completedAt?: string | undefined;
|
|
221
|
+
canceledAt?: string | undefined;
|
|
222
|
+
createdAt: string;
|
|
223
|
+
updatedAt: string;
|
|
224
|
+
}>>;
|
|
225
|
+
getMissionById: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
226
|
+
[x: string]: unknown;
|
|
227
|
+
id: string;
|
|
228
|
+
reviewerId: string;
|
|
229
|
+
clientUserId: string;
|
|
230
|
+
projectId?: string | undefined;
|
|
231
|
+
dictionaryIds: string[];
|
|
232
|
+
sourceLocale?: string | undefined;
|
|
233
|
+
targetLocales: string[];
|
|
234
|
+
wordCount: number;
|
|
235
|
+
estimatedHours: number;
|
|
236
|
+
pricePerHour: number;
|
|
237
|
+
totalPrice: number;
|
|
238
|
+
currency: string;
|
|
239
|
+
status: "accepted" | "canceled" | "client_review" | "completed" | "in_progress" | "pending" | "reviewer_review";
|
|
240
|
+
notes?: string | undefined;
|
|
241
|
+
aiPreGeneratedAt?: string | undefined;
|
|
242
|
+
completedAt?: string | undefined;
|
|
243
|
+
canceledAt?: string | undefined;
|
|
244
|
+
createdAt: string;
|
|
245
|
+
updatedAt: string;
|
|
246
|
+
}>>;
|
|
247
|
+
updateMissionStatus: (missionId: string, body: UpdateMissionStatusBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
248
|
+
[x: string]: unknown;
|
|
249
|
+
id: string;
|
|
250
|
+
reviewerId: string;
|
|
251
|
+
clientUserId: string;
|
|
252
|
+
projectId?: string | undefined;
|
|
253
|
+
dictionaryIds: string[];
|
|
254
|
+
sourceLocale?: string | undefined;
|
|
255
|
+
targetLocales: string[];
|
|
256
|
+
wordCount: number;
|
|
257
|
+
estimatedHours: number;
|
|
258
|
+
pricePerHour: number;
|
|
259
|
+
totalPrice: number;
|
|
260
|
+
currency: string;
|
|
261
|
+
status: "accepted" | "canceled" | "client_review" | "completed" | "in_progress" | "pending" | "reviewer_review";
|
|
262
|
+
notes?: string | undefined;
|
|
263
|
+
aiPreGeneratedAt?: string | undefined;
|
|
264
|
+
completedAt?: string | undefined;
|
|
265
|
+
canceledAt?: string | undefined;
|
|
266
|
+
createdAt: string;
|
|
267
|
+
updatedAt: string;
|
|
268
|
+
}>>;
|
|
269
|
+
submitReview: (missionId: string, body: SubmitReviewBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
270
|
+
[x: string]: unknown;
|
|
271
|
+
id: string;
|
|
272
|
+
missionId: string;
|
|
273
|
+
reviewerId: string;
|
|
274
|
+
rating: number;
|
|
275
|
+
comment?: string | undefined;
|
|
276
|
+
createdAt: string;
|
|
277
|
+
updatedAt: string;
|
|
278
|
+
}>>;
|
|
29
279
|
contactReviewer: (reviewerId: string, body: {
|
|
30
280
|
message: string;
|
|
31
281
|
}, otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
|
|
32
|
-
getChatHistory: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<
|
|
33
|
-
|
|
282
|
+
getChatHistory: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
283
|
+
[x: string]: unknown;
|
|
284
|
+
id: string;
|
|
285
|
+
missionId: string;
|
|
286
|
+
senderId: string;
|
|
287
|
+
content: string;
|
|
288
|
+
readAt?: string | undefined;
|
|
289
|
+
createdAt: string;
|
|
290
|
+
updatedAt: string;
|
|
291
|
+
}[]>>;
|
|
292
|
+
sendMessage: (missionId: string, body: SendMessageBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
293
|
+
[x: string]: unknown;
|
|
294
|
+
id: string;
|
|
295
|
+
missionId: string;
|
|
296
|
+
senderId: string;
|
|
297
|
+
content: string;
|
|
298
|
+
readAt?: string | undefined;
|
|
299
|
+
createdAt: string;
|
|
300
|
+
updatedAt: string;
|
|
301
|
+
}>>;
|
|
34
302
|
getChatStreamUrl: (missionId: string) => string;
|
|
35
303
|
uploadMainPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
|
|
36
304
|
uploadCoverPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
|
|
37
|
-
validateReviewerProfile: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<
|
|
305
|
+
validateReviewerProfile: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
306
|
+
[x: string]: unknown;
|
|
307
|
+
id: string;
|
|
308
|
+
userId: string;
|
|
309
|
+
name?: string | undefined;
|
|
310
|
+
avatar?: string | undefined;
|
|
311
|
+
bio?: string | undefined;
|
|
312
|
+
mainPicture?: string | undefined;
|
|
313
|
+
coverPicture?: string | undefined;
|
|
314
|
+
languagePairs: {
|
|
315
|
+
from: string;
|
|
316
|
+
to: string;
|
|
317
|
+
}[];
|
|
318
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
319
|
+
pricePerHour: number;
|
|
320
|
+
status: "active" | "pending" | "suspended";
|
|
321
|
+
totalMissions: number;
|
|
322
|
+
averageRating: number;
|
|
323
|
+
reviewCount: number;
|
|
324
|
+
socialLinks?: {
|
|
325
|
+
github?: string | undefined;
|
|
326
|
+
linkedin?: string | undefined;
|
|
327
|
+
portfolio?: string | undefined;
|
|
328
|
+
} | undefined;
|
|
329
|
+
isHidden?: boolean | undefined;
|
|
330
|
+
createdAt: string;
|
|
331
|
+
updatedAt: string;
|
|
332
|
+
}>>;
|
|
38
333
|
getAdminReviewers: (params?: {
|
|
39
334
|
page?: number;
|
|
40
335
|
pageSize?: number;
|
|
41
336
|
status?: string;
|
|
42
|
-
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<
|
|
337
|
+
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
|
|
338
|
+
[x: string]: unknown;
|
|
339
|
+
id: string;
|
|
340
|
+
userId: string;
|
|
341
|
+
name?: string | undefined;
|
|
342
|
+
avatar?: string | undefined;
|
|
343
|
+
bio?: string | undefined;
|
|
344
|
+
mainPicture?: string | undefined;
|
|
345
|
+
coverPicture?: string | undefined;
|
|
346
|
+
languagePairs: {
|
|
347
|
+
from: string;
|
|
348
|
+
to: string;
|
|
349
|
+
}[];
|
|
350
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
351
|
+
pricePerHour: number;
|
|
352
|
+
status: "active" | "pending" | "suspended";
|
|
353
|
+
totalMissions: number;
|
|
354
|
+
averageRating: number;
|
|
355
|
+
reviewCount: number;
|
|
356
|
+
socialLinks?: {
|
|
357
|
+
github?: string | undefined;
|
|
358
|
+
linkedin?: string | undefined;
|
|
359
|
+
portfolio?: string | undefined;
|
|
360
|
+
} | undefined;
|
|
361
|
+
isHidden?: boolean | undefined;
|
|
362
|
+
createdAt: string;
|
|
363
|
+
updatedAt: string;
|
|
364
|
+
}>>;
|
|
43
365
|
};
|
|
44
366
|
/**
|
|
45
367
|
* Authenticated `reviewer` endpoint bound to an Intlayer CMS authenticator.
|
|
@@ -48,41 +370,362 @@ export declare const getReviewerAPI: (authAPIOptions?: FetcherOptions, intlayerC
|
|
|
48
370
|
* the build-time configuration (`@intlayer/config/built`).
|
|
49
371
|
*/
|
|
50
372
|
export declare const reviewerEndpoint: CMSEndpoint<{
|
|
51
|
-
getMarketplace: (params?: GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<
|
|
52
|
-
|
|
53
|
-
|
|
373
|
+
getMarketplace: (params?: GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
|
|
374
|
+
[x: string]: unknown;
|
|
375
|
+
id: string;
|
|
376
|
+
userId: string;
|
|
377
|
+
name?: string | undefined;
|
|
378
|
+
avatar?: string | undefined;
|
|
379
|
+
bio?: string | undefined;
|
|
380
|
+
mainPicture?: string | undefined;
|
|
381
|
+
coverPicture?: string | undefined;
|
|
382
|
+
languagePairs: {
|
|
383
|
+
from: string;
|
|
384
|
+
to: string;
|
|
385
|
+
}[];
|
|
386
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
387
|
+
pricePerHour: number;
|
|
388
|
+
status: "active" | "pending" | "suspended";
|
|
389
|
+
totalMissions: number;
|
|
390
|
+
averageRating: number;
|
|
391
|
+
reviewCount: number;
|
|
392
|
+
socialLinks?: {
|
|
393
|
+
github?: string | undefined;
|
|
394
|
+
linkedin?: string | undefined;
|
|
395
|
+
portfolio?: string | undefined;
|
|
396
|
+
} | undefined;
|
|
397
|
+
isHidden?: boolean | undefined;
|
|
398
|
+
createdAt: string;
|
|
399
|
+
updatedAt: string;
|
|
400
|
+
}>>;
|
|
401
|
+
getPriceDistribution: (params?: Pick<GetMarketplaceQuery, 'fromLocale' | 'toLocale' | 'minRating' | 'categories'>, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
402
|
+
buckets: {
|
|
403
|
+
min: number;
|
|
404
|
+
max: number;
|
|
405
|
+
count: number;
|
|
406
|
+
}[];
|
|
407
|
+
globalMin: number;
|
|
408
|
+
globalMax: number;
|
|
409
|
+
}>>;
|
|
410
|
+
getReviewerById: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
411
|
+
[x: string]: unknown;
|
|
412
|
+
id: string;
|
|
413
|
+
userId: string;
|
|
414
|
+
name?: string | undefined;
|
|
415
|
+
avatar?: string | undefined;
|
|
416
|
+
bio?: string | undefined;
|
|
417
|
+
mainPicture?: string | undefined;
|
|
418
|
+
coverPicture?: string | undefined;
|
|
419
|
+
languagePairs: {
|
|
420
|
+
from: string;
|
|
421
|
+
to: string;
|
|
422
|
+
}[];
|
|
423
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
424
|
+
pricePerHour: number;
|
|
425
|
+
status: "active" | "pending" | "suspended";
|
|
426
|
+
totalMissions: number;
|
|
427
|
+
averageRating: number;
|
|
428
|
+
reviewCount: number;
|
|
429
|
+
socialLinks?: {
|
|
430
|
+
github?: string | undefined;
|
|
431
|
+
linkedin?: string | undefined;
|
|
432
|
+
portfolio?: string | undefined;
|
|
433
|
+
} | undefined;
|
|
434
|
+
isHidden?: boolean | undefined;
|
|
435
|
+
createdAt: string;
|
|
436
|
+
updatedAt: string;
|
|
437
|
+
}>>;
|
|
54
438
|
getReviewerReviews: (reviewerId: string, params?: {
|
|
55
439
|
page?: number;
|
|
56
440
|
pageSize?: number;
|
|
57
|
-
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
441
|
+
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
|
|
442
|
+
[x: string]: unknown;
|
|
443
|
+
id: string;
|
|
444
|
+
missionId: string;
|
|
445
|
+
reviewerId: string;
|
|
446
|
+
rating: number;
|
|
447
|
+
comment?: string | undefined;
|
|
448
|
+
createdAt: string;
|
|
449
|
+
updatedAt: string;
|
|
450
|
+
}>>;
|
|
451
|
+
getMyReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
452
|
+
[x: string]: unknown;
|
|
453
|
+
id: string;
|
|
454
|
+
userId: string;
|
|
455
|
+
name?: string | undefined;
|
|
456
|
+
avatar?: string | undefined;
|
|
457
|
+
bio?: string | undefined;
|
|
458
|
+
mainPicture?: string | undefined;
|
|
459
|
+
coverPicture?: string | undefined;
|
|
460
|
+
languagePairs: {
|
|
461
|
+
from: string;
|
|
462
|
+
to: string;
|
|
463
|
+
}[];
|
|
464
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
465
|
+
pricePerHour: number;
|
|
466
|
+
status: "active" | "pending" | "suspended";
|
|
467
|
+
totalMissions: number;
|
|
468
|
+
averageRating: number;
|
|
469
|
+
reviewCount: number;
|
|
470
|
+
socialLinks?: {
|
|
471
|
+
github?: string | undefined;
|
|
472
|
+
linkedin?: string | undefined;
|
|
473
|
+
portfolio?: string | undefined;
|
|
474
|
+
} | undefined;
|
|
475
|
+
isHidden?: boolean | undefined;
|
|
476
|
+
createdAt: string;
|
|
477
|
+
updatedAt: string;
|
|
478
|
+
} | null>>;
|
|
479
|
+
registerAsReviewer: (body: RegisterReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
480
|
+
[x: string]: unknown;
|
|
481
|
+
id: string;
|
|
482
|
+
userId: string;
|
|
483
|
+
name?: string | undefined;
|
|
484
|
+
avatar?: string | undefined;
|
|
485
|
+
bio?: string | undefined;
|
|
486
|
+
mainPicture?: string | undefined;
|
|
487
|
+
coverPicture?: string | undefined;
|
|
488
|
+
languagePairs: {
|
|
489
|
+
from: string;
|
|
490
|
+
to: string;
|
|
491
|
+
}[];
|
|
492
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
493
|
+
pricePerHour: number;
|
|
494
|
+
status: "active" | "pending" | "suspended";
|
|
495
|
+
totalMissions: number;
|
|
496
|
+
averageRating: number;
|
|
497
|
+
reviewCount: number;
|
|
498
|
+
socialLinks?: {
|
|
499
|
+
github?: string | undefined;
|
|
500
|
+
linkedin?: string | undefined;
|
|
501
|
+
portfolio?: string | undefined;
|
|
502
|
+
} | undefined;
|
|
503
|
+
isHidden?: boolean | undefined;
|
|
504
|
+
createdAt: string;
|
|
505
|
+
updatedAt: string;
|
|
506
|
+
}>>;
|
|
507
|
+
updateReviewerProfile: (body: UpdateReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
508
|
+
[x: string]: unknown;
|
|
509
|
+
id: string;
|
|
510
|
+
userId: string;
|
|
511
|
+
name?: string | undefined;
|
|
512
|
+
avatar?: string | undefined;
|
|
513
|
+
bio?: string | undefined;
|
|
514
|
+
mainPicture?: string | undefined;
|
|
515
|
+
coverPicture?: string | undefined;
|
|
516
|
+
languagePairs: {
|
|
517
|
+
from: string;
|
|
518
|
+
to: string;
|
|
519
|
+
}[];
|
|
520
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
521
|
+
pricePerHour: number;
|
|
522
|
+
status: "active" | "pending" | "suspended";
|
|
523
|
+
totalMissions: number;
|
|
524
|
+
averageRating: number;
|
|
525
|
+
reviewCount: number;
|
|
526
|
+
socialLinks?: {
|
|
527
|
+
github?: string | undefined;
|
|
528
|
+
linkedin?: string | undefined;
|
|
529
|
+
portfolio?: string | undefined;
|
|
530
|
+
} | undefined;
|
|
531
|
+
isHidden?: boolean | undefined;
|
|
532
|
+
createdAt: string;
|
|
533
|
+
updatedAt: string;
|
|
534
|
+
}>>;
|
|
61
535
|
deleteReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
|
|
62
|
-
estimateMission: (body: EstimateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<
|
|
63
|
-
|
|
536
|
+
estimateMission: (body: EstimateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
537
|
+
wordCount: number;
|
|
538
|
+
estimatedHours: number;
|
|
539
|
+
totalPrice: number;
|
|
540
|
+
currency: string;
|
|
541
|
+
}>>;
|
|
542
|
+
createMission: (body: CreateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
543
|
+
[x: string]: unknown;
|
|
544
|
+
id: string;
|
|
545
|
+
reviewerId: string;
|
|
546
|
+
clientUserId: string;
|
|
547
|
+
projectId?: string | undefined;
|
|
548
|
+
dictionaryIds: string[];
|
|
549
|
+
sourceLocale?: string | undefined;
|
|
550
|
+
targetLocales: string[];
|
|
551
|
+
wordCount: number;
|
|
552
|
+
estimatedHours: number;
|
|
553
|
+
pricePerHour: number;
|
|
554
|
+
totalPrice: number;
|
|
555
|
+
currency: string;
|
|
556
|
+
status: "accepted" | "canceled" | "client_review" | "completed" | "in_progress" | "pending" | "reviewer_review";
|
|
557
|
+
notes?: string | undefined;
|
|
558
|
+
aiPreGeneratedAt?: string | undefined;
|
|
559
|
+
completedAt?: string | undefined;
|
|
560
|
+
canceledAt?: string | undefined;
|
|
561
|
+
createdAt: string;
|
|
562
|
+
updatedAt: string;
|
|
563
|
+
}>>;
|
|
64
564
|
getMyMissions: (params?: {
|
|
65
565
|
role?: 'client' | 'reviewer';
|
|
66
566
|
page?: number;
|
|
67
567
|
pageSize?: number;
|
|
68
|
-
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
568
|
+
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
|
|
569
|
+
[x: string]: unknown;
|
|
570
|
+
id: string;
|
|
571
|
+
reviewerId: string;
|
|
572
|
+
clientUserId: string;
|
|
573
|
+
projectId?: string | undefined;
|
|
574
|
+
dictionaryIds: string[];
|
|
575
|
+
sourceLocale?: string | undefined;
|
|
576
|
+
targetLocales: string[];
|
|
577
|
+
wordCount: number;
|
|
578
|
+
estimatedHours: number;
|
|
579
|
+
pricePerHour: number;
|
|
580
|
+
totalPrice: number;
|
|
581
|
+
currency: string;
|
|
582
|
+
status: "accepted" | "canceled" | "client_review" | "completed" | "in_progress" | "pending" | "reviewer_review";
|
|
583
|
+
notes?: string | undefined;
|
|
584
|
+
aiPreGeneratedAt?: string | undefined;
|
|
585
|
+
completedAt?: string | undefined;
|
|
586
|
+
canceledAt?: string | undefined;
|
|
587
|
+
createdAt: string;
|
|
588
|
+
updatedAt: string;
|
|
589
|
+
}>>;
|
|
590
|
+
getMissionById: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
591
|
+
[x: string]: unknown;
|
|
592
|
+
id: string;
|
|
593
|
+
reviewerId: string;
|
|
594
|
+
clientUserId: string;
|
|
595
|
+
projectId?: string | undefined;
|
|
596
|
+
dictionaryIds: string[];
|
|
597
|
+
sourceLocale?: string | undefined;
|
|
598
|
+
targetLocales: string[];
|
|
599
|
+
wordCount: number;
|
|
600
|
+
estimatedHours: number;
|
|
601
|
+
pricePerHour: number;
|
|
602
|
+
totalPrice: number;
|
|
603
|
+
currency: string;
|
|
604
|
+
status: "accepted" | "canceled" | "client_review" | "completed" | "in_progress" | "pending" | "reviewer_review";
|
|
605
|
+
notes?: string | undefined;
|
|
606
|
+
aiPreGeneratedAt?: string | undefined;
|
|
607
|
+
completedAt?: string | undefined;
|
|
608
|
+
canceledAt?: string | undefined;
|
|
609
|
+
createdAt: string;
|
|
610
|
+
updatedAt: string;
|
|
611
|
+
}>>;
|
|
612
|
+
updateMissionStatus: (missionId: string, body: UpdateMissionStatusBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
613
|
+
[x: string]: unknown;
|
|
614
|
+
id: string;
|
|
615
|
+
reviewerId: string;
|
|
616
|
+
clientUserId: string;
|
|
617
|
+
projectId?: string | undefined;
|
|
618
|
+
dictionaryIds: string[];
|
|
619
|
+
sourceLocale?: string | undefined;
|
|
620
|
+
targetLocales: string[];
|
|
621
|
+
wordCount: number;
|
|
622
|
+
estimatedHours: number;
|
|
623
|
+
pricePerHour: number;
|
|
624
|
+
totalPrice: number;
|
|
625
|
+
currency: string;
|
|
626
|
+
status: "accepted" | "canceled" | "client_review" | "completed" | "in_progress" | "pending" | "reviewer_review";
|
|
627
|
+
notes?: string | undefined;
|
|
628
|
+
aiPreGeneratedAt?: string | undefined;
|
|
629
|
+
completedAt?: string | undefined;
|
|
630
|
+
canceledAt?: string | undefined;
|
|
631
|
+
createdAt: string;
|
|
632
|
+
updatedAt: string;
|
|
633
|
+
}>>;
|
|
634
|
+
submitReview: (missionId: string, body: SubmitReviewBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
635
|
+
[x: string]: unknown;
|
|
636
|
+
id: string;
|
|
637
|
+
missionId: string;
|
|
638
|
+
reviewerId: string;
|
|
639
|
+
rating: number;
|
|
640
|
+
comment?: string | undefined;
|
|
641
|
+
createdAt: string;
|
|
642
|
+
updatedAt: string;
|
|
643
|
+
}>>;
|
|
72
644
|
contactReviewer: (reviewerId: string, body: {
|
|
73
645
|
message: string;
|
|
74
646
|
}, otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
|
|
75
|
-
getChatHistory: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<
|
|
76
|
-
|
|
647
|
+
getChatHistory: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
648
|
+
[x: string]: unknown;
|
|
649
|
+
id: string;
|
|
650
|
+
missionId: string;
|
|
651
|
+
senderId: string;
|
|
652
|
+
content: string;
|
|
653
|
+
readAt?: string | undefined;
|
|
654
|
+
createdAt: string;
|
|
655
|
+
updatedAt: string;
|
|
656
|
+
}[]>>;
|
|
657
|
+
sendMessage: (missionId: string, body: SendMessageBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
658
|
+
[x: string]: unknown;
|
|
659
|
+
id: string;
|
|
660
|
+
missionId: string;
|
|
661
|
+
senderId: string;
|
|
662
|
+
content: string;
|
|
663
|
+
readAt?: string | undefined;
|
|
664
|
+
createdAt: string;
|
|
665
|
+
updatedAt: string;
|
|
666
|
+
}>>;
|
|
77
667
|
getChatStreamUrl: (missionId: string) => string;
|
|
78
668
|
uploadMainPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
|
|
79
669
|
uploadCoverPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
|
|
80
|
-
validateReviewerProfile: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<
|
|
670
|
+
validateReviewerProfile: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
|
|
671
|
+
[x: string]: unknown;
|
|
672
|
+
id: string;
|
|
673
|
+
userId: string;
|
|
674
|
+
name?: string | undefined;
|
|
675
|
+
avatar?: string | undefined;
|
|
676
|
+
bio?: string | undefined;
|
|
677
|
+
mainPicture?: string | undefined;
|
|
678
|
+
coverPicture?: string | undefined;
|
|
679
|
+
languagePairs: {
|
|
680
|
+
from: string;
|
|
681
|
+
to: string;
|
|
682
|
+
}[];
|
|
683
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
684
|
+
pricePerHour: number;
|
|
685
|
+
status: "active" | "pending" | "suspended";
|
|
686
|
+
totalMissions: number;
|
|
687
|
+
averageRating: number;
|
|
688
|
+
reviewCount: number;
|
|
689
|
+
socialLinks?: {
|
|
690
|
+
github?: string | undefined;
|
|
691
|
+
linkedin?: string | undefined;
|
|
692
|
+
portfolio?: string | undefined;
|
|
693
|
+
} | undefined;
|
|
694
|
+
isHidden?: boolean | undefined;
|
|
695
|
+
createdAt: string;
|
|
696
|
+
updatedAt: string;
|
|
697
|
+
}>>;
|
|
81
698
|
getAdminReviewers: (params?: {
|
|
82
699
|
page?: number;
|
|
83
700
|
pageSize?: number;
|
|
84
701
|
status?: string;
|
|
85
|
-
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<
|
|
702
|
+
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
|
|
703
|
+
[x: string]: unknown;
|
|
704
|
+
id: string;
|
|
705
|
+
userId: string;
|
|
706
|
+
name?: string | undefined;
|
|
707
|
+
avatar?: string | undefined;
|
|
708
|
+
bio?: string | undefined;
|
|
709
|
+
mainPicture?: string | undefined;
|
|
710
|
+
coverPicture?: string | undefined;
|
|
711
|
+
languagePairs: {
|
|
712
|
+
from: string;
|
|
713
|
+
to: string;
|
|
714
|
+
}[];
|
|
715
|
+
categories: ("copywriter" | "marketing" | "proofreader" | "seo" | "technical_writer" | "translator")[];
|
|
716
|
+
pricePerHour: number;
|
|
717
|
+
status: "active" | "pending" | "suspended";
|
|
718
|
+
totalMissions: number;
|
|
719
|
+
averageRating: number;
|
|
720
|
+
reviewCount: number;
|
|
721
|
+
socialLinks?: {
|
|
722
|
+
github?: string | undefined;
|
|
723
|
+
linkedin?: string | undefined;
|
|
724
|
+
portfolio?: string | undefined;
|
|
725
|
+
} | undefined;
|
|
726
|
+
isHidden?: boolean | undefined;
|
|
727
|
+
createdAt: string;
|
|
728
|
+
updatedAt: string;
|
|
729
|
+
}>>;
|
|
86
730
|
}>;
|
|
87
|
-
//#endregion
|
|
88
731
|
//# sourceMappingURL=reviewer.d.ts.map
|