@camunda/camunda-api-zod-schemas 0.0.32 → 0.0.34
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/8.9/incident.d.ts +90 -0
- package/dist/8.9/incident.js +50 -0
- package/dist/8.9/index.d.ts +14 -0
- package/dist/8.9/index.js +19 -0
- package/dist/8.9/resource.d.ts +125 -0
- package/dist/8.9/resource.js +118 -0
- package/dist/8.9.js +28 -1
- package/package.json +13 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Endpoint } from '../common';
|
|
3
|
+
declare const getIncidentProcessInstanceStatisticsByError: Endpoint;
|
|
4
|
+
declare const getIncidentProcessInstanceStatisticsByDefinition: Endpoint;
|
|
5
|
+
declare const incidentProcessInstanceStatisticsByErrorSchema: z.ZodObject<{
|
|
6
|
+
errorHashCode: z.ZodNumber;
|
|
7
|
+
errorMessage: z.ZodString;
|
|
8
|
+
activeInstancesWithErrorCount: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const incidentProcessInstanceStatisticsByDefinitionSchema: z.ZodObject<{
|
|
11
|
+
processDefinitionId: z.ZodString;
|
|
12
|
+
processDefinitionKey: z.ZodNumber;
|
|
13
|
+
processDefinitionName: z.ZodString;
|
|
14
|
+
processDefinitionVersion: z.ZodNumber;
|
|
15
|
+
tenantId: z.ZodString;
|
|
16
|
+
activeInstancesWithErrorCount: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
type IncidentProcessInstanceStatisticsByError = z.infer<typeof incidentProcessInstanceStatisticsByErrorSchema>;
|
|
19
|
+
type IncidentProcessInstanceStatisticsByDefinition = z.infer<typeof incidentProcessInstanceStatisticsByDefinitionSchema>;
|
|
20
|
+
declare const getIncidentProcessInstanceStatisticsByErrorRequestBodySchema: z.ZodObject<{
|
|
21
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22
|
+
field: z.ZodEnum<{
|
|
23
|
+
errorMessage: "errorMessage";
|
|
24
|
+
activeInstancesWithErrorCount: "activeInstancesWithErrorCount";
|
|
25
|
+
}>;
|
|
26
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
asc: "asc";
|
|
28
|
+
desc: "desc";
|
|
29
|
+
}>>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
before: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
35
|
+
after: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
filter: z.ZodOptional<z.ZodNever>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
declare const getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema: z.ZodObject<{
|
|
40
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
|
+
field: z.ZodEnum<{
|
|
42
|
+
tenantId: "tenantId";
|
|
43
|
+
processDefinitionKey: "processDefinitionKey";
|
|
44
|
+
activeInstancesWithErrorCount: "activeInstancesWithErrorCount";
|
|
45
|
+
}>;
|
|
46
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
asc: "asc";
|
|
48
|
+
desc: "desc";
|
|
49
|
+
}>>;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
51
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
before: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
55
|
+
after: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
errorHashCode: z.ZodNumber;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
type GetIncidentProcessInstanceStatisticsByErrorRequestBody = z.infer<typeof getIncidentProcessInstanceStatisticsByErrorRequestBodySchema>;
|
|
62
|
+
type GetIncidentProcessInstanceStatisticsByDefinitionRequestBody = z.infer<typeof getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema>;
|
|
63
|
+
declare const getIncidentProcessInstanceStatisticsByErrorResponseBodySchema: z.ZodType<import('../common').QueryResponseBody<{
|
|
64
|
+
errorHashCode: number;
|
|
65
|
+
errorMessage: string;
|
|
66
|
+
activeInstancesWithErrorCount: number;
|
|
67
|
+
}>, unknown, z.core.$ZodTypeInternals<import('../common').QueryResponseBody<{
|
|
68
|
+
errorHashCode: number;
|
|
69
|
+
errorMessage: string;
|
|
70
|
+
activeInstancesWithErrorCount: number;
|
|
71
|
+
}>, unknown>>;
|
|
72
|
+
declare const getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema: z.ZodType<import('../common').QueryResponseBody<{
|
|
73
|
+
processDefinitionId: string;
|
|
74
|
+
processDefinitionKey: number;
|
|
75
|
+
processDefinitionName: string;
|
|
76
|
+
processDefinitionVersion: number;
|
|
77
|
+
tenantId: string;
|
|
78
|
+
activeInstancesWithErrorCount: number;
|
|
79
|
+
}>, unknown, z.core.$ZodTypeInternals<import('../common').QueryResponseBody<{
|
|
80
|
+
processDefinitionId: string;
|
|
81
|
+
processDefinitionKey: number;
|
|
82
|
+
processDefinitionName: string;
|
|
83
|
+
processDefinitionVersion: number;
|
|
84
|
+
tenantId: string;
|
|
85
|
+
activeInstancesWithErrorCount: number;
|
|
86
|
+
}>, unknown>>;
|
|
87
|
+
type GetIncidentProcessInstanceStatisticsByErrorResponseBody = z.infer<typeof getIncidentProcessInstanceStatisticsByErrorResponseBodySchema>;
|
|
88
|
+
type GetIncidentProcessInstanceStatisticsByDefinitionResponseBody = z.infer<typeof getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema>;
|
|
89
|
+
export { getIncidentProcessInstanceStatisticsByError, incidentProcessInstanceStatisticsByErrorSchema, getIncidentProcessInstanceStatisticsByErrorRequestBodySchema, getIncidentProcessInstanceStatisticsByErrorResponseBodySchema, getIncidentProcessInstanceStatisticsByDefinition, incidentProcessInstanceStatisticsByDefinitionSchema, getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema, getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema, };
|
|
90
|
+
export type { IncidentProcessInstanceStatisticsByError, GetIncidentProcessInstanceStatisticsByErrorRequestBody, GetIncidentProcessInstanceStatisticsByErrorResponseBody, IncidentProcessInstanceStatisticsByDefinition, GetIncidentProcessInstanceStatisticsByDefinitionRequestBody, GetIncidentProcessInstanceStatisticsByDefinitionResponseBody, };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { API_VERSION, getQueryRequestBodySchema, getQueryResponseBodySchema } from "../common.js";
|
|
3
|
+
const getIncidentProcessInstanceStatisticsByError = {
|
|
4
|
+
method: "POST",
|
|
5
|
+
getUrl: () => `/${API_VERSION}/incidents/statistics/process-instances-by-error`
|
|
6
|
+
};
|
|
7
|
+
const getIncidentProcessInstanceStatisticsByDefinition = {
|
|
8
|
+
method: "POST",
|
|
9
|
+
getUrl: () => `/${API_VERSION}/incidents/statistics/process-instances-by-definition`
|
|
10
|
+
};
|
|
11
|
+
const incidentProcessInstanceStatisticsByErrorSchema = z.object({
|
|
12
|
+
errorHashCode: z.number(),
|
|
13
|
+
errorMessage: z.string(),
|
|
14
|
+
activeInstancesWithErrorCount: z.number()
|
|
15
|
+
});
|
|
16
|
+
const incidentProcessInstanceStatisticsByDefinitionSchema = z.object({
|
|
17
|
+
processDefinitionId: z.string(),
|
|
18
|
+
processDefinitionKey: z.number(),
|
|
19
|
+
processDefinitionName: z.string(),
|
|
20
|
+
processDefinitionVersion: z.number(),
|
|
21
|
+
tenantId: z.string(),
|
|
22
|
+
activeInstancesWithErrorCount: z.number()
|
|
23
|
+
});
|
|
24
|
+
const getIncidentProcessInstanceStatisticsByErrorRequestBodySchema = getQueryRequestBodySchema({
|
|
25
|
+
sortFields: ["errorMessage", "activeInstancesWithErrorCount"],
|
|
26
|
+
filter: z.never()
|
|
27
|
+
});
|
|
28
|
+
const incidentProcessInstanceStatisticsByDefinitionFilterSchema = z.object({
|
|
29
|
+
errorHashCode: z.number()
|
|
30
|
+
});
|
|
31
|
+
const getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema = getQueryRequestBodySchema({
|
|
32
|
+
sortFields: ["processDefinitionKey", "activeInstancesWithErrorCount", "tenantId"],
|
|
33
|
+
filter: incidentProcessInstanceStatisticsByDefinitionFilterSchema
|
|
34
|
+
});
|
|
35
|
+
const getIncidentProcessInstanceStatisticsByErrorResponseBodySchema = getQueryResponseBodySchema(
|
|
36
|
+
incidentProcessInstanceStatisticsByErrorSchema
|
|
37
|
+
);
|
|
38
|
+
const getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema = getQueryResponseBodySchema(
|
|
39
|
+
incidentProcessInstanceStatisticsByDefinitionSchema
|
|
40
|
+
);
|
|
41
|
+
export {
|
|
42
|
+
getIncidentProcessInstanceStatisticsByDefinition,
|
|
43
|
+
getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema,
|
|
44
|
+
getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema,
|
|
45
|
+
getIncidentProcessInstanceStatisticsByError,
|
|
46
|
+
getIncidentProcessInstanceStatisticsByErrorRequestBodySchema,
|
|
47
|
+
getIncidentProcessInstanceStatisticsByErrorResponseBodySchema,
|
|
48
|
+
incidentProcessInstanceStatisticsByDefinitionSchema,
|
|
49
|
+
incidentProcessInstanceStatisticsByErrorSchema
|
|
50
|
+
};
|
package/dist/8.9/index.d.ts
CHANGED
|
@@ -21,8 +21,22 @@ declare const endpoints: {
|
|
|
21
21
|
parentProcessInstanceKey?: string | undefined;
|
|
22
22
|
parentElementInstanceKey?: string | undefined;
|
|
23
23
|
}, "processInstanceKey">>;
|
|
24
|
+
readonly createDeployment: import('../common').Endpoint<undefined>;
|
|
25
|
+
readonly deleteResource: import('../common').Endpoint<{
|
|
26
|
+
resourceKey: string;
|
|
27
|
+
}>;
|
|
28
|
+
readonly getResource: import('../common').Endpoint<{
|
|
29
|
+
resourceKey: string;
|
|
30
|
+
}>;
|
|
31
|
+
readonly getResourceContent: import('../common').Endpoint<{
|
|
32
|
+
resourceKey: string;
|
|
33
|
+
}>;
|
|
34
|
+
readonly getIncidentProcessInstanceStatisticsByError: import('../common').Endpoint<undefined>;
|
|
35
|
+
readonly getIncidentProcessInstanceStatisticsByDefinition: import('../common').Endpoint<undefined>;
|
|
24
36
|
};
|
|
25
37
|
export { endpoints };
|
|
26
38
|
export { auditLogEntityTypeSchema, auditLogOperationTypeSchema, auditLogActorTypeSchema, auditLogResultSchema, auditLogCategorySchema, auditLogSchema, auditLogFilterSchema, auditLogSortFieldEnum, queryAuditLogsRequestBodySchema, queryAuditLogsResponseBodySchema, getAuditLogResponseBodySchema, type AuditLog, type AuditLogEntityType, type AuditLogOperationType, type AuditLogActorType, type AuditLogResult, type AuditLogCategory, type AuditLogSortField, type QueryAuditLogsRequestBody, type QueryAuditLogsResponseBody, type GetAuditLogResponseBody, } from './audit-log';
|
|
27
39
|
export { userTaskAuditLogFilterSchema, queryUserTaskAuditLogsRequestBodySchema, queryUserTaskAuditLogsResponseBodySchema, queryUserTaskAuditLogs, type UserTaskAuditLogFilter, type QueryUserTaskAuditLogsRequestBody, type QueryUserTaskAuditLogsResponseBody, } from './user-task';
|
|
28
40
|
export { deleteProcessInstanceRequestBodySchema, type DeleteProcessInstanceRequestBody } from './process-instance';
|
|
41
|
+
export { createDeploymentResponseBodySchema, deleteResourceRequestBodySchema, deleteResourceResponseBodySchema, batchOperationCreatedResultSchema, resourceSchema, getResourceContentResponseBodySchema, processDeploymentSchema, decisionDeploymentSchema, decisionRequirementsDeploymentSchema, formDeploymentSchema, resourceDeploymentSchema, type CreateDeploymentResponseBody, type DeleteResourceRequestBody, type DeleteResourceResponseBody, type BatchOperationCreatedResult, type Resource, type GetResourceContentResponseBody, type ProcessDeployment, type DecisionDeployment, type DecisionRequirementsDeployment, type FormDeployment, type ResourceDeployment, } from './resource';
|
|
42
|
+
export { getIncidentProcessInstanceStatisticsByErrorRequestBodySchema, getIncidentProcessInstanceStatisticsByErrorResponseBodySchema, incidentProcessInstanceStatisticsByErrorSchema, getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema, getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema, incidentProcessInstanceStatisticsByDefinitionSchema, type IncidentProcessInstanceStatisticsByError, type GetIncidentProcessInstanceStatisticsByErrorRequestBody, type GetIncidentProcessInstanceStatisticsByErrorResponseBody, type IncidentProcessInstanceStatisticsByDefinition, type GetIncidentProcessInstanceStatisticsByDefinitionRequestBody, type GetIncidentProcessInstanceStatisticsByDefinitionResponseBody, } from './incident';
|
package/dist/8.9/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { auditLogActorTypeSchema, auditLogCategorySchema, auditLogEntityTypeSchema, auditLogFilterSchema, auditLogOperationTypeSchema, auditLogResultSchema, auditLogSchema, auditLogSortFieldEnum, getAuditLogResponseBodySchema, queryAuditLogsRequestBodySchema, queryAuditLogsResponseBodySchema } from "./audit-log.js";
|
|
2
2
|
import { queryUserTaskAuditLogs, queryUserTaskAuditLogsRequestBodySchema, queryUserTaskAuditLogsResponseBodySchema, userTaskAuditLogFilterSchema } from "./user-task.js";
|
|
3
3
|
import { deleteProcessInstanceRequestBodySchema } from "./process-instance.js";
|
|
4
|
+
import { batchOperationCreatedResultSchema, createDeploymentResponseBodySchema, decisionDeploymentSchema, decisionRequirementsDeploymentSchema, deleteResourceRequestBodySchema, deleteResourceResponseBodySchema, formDeploymentSchema, getResourceContentResponseBodySchema, processDeploymentSchema, resourceDeploymentSchema, resourceSchema } from "./resource.js";
|
|
5
|
+
import { getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema, getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema, getIncidentProcessInstanceStatisticsByErrorRequestBodySchema, getIncidentProcessInstanceStatisticsByErrorResponseBodySchema, incidentProcessInstanceStatisticsByDefinitionSchema, incidentProcessInstanceStatisticsByErrorSchema } from "./incident.js";
|
|
4
6
|
import { endpoints } from "../8.9.js";
|
|
5
7
|
export {
|
|
6
8
|
auditLogActorTypeSchema,
|
|
@@ -11,13 +13,30 @@ export {
|
|
|
11
13
|
auditLogResultSchema,
|
|
12
14
|
auditLogSchema,
|
|
13
15
|
auditLogSortFieldEnum,
|
|
16
|
+
batchOperationCreatedResultSchema,
|
|
17
|
+
createDeploymentResponseBodySchema,
|
|
18
|
+
decisionDeploymentSchema,
|
|
19
|
+
decisionRequirementsDeploymentSchema,
|
|
14
20
|
deleteProcessInstanceRequestBodySchema,
|
|
21
|
+
deleteResourceRequestBodySchema,
|
|
22
|
+
deleteResourceResponseBodySchema,
|
|
15
23
|
endpoints,
|
|
24
|
+
formDeploymentSchema,
|
|
16
25
|
getAuditLogResponseBodySchema,
|
|
26
|
+
getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema,
|
|
27
|
+
getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema,
|
|
28
|
+
getIncidentProcessInstanceStatisticsByErrorRequestBodySchema,
|
|
29
|
+
getIncidentProcessInstanceStatisticsByErrorResponseBodySchema,
|
|
30
|
+
getResourceContentResponseBodySchema,
|
|
31
|
+
incidentProcessInstanceStatisticsByDefinitionSchema,
|
|
32
|
+
incidentProcessInstanceStatisticsByErrorSchema,
|
|
33
|
+
processDeploymentSchema,
|
|
17
34
|
queryAuditLogsRequestBodySchema,
|
|
18
35
|
queryAuditLogsResponseBodySchema,
|
|
19
36
|
queryUserTaskAuditLogs,
|
|
20
37
|
queryUserTaskAuditLogsRequestBodySchema,
|
|
21
38
|
queryUserTaskAuditLogsResponseBodySchema,
|
|
39
|
+
resourceDeploymentSchema,
|
|
40
|
+
resourceSchema,
|
|
22
41
|
userTaskAuditLogFilterSchema
|
|
23
42
|
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Endpoint } from '../common';
|
|
3
|
+
declare const processDeploymentSchema: z.ZodObject<{
|
|
4
|
+
processDefinitionId: z.ZodString;
|
|
5
|
+
processDefinitionVersion: z.ZodNumber;
|
|
6
|
+
resourceName: z.ZodString;
|
|
7
|
+
tenantId: z.ZodString;
|
|
8
|
+
processDefinitionKey: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type ProcessDeployment = z.infer<typeof processDeploymentSchema>;
|
|
11
|
+
declare const decisionDeploymentSchema: z.ZodObject<{
|
|
12
|
+
decisionDefinitionId: z.ZodString;
|
|
13
|
+
version: z.ZodNumber;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
tenantId: z.ZodString;
|
|
16
|
+
decisionRequirementsId: z.ZodString;
|
|
17
|
+
decisionDefinitionKey: z.ZodString;
|
|
18
|
+
decisionRequirementsKey: z.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
type DecisionDeployment = z.infer<typeof decisionDeploymentSchema>;
|
|
21
|
+
declare const decisionRequirementsDeploymentSchema: z.ZodObject<{
|
|
22
|
+
decisionRequirementsId: z.ZodString;
|
|
23
|
+
version: z.ZodNumber;
|
|
24
|
+
decisionRequirementsName: z.ZodString;
|
|
25
|
+
tenantId: z.ZodString;
|
|
26
|
+
resourceName: z.ZodString;
|
|
27
|
+
decisionRequirementsKey: z.ZodString;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
type DecisionRequirementsDeployment = z.infer<typeof decisionRequirementsDeploymentSchema>;
|
|
30
|
+
declare const formDeploymentSchema: z.ZodObject<{
|
|
31
|
+
formId: z.ZodString;
|
|
32
|
+
version: z.ZodNumber;
|
|
33
|
+
resourceName: z.ZodString;
|
|
34
|
+
tenantId: z.ZodString;
|
|
35
|
+
formKey: z.ZodString;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
type FormDeployment = z.infer<typeof formDeploymentSchema>;
|
|
38
|
+
declare const resourceDeploymentSchema: z.ZodObject<{
|
|
39
|
+
resourceId: z.ZodString;
|
|
40
|
+
version: z.ZodNumber;
|
|
41
|
+
resourceName: z.ZodString;
|
|
42
|
+
tenantId: z.ZodString;
|
|
43
|
+
resourceKey: z.ZodString;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
type ResourceDeployment = z.infer<typeof resourceDeploymentSchema>;
|
|
46
|
+
declare const createDeploymentResponseBodySchema: z.ZodObject<{
|
|
47
|
+
tenantId: z.ZodString;
|
|
48
|
+
deploymentKey: z.ZodString;
|
|
49
|
+
deployments: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
50
|
+
processDefinitionId: z.ZodString;
|
|
51
|
+
processDefinitionVersion: z.ZodNumber;
|
|
52
|
+
resourceName: z.ZodString;
|
|
53
|
+
tenantId: z.ZodString;
|
|
54
|
+
processDefinitionKey: z.ZodString;
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
+
decisionDefinitionId: z.ZodString;
|
|
57
|
+
version: z.ZodNumber;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
tenantId: z.ZodString;
|
|
60
|
+
decisionRequirementsId: z.ZodString;
|
|
61
|
+
decisionDefinitionKey: z.ZodString;
|
|
62
|
+
decisionRequirementsKey: z.ZodString;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
decisionRequirementsId: z.ZodString;
|
|
65
|
+
version: z.ZodNumber;
|
|
66
|
+
decisionRequirementsName: z.ZodString;
|
|
67
|
+
tenantId: z.ZodString;
|
|
68
|
+
resourceName: z.ZodString;
|
|
69
|
+
decisionRequirementsKey: z.ZodString;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
formId: z.ZodString;
|
|
72
|
+
version: z.ZodNumber;
|
|
73
|
+
resourceName: z.ZodString;
|
|
74
|
+
tenantId: z.ZodString;
|
|
75
|
+
formKey: z.ZodString;
|
|
76
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
+
resourceId: z.ZodString;
|
|
78
|
+
version: z.ZodNumber;
|
|
79
|
+
resourceName: z.ZodString;
|
|
80
|
+
tenantId: z.ZodString;
|
|
81
|
+
resourceKey: z.ZodString;
|
|
82
|
+
}, z.core.$strip>]>>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
type CreateDeploymentResponseBody = z.infer<typeof createDeploymentResponseBodySchema>;
|
|
85
|
+
declare const deleteResourceRequestBodySchema: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
operationReference: z.ZodNumber;
|
|
87
|
+
deleteHistory: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
type DeleteResourceRequestBody = z.infer<typeof deleteResourceRequestBodySchema>;
|
|
90
|
+
declare const batchOperationCreatedResultSchema: z.ZodObject<{
|
|
91
|
+
batchOperationKey: z.ZodString;
|
|
92
|
+
batchOperationType: z.ZodString;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
type BatchOperationCreatedResult = z.infer<typeof batchOperationCreatedResultSchema>;
|
|
95
|
+
declare const deleteResourceResponseBodySchema: z.ZodObject<{
|
|
96
|
+
resourceKey: z.ZodString;
|
|
97
|
+
batchOperation: z.ZodOptional<z.ZodObject<{
|
|
98
|
+
batchOperationKey: z.ZodString;
|
|
99
|
+
batchOperationType: z.ZodString;
|
|
100
|
+
}, z.core.$strip>>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
type DeleteResourceResponseBody = z.infer<typeof deleteResourceResponseBodySchema>;
|
|
103
|
+
declare const resourceSchema: z.ZodObject<{
|
|
104
|
+
resourceName: z.ZodString;
|
|
105
|
+
version: z.ZodNumber;
|
|
106
|
+
versionTag: z.ZodString;
|
|
107
|
+
resourceId: z.ZodString;
|
|
108
|
+
tenantId: z.ZodString;
|
|
109
|
+
resourceKey: z.ZodString;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
type Resource = z.infer<typeof resourceSchema>;
|
|
112
|
+
declare const getResourceContentResponseBodySchema: z.ZodString;
|
|
113
|
+
type GetResourceContentResponseBody = z.infer<typeof getResourceContentResponseBodySchema>;
|
|
114
|
+
declare const createDeployment: Endpoint;
|
|
115
|
+
declare const deleteResource: Endpoint<{
|
|
116
|
+
resourceKey: string;
|
|
117
|
+
}>;
|
|
118
|
+
declare const getResource: Endpoint<{
|
|
119
|
+
resourceKey: string;
|
|
120
|
+
}>;
|
|
121
|
+
declare const getResourceContent: Endpoint<{
|
|
122
|
+
resourceKey: string;
|
|
123
|
+
}>;
|
|
124
|
+
export { createDeployment, deleteResource, getResource, getResourceContent, createDeploymentResponseBodySchema, deleteResourceRequestBodySchema, deleteResourceResponseBodySchema, batchOperationCreatedResultSchema, resourceSchema, getResourceContentResponseBodySchema, processDeploymentSchema, decisionDeploymentSchema, decisionRequirementsDeploymentSchema, formDeploymentSchema, resourceDeploymentSchema, };
|
|
125
|
+
export type { CreateDeploymentResponseBody, DeleteResourceRequestBody, DeleteResourceResponseBody, BatchOperationCreatedResult, Resource, GetResourceContentResponseBody, ProcessDeployment, DecisionDeployment, DecisionRequirementsDeployment, FormDeployment, ResourceDeployment, };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { API_VERSION } from "../common.js";
|
|
3
|
+
const processDeploymentSchema = z.object({
|
|
4
|
+
processDefinitionId: z.string(),
|
|
5
|
+
processDefinitionVersion: z.number().int(),
|
|
6
|
+
resourceName: z.string(),
|
|
7
|
+
tenantId: z.string(),
|
|
8
|
+
processDefinitionKey: z.string()
|
|
9
|
+
});
|
|
10
|
+
const decisionDeploymentSchema = z.object({
|
|
11
|
+
decisionDefinitionId: z.string(),
|
|
12
|
+
version: z.number().int(),
|
|
13
|
+
name: z.string(),
|
|
14
|
+
tenantId: z.string(),
|
|
15
|
+
decisionRequirementsId: z.string(),
|
|
16
|
+
decisionDefinitionKey: z.string(),
|
|
17
|
+
decisionRequirementsKey: z.string()
|
|
18
|
+
});
|
|
19
|
+
const decisionRequirementsDeploymentSchema = z.object({
|
|
20
|
+
decisionRequirementsId: z.string(),
|
|
21
|
+
version: z.number().int(),
|
|
22
|
+
decisionRequirementsName: z.string(),
|
|
23
|
+
tenantId: z.string(),
|
|
24
|
+
resourceName: z.string(),
|
|
25
|
+
decisionRequirementsKey: z.string()
|
|
26
|
+
});
|
|
27
|
+
const formDeploymentSchema = z.object({
|
|
28
|
+
formId: z.string(),
|
|
29
|
+
version: z.number().int(),
|
|
30
|
+
resourceName: z.string(),
|
|
31
|
+
tenantId: z.string(),
|
|
32
|
+
formKey: z.string()
|
|
33
|
+
});
|
|
34
|
+
const resourceDeploymentSchema = z.object({
|
|
35
|
+
resourceId: z.string(),
|
|
36
|
+
version: z.number().int(),
|
|
37
|
+
resourceName: z.string(),
|
|
38
|
+
tenantId: z.string(),
|
|
39
|
+
resourceKey: z.string()
|
|
40
|
+
});
|
|
41
|
+
const createDeploymentResponseBodySchema = z.object({
|
|
42
|
+
tenantId: z.string(),
|
|
43
|
+
deploymentKey: z.string(),
|
|
44
|
+
deployments: z.array(
|
|
45
|
+
z.union([
|
|
46
|
+
processDeploymentSchema,
|
|
47
|
+
decisionDeploymentSchema,
|
|
48
|
+
decisionRequirementsDeploymentSchema,
|
|
49
|
+
formDeploymentSchema,
|
|
50
|
+
resourceDeploymentSchema
|
|
51
|
+
])
|
|
52
|
+
)
|
|
53
|
+
});
|
|
54
|
+
const deleteResourceRequestBodySchema = z.object({
|
|
55
|
+
operationReference: z.number().int().min(1),
|
|
56
|
+
deleteHistory: z.boolean().optional().default(false)
|
|
57
|
+
}).optional();
|
|
58
|
+
const batchOperationCreatedResultSchema = z.object({
|
|
59
|
+
batchOperationKey: z.string(),
|
|
60
|
+
batchOperationType: z.string()
|
|
61
|
+
});
|
|
62
|
+
const deleteResourceResponseBodySchema = z.object({
|
|
63
|
+
resourceKey: z.string(),
|
|
64
|
+
batchOperation: batchOperationCreatedResultSchema.optional()
|
|
65
|
+
});
|
|
66
|
+
const resourceSchema = z.object({
|
|
67
|
+
resourceName: z.string(),
|
|
68
|
+
version: z.number().int(),
|
|
69
|
+
versionTag: z.string(),
|
|
70
|
+
resourceId: z.string(),
|
|
71
|
+
tenantId: z.string(),
|
|
72
|
+
resourceKey: z.string()
|
|
73
|
+
});
|
|
74
|
+
const getResourceContentResponseBodySchema = z.string();
|
|
75
|
+
const createDeployment = {
|
|
76
|
+
method: "POST",
|
|
77
|
+
getUrl() {
|
|
78
|
+
return `/${API_VERSION}/deployments`;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const deleteResource = {
|
|
82
|
+
method: "POST",
|
|
83
|
+
getUrl(params) {
|
|
84
|
+
const { resourceKey } = params;
|
|
85
|
+
return `/${API_VERSION}/resources/${resourceKey}/deletion`;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const getResource = {
|
|
89
|
+
method: "GET",
|
|
90
|
+
getUrl(params) {
|
|
91
|
+
const { resourceKey } = params;
|
|
92
|
+
return `/${API_VERSION}/resources/${resourceKey}`;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
const getResourceContent = {
|
|
96
|
+
method: "GET",
|
|
97
|
+
getUrl(params) {
|
|
98
|
+
const { resourceKey } = params;
|
|
99
|
+
return `/${API_VERSION}/resources/${resourceKey}/content`;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
export {
|
|
103
|
+
batchOperationCreatedResultSchema,
|
|
104
|
+
createDeployment,
|
|
105
|
+
createDeploymentResponseBodySchema,
|
|
106
|
+
decisionDeploymentSchema,
|
|
107
|
+
decisionRequirementsDeploymentSchema,
|
|
108
|
+
deleteResource,
|
|
109
|
+
deleteResourceRequestBodySchema,
|
|
110
|
+
deleteResourceResponseBodySchema,
|
|
111
|
+
formDeploymentSchema,
|
|
112
|
+
getResource,
|
|
113
|
+
getResourceContent,
|
|
114
|
+
getResourceContentResponseBodySchema,
|
|
115
|
+
processDeploymentSchema,
|
|
116
|
+
resourceDeploymentSchema,
|
|
117
|
+
resourceSchema
|
|
118
|
+
};
|
package/dist/8.9.js
CHANGED
|
@@ -4,11 +4,21 @@ import { queryUserTaskAuditLogs } from "./8.9/user-task.js";
|
|
|
4
4
|
import { queryUserTaskAuditLogsRequestBodySchema, queryUserTaskAuditLogsResponseBodySchema, userTaskAuditLogFilterSchema } from "./8.9/user-task.js";
|
|
5
5
|
import { deleteProcessInstance } from "./8.9/process-instance.js";
|
|
6
6
|
import { deleteProcessInstanceRequestBodySchema } from "./8.9/process-instance.js";
|
|
7
|
+
import { getResourceContent, getResource, deleteResource, createDeployment } from "./8.9/resource.js";
|
|
8
|
+
import { batchOperationCreatedResultSchema, createDeploymentResponseBodySchema, decisionDeploymentSchema, decisionRequirementsDeploymentSchema, deleteResourceRequestBodySchema, deleteResourceResponseBodySchema, formDeploymentSchema, getResourceContentResponseBodySchema, processDeploymentSchema, resourceDeploymentSchema, resourceSchema } from "./8.9/resource.js";
|
|
9
|
+
import { getIncidentProcessInstanceStatisticsByDefinition, getIncidentProcessInstanceStatisticsByError } from "./8.9/incident.js";
|
|
10
|
+
import { getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema, getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema, getIncidentProcessInstanceStatisticsByErrorRequestBodySchema, getIncidentProcessInstanceStatisticsByErrorResponseBodySchema, incidentProcessInstanceStatisticsByDefinitionSchema, incidentProcessInstanceStatisticsByErrorSchema } from "./8.9/incident.js";
|
|
7
11
|
const endpoints = {
|
|
8
12
|
queryAuditLogs,
|
|
9
13
|
getAuditLog,
|
|
10
14
|
queryUserTaskAuditLogs,
|
|
11
|
-
deleteProcessInstance
|
|
15
|
+
deleteProcessInstance,
|
|
16
|
+
createDeployment,
|
|
17
|
+
deleteResource,
|
|
18
|
+
getResource,
|
|
19
|
+
getResourceContent,
|
|
20
|
+
getIncidentProcessInstanceStatisticsByError,
|
|
21
|
+
getIncidentProcessInstanceStatisticsByDefinition
|
|
12
22
|
};
|
|
13
23
|
export {
|
|
14
24
|
auditLogActorTypeSchema,
|
|
@@ -19,13 +29,30 @@ export {
|
|
|
19
29
|
auditLogResultSchema,
|
|
20
30
|
auditLogSchema,
|
|
21
31
|
auditLogSortFieldEnum,
|
|
32
|
+
batchOperationCreatedResultSchema,
|
|
33
|
+
createDeploymentResponseBodySchema,
|
|
34
|
+
decisionDeploymentSchema,
|
|
35
|
+
decisionRequirementsDeploymentSchema,
|
|
22
36
|
deleteProcessInstanceRequestBodySchema,
|
|
37
|
+
deleteResourceRequestBodySchema,
|
|
38
|
+
deleteResourceResponseBodySchema,
|
|
23
39
|
endpoints,
|
|
40
|
+
formDeploymentSchema,
|
|
24
41
|
getAuditLogResponseBodySchema,
|
|
42
|
+
getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema,
|
|
43
|
+
getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema,
|
|
44
|
+
getIncidentProcessInstanceStatisticsByErrorRequestBodySchema,
|
|
45
|
+
getIncidentProcessInstanceStatisticsByErrorResponseBodySchema,
|
|
46
|
+
getResourceContentResponseBodySchema,
|
|
47
|
+
incidentProcessInstanceStatisticsByDefinitionSchema,
|
|
48
|
+
incidentProcessInstanceStatisticsByErrorSchema,
|
|
49
|
+
processDeploymentSchema,
|
|
25
50
|
queryAuditLogsRequestBodySchema,
|
|
26
51
|
queryAuditLogsResponseBodySchema,
|
|
27
52
|
queryUserTaskAuditLogs,
|
|
28
53
|
queryUserTaskAuditLogsRequestBodySchema,
|
|
29
54
|
queryUserTaskAuditLogsResponseBodySchema,
|
|
55
|
+
resourceDeploymentSchema,
|
|
56
|
+
resourceSchema,
|
|
30
57
|
userTaskAuditLogFilterSchema
|
|
31
58
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/camunda-api-zod-schemas",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
4
4
|
"license": "LicenseRef-Camunda-1.0",
|
|
5
5
|
"description": "Zod schemas and TypeScript types for Camunda 8 unified API",
|
|
6
6
|
"author": "Vinicius Goulart <vinicius.goulart@camunda.com>",
|
|
@@ -222,6 +222,18 @@
|
|
|
222
222
|
"default": "./dist/8.9/process-instance.js"
|
|
223
223
|
}
|
|
224
224
|
},
|
|
225
|
+
"./8.9/resource": {
|
|
226
|
+
"import": {
|
|
227
|
+
"types": "./dist/8.9/resource.d.ts",
|
|
228
|
+
"default": "./dist/8.9/resource.js"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"./8.9/incident": {
|
|
232
|
+
"import": {
|
|
233
|
+
"types": "./dist/8.9/incident.d.ts",
|
|
234
|
+
"default": "./dist/8.9/incident.js"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
225
237
|
"./package.json": "./package.json"
|
|
226
238
|
},
|
|
227
239
|
"publishConfig": {
|