@lokalise/maestro-expert-tenant-lib 3.2.2 → 3.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/index.cjs +30 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2385 -616
- package/dist/index.d.ts +2385 -616
- package/dist/index.mjs +28 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -110,7 +110,8 @@ __export(index_exports, {
|
|
|
110
110
|
WORKFLOW_RUN: () => WORKFLOW_RUN,
|
|
111
111
|
WORKFLOW_RUN_STATUS: () => WORKFLOW_RUN_STATUS,
|
|
112
112
|
WORKFLOW_RUN_TYPE: () => WORKFLOW_RUN_TYPE,
|
|
113
|
-
WORKFLOW_STATUS: () => WORKFLOW_STATUS
|
|
113
|
+
WORKFLOW_STATUS: () => WORKFLOW_STATUS,
|
|
114
|
+
getEntitlementsContract: () => getEntitlementsContract
|
|
114
115
|
});
|
|
115
116
|
module.exports = __toCommonJS(index_exports);
|
|
116
117
|
|
|
@@ -304,8 +305,11 @@ var TASK_LANGUAGE_ASSIGNEES = import_zod3.z.object({
|
|
|
304
305
|
languageId: import_zod3.z.number(),
|
|
305
306
|
userIds: import_zod3.z.optional(import_zod3.z.array(import_zod3.z.number())),
|
|
306
307
|
userGroupIds: import_zod3.z.optional(import_zod3.z.array(import_zod3.z.number())),
|
|
307
|
-
isSource: import_zod3.z.boolean()
|
|
308
|
-
})
|
|
308
|
+
isSource: import_zod3.z.boolean()
|
|
309
|
+
}).transform((obj) => ({
|
|
310
|
+
...obj,
|
|
311
|
+
isSource: obj.isSource ?? false
|
|
312
|
+
}));
|
|
309
313
|
var TRANSLATION_ENGINE = import_zod3.z.enum(["ai", "deepl", "google"], {
|
|
310
314
|
errorMap: /* @__PURE__ */ __name(() => ({ message: "Please choose a translation engine" }), "errorMap")
|
|
311
315
|
});
|
|
@@ -1856,6 +1860,27 @@ var WORKFLOW_RUN = import_zod9.default.object({
|
|
|
1856
1860
|
var POST_START_WORKFLOW_RUN_RESPONSE = import_zod9.default.object({
|
|
1857
1861
|
data: WORKFLOW_RUN
|
|
1858
1862
|
});
|
|
1863
|
+
|
|
1864
|
+
// src/apiContract/contracts.ts
|
|
1865
|
+
var import_api_common2 = require("@lokalise/api-common");
|
|
1866
|
+
var import_node2 = require("@lokalise/universal-ts-utils/node");
|
|
1867
|
+
var import_zod10 = require("zod");
|
|
1868
|
+
var GET_ENTITLEMENTS_REQUEST_HEADER = import_zod10.z.object({
|
|
1869
|
+
authorization: import_zod10.z.string().describe("Authorization header")
|
|
1870
|
+
});
|
|
1871
|
+
var getEntitlementsContract = (0, import_node2.buildGetRoute)({
|
|
1872
|
+
requestPathParamsSchema: GET_ENTITLEMENTS_PARAMS,
|
|
1873
|
+
requestHeaderSchema: GET_ENTITLEMENTS_REQUEST_HEADER,
|
|
1874
|
+
pathResolver: /* @__PURE__ */ __name((params) => `/v1/entitlements/${params.ownerId}`, "pathResolver"),
|
|
1875
|
+
description: "Get entitlements for a group",
|
|
1876
|
+
successResponseBodySchema: GET_ENTITLEMENTS_RESPONSE,
|
|
1877
|
+
responseSchemasByStatusCode: {
|
|
1878
|
+
200: GET_ENTITLEMENTS_RESPONSE,
|
|
1879
|
+
400: import_api_common2.COMMON_ERROR_RESPONSE_SCHEMA,
|
|
1880
|
+
403: import_api_common2.COMMON_ERROR_RESPONSE_SCHEMA,
|
|
1881
|
+
404: import_api_common2.COMMON_ERROR_RESPONSE_SCHEMA
|
|
1882
|
+
}
|
|
1883
|
+
});
|
|
1859
1884
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1860
1885
|
0 && (module.exports = {
|
|
1861
1886
|
AI_MT_TRANSLATION_STEP_FORM_SCHEMA,
|
|
@@ -1937,6 +1962,7 @@ var POST_START_WORKFLOW_RUN_RESPONSE = import_zod9.default.object({
|
|
|
1937
1962
|
WORKFLOW_RUN,
|
|
1938
1963
|
WORKFLOW_RUN_STATUS,
|
|
1939
1964
|
WORKFLOW_RUN_TYPE,
|
|
1940
|
-
WORKFLOW_STATUS
|
|
1965
|
+
WORKFLOW_STATUS,
|
|
1966
|
+
getEntitlementsContract
|
|
1941
1967
|
});
|
|
1942
1968
|
//# sourceMappingURL=index.cjs.map
|