@lokalise/translation-storage-api-schemas 13.3.0 → 13.4.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/dist/api/contracts/translation-process/get-project-translation-settings.d.ts +6 -0
- package/dist/api/contracts/translation-process/get-project-translation-settings.d.ts.map +1 -1
- package/dist/api/contracts/translation-process/post-retrieve-batch-translation-settings.d.ts +6 -0
- package/dist/api/contracts/translation-process/post-retrieve-batch-translation-settings.d.ts.map +1 -1
- package/dist/api/contracts/translation-process/put-project-translation-settings.d.ts +8 -0
- package/dist/api/contracts/translation-process/put-project-translation-settings.d.ts.map +1 -1
- package/dist/api/objects/project-translation-settings.d.ts +8 -0
- package/dist/api/objects/project-translation-settings.d.ts.map +1 -1
- package/dist/api/objects/project-translation-settings.js +15 -0
- package/dist/api/objects/project-translation-settings.js.map +1 -1
- package/package.json +1 -1
|
@@ -15,12 +15,14 @@ export declare const GET_PROJECT_TRANSLATION_SETTINGS_RESPONSE_SCHEMA: z.ZodObje
|
|
|
15
15
|
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
16
16
|
readonly CRITICAL: 'CRITICAL';
|
|
17
17
|
}>;
|
|
18
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
18
19
|
}, z.core.$strip>, z.ZodObject<{
|
|
19
20
|
workflowType: z.ZodIntersection<z.ZodEnum<{
|
|
20
21
|
readonly AI_ONLY: 'AI_ONLY';
|
|
21
22
|
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
22
23
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
23
24
|
reviewThreshold: z.ZodNull;
|
|
25
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
24
26
|
}, z.core.$strip>]>;
|
|
25
27
|
}, z.core.$strip>;
|
|
26
28
|
export type GetProjectTranslationSettingsResponse = z.infer<typeof GET_PROJECT_TRANSLATION_SETTINGS_RESPONSE_SCHEMA>;
|
|
@@ -36,12 +38,14 @@ export declare const getProjectTranslationSettingsContract: import("@lokalise/ap
|
|
|
36
38
|
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
37
39
|
readonly CRITICAL: 'CRITICAL';
|
|
38
40
|
}>;
|
|
41
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
39
42
|
}, z.core.$strip>, z.ZodObject<{
|
|
40
43
|
workflowType: z.ZodIntersection<z.ZodEnum<{
|
|
41
44
|
readonly AI_ONLY: 'AI_ONLY';
|
|
42
45
|
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
43
46
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
44
47
|
reviewThreshold: z.ZodNull;
|
|
48
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
45
49
|
}, z.core.$strip>]>;
|
|
46
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
47
51
|
projectId: z.ZodGUID;
|
|
@@ -73,12 +77,14 @@ export declare const getProjectTranslationSettingsContract: import("@lokalise/ap
|
|
|
73
77
|
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
74
78
|
readonly CRITICAL: 'CRITICAL';
|
|
75
79
|
}>;
|
|
80
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
76
81
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
82
|
workflowType: z.ZodIntersection<z.ZodEnum<{
|
|
78
83
|
readonly AI_ONLY: 'AI_ONLY';
|
|
79
84
|
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
80
85
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
81
86
|
reviewThreshold: z.ZodNull;
|
|
87
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
82
88
|
}, z.core.$strip>]>;
|
|
83
89
|
}, z.core.$strip>;
|
|
84
90
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-project-translation-settings.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/translation-process/get-project-translation-settings.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAM1B,eAAO,MAAM,8CAA8C;;iBAEzD,CAAA;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,8CAA8C,CACtD,CAAA;AAED,eAAO,MAAM,gDAAgD
|
|
1
|
+
{"version":3,"file":"get-project-translation-settings.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/translation-process/get-project-translation-settings.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAM1B,eAAO,MAAM,8CAA8C;;iBAEzD,CAAA;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,8CAA8C,CACtD,CAAA;AAED,eAAO,MAAM,gDAAgD;;;;;;;;;;;;;;;;;;;;;iBAE3D,CAAA;AACF,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,gDAAgD,CACxD,CAAA;AAED,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAahD,CAAA"}
|
package/dist/api/contracts/translation-process/post-retrieve-batch-translation-settings.d.ts
CHANGED
|
@@ -18,12 +18,14 @@ export declare const POST_RETRIEVE_BATCH_TRANSLATION_SETTINGS_RESPONSE_SCHEMA: z
|
|
|
18
18
|
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
19
19
|
readonly CRITICAL: 'CRITICAL';
|
|
20
20
|
}>;
|
|
21
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
21
22
|
}, z.core.$strip>, z.ZodObject<{
|
|
22
23
|
workflowType: z.ZodIntersection<z.ZodEnum<{
|
|
23
24
|
readonly AI_ONLY: 'AI_ONLY';
|
|
24
25
|
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
25
26
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
26
27
|
reviewThreshold: z.ZodNull;
|
|
28
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
27
29
|
}, z.core.$strip>]>;
|
|
28
30
|
}, z.core.$strip>>;
|
|
29
31
|
}, z.core.$strip>;
|
|
@@ -56,12 +58,14 @@ export declare const postRetrieveBatchTranslationSettingsContract: import("@loka
|
|
|
56
58
|
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
57
59
|
readonly CRITICAL: 'CRITICAL';
|
|
58
60
|
}>;
|
|
61
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
59
62
|
}, z.core.$strip>, z.ZodObject<{
|
|
60
63
|
workflowType: z.ZodIntersection<z.ZodEnum<{
|
|
61
64
|
readonly AI_ONLY: 'AI_ONLY';
|
|
62
65
|
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
63
66
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
64
67
|
reviewThreshold: z.ZodNull;
|
|
68
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
65
69
|
}, z.core.$strip>]>;
|
|
66
70
|
}, z.core.$strip>>;
|
|
67
71
|
}, z.core.$strip>, undefined, undefined, z.ZodOptional<z.ZodAny>, undefined, false, false, {
|
|
@@ -94,12 +98,14 @@ export declare const postRetrieveBatchTranslationSettingsContract: import("@loka
|
|
|
94
98
|
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
95
99
|
readonly CRITICAL: 'CRITICAL';
|
|
96
100
|
}>;
|
|
101
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
97
102
|
}, z.core.$strip>, z.ZodObject<{
|
|
98
103
|
workflowType: z.ZodIntersection<z.ZodEnum<{
|
|
99
104
|
readonly AI_ONLY: 'AI_ONLY';
|
|
100
105
|
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
101
106
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
102
107
|
reviewThreshold: z.ZodNull;
|
|
108
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
103
109
|
}, z.core.$strip>]>;
|
|
104
110
|
}, z.core.$strip>>;
|
|
105
111
|
}, z.core.$strip>;
|
package/dist/api/contracts/translation-process/post-retrieve-batch-translation-settings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-retrieve-batch-translation-settings.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/translation-process/post-retrieve-batch-translation-settings.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAO1B,eAAO,MAAM,mDAAmD,MAAM,CAAA;AAEtE,eAAO,MAAM,oDAAoD;;iBAE/D,CAAA;AAEF,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,oDAAoD,CAC5D,CAAA;AAED,eAAO,MAAM,wDAAwD
|
|
1
|
+
{"version":3,"file":"post-retrieve-batch-translation-settings.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/translation-process/post-retrieve-batch-translation-settings.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAO1B,eAAO,MAAM,mDAAmD,MAAM,CAAA;AAEtE,eAAO,MAAM,oDAAoD;;iBAE/D,CAAA;AAEF,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,oDAAoD,CAC5D,CAAA;AAED,eAAO,MAAM,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;iBAOnE,CAAA;AACF,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAChE,OAAO,wDAAwD,CAChE,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAevD,CAAA"}
|
|
@@ -34,12 +34,14 @@ export declare const PUT_UPSERT_TRANSLATION_SETTINGS_RESPONSE_SCHEMA: z.ZodObjec
|
|
|
34
34
|
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
35
35
|
readonly CRITICAL: 'CRITICAL';
|
|
36
36
|
}>;
|
|
37
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
37
38
|
}, z.core.$strip>, z.ZodObject<{
|
|
38
39
|
workflowType: z.ZodIntersection<z.ZodEnum<{
|
|
39
40
|
readonly AI_ONLY: 'AI_ONLY';
|
|
40
41
|
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
41
42
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
42
43
|
reviewThreshold: z.ZodNull;
|
|
44
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
43
45
|
}, z.core.$strip>]>;
|
|
44
46
|
}, z.core.$strip>;
|
|
45
47
|
export type PutUpsertTranslationSettingsResponse = z.infer<typeof PUT_UPSERT_TRANSLATION_SETTINGS_RESPONSE_SCHEMA>;
|
|
@@ -72,12 +74,14 @@ export declare const putProjectTranslationSettingsContract: import("@lokalise/ap
|
|
|
72
74
|
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
73
75
|
readonly CRITICAL: 'CRITICAL';
|
|
74
76
|
}>;
|
|
77
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
75
78
|
}, z.core.$strip>, z.ZodObject<{
|
|
76
79
|
workflowType: z.ZodIntersection<z.ZodEnum<{
|
|
77
80
|
readonly AI_ONLY: 'AI_ONLY';
|
|
78
81
|
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
79
82
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
80
83
|
reviewThreshold: z.ZodNull;
|
|
84
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
81
85
|
}, z.core.$strip>]>;
|
|
82
86
|
}, z.core.$strip>, z.ZodObject<{
|
|
83
87
|
projectId: z.ZodGUID;
|
|
@@ -109,12 +113,14 @@ export declare const putProjectTranslationSettingsContract: import("@lokalise/ap
|
|
|
109
113
|
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
110
114
|
readonly CRITICAL: 'CRITICAL';
|
|
111
115
|
}>;
|
|
116
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
112
117
|
}, z.core.$strip>, z.ZodObject<{
|
|
113
118
|
workflowType: z.ZodIntersection<z.ZodEnum<{
|
|
114
119
|
readonly AI_ONLY: 'AI_ONLY';
|
|
115
120
|
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
116
121
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
117
122
|
reviewThreshold: z.ZodNull;
|
|
123
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
118
124
|
}, z.core.$strip>]>;
|
|
119
125
|
}, z.core.$strip>;
|
|
120
126
|
201: z.ZodObject<{
|
|
@@ -129,12 +135,14 @@ export declare const putProjectTranslationSettingsContract: import("@lokalise/ap
|
|
|
129
135
|
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
130
136
|
readonly CRITICAL: 'CRITICAL';
|
|
131
137
|
}>;
|
|
138
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
132
139
|
}, z.core.$strip>, z.ZodObject<{
|
|
133
140
|
workflowType: z.ZodIntersection<z.ZodEnum<{
|
|
134
141
|
readonly AI_ONLY: 'AI_ONLY';
|
|
135
142
|
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
136
143
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
137
144
|
reviewThreshold: z.ZodNull;
|
|
145
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
138
146
|
}, z.core.$strip>]>;
|
|
139
147
|
}, z.core.$strip>;
|
|
140
148
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"put-project-translation-settings.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/translation-process/put-project-translation-settings.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAY1B,eAAO,MAAM,6CAA6C;;iBAIF,CAAA;AACxD,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,6CAA6C,CACrD,CAAA;AAED,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;mBA2BH,CAAA;AACrD,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,2CAA2C,CACnD,CAAA;AAED,eAAO,MAAM,+CAA+C
|
|
1
|
+
{"version":3,"file":"put-project-translation-settings.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/translation-process/put-project-translation-settings.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAY1B,eAAO,MAAM,6CAA6C;;iBAIF,CAAA;AACxD,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,6CAA6C,CACrD,CAAA;AAED,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;mBA2BH,CAAA;AACrD,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,2CAA2C,CACnD,CAAA;AAED,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;iBAE1D,CAAA;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,+CAA+C,CACvD,CAAA;AAED,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBhD,CAAA"}
|
|
@@ -22,6 +22,12 @@ export declare const REVIEW_THRESHOLD_SCHEMA: z.ZodEnum<{
|
|
|
22
22
|
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
23
23
|
readonly CRITICAL: 'CRITICAL';
|
|
24
24
|
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Default review turnaround in calendar days, used to compute task due dates when a project has no
|
|
27
|
+
* stored turnaround (the local store does not persist it; only projects-engine exposes it). Mirrors
|
|
28
|
+
* the projects-engine read-time default (MET-1923 / MET-1954).
|
|
29
|
+
*/
|
|
30
|
+
export declare const DEFAULT_REVIEW_TURNAROUND_DAYS = 5;
|
|
25
31
|
export declare const PROJECT_TRANSLATION_SETTINGS_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
|
|
26
32
|
workflowType: z.ZodIntersection<z.ZodEnum<{
|
|
27
33
|
readonly AI_ONLY: 'AI_ONLY';
|
|
@@ -33,12 +39,14 @@ export declare const PROJECT_TRANSLATION_SETTINGS_SCHEMA: z.ZodUnion<readonly [z
|
|
|
33
39
|
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
34
40
|
readonly CRITICAL: 'CRITICAL';
|
|
35
41
|
}>;
|
|
42
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
36
43
|
}, z.core.$strip>, z.ZodObject<{
|
|
37
44
|
workflowType: z.ZodIntersection<z.ZodEnum<{
|
|
38
45
|
readonly AI_ONLY: 'AI_ONLY';
|
|
39
46
|
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
40
47
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
41
48
|
reviewThreshold: z.ZodNull;
|
|
49
|
+
reviewTurnaroundDays: z.ZodOptional<z.ZodNumber>;
|
|
42
50
|
}, z.core.$strip>]>;
|
|
43
51
|
export type ProjectTranslationSettings = z.infer<typeof PROJECT_TRANSLATION_SETTINGS_SCHEMA>;
|
|
44
52
|
//# sourceMappingURL=project-translation-settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-translation-settings.d.ts","sourceRoot":"","sources":["../../../src/api/objects/project-translation-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAA;AAClF,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,eAAO,MAAM,gBAAgB;aAC3B,OAAO,EAAE,SAAS;aAClB,eAAe,EAAE,iBAAiB;CAC1B,CAAA;AACV,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAChE,eAAO,MAAM,oBAAoB;sBAJtB,SAAS;8BACD,iBAAiB;EAGwB,CAAA;AAE5D,eAAO,MAAM,mBAAmB;aAC9B,WAAW,EAAE,aAAa;aAC1B,oBAAoB,EAAE,sBAAsB;aAC5C,cAAc,EAAE,gBAAgB;aAChC,QAAQ,EAAE,UAAU;CACZ,CAAA;AACV,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAA;AACtE,eAAO,MAAM,uBAAuB;0BANrB,aAAa;mCACJ,sBAAsB;6BAC5B,gBAAgB;uBACtB,UAAU;EAG4C,CAAA;AAElE,eAAO,MAAM,mCAAmC;;
|
|
1
|
+
{"version":3,"file":"project-translation-settings.d.ts","sourceRoot":"","sources":["../../../src/api/objects/project-translation-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAA;AAClF,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,eAAO,MAAM,gBAAgB;aAC3B,OAAO,EAAE,SAAS;aAClB,eAAe,EAAE,iBAAiB;CAC1B,CAAA;AACV,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAChE,eAAO,MAAM,oBAAoB;sBAJtB,SAAS;8BACD,iBAAiB;EAGwB,CAAA;AAE5D,eAAO,MAAM,mBAAmB;aAC9B,WAAW,EAAE,aAAa;aAC1B,oBAAoB,EAAE,sBAAsB;aAC5C,cAAc,EAAE,gBAAgB;aAChC,QAAQ,EAAE,UAAU;CACZ,CAAA;AACV,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAA;AACtE,eAAO,MAAM,uBAAuB;0BANrB,aAAa;mCACJ,sBAAsB;6BAC5B,gBAAgB;uBACtB,UAAU;EAG4C,CAAA;AAElE;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,IAAI,CAAA;AAU/C,eAAO,MAAM,mCAAmC;;0BA9BrC,SAAS;kCACD,iBAAiB;;;8BAMrB,aAAa;uCACJ,sBAAsB;iCAC5B,gBAAgB;2BACtB,UAAU;;;;;;;;;;mBA+BpB,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA"}
|
|
@@ -11,14 +11,29 @@ export const ReviewThresholdEnum = {
|
|
|
11
11
|
CRITICAL: 'CRITICAL',
|
|
12
12
|
};
|
|
13
13
|
export const REVIEW_THRESHOLD_SCHEMA = z.enum(ReviewThresholdEnum);
|
|
14
|
+
/**
|
|
15
|
+
* Default review turnaround in calendar days, used to compute task due dates when a project has no
|
|
16
|
+
* stored turnaround (the local store does not persist it; only projects-engine exposes it). Mirrors
|
|
17
|
+
* the projects-engine read-time default (MET-1923 / MET-1954).
|
|
18
|
+
*/
|
|
19
|
+
export const DEFAULT_REVIEW_TURNAROUND_DAYS = 5;
|
|
20
|
+
/**
|
|
21
|
+
* Review turnaround in calendar days. Optional because it is only exposed via the projects-engine
|
|
22
|
+
* read (`@lokalise/projects-engine-contracts` >= 4.3); the local translation-settings store does not
|
|
23
|
+
* persist it, so reads from that path omit it and consumers fall back to
|
|
24
|
+
* {@link DEFAULT_REVIEW_TURNAROUND_DAYS}.
|
|
25
|
+
*/
|
|
26
|
+
const REVIEW_TURNAROUND_DAYS_SCHEMA = z.number().int().positive().optional();
|
|
14
27
|
export const PROJECT_TRANSLATION_SETTINGS_SCHEMA = z.union([
|
|
15
28
|
z.object({
|
|
16
29
|
workflowType: WORKFLOW_TYPE_SCHEMA.and(z.literal(WorkflowTypeEnum.AI_HUMAN_REVIEW)),
|
|
17
30
|
reviewThreshold: REVIEW_THRESHOLD_SCHEMA,
|
|
31
|
+
reviewTurnaroundDays: REVIEW_TURNAROUND_DAYS_SCHEMA,
|
|
18
32
|
}),
|
|
19
33
|
z.object({
|
|
20
34
|
workflowType: WORKFLOW_TYPE_SCHEMA.and(z.literal(WorkflowTypeEnum.AI_ONLY)),
|
|
21
35
|
reviewThreshold: z.null(),
|
|
36
|
+
reviewTurnaroundDays: REVIEW_TURNAROUND_DAYS_SCHEMA,
|
|
22
37
|
}),
|
|
23
38
|
]);
|
|
24
39
|
//# sourceMappingURL=project-translation-settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-translation-settings.js","sourceRoot":"","sources":["../../../src/api/objects/project-translation-settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,iBAAiB;CAC1B,CAAA;AAEV,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;AAE5D,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW,EAAE,aAAa;IAC1B,oBAAoB,EAAE,sBAAsB;IAC5C,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAAE,UAAU;CACZ,CAAA;AAEV,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;AAElE,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC;IACzD,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;QACnF,eAAe,EAAE,uBAAuB;
|
|
1
|
+
{"version":3,"file":"project-translation-settings.js","sourceRoot":"","sources":["../../../src/api/objects/project-translation-settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,iBAAiB;CAC1B,CAAA;AAEV,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;AAE5D,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW,EAAE,aAAa;IAC1B,oBAAoB,EAAE,sBAAsB;IAC5C,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAAE,UAAU;CACZ,CAAA;AAEV,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;AAElE;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAA;AAE/C;;;;;GAKG;AACH,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAA;AAE5E,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC;IACzD,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;QACnF,eAAe,EAAE,uBAAuB;QACxC,oBAAoB,EAAE,6BAA6B;KACpD,CAAC;IACF,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAC3E,eAAe,EAAE,CAAC,CAAC,IAAI,EAAE;QACzB,oBAAoB,EAAE,6BAA6B;KACpD,CAAC;CACH,CAAC,CAAA"}
|