@camunda/camunda-api-zod-schemas 0.0.47 → 0.0.48
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.8/group.d.ts +4 -4
- package/dist/8.8/group.js +4 -4
- package/dist/8.8/index.d.ts +18 -18
- package/dist/8.8/mapping-rule.d.ts +11 -11
- package/dist/8.8/mapping-rule.js +9 -9
- package/dist/8.8/role.d.ts +4 -4
- package/dist/8.8/role.js +4 -4
- package/dist/8.8/tenant.d.ts +6 -6
- package/dist/8.8/tenant.js +2 -2
- package/dist/8.9/authorization.d.ts +16 -2
- package/dist/8.9/authorization.js +3 -1
- package/dist/8.9/group.d.ts +20 -18
- package/dist/8.9/group.js +8 -11
- package/dist/8.9/index.d.ts +19 -19
- package/dist/8.9/index.js +1 -2
- package/dist/8.9/mapping-rule.d.ts +19 -26
- package/dist/8.9/mapping-rule.js +7 -11
- package/dist/8.9/role.d.ts +13 -10
- package/dist/8.9/role.js +6 -9
- package/dist/8.9/tenant.d.ts +24 -20
- package/dist/8.9/tenant.js +7 -9
- package/dist/8.9.js +1 -2
- package/package.json +1 -1
package/dist/8.8/group.d.ts
CHANGED
|
@@ -179,12 +179,12 @@ declare const queryMappingRulesByGroupRequestBodySchema: z.ZodObject<{
|
|
|
179
179
|
}, z.core.$strip>;
|
|
180
180
|
type QueryMappingRulesByGroupRequestBody = z.infer<typeof queryMappingRulesByGroupRequestBodySchema>;
|
|
181
181
|
declare const queryMappingRulesByGroupResponseBodySchema: z.ZodType<import('../common').QueryResponseBody<{
|
|
182
|
-
|
|
182
|
+
mappingRuleId: string;
|
|
183
183
|
claimName: string;
|
|
184
184
|
claimValue: string;
|
|
185
185
|
name: string;
|
|
186
186
|
}>, unknown, z.core.$ZodTypeInternals<import('../common').QueryResponseBody<{
|
|
187
|
-
|
|
187
|
+
mappingRuleId: string;
|
|
188
188
|
claimName: string;
|
|
189
189
|
claimValue: string;
|
|
190
190
|
name: string;
|
|
@@ -203,7 +203,7 @@ declare const assignClientToGroup: Endpoint<Pick<Group, 'groupId'> & {
|
|
|
203
203
|
declare const unassignClientFromGroup: Endpoint<Pick<Group, 'groupId'> & {
|
|
204
204
|
clientId: string;
|
|
205
205
|
}>;
|
|
206
|
-
declare const assignMappingToGroup: Endpoint<Pick<Group, 'groupId'> & Pick<MappingRule, '
|
|
207
|
-
declare const unassignMappingFromGroup: Endpoint<Pick<Group, 'groupId'> & Pick<MappingRule, '
|
|
206
|
+
declare const assignMappingToGroup: Endpoint<Pick<Group, 'groupId'> & Pick<MappingRule, 'mappingRuleId'>>;
|
|
207
|
+
declare const unassignMappingFromGroup: Endpoint<Pick<Group, 'groupId'> & Pick<MappingRule, 'mappingRuleId'>>;
|
|
208
208
|
export { createGroup, getGroup, updateGroup, deleteGroup, queryGroups, queryUsersByGroup, queryClientsByGroup, queryRolesByGroup, queryMappingRulesByGroup, assignUserToGroup, unassignUserFromGroup, assignClientToGroup, unassignClientFromGroup, assignMappingToGroup, unassignMappingFromGroup, createGroupRequestBodySchema, createGroupResponseBodySchema, getGroupResponseBodySchema, updateGroupRequestBodySchema, updateGroupResponseBodySchema, queryGroupsRequestBodySchema, queryGroupsResponseBodySchema, queryUsersByGroupRequestBodySchema, queryUsersByGroupResponseBodySchema, queryClientsByGroupRequestBodySchema, queryClientsByGroupResponseBodySchema, queryRolesByGroupRequestBodySchema, queryRolesByGroupResponseBodySchema, queryMappingRulesByGroupRequestBodySchema, queryMappingRulesByGroupResponseBodySchema, groupSchema, };
|
|
209
209
|
export type { Group, CreateGroupRequestBody, CreateGroupResponseBody, GetGroupResponseBody, UpdateGroupRequestBody, UpdateGroupResponseBody, QueryGroupsRequestBody, QueryGroupsResponseBody, QueryUsersByGroupRequestBody, QueryUsersByGroupResponseBody, QueryClientsByGroupRequestBody, QueryClientsByGroupResponseBody, QueryRolesByGroupRequestBody, QueryRolesByGroupResponseBody, QueryMappingRulesByGroupRequestBody, QueryMappingRulesByGroupResponseBody, };
|
package/dist/8.8/group.js
CHANGED
|
@@ -142,15 +142,15 @@ const unassignClientFromGroup = {
|
|
|
142
142
|
const assignMappingToGroup = {
|
|
143
143
|
method: "PUT",
|
|
144
144
|
getUrl(params) {
|
|
145
|
-
const { groupId,
|
|
146
|
-
return `/${API_VERSION}/groups/${groupId}/mapping-rules/${
|
|
145
|
+
const { groupId, mappingRuleId } = params;
|
|
146
|
+
return `/${API_VERSION}/groups/${groupId}/mapping-rules/${mappingRuleId}`;
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
149
|
const unassignMappingFromGroup = {
|
|
150
150
|
method: "DELETE",
|
|
151
151
|
getUrl(params) {
|
|
152
|
-
const { groupId,
|
|
153
|
-
return `/${API_VERSION}/groups/${groupId}/mapping-rules/${
|
|
152
|
+
const { groupId, mappingRuleId } = params;
|
|
153
|
+
return `/${API_VERSION}/groups/${groupId}/mapping-rules/${mappingRuleId}`;
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
export {
|
package/dist/8.8/index.d.ts
CHANGED
|
@@ -213,21 +213,21 @@ declare const endpoints: {
|
|
|
213
213
|
name: string;
|
|
214
214
|
description: string;
|
|
215
215
|
}, "groupId"> & Pick<{
|
|
216
|
-
|
|
216
|
+
mappingRuleId: string;
|
|
217
217
|
claimName: string;
|
|
218
218
|
claimValue: string;
|
|
219
219
|
name: string;
|
|
220
|
-
}, "
|
|
220
|
+
}, "mappingRuleId">>;
|
|
221
221
|
readonly unassignMappingFromGroup: import('../common').Endpoint<Pick<{
|
|
222
222
|
groupId: string;
|
|
223
223
|
name: string;
|
|
224
224
|
description: string;
|
|
225
225
|
}, "groupId"> & Pick<{
|
|
226
|
-
|
|
226
|
+
mappingRuleId: string;
|
|
227
227
|
claimName: string;
|
|
228
228
|
claimValue: string;
|
|
229
229
|
name: string;
|
|
230
|
-
}, "
|
|
230
|
+
}, "mappingRuleId">>;
|
|
231
231
|
readonly resolveIncident: import('../common').Endpoint<Pick<{
|
|
232
232
|
processDefinitionId: string;
|
|
233
233
|
errorType: "UNSPECIFIED" | "UNKNOWN" | "IO_MAPPING_ERROR" | "JOB_NO_RETRIES" | "EXECUTION_LISTENER_NO_RETRIES" | "TASK_LISTENER_NO_RETRIES" | "CONDITION_ERROR" | "EXTRACT_VALUE_ERROR" | "CALLED_ELEMENT_ERROR" | "UNHANDLED_ERROR_EVENT" | "MESSAGE_SIZE_EXCEEDED" | "CALLED_DECISION_ERROR" | "DECISION_EVALUATION_ERROR" | "FORM_NOT_FOUND" | "RESOURCE_NOT_FOUND";
|
|
@@ -260,23 +260,23 @@ declare const endpoints: {
|
|
|
260
260
|
readonly getLicense: import('../common').Endpoint<undefined>;
|
|
261
261
|
readonly createMappingRule: import('../common').Endpoint<undefined>;
|
|
262
262
|
readonly updateMappingRule: import('../common').Endpoint<Pick<{
|
|
263
|
-
|
|
263
|
+
mappingRuleId: string;
|
|
264
264
|
claimName: string;
|
|
265
265
|
claimValue: string;
|
|
266
266
|
name: string;
|
|
267
|
-
}, "
|
|
267
|
+
}, "mappingRuleId">>;
|
|
268
268
|
readonly deleteMappingRule: import('../common').Endpoint<Pick<{
|
|
269
|
-
|
|
269
|
+
mappingRuleId: string;
|
|
270
270
|
claimName: string;
|
|
271
271
|
claimValue: string;
|
|
272
272
|
name: string;
|
|
273
|
-
}, "
|
|
273
|
+
}, "mappingRuleId">>;
|
|
274
274
|
readonly getMappingRule: import('../common').Endpoint<Pick<{
|
|
275
|
-
|
|
275
|
+
mappingRuleId: string;
|
|
276
276
|
claimName: string;
|
|
277
277
|
claimValue: string;
|
|
278
278
|
name: string;
|
|
279
|
-
}, "
|
|
279
|
+
}, "mappingRuleId">>;
|
|
280
280
|
readonly queryMappingRules: import('../common').Endpoint<undefined>;
|
|
281
281
|
readonly publishMessage: import('../common').Endpoint<undefined>;
|
|
282
282
|
readonly correlateMessage: import('../common').Endpoint<undefined>;
|
|
@@ -815,21 +815,21 @@ declare const endpoints: {
|
|
|
815
815
|
name: string;
|
|
816
816
|
description: string;
|
|
817
817
|
}, "roleId"> & Pick<{
|
|
818
|
-
|
|
818
|
+
mappingRuleId: string;
|
|
819
819
|
claimName: string;
|
|
820
820
|
claimValue: string;
|
|
821
821
|
name: string;
|
|
822
|
-
}, "
|
|
822
|
+
}, "mappingRuleId">>;
|
|
823
823
|
readonly unassignMappingFromRole: import('../common').Endpoint<Pick<{
|
|
824
824
|
roleId: string;
|
|
825
825
|
name: string;
|
|
826
826
|
description: string;
|
|
827
827
|
}, "roleId"> & Pick<{
|
|
828
|
-
|
|
828
|
+
mappingRuleId: string;
|
|
829
829
|
claimName: string;
|
|
830
830
|
claimValue: string;
|
|
831
831
|
name: string;
|
|
832
|
-
}, "
|
|
832
|
+
}, "mappingRuleId">>;
|
|
833
833
|
readonly queryMappingRulesByRole: import('../common').Endpoint<Pick<{
|
|
834
834
|
roleId: string;
|
|
835
835
|
name: string;
|
|
@@ -918,22 +918,22 @@ declare const endpoints: {
|
|
|
918
918
|
name: string;
|
|
919
919
|
description?: string | undefined;
|
|
920
920
|
}, "tenantId"> & Pick<{
|
|
921
|
-
|
|
921
|
+
mappingRuleId: string;
|
|
922
922
|
claimName: string;
|
|
923
923
|
claimValue: string;
|
|
924
924
|
name: string;
|
|
925
|
-
}, "
|
|
925
|
+
}, "mappingRuleId">>;
|
|
926
926
|
readonly unassignMappingRuleFromTenant: import('../common').Endpoint<Pick<{
|
|
927
927
|
tenantKey: string;
|
|
928
928
|
tenantId: string;
|
|
929
929
|
name: string;
|
|
930
930
|
description?: string | undefined;
|
|
931
931
|
}, "tenantId"> & Pick<{
|
|
932
|
-
|
|
932
|
+
mappingRuleId: string;
|
|
933
933
|
claimName: string;
|
|
934
934
|
claimValue: string;
|
|
935
935
|
name: string;
|
|
936
|
-
}, "
|
|
936
|
+
}, "mappingRuleId">>;
|
|
937
937
|
readonly queryMappingRulesByTenant: import('../common').Endpoint<Pick<{
|
|
938
938
|
tenantKey: string;
|
|
939
939
|
tenantId: string;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Endpoint } from '../common';
|
|
3
3
|
declare const mappingRuleSchema: z.ZodObject<{
|
|
4
|
-
|
|
4
|
+
mappingRuleId: z.ZodString;
|
|
5
5
|
claimName: z.ZodString;
|
|
6
6
|
claimValue: z.ZodString;
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
type MappingRule = z.infer<typeof mappingRuleSchema>;
|
|
10
10
|
declare const createMappingRuleRequestBodySchema: z.ZodObject<{
|
|
11
|
-
|
|
11
|
+
mappingRuleId: z.ZodString;
|
|
12
12
|
claimName: z.ZodString;
|
|
13
13
|
claimValue: z.ZodString;
|
|
14
14
|
name: z.ZodString;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
16
|
type CreateMappingRuleRequestBody = z.infer<typeof createMappingRuleRequestBodySchema>;
|
|
17
17
|
declare const createMappingRuleResponseBodySchema: z.ZodObject<{
|
|
18
|
-
|
|
18
|
+
mappingRuleId: z.ZodString;
|
|
19
19
|
claimName: z.ZodString;
|
|
20
20
|
claimValue: z.ZodString;
|
|
21
21
|
name: z.ZodString;
|
|
@@ -28,7 +28,7 @@ declare const updateMappingRuleRequestBodySchema: z.ZodObject<{
|
|
|
28
28
|
}, z.core.$strip>;
|
|
29
29
|
type UpdateMappingRuleRequestBody = z.infer<typeof updateMappingRuleRequestBodySchema>;
|
|
30
30
|
declare const updateMappingRuleResponseBodySchema: z.ZodObject<{
|
|
31
|
-
|
|
31
|
+
mappingRuleId: z.ZodString;
|
|
32
32
|
claimName: z.ZodString;
|
|
33
33
|
claimValue: z.ZodString;
|
|
34
34
|
name: z.ZodString;
|
|
@@ -38,7 +38,7 @@ declare const queryMappingRulesRequestBodySchema: z.ZodObject<{
|
|
|
38
38
|
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
39
39
|
field: z.ZodEnum<{
|
|
40
40
|
name: "name";
|
|
41
|
-
|
|
41
|
+
mappingRuleId: "mappingRuleId";
|
|
42
42
|
claimName: "claimName";
|
|
43
43
|
claimValue: "claimValue";
|
|
44
44
|
}>;
|
|
@@ -55,28 +55,28 @@ declare const queryMappingRulesRequestBodySchema: z.ZodObject<{
|
|
|
55
55
|
}, z.core.$strip>>;
|
|
56
56
|
filter: z.ZodOptional<z.ZodObject<{
|
|
57
57
|
name: z.ZodOptional<z.ZodString>;
|
|
58
|
-
|
|
58
|
+
mappingRuleId: z.ZodOptional<z.ZodString>;
|
|
59
59
|
claimName: z.ZodOptional<z.ZodString>;
|
|
60
60
|
claimValue: z.ZodOptional<z.ZodString>;
|
|
61
61
|
}, z.core.$strip>>;
|
|
62
62
|
}, z.core.$strip>;
|
|
63
63
|
type QueryMappingRulesRequestBody = z.infer<typeof queryMappingRulesRequestBodySchema>;
|
|
64
64
|
declare const queryMappingRulesResponseBodySchema: z.ZodType<import('../common').QueryResponseBody<{
|
|
65
|
-
|
|
65
|
+
mappingRuleId: string;
|
|
66
66
|
claimName: string;
|
|
67
67
|
claimValue: string;
|
|
68
68
|
name: string;
|
|
69
69
|
}>, unknown, z.core.$ZodTypeInternals<import('../common').QueryResponseBody<{
|
|
70
|
-
|
|
70
|
+
mappingRuleId: string;
|
|
71
71
|
claimName: string;
|
|
72
72
|
claimValue: string;
|
|
73
73
|
name: string;
|
|
74
74
|
}>, unknown>>;
|
|
75
75
|
type QueryMappingRulesResponseBody = z.infer<typeof queryMappingRulesResponseBodySchema>;
|
|
76
76
|
declare const createMappingRule: Endpoint;
|
|
77
|
-
declare const updateMappingRule: Endpoint<Pick<MappingRule, '
|
|
78
|
-
declare const deleteMappingRule: Endpoint<Pick<MappingRule, '
|
|
79
|
-
declare const getMappingRule: Endpoint<Pick<MappingRule, '
|
|
77
|
+
declare const updateMappingRule: Endpoint<Pick<MappingRule, 'mappingRuleId'>>;
|
|
78
|
+
declare const deleteMappingRule: Endpoint<Pick<MappingRule, 'mappingRuleId'>>;
|
|
79
|
+
declare const getMappingRule: Endpoint<Pick<MappingRule, 'mappingRuleId'>>;
|
|
80
80
|
declare const queryMappingRules: Endpoint;
|
|
81
81
|
export { createMappingRule, updateMappingRule, deleteMappingRule, getMappingRule, queryMappingRules, createMappingRuleRequestBodySchema, createMappingRuleResponseBodySchema, updateMappingRuleRequestBodySchema, updateMappingRuleResponseBodySchema, queryMappingRulesRequestBodySchema, queryMappingRulesResponseBodySchema, mappingRuleSchema, };
|
|
82
82
|
export type { CreateMappingRuleRequestBody, CreateMappingRuleResponseBody, UpdateMappingRuleRequestBody, UpdateMappingRuleResponseBody, QueryMappingRulesRequestBody, QueryMappingRulesResponseBody, MappingRule, };
|
package/dist/8.8/mapping-rule.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { getQueryRequestBodySchema, getQueryResponseBodySchema, API_VERSION } from "../common.js";
|
|
3
3
|
const mappingRuleSchema = z.object({
|
|
4
|
-
|
|
4
|
+
mappingRuleId: z.string(),
|
|
5
5
|
claimName: z.string(),
|
|
6
6
|
claimValue: z.string(),
|
|
7
7
|
name: z.string()
|
|
@@ -15,9 +15,9 @@ const updateMappingRuleRequestBodySchema = mappingRuleSchema.pick({
|
|
|
15
15
|
});
|
|
16
16
|
const updateMappingRuleResponseBodySchema = mappingRuleSchema;
|
|
17
17
|
const queryMappingRulesRequestBodySchema = getQueryRequestBodySchema({
|
|
18
|
-
sortFields: ["
|
|
18
|
+
sortFields: ["mappingRuleId", "claimName", "claimValue", "name"],
|
|
19
19
|
filter: mappingRuleSchema.pick({
|
|
20
|
-
|
|
20
|
+
mappingRuleId: true,
|
|
21
21
|
claimName: true,
|
|
22
22
|
claimValue: true,
|
|
23
23
|
name: true
|
|
@@ -33,22 +33,22 @@ const createMappingRule = {
|
|
|
33
33
|
const updateMappingRule = {
|
|
34
34
|
method: "PUT",
|
|
35
35
|
getUrl(params) {
|
|
36
|
-
const {
|
|
37
|
-
return `/${API_VERSION}/mapping-rules/${
|
|
36
|
+
const { mappingRuleId } = params;
|
|
37
|
+
return `/${API_VERSION}/mapping-rules/${mappingRuleId}`;
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
const deleteMappingRule = {
|
|
41
41
|
method: "DELETE",
|
|
42
42
|
getUrl(params) {
|
|
43
|
-
const {
|
|
44
|
-
return `/${API_VERSION}/mapping-rules/${
|
|
43
|
+
const { mappingRuleId } = params;
|
|
44
|
+
return `/${API_VERSION}/mapping-rules/${mappingRuleId}`;
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
const getMappingRule = {
|
|
48
48
|
method: "GET",
|
|
49
49
|
getUrl(params) {
|
|
50
|
-
const {
|
|
51
|
-
return `/${API_VERSION}/mapping-rules/${
|
|
50
|
+
const { mappingRuleId } = params;
|
|
51
|
+
return `/${API_VERSION}/mapping-rules/${mappingRuleId}`;
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
const queryMappingRules = {
|
package/dist/8.8/role.d.ts
CHANGED
|
@@ -167,12 +167,12 @@ declare const queryMappingRulesByRoleRequestBodySchema: z.ZodObject<{
|
|
|
167
167
|
}, z.core.$strip>;
|
|
168
168
|
type QueryMappingRulesByRoleRequestBody = z.infer<typeof queryMappingRulesByRoleRequestBodySchema>;
|
|
169
169
|
declare const queryMappingRulesByRoleResponseBodySchema: z.ZodType<import('../common').QueryResponseBody<{
|
|
170
|
-
|
|
170
|
+
mappingRuleId: string;
|
|
171
171
|
claimName: string;
|
|
172
172
|
claimValue: string;
|
|
173
173
|
name: string;
|
|
174
174
|
}>, unknown, z.core.$ZodTypeInternals<import('../common').QueryResponseBody<{
|
|
175
|
-
|
|
175
|
+
mappingRuleId: string;
|
|
176
176
|
claimName: string;
|
|
177
177
|
claimValue: string;
|
|
178
178
|
name: string;
|
|
@@ -200,8 +200,8 @@ declare const unassignClientFromRole: Endpoint<Pick<Role, 'roleId'> & {
|
|
|
200
200
|
declare const assignGroupToRole: Endpoint<Pick<Role, 'roleId'> & Pick<Group, 'groupId'>>;
|
|
201
201
|
declare const unassignGroupFromRole: Endpoint<Pick<Role, 'roleId'> & Pick<Group, 'groupId'>>;
|
|
202
202
|
declare const queryGroupsByRole: Endpoint<Pick<Role, 'roleId'>>;
|
|
203
|
-
declare const assignMappingToRole: Endpoint<Pick<Role, 'roleId'> & Pick<MappingRule, '
|
|
204
|
-
declare const unassignMappingFromRole: Endpoint<Pick<Role, 'roleId'> & Pick<MappingRule, '
|
|
203
|
+
declare const assignMappingToRole: Endpoint<Pick<Role, 'roleId'> & Pick<MappingRule, 'mappingRuleId'>>;
|
|
204
|
+
declare const unassignMappingFromRole: Endpoint<Pick<Role, 'roleId'> & Pick<MappingRule, 'mappingRuleId'>>;
|
|
205
205
|
declare const queryMappingRulesByRole: Endpoint<Pick<Role, 'roleId'>>;
|
|
206
206
|
export { createRole, getRole, updateRole, deleteRole, queryRoles, queryUsersByRole, queryClientsByRole, assignUserToRole, unassignUserFromRole, assignClientToRole, unassignClientFromRole, assignGroupToRole, unassignGroupFromRole, queryGroupsByRole, assignMappingToRole, unassignMappingFromRole, queryMappingRulesByRole, roleSchema, createRoleRequestBodySchema, createRoleResponseBodySchema, updateRoleRequestBodySchema, updateRoleResponseBodySchema, queryRolesRequestBodySchema, queryRolesResponseBodySchema, queryUsersByRoleRequestBodySchema, queryUsersByRoleResponseBodySchema, queryClientsByRoleRequestBodySchema, queryClientsByRoleResponseBodySchema, queryGroupsByRoleRequestBodySchema, queryGroupsByRoleResponseBodySchema, queryMappingRulesByRoleRequestBodySchema, queryMappingRulesByRoleResponseBodySchema, };
|
|
207
207
|
export type { Role, CreateRoleRequestBody, CreateRoleResponseBody, UpdateRoleRequestBody, UpdateRoleResponseBody, QueryRolesRequestBody, QueryRolesResponseBody, QueryUsersByRoleRequestBody, QueryUsersByRoleResponseBody, QueryClientsByRoleRequestBody, QueryClientsByRoleResponseBody, QueryGroupsByRoleRequestBody, QueryGroupsByRoleResponseBody, QueryMappingRulesByRoleRequestBody, QueryMappingRulesByRoleResponseBody, };
|
package/dist/8.8/role.js
CHANGED
|
@@ -148,15 +148,15 @@ const queryGroupsByRole = {
|
|
|
148
148
|
const assignMappingToRole = {
|
|
149
149
|
method: "PUT",
|
|
150
150
|
getUrl(params) {
|
|
151
|
-
const { roleId,
|
|
152
|
-
return `/${API_VERSION}/roles/${roleId}/mappings/${
|
|
151
|
+
const { roleId, mappingRuleId } = params;
|
|
152
|
+
return `/${API_VERSION}/roles/${roleId}/mappings/${mappingRuleId}`;
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
const unassignMappingFromRole = {
|
|
156
156
|
method: "DELETE",
|
|
157
157
|
getUrl(params) {
|
|
158
|
-
const { roleId,
|
|
159
|
-
return `/${API_VERSION}/roles/${roleId}/mappings/${
|
|
158
|
+
const { roleId, mappingRuleId } = params;
|
|
159
|
+
return `/${API_VERSION}/roles/${roleId}/mappings/${mappingRuleId}`;
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
const queryMappingRulesByRole = {
|
package/dist/8.8/tenant.d.ts
CHANGED
|
@@ -199,7 +199,7 @@ declare const queryMappingRulesByTenantRequestBodySchema: z.ZodObject<{
|
|
|
199
199
|
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
200
200
|
field: z.ZodEnum<{
|
|
201
201
|
name: "name";
|
|
202
|
-
|
|
202
|
+
mappingRuleId: "mappingRuleId";
|
|
203
203
|
claimName: "claimName";
|
|
204
204
|
claimValue: "claimValue";
|
|
205
205
|
}>;
|
|
@@ -216,19 +216,19 @@ declare const queryMappingRulesByTenantRequestBodySchema: z.ZodObject<{
|
|
|
216
216
|
}, z.core.$strip>>;
|
|
217
217
|
filter: z.ZodOptional<z.ZodObject<{
|
|
218
218
|
name: z.ZodOptional<z.ZodString>;
|
|
219
|
-
|
|
219
|
+
mappingRuleId: z.ZodOptional<z.ZodString>;
|
|
220
220
|
claimName: z.ZodOptional<z.ZodString>;
|
|
221
221
|
claimValue: z.ZodOptional<z.ZodString>;
|
|
222
222
|
}, z.core.$strip>>;
|
|
223
223
|
}, z.core.$strip>;
|
|
224
224
|
type QueryMappingRulesByTenantRequestBody = z.infer<typeof queryMappingRulesByTenantRequestBodySchema>;
|
|
225
225
|
declare const queryMappingRulesByTenantResponseBodySchema: z.ZodType<import('../common').QueryResponseBody<{
|
|
226
|
-
|
|
226
|
+
mappingRuleId: string;
|
|
227
227
|
claimName: string;
|
|
228
228
|
claimValue: string;
|
|
229
229
|
name: string;
|
|
230
230
|
}>, unknown, z.core.$ZodTypeInternals<import('../common').QueryResponseBody<{
|
|
231
|
-
|
|
231
|
+
mappingRuleId: string;
|
|
232
232
|
claimName: string;
|
|
233
233
|
claimValue: string;
|
|
234
234
|
name: string;
|
|
@@ -255,8 +255,8 @@ declare const assignClientToTenant: Endpoint<Pick<Tenant, 'tenantId'> & {
|
|
|
255
255
|
declare const unassignClientFromTenant: Endpoint<Pick<Tenant, 'tenantId'> & {
|
|
256
256
|
clientId: string;
|
|
257
257
|
}>;
|
|
258
|
-
declare const assignMappingRuleToTenant: Endpoint<Pick<Tenant, 'tenantId'> & Pick<MappingRule, '
|
|
259
|
-
declare const unassignMappingRuleFromTenant: Endpoint<Pick<Tenant, 'tenantId'> & Pick<MappingRule, '
|
|
258
|
+
declare const assignMappingRuleToTenant: Endpoint<Pick<Tenant, 'tenantId'> & Pick<MappingRule, 'mappingRuleId'>>;
|
|
259
|
+
declare const unassignMappingRuleFromTenant: Endpoint<Pick<Tenant, 'tenantId'> & Pick<MappingRule, 'mappingRuleId'>>;
|
|
260
260
|
declare const queryMappingRulesByTenant: Endpoint<Pick<Tenant, 'tenantId'>>;
|
|
261
261
|
declare const assignGroupToTenant: Endpoint<Pick<Tenant, 'tenantId'> & Pick<Group, 'groupId'>>;
|
|
262
262
|
declare const unassignGroupFromTenant: Endpoint<Pick<Tenant, 'tenantId'> & Pick<Group, 'groupId'>>;
|
package/dist/8.8/tenant.js
CHANGED
|
@@ -104,11 +104,11 @@ const unassignClientFromTenant = {
|
|
|
104
104
|
};
|
|
105
105
|
const assignMappingRuleToTenant = {
|
|
106
106
|
method: "PUT",
|
|
107
|
-
getUrl: ({ tenantId,
|
|
107
|
+
getUrl: ({ tenantId, mappingRuleId }) => `/${API_VERSION}/tenants/${tenantId}/mappings/${mappingRuleId}`
|
|
108
108
|
};
|
|
109
109
|
const unassignMappingRuleFromTenant = {
|
|
110
110
|
method: "DELETE",
|
|
111
|
-
getUrl: ({ tenantId,
|
|
111
|
+
getUrl: ({ tenantId, mappingRuleId }) => `/${API_VERSION}/tenants/${tenantId}/mappings/${mappingRuleId}`
|
|
112
112
|
};
|
|
113
113
|
const queryMappingRulesByTenant = {
|
|
114
114
|
method: "POST",
|
|
@@ -63,6 +63,8 @@ declare const resourceTypeSchema: z.ZodEnum<{
|
|
|
63
63
|
DOCUMENT: "DOCUMENT";
|
|
64
64
|
EXPRESSION: "EXPRESSION";
|
|
65
65
|
GLOBAL_LISTENER: "GLOBAL_LISTENER";
|
|
66
|
+
CLAIM_USER_TASK: "CLAIM_USER_TASK";
|
|
67
|
+
COMPLETE_USER_TASK: "COMPLETE_USER_TASK";
|
|
66
68
|
}>;
|
|
67
69
|
type ResourceType = z.infer<typeof resourceTypeSchema>;
|
|
68
70
|
declare const ownerTypeSchema: z.ZodEnum<{
|
|
@@ -105,6 +107,8 @@ declare const authorizationSchema: z.ZodObject<{
|
|
|
105
107
|
DOCUMENT: "DOCUMENT";
|
|
106
108
|
EXPRESSION: "EXPRESSION";
|
|
107
109
|
GLOBAL_LISTENER: "GLOBAL_LISTENER";
|
|
110
|
+
CLAIM_USER_TASK: "CLAIM_USER_TASK";
|
|
111
|
+
COMPLETE_USER_TASK: "COMPLETE_USER_TASK";
|
|
108
112
|
}>;
|
|
109
113
|
resourceId: z.ZodString;
|
|
110
114
|
permissionTypes: z.ZodArray<z.ZodEnum<{
|
|
@@ -182,6 +186,8 @@ declare const authorizationResultSchema: z.ZodObject<{
|
|
|
182
186
|
DOCUMENT: "DOCUMENT";
|
|
183
187
|
EXPRESSION: "EXPRESSION";
|
|
184
188
|
GLOBAL_LISTENER: "GLOBAL_LISTENER";
|
|
189
|
+
CLAIM_USER_TASK: "CLAIM_USER_TASK";
|
|
190
|
+
COMPLETE_USER_TASK: "COMPLETE_USER_TASK";
|
|
185
191
|
}>;
|
|
186
192
|
resourceId: z.ZodNullable<z.ZodString>;
|
|
187
193
|
resourcePropertyName: z.ZodNullable<z.ZodString>;
|
|
@@ -259,6 +265,8 @@ declare const createAuthorizationRequestBodySchema: z.ZodObject<{
|
|
|
259
265
|
DOCUMENT: "DOCUMENT";
|
|
260
266
|
EXPRESSION: "EXPRESSION";
|
|
261
267
|
GLOBAL_LISTENER: "GLOBAL_LISTENER";
|
|
268
|
+
CLAIM_USER_TASK: "CLAIM_USER_TASK";
|
|
269
|
+
COMPLETE_USER_TASK: "COMPLETE_USER_TASK";
|
|
262
270
|
}>;
|
|
263
271
|
ownerId: z.ZodString;
|
|
264
272
|
resourceId: z.ZodString;
|
|
@@ -339,6 +347,8 @@ declare const updateAuthorizationRequestBodySchema: z.ZodObject<{
|
|
|
339
347
|
DOCUMENT: "DOCUMENT";
|
|
340
348
|
EXPRESSION: "EXPRESSION";
|
|
341
349
|
GLOBAL_LISTENER: "GLOBAL_LISTENER";
|
|
350
|
+
CLAIM_USER_TASK: "CLAIM_USER_TASK";
|
|
351
|
+
COMPLETE_USER_TASK: "COMPLETE_USER_TASK";
|
|
342
352
|
}>>;
|
|
343
353
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
344
354
|
resourceId: z.ZodOptional<z.ZodString>;
|
|
@@ -434,6 +444,8 @@ declare const queryAuthorizationsRequestBodySchema: z.ZodObject<{
|
|
|
434
444
|
DOCUMENT: "DOCUMENT";
|
|
435
445
|
EXPRESSION: "EXPRESSION";
|
|
436
446
|
GLOBAL_LISTENER: "GLOBAL_LISTENER";
|
|
447
|
+
CLAIM_USER_TASK: "CLAIM_USER_TASK";
|
|
448
|
+
COMPLETE_USER_TASK: "COMPLETE_USER_TASK";
|
|
437
449
|
}>>;
|
|
438
450
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
439
451
|
resourceId: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -471,6 +483,8 @@ declare const getAuthorizationResponseBodySchema: z.ZodObject<{
|
|
|
471
483
|
DOCUMENT: "DOCUMENT";
|
|
472
484
|
EXPRESSION: "EXPRESSION";
|
|
473
485
|
GLOBAL_LISTENER: "GLOBAL_LISTENER";
|
|
486
|
+
CLAIM_USER_TASK: "CLAIM_USER_TASK";
|
|
487
|
+
COMPLETE_USER_TASK: "COMPLETE_USER_TASK";
|
|
474
488
|
}>;
|
|
475
489
|
resourceId: z.ZodNullable<z.ZodString>;
|
|
476
490
|
resourcePropertyName: z.ZodNullable<z.ZodString>;
|
|
@@ -521,7 +535,7 @@ type GetAuthorizationResponseBody = z.infer<typeof getAuthorizationResponseBodyS
|
|
|
521
535
|
declare const queryAuthorizationsResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
522
536
|
ownerId: string;
|
|
523
537
|
ownerType: "UNSPECIFIED" | "MAPPING_RULE" | "GROUP" | "USER" | "ROLE" | "CLIENT";
|
|
524
|
-
resourceType: "USER_TASK" | "AUTHORIZATION" | "MAPPING_RULE" | "MESSAGE" | "BATCH" | "SYSTEM" | "TENANT" | "RESOURCE" | "PROCESS_DEFINITION" | "DECISION_REQUIREMENTS_DEFINITION" | "DECISION_DEFINITION" | "GROUP" | "USER" | "ROLE" | "AUDIT_LOG" | "CLUSTER_VARIABLE" | "COMPONENT" | "DOCUMENT" | "EXPRESSION" | "GLOBAL_LISTENER";
|
|
538
|
+
resourceType: "USER_TASK" | "AUTHORIZATION" | "MAPPING_RULE" | "MESSAGE" | "BATCH" | "SYSTEM" | "TENANT" | "RESOURCE" | "PROCESS_DEFINITION" | "DECISION_REQUIREMENTS_DEFINITION" | "DECISION_DEFINITION" | "GROUP" | "USER" | "ROLE" | "AUDIT_LOG" | "CLUSTER_VARIABLE" | "COMPONENT" | "DOCUMENT" | "EXPRESSION" | "GLOBAL_LISTENER" | "CLAIM_USER_TASK" | "COMPLETE_USER_TASK";
|
|
525
539
|
resourceId: string | null;
|
|
526
540
|
resourcePropertyName: string | null;
|
|
527
541
|
permissionTypes: ("ACCESS" | "CREATE" | "CREATE_BATCH_OPERATION_CANCEL_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_DELETE_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_MIGRATE_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_MODIFY_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_RESOLVE_INCIDENT" | "CREATE_BATCH_OPERATION_DELETE_DECISION_INSTANCE" | "CREATE_BATCH_OPERATION_DELETE_DECISION_DEFINITION" | "CREATE_BATCH_OPERATION_DELETE_PROCESS_DEFINITION" | "CREATE_PROCESS_INSTANCE" | "CREATE_DECISION_INSTANCE" | "READ" | "READ_PROCESS_INSTANCE" | "READ_USER_TASK" | "READ_DECISION_INSTANCE" | "READ_PROCESS_DEFINITION" | "READ_DECISION_DEFINITION" | "UPDATE" | "UPDATE_PROCESS_INSTANCE" | "UPDATE_USER_TASK" | "DELETE" | "DELETE_PROCESS" | "DELETE_DRD" | "DELETE_FORM" | "DELETE_RESOURCE" | "DELETE_PROCESS_INSTANCE" | "DELETE_DECISION_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "CLAIM" | "COMPLETE" | "CREATE_TASK_LISTENER" | "READ_JOB_METRIC" | "READ_TASK_LISTENER" | "READ_USAGE_METRIC" | "UPDATE_TASK_LISTENER" | "DELETE_TASK_LISTENER" | "EVALUATE")[];
|
|
@@ -529,7 +543,7 @@ declare const queryAuthorizationsResponseBodySchema: z.ZodType<import('./common'
|
|
|
529
543
|
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
530
544
|
ownerId: string;
|
|
531
545
|
ownerType: "UNSPECIFIED" | "MAPPING_RULE" | "GROUP" | "USER" | "ROLE" | "CLIENT";
|
|
532
|
-
resourceType: "USER_TASK" | "AUTHORIZATION" | "MAPPING_RULE" | "MESSAGE" | "BATCH" | "SYSTEM" | "TENANT" | "RESOURCE" | "PROCESS_DEFINITION" | "DECISION_REQUIREMENTS_DEFINITION" | "DECISION_DEFINITION" | "GROUP" | "USER" | "ROLE" | "AUDIT_LOG" | "CLUSTER_VARIABLE" | "COMPONENT" | "DOCUMENT" | "EXPRESSION" | "GLOBAL_LISTENER";
|
|
546
|
+
resourceType: "USER_TASK" | "AUTHORIZATION" | "MAPPING_RULE" | "MESSAGE" | "BATCH" | "SYSTEM" | "TENANT" | "RESOURCE" | "PROCESS_DEFINITION" | "DECISION_REQUIREMENTS_DEFINITION" | "DECISION_DEFINITION" | "GROUP" | "USER" | "ROLE" | "AUDIT_LOG" | "CLUSTER_VARIABLE" | "COMPONENT" | "DOCUMENT" | "EXPRESSION" | "GLOBAL_LISTENER" | "CLAIM_USER_TASK" | "COMPLETE_USER_TASK";
|
|
533
547
|
resourceId: string | null;
|
|
534
548
|
resourcePropertyName: string | null;
|
|
535
549
|
permissionTypes: ("ACCESS" | "CREATE" | "CREATE_BATCH_OPERATION_CANCEL_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_DELETE_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_MIGRATE_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_MODIFY_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_RESOLVE_INCIDENT" | "CREATE_BATCH_OPERATION_DELETE_DECISION_INSTANCE" | "CREATE_BATCH_OPERATION_DELETE_DECISION_DEFINITION" | "CREATE_BATCH_OPERATION_DELETE_PROCESS_DEFINITION" | "CREATE_PROCESS_INSTANCE" | "CREATE_DECISION_INSTANCE" | "READ" | "READ_PROCESS_INSTANCE" | "READ_USER_TASK" | "READ_DECISION_INSTANCE" | "READ_PROCESS_DEFINITION" | "READ_DECISION_DEFINITION" | "UPDATE" | "UPDATE_PROCESS_INSTANCE" | "UPDATE_USER_TASK" | "DELETE" | "DELETE_PROCESS" | "DELETE_DRD" | "DELETE_FORM" | "DELETE_RESOURCE" | "DELETE_PROCESS_INSTANCE" | "DELETE_DECISION_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "CLAIM" | "COMPLETE" | "CREATE_TASK_LISTENER" | "READ_JOB_METRIC" | "READ_TASK_LISTENER" | "READ_USAGE_METRIC" | "UPDATE_TASK_LISTENER" | "DELETE_TASK_LISTENER" | "EVALUATE")[];
|
|
@@ -61,7 +61,9 @@ const resourceTypeSchema = z.enum([
|
|
|
61
61
|
"SYSTEM",
|
|
62
62
|
"TENANT",
|
|
63
63
|
"USER",
|
|
64
|
-
"USER_TASK"
|
|
64
|
+
"USER_TASK",
|
|
65
|
+
"CLAIM_USER_TASK",
|
|
66
|
+
"COMPLETE_USER_TASK"
|
|
65
67
|
]);
|
|
66
68
|
const ownerTypeSchema = z.enum(["USER", "CLIENT", "ROLE", "GROUP", "MAPPING_RULE", "UNSPECIFIED"]);
|
|
67
69
|
const authorizationSchema = z.object({
|
package/dist/8.9/group.d.ts
CHANGED
|
@@ -144,14 +144,13 @@ declare const queryRolesByGroupRequestBodySchema: z.ZodObject<{
|
|
|
144
144
|
}, z.core.$strip>>;
|
|
145
145
|
}, z.core.$strip>;
|
|
146
146
|
type QueryRolesByGroupRequestBody = z.infer<typeof queryRolesByGroupRequestBodySchema>;
|
|
147
|
-
declare const queryRolesByGroupResponseBodySchema: z.
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}, z.core.$strip>;
|
|
147
|
+
declare const queryRolesByGroupResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
148
|
+
name: string;
|
|
149
|
+
roleId: string;
|
|
150
|
+
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
151
|
+
name: string;
|
|
152
|
+
roleId: string;
|
|
153
|
+
}>, unknown>>;
|
|
155
154
|
type QueryRolesByGroupResponseBody = z.infer<typeof queryRolesByGroupResponseBodySchema>;
|
|
156
155
|
declare const queryRolesByGroup: Endpoint<Pick<Group, 'groupId'>>;
|
|
157
156
|
declare const queryMappingRulesByGroupRequestBodySchema: z.ZodObject<{
|
|
@@ -179,14 +178,17 @@ declare const queryMappingRulesByGroupRequestBodySchema: z.ZodObject<{
|
|
|
179
178
|
}, z.core.$strip>>;
|
|
180
179
|
}, z.core.$strip>;
|
|
181
180
|
type QueryMappingRulesByGroupRequestBody = z.infer<typeof queryMappingRulesByGroupRequestBodySchema>;
|
|
182
|
-
declare const queryMappingRulesByGroupResponseBodySchema: z.
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
181
|
+
declare const queryMappingRulesByGroupResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
182
|
+
mappingRuleId: string;
|
|
183
|
+
claimName: string;
|
|
184
|
+
claimValue: string;
|
|
185
|
+
name: string;
|
|
186
|
+
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
187
|
+
mappingRuleId: string;
|
|
188
|
+
claimName: string;
|
|
189
|
+
claimValue: string;
|
|
190
|
+
name: string;
|
|
191
|
+
}>, unknown>>;
|
|
190
192
|
type QueryMappingRulesByGroupResponseBody = z.infer<typeof queryMappingRulesByGroupResponseBodySchema>;
|
|
191
193
|
declare const queryMappingRulesByGroup: Endpoint<Pick<Group, 'groupId'>>;
|
|
192
194
|
declare const assignUserToGroup: Endpoint<Pick<Group, 'groupId'> & {
|
|
@@ -201,7 +203,7 @@ declare const assignClientToGroup: Endpoint<Pick<Group, 'groupId'> & {
|
|
|
201
203
|
declare const unassignClientFromGroup: Endpoint<Pick<Group, 'groupId'> & {
|
|
202
204
|
clientId: string;
|
|
203
205
|
}>;
|
|
204
|
-
declare const assignMappingToGroup: Endpoint<Pick<Group, 'groupId'> & Pick<MappingRule, '
|
|
205
|
-
declare const unassignMappingFromGroup: Endpoint<Pick<Group, 'groupId'> & Pick<MappingRule, '
|
|
206
|
+
declare const assignMappingToGroup: Endpoint<Pick<Group, 'groupId'> & Pick<MappingRule, 'mappingRuleId'>>;
|
|
207
|
+
declare const unassignMappingFromGroup: Endpoint<Pick<Group, 'groupId'> & Pick<MappingRule, 'mappingRuleId'>>;
|
|
206
208
|
export { createGroup, getGroup, updateGroup, deleteGroup, queryGroups, queryUsersByGroup, queryClientsByGroup, queryRolesByGroup, queryMappingRulesByGroup, assignUserToGroup, unassignUserFromGroup, assignClientToGroup, unassignClientFromGroup, assignMappingToGroup, unassignMappingFromGroup, createGroupRequestBodySchema, createGroupResponseBodySchema, getGroupResponseBodySchema, updateGroupRequestBodySchema, updateGroupResponseBodySchema, queryGroupsRequestBodySchema, queryGroupsResponseBodySchema, queryUsersByGroupRequestBodySchema, queryUsersByGroupResponseBodySchema, queryClientsByGroupRequestBodySchema, queryClientsByGroupResponseBodySchema, queryRolesByGroupRequestBodySchema, queryRolesByGroupResponseBodySchema, queryMappingRulesByGroupRequestBodySchema, queryMappingRulesByGroupResponseBodySchema, groupSchema, };
|
|
207
209
|
export type { Group, CreateGroupRequestBody, CreateGroupResponseBody, GetGroupResponseBody, UpdateGroupRequestBody, UpdateGroupResponseBody, QueryGroupsRequestBody, QueryGroupsResponseBody, QueryUsersByGroupRequestBody, QueryUsersByGroupResponseBody, QueryClientsByGroupRequestBody, QueryClientsByGroupResponseBody, QueryRolesByGroupRequestBody, QueryRolesByGroupResponseBody, QueryMappingRulesByGroupRequestBody, QueryMappingRulesByGroupResponseBody, };
|
package/dist/8.9/group.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { getQueryRequestBodySchema, getQueryResponseBodySchema, API_VERSION } from "./common.js";
|
|
3
3
|
import { mappingRuleSchema } from "./mapping-rule.js";
|
|
4
4
|
import { userSchema } from "./user.js";
|
|
5
|
-
import { groupSchema } from "./group-role.js";
|
|
6
|
-
const pageOnlyQueryResponseBodySchema = z.object({
|
|
7
|
-
page: queryResponsePageSchema
|
|
8
|
-
});
|
|
5
|
+
import { groupSchema, roleSchema } from "./group-role.js";
|
|
9
6
|
const createGroupRequestBodySchema = groupSchema;
|
|
10
7
|
const createGroupResponseBodySchema = groupSchema;
|
|
11
8
|
const createGroup = {
|
|
@@ -90,7 +87,7 @@ const queryRolesByGroupRequestBodySchema = getQueryRequestBodySchema({
|
|
|
90
87
|
name: z.string()
|
|
91
88
|
}).partial()
|
|
92
89
|
});
|
|
93
|
-
const queryRolesByGroupResponseBodySchema =
|
|
90
|
+
const queryRolesByGroupResponseBodySchema = getQueryResponseBodySchema(roleSchema.pick({ roleId: true, name: true }));
|
|
94
91
|
const queryRolesByGroup = {
|
|
95
92
|
method: "POST",
|
|
96
93
|
getUrl(params) {
|
|
@@ -106,7 +103,7 @@ const queryMappingRulesByGroupRequestBodySchema = getQueryRequestBodySchema({
|
|
|
106
103
|
name: true
|
|
107
104
|
}).partial()
|
|
108
105
|
});
|
|
109
|
-
const queryMappingRulesByGroupResponseBodySchema =
|
|
106
|
+
const queryMappingRulesByGroupResponseBodySchema = getQueryResponseBodySchema(mappingRuleSchema);
|
|
110
107
|
const queryMappingRulesByGroup = {
|
|
111
108
|
method: "POST",
|
|
112
109
|
getUrl(params) {
|
|
@@ -145,15 +142,15 @@ const unassignClientFromGroup = {
|
|
|
145
142
|
const assignMappingToGroup = {
|
|
146
143
|
method: "PUT",
|
|
147
144
|
getUrl(params) {
|
|
148
|
-
const { groupId,
|
|
149
|
-
return `/${API_VERSION}/groups/${groupId}/mapping-rules/${
|
|
145
|
+
const { groupId, mappingRuleId } = params;
|
|
146
|
+
return `/${API_VERSION}/groups/${groupId}/mapping-rules/${mappingRuleId}`;
|
|
150
147
|
}
|
|
151
148
|
};
|
|
152
149
|
const unassignMappingFromGroup = {
|
|
153
150
|
method: "DELETE",
|
|
154
151
|
getUrl(params) {
|
|
155
|
-
const { groupId,
|
|
156
|
-
return `/${API_VERSION}/groups/${groupId}/mapping-rules/${
|
|
152
|
+
const { groupId, mappingRuleId } = params;
|
|
153
|
+
return `/${API_VERSION}/groups/${groupId}/mapping-rules/${mappingRuleId}`;
|
|
157
154
|
}
|
|
158
155
|
};
|
|
159
156
|
export {
|
package/dist/8.9/index.d.ts
CHANGED
|
@@ -216,21 +216,21 @@ declare const endpoints: {
|
|
|
216
216
|
name: string;
|
|
217
217
|
description: string;
|
|
218
218
|
}, "groupId"> & Pick<{
|
|
219
|
-
|
|
219
|
+
mappingRuleId: string;
|
|
220
220
|
claimName: string;
|
|
221
221
|
claimValue: string;
|
|
222
222
|
name: string;
|
|
223
|
-
}, "
|
|
223
|
+
}, "mappingRuleId">>;
|
|
224
224
|
readonly unassignMappingFromGroup: import('./common').Endpoint<Pick<{
|
|
225
225
|
groupId: string;
|
|
226
226
|
name: string;
|
|
227
227
|
description: string;
|
|
228
228
|
}, "groupId"> & Pick<{
|
|
229
|
-
|
|
229
|
+
mappingRuleId: string;
|
|
230
230
|
claimName: string;
|
|
231
231
|
claimValue: string;
|
|
232
232
|
name: string;
|
|
233
|
-
}, "
|
|
233
|
+
}, "mappingRuleId">>;
|
|
234
234
|
readonly resolveIncident: import('./common').Endpoint<Pick<{
|
|
235
235
|
processDefinitionId: string;
|
|
236
236
|
errorType: "UNSPECIFIED" | "UNKNOWN" | "IO_MAPPING_ERROR" | "JOB_NO_RETRIES" | "EXECUTION_LISTENER_NO_RETRIES" | "TASK_LISTENER_NO_RETRIES" | "CONDITION_ERROR" | "EXTRACT_VALUE_ERROR" | "CALLED_ELEMENT_ERROR" | "UNHANDLED_ERROR_EVENT" | "MESSAGE_SIZE_EXCEEDED" | "CALLED_DECISION_ERROR" | "DECISION_EVALUATION_ERROR" | "FORM_NOT_FOUND" | "RESOURCE_NOT_FOUND" | "AD_HOC_SUB_PROCESS_NO_RETRIES";
|
|
@@ -265,22 +265,22 @@ declare const endpoints: {
|
|
|
265
265
|
readonly getLicense: import('./common').Endpoint<undefined>;
|
|
266
266
|
readonly createMappingRule: import('./common').Endpoint<undefined>;
|
|
267
267
|
readonly updateMappingRule: import('./common').Endpoint<Pick<{
|
|
268
|
-
|
|
268
|
+
mappingRuleId: string;
|
|
269
269
|
claimName: string;
|
|
270
270
|
claimValue: string;
|
|
271
|
-
|
|
271
|
+
name: string;
|
|
272
272
|
}, "mappingRuleId">>;
|
|
273
273
|
readonly deleteMappingRule: import('./common').Endpoint<Pick<{
|
|
274
|
-
|
|
274
|
+
mappingRuleId: string;
|
|
275
275
|
claimName: string;
|
|
276
276
|
claimValue: string;
|
|
277
|
-
|
|
277
|
+
name: string;
|
|
278
278
|
}, "mappingRuleId">>;
|
|
279
279
|
readonly getMappingRule: import('./common').Endpoint<Pick<{
|
|
280
|
-
|
|
280
|
+
mappingRuleId: string;
|
|
281
281
|
claimName: string;
|
|
282
282
|
claimValue: string;
|
|
283
|
-
|
|
283
|
+
name: string;
|
|
284
284
|
}, "mappingRuleId">>;
|
|
285
285
|
readonly queryMappingRules: import('./common').Endpoint<undefined>;
|
|
286
286
|
readonly publishMessage: import('./common').Endpoint<undefined>;
|
|
@@ -865,21 +865,21 @@ declare const endpoints: {
|
|
|
865
865
|
name: string;
|
|
866
866
|
description: string;
|
|
867
867
|
}, "roleId"> & Pick<{
|
|
868
|
-
|
|
868
|
+
mappingRuleId: string;
|
|
869
869
|
claimName: string;
|
|
870
870
|
claimValue: string;
|
|
871
871
|
name: string;
|
|
872
|
-
}, "
|
|
872
|
+
}, "mappingRuleId">>;
|
|
873
873
|
readonly unassignMappingFromRole: import('./common').Endpoint<Pick<{
|
|
874
874
|
roleId: string;
|
|
875
875
|
name: string;
|
|
876
876
|
description: string;
|
|
877
877
|
}, "roleId"> & Pick<{
|
|
878
|
-
|
|
878
|
+
mappingRuleId: string;
|
|
879
879
|
claimName: string;
|
|
880
880
|
claimValue: string;
|
|
881
881
|
name: string;
|
|
882
|
-
}, "
|
|
882
|
+
}, "mappingRuleId">>;
|
|
883
883
|
readonly queryMappingRulesByRole: import('./common').Endpoint<Pick<{
|
|
884
884
|
roleId: string;
|
|
885
885
|
name: string;
|
|
@@ -956,21 +956,21 @@ declare const endpoints: {
|
|
|
956
956
|
name: string;
|
|
957
957
|
description: string | null;
|
|
958
958
|
}, "tenantId"> & Pick<{
|
|
959
|
-
|
|
959
|
+
mappingRuleId: string;
|
|
960
960
|
claimName: string;
|
|
961
961
|
claimValue: string;
|
|
962
962
|
name: string;
|
|
963
|
-
}, "
|
|
963
|
+
}, "mappingRuleId">>;
|
|
964
964
|
readonly unassignMappingRuleFromTenant: import('./common').Endpoint<Pick<{
|
|
965
965
|
tenantId: string;
|
|
966
966
|
name: string;
|
|
967
967
|
description: string | null;
|
|
968
968
|
}, "tenantId"> & Pick<{
|
|
969
|
-
|
|
969
|
+
mappingRuleId: string;
|
|
970
970
|
claimName: string;
|
|
971
971
|
claimValue: string;
|
|
972
972
|
name: string;
|
|
973
|
-
}, "
|
|
973
|
+
}, "mappingRuleId">>;
|
|
974
974
|
readonly queryMappingRulesByTenant: import('./common').Endpoint<Pick<{
|
|
975
975
|
tenantId: string;
|
|
976
976
|
name: string;
|
|
@@ -1155,7 +1155,7 @@ export { queryJobsRequestBodySchema, queryJobsResponseBodySchema, activateJobsRe
|
|
|
1155
1155
|
export { licenseSchema, type License } from './license';
|
|
1156
1156
|
export { publishMessageRequestBodySchema, publishMessageResponseBodySchema, correlateMessageRequestBodySchema, correlateMessageResponseBodySchema, type PublishMessageRequestBody, type PublishMessageResponseBody, type CorrelateMessageRequestBody, type CorrelateMessageResponseBody, } from './message';
|
|
1157
1157
|
export { messageSubscriptionSchema, queryMessageSubscriptionRequestBodySchema, queryMessageSubscriptionsResponseBodySchema, correlatedMessageSubscriptionSchema, queryCorrelatedMessageSubscriptionRequestBodySchema, queryCorrelatedMessageSubscriptionsResponseBodySchema, type MessageSubscriptionState, type MessageSubscription, type QueryMessageSubscriptionsRequestBody, type QueryMessageSubscriptionsResponseBody, type CorrelatedMessageSubscription, type QueryCorrelatedMessageSubscriptionsRequestBody, type QueryCorrelatedMessageSubscriptionsResponseBody, } from './message-subscriptions';
|
|
1158
|
-
export { createMappingRuleRequestBodySchema, createMappingRuleResponseBodySchema, updateMappingRuleRequestBodySchema, updateMappingRuleResponseBodySchema, getMappingRuleResponseBodySchema, queryMappingRulesRequestBodySchema, queryMappingRulesResponseBodySchema, mappingRuleSchema,
|
|
1158
|
+
export { createMappingRuleRequestBodySchema, createMappingRuleResponseBodySchema, updateMappingRuleRequestBodySchema, updateMappingRuleResponseBodySchema, getMappingRuleResponseBodySchema, queryMappingRulesRequestBodySchema, queryMappingRulesResponseBodySchema, mappingRuleSchema, type CreateMappingRuleRequestBody, type CreateMappingRuleResponseBody, type UpdateMappingRuleRequestBody, type UpdateMappingRuleResponseBody, type GetMappingRuleResponseBody, type QueryMappingRulesRequestBody, type QueryMappingRulesResponseBody, type MappingRule, } from './mapping-rule';
|
|
1159
1159
|
export { createProcessInstanceRequestBodySchema, createProcessInstanceResponseBodySchema, queryProcessInstancesRequestBodySchema, queryProcessInstancesResponseBodySchema, cancelProcessInstanceRequestBodySchema, queryProcessInstanceIncidentsRequestBodySchema, queryProcessInstanceIncidentsResponseBodySchema, getProcessInstanceCallHierarchyResponseBodySchema, getProcessInstanceStatisticsResponseBodySchema, getProcessInstanceSequenceFlowsResponseBodySchema, createIncidentResolutionBatchOperationResponseBodySchema, createCancellationBatchOperationResponseBodySchema, createMigrationBatchOperationResponseBodySchema, createModificationBatchOperationResponseBodySchema, resolveProcessInstanceIncidentsResponseBodySchema, processInstanceStateSchema, processInstanceSchema, sequenceFlowSchema, callHierarchySchema, type CreateProcessInstanceRequestBody, type CreateProcessInstanceResponseBody, type QueryProcessInstancesRequestBody, type QueryProcessInstancesResponseBody, type CancelProcessInstanceRequestBody, type QueryProcessInstanceIncidentsRequestBody, type QueryProcessInstanceIncidentsResponseBody, type CallHierarchy, type GetProcessInstanceCallHierarchyResponseBody, type SequenceFlow, type GetProcessInstanceSequenceFlowsResponseBody, type ProcessInstanceState, type StatisticName, type ProcessInstance, type GetProcessInstanceStatisticsResponseBody, type CreateIncidentResolutionBatchOperationRequestBody, type CreateIncidentResolutionBatchOperationResponseBody, type CreateCancellationBatchOperationRequestBody, type CreateCancellationBatchOperationResponseBody, type CreateMigrationBatchOperationRequestBody, type CreateMigrationBatchOperationResponseBody, type CreateModificationBatchOperationRequestBody, type CreateModificationBatchOperationResponseBody, type ResolveProcessInstanceIncidentsResponseBody, } from './process-instance';
|
|
1160
1160
|
export { userTaskSchema, queryUserTasksResponseBodySchema, queryUserTasksRequestBodySchema, formSchema, assignTaskRequestBodySchema, unassignTaskRequestBodySchema, completeTaskRequestBodySchema, queryVariablesByUserTaskRequestBodySchema, queryVariablesByUserTaskResponseBodySchema, updateUserTaskRequestBodySchema, type UserTask, type QueryUserTasksResponseBody, type QueryUserTasksRequestBody, type Form, type AssignTaskRequestBody, type UnassignTaskRequestBody, type CompleteTaskRequestBody, type QueryVariablesByUserTaskRequestBody, type QueryVariablesByUserTaskResponseBody, type UpdateUserTaskRequestBody, } from './user-task';
|
|
1161
1161
|
export { variableSchema, queryVariablesRequestBodySchema, queryVariablesResponseBodySchema, type Variable, type QueryVariablesResponseBody, type QueryVariablesRequestBody, } from './variable';
|
package/dist/8.9/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { elementInstanceFilterSchema, elementInstanceSchema, elementInstanceStat
|
|
|
12
12
|
import { createGroupRequestBodySchema, createGroupResponseBodySchema, getGroupResponseBodySchema, queryClientsByGroupRequestBodySchema, queryClientsByGroupResponseBodySchema, queryGroupsRequestBodySchema, queryGroupsResponseBodySchema, queryMappingRulesByGroupRequestBodySchema, queryMappingRulesByGroupResponseBodySchema, queryRolesByGroupRequestBodySchema, queryRolesByGroupResponseBodySchema, queryUsersByGroupRequestBodySchema, queryUsersByGroupResponseBodySchema, updateGroupRequestBodySchema, updateGroupResponseBodySchema } from "./group.js";
|
|
13
13
|
import { getIncidentResponseBodySchema, incidentErrorTypeSchema, incidentSchema, incidentStateSchema, queryIncidentsRequestBodySchema, queryIncidentsResponseBodySchema } from "./incident.js";
|
|
14
14
|
import { licenseSchema } from "./license.js";
|
|
15
|
-
import { createMappingRuleRequestBodySchema, createMappingRuleResponseBodySchema, getMappingRuleResponseBodySchema,
|
|
15
|
+
import { createMappingRuleRequestBodySchema, createMappingRuleResponseBodySchema, getMappingRuleResponseBodySchema, mappingRuleSchema, queryMappingRulesRequestBodySchema, queryMappingRulesResponseBodySchema, updateMappingRuleRequestBodySchema, updateMappingRuleResponseBodySchema } from "./mapping-rule.js";
|
|
16
16
|
import { correlateMessageRequestBodySchema, correlateMessageResponseBodySchema, publishMessageRequestBodySchema, publishMessageResponseBodySchema } from "./message.js";
|
|
17
17
|
import { correlatedMessageSubscriptionSchema, messageSubscriptionSchema, queryCorrelatedMessageSubscriptionRequestBodySchema, queryCorrelatedMessageSubscriptionsResponseBodySchema, queryMessageSubscriptionRequestBodySchema, queryMessageSubscriptionsResponseBodySchema } from "./message-subscriptions.js";
|
|
18
18
|
import { callHierarchySchema, cancelProcessInstanceRequestBodySchema, createCancellationBatchOperationResponseBodySchema, createIncidentResolutionBatchOperationResponseBodySchema, createMigrationBatchOperationResponseBodySchema, createModificationBatchOperationResponseBodySchema, createProcessInstanceRequestBodySchema, createProcessInstanceResponseBodySchema, getProcessInstanceCallHierarchyResponseBodySchema, getProcessInstanceSequenceFlowsResponseBodySchema, getProcessInstanceStatisticsResponseBodySchema, queryProcessInstanceIncidentsRequestBodySchema, queryProcessInstanceIncidentsResponseBodySchema, queryProcessInstancesRequestBodySchema, queryProcessInstancesResponseBodySchema, resolveProcessInstanceIncidentsResponseBodySchema, sequenceFlowSchema } from "./process-instance.js";
|
|
@@ -174,7 +174,6 @@ export {
|
|
|
174
174
|
licenseSchema,
|
|
175
175
|
listenerEventTypeFilterSchema,
|
|
176
176
|
listenerEventTypeSchema,
|
|
177
|
-
mappingRuleResultSchema,
|
|
178
177
|
mappingRuleSchema,
|
|
179
178
|
matchedDecisionRuleItemSchema,
|
|
180
179
|
messageSubscriptionSchema,
|
|
@@ -1,31 +1,24 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Endpoint } from './common';
|
|
3
3
|
declare const mappingRuleSchema: z.ZodObject<{
|
|
4
|
-
|
|
4
|
+
mappingRuleId: z.ZodString;
|
|
5
5
|
claimName: z.ZodString;
|
|
6
6
|
claimValue: z.ZodString;
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
type MappingRule = z.infer<typeof mappingRuleSchema>;
|
|
10
|
-
declare const mappingRuleResultSchema: z.ZodObject<{
|
|
11
|
-
name: z.ZodString;
|
|
12
|
-
claimName: z.ZodString;
|
|
13
|
-
claimValue: z.ZodString;
|
|
14
|
-
mappingRuleId: z.ZodString;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
type MappingRuleResult = z.infer<typeof mappingRuleResultSchema>;
|
|
17
10
|
declare const createMappingRuleRequestBodySchema: z.ZodObject<{
|
|
18
|
-
|
|
11
|
+
mappingRuleId: z.ZodString;
|
|
19
12
|
claimName: z.ZodString;
|
|
20
13
|
claimValue: z.ZodString;
|
|
21
14
|
name: z.ZodString;
|
|
22
15
|
}, z.core.$strip>;
|
|
23
16
|
type CreateMappingRuleRequestBody = z.infer<typeof createMappingRuleRequestBodySchema>;
|
|
24
17
|
declare const createMappingRuleResponseBodySchema: z.ZodObject<{
|
|
25
|
-
|
|
18
|
+
mappingRuleId: z.ZodString;
|
|
26
19
|
claimName: z.ZodString;
|
|
27
20
|
claimValue: z.ZodString;
|
|
28
|
-
|
|
21
|
+
name: z.ZodString;
|
|
29
22
|
}, z.core.$strip>;
|
|
30
23
|
type CreateMappingRuleResponseBody = z.infer<typeof createMappingRuleResponseBodySchema>;
|
|
31
24
|
declare const updateMappingRuleRequestBodySchema: z.ZodObject<{
|
|
@@ -35,17 +28,17 @@ declare const updateMappingRuleRequestBodySchema: z.ZodObject<{
|
|
|
35
28
|
}, z.core.$strip>;
|
|
36
29
|
type UpdateMappingRuleRequestBody = z.infer<typeof updateMappingRuleRequestBodySchema>;
|
|
37
30
|
declare const updateMappingRuleResponseBodySchema: z.ZodObject<{
|
|
38
|
-
|
|
31
|
+
mappingRuleId: z.ZodString;
|
|
39
32
|
claimName: z.ZodString;
|
|
40
33
|
claimValue: z.ZodString;
|
|
41
|
-
|
|
34
|
+
name: z.ZodString;
|
|
42
35
|
}, z.core.$strip>;
|
|
43
36
|
type UpdateMappingRuleResponseBody = z.infer<typeof updateMappingRuleResponseBodySchema>;
|
|
44
37
|
declare const queryMappingRulesRequestBodySchema: z.ZodObject<{
|
|
45
38
|
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46
39
|
field: z.ZodEnum<{
|
|
47
40
|
name: "name";
|
|
48
|
-
|
|
41
|
+
mappingRuleId: "mappingRuleId";
|
|
49
42
|
claimName: "claimName";
|
|
50
43
|
claimValue: "claimValue";
|
|
51
44
|
}>;
|
|
@@ -62,35 +55,35 @@ declare const queryMappingRulesRequestBodySchema: z.ZodObject<{
|
|
|
62
55
|
}, z.core.$strip>>;
|
|
63
56
|
filter: z.ZodOptional<z.ZodObject<{
|
|
64
57
|
name: z.ZodOptional<z.ZodString>;
|
|
65
|
-
|
|
58
|
+
mappingRuleId: z.ZodOptional<z.ZodString>;
|
|
66
59
|
claimName: z.ZodOptional<z.ZodString>;
|
|
67
60
|
claimValue: z.ZodOptional<z.ZodString>;
|
|
68
61
|
}, z.core.$strip>>;
|
|
69
62
|
}, z.core.$strip>;
|
|
70
63
|
type QueryMappingRulesRequestBody = z.infer<typeof queryMappingRulesRequestBodySchema>;
|
|
71
64
|
declare const queryMappingRulesResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
72
|
-
|
|
65
|
+
mappingRuleId: string;
|
|
73
66
|
claimName: string;
|
|
74
67
|
claimValue: string;
|
|
75
|
-
mappingRuleId: string;
|
|
76
|
-
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
77
68
|
name: string;
|
|
69
|
+
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
70
|
+
mappingRuleId: string;
|
|
78
71
|
claimName: string;
|
|
79
72
|
claimValue: string;
|
|
80
|
-
|
|
73
|
+
name: string;
|
|
81
74
|
}>, unknown>>;
|
|
82
75
|
type QueryMappingRulesResponseBody = z.infer<typeof queryMappingRulesResponseBodySchema>;
|
|
83
76
|
declare const getMappingRuleResponseBodySchema: z.ZodObject<{
|
|
84
|
-
|
|
77
|
+
mappingRuleId: z.ZodString;
|
|
85
78
|
claimName: z.ZodString;
|
|
86
79
|
claimValue: z.ZodString;
|
|
87
|
-
|
|
80
|
+
name: z.ZodString;
|
|
88
81
|
}, z.core.$strip>;
|
|
89
82
|
type GetMappingRuleResponseBody = z.infer<typeof getMappingRuleResponseBodySchema>;
|
|
90
83
|
declare const createMappingRule: Endpoint;
|
|
91
|
-
declare const updateMappingRule: Endpoint<Pick<
|
|
92
|
-
declare const deleteMappingRule: Endpoint<Pick<
|
|
93
|
-
declare const getMappingRule: Endpoint<Pick<
|
|
84
|
+
declare const updateMappingRule: Endpoint<Pick<MappingRule, 'mappingRuleId'>>;
|
|
85
|
+
declare const deleteMappingRule: Endpoint<Pick<MappingRule, 'mappingRuleId'>>;
|
|
86
|
+
declare const getMappingRule: Endpoint<Pick<MappingRule, 'mappingRuleId'>>;
|
|
94
87
|
declare const queryMappingRules: Endpoint;
|
|
95
|
-
export { createMappingRule, updateMappingRule, deleteMappingRule, getMappingRule, queryMappingRules, createMappingRuleRequestBodySchema, createMappingRuleResponseBodySchema, updateMappingRuleRequestBodySchema, updateMappingRuleResponseBodySchema, getMappingRuleResponseBodySchema, queryMappingRulesRequestBodySchema, queryMappingRulesResponseBodySchema, mappingRuleSchema,
|
|
96
|
-
export type { CreateMappingRuleRequestBody, CreateMappingRuleResponseBody, UpdateMappingRuleRequestBody, UpdateMappingRuleResponseBody, GetMappingRuleResponseBody, QueryMappingRulesRequestBody, QueryMappingRulesResponseBody, MappingRule,
|
|
88
|
+
export { createMappingRule, updateMappingRule, deleteMappingRule, getMappingRule, queryMappingRules, createMappingRuleRequestBodySchema, createMappingRuleResponseBodySchema, updateMappingRuleRequestBodySchema, updateMappingRuleResponseBodySchema, getMappingRuleResponseBodySchema, queryMappingRulesRequestBodySchema, queryMappingRulesResponseBodySchema, mappingRuleSchema, };
|
|
89
|
+
export type { CreateMappingRuleRequestBody, CreateMappingRuleResponseBody, UpdateMappingRuleRequestBody, UpdateMappingRuleResponseBody, GetMappingRuleResponseBody, QueryMappingRulesRequestBody, QueryMappingRulesResponseBody, MappingRule, };
|
package/dist/8.9/mapping-rule.js
CHANGED
|
@@ -1,33 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { getQueryRequestBodySchema, getQueryResponseBodySchema, API_VERSION } from "./common.js";
|
|
3
3
|
const mappingRuleSchema = z.object({
|
|
4
|
-
|
|
4
|
+
mappingRuleId: z.string(),
|
|
5
5
|
claimName: z.string(),
|
|
6
6
|
claimValue: z.string(),
|
|
7
7
|
name: z.string()
|
|
8
8
|
});
|
|
9
|
-
const mappingRuleResultSchema = mappingRuleSchema.omit({ mappingId: true }).extend({
|
|
10
|
-
mappingRuleId: z.string()
|
|
11
|
-
});
|
|
12
9
|
const createMappingRuleRequestBodySchema = mappingRuleSchema;
|
|
13
|
-
const createMappingRuleResponseBodySchema =
|
|
10
|
+
const createMappingRuleResponseBodySchema = mappingRuleSchema;
|
|
14
11
|
const updateMappingRuleRequestBodySchema = mappingRuleSchema.pick({
|
|
15
12
|
claimName: true,
|
|
16
13
|
claimValue: true,
|
|
17
14
|
name: true
|
|
18
15
|
});
|
|
19
|
-
const updateMappingRuleResponseBodySchema =
|
|
16
|
+
const updateMappingRuleResponseBodySchema = mappingRuleSchema;
|
|
20
17
|
const queryMappingRulesRequestBodySchema = getQueryRequestBodySchema({
|
|
21
|
-
sortFields: ["
|
|
18
|
+
sortFields: ["mappingRuleId", "claimName", "claimValue", "name"],
|
|
22
19
|
filter: mappingRuleSchema.pick({
|
|
23
|
-
|
|
20
|
+
mappingRuleId: true,
|
|
24
21
|
claimName: true,
|
|
25
22
|
claimValue: true,
|
|
26
23
|
name: true
|
|
27
24
|
}).partial()
|
|
28
25
|
});
|
|
29
|
-
const queryMappingRulesResponseBodySchema = getQueryResponseBodySchema(
|
|
30
|
-
const getMappingRuleResponseBodySchema =
|
|
26
|
+
const queryMappingRulesResponseBodySchema = getQueryResponseBodySchema(mappingRuleSchema);
|
|
27
|
+
const getMappingRuleResponseBodySchema = mappingRuleSchema;
|
|
31
28
|
const createMappingRule = {
|
|
32
29
|
method: "POST",
|
|
33
30
|
getUrl() {
|
|
@@ -68,7 +65,6 @@ export {
|
|
|
68
65
|
deleteMappingRule,
|
|
69
66
|
getMappingRule,
|
|
70
67
|
getMappingRuleResponseBodySchema,
|
|
71
|
-
mappingRuleResultSchema,
|
|
72
68
|
mappingRuleSchema,
|
|
73
69
|
queryMappingRules,
|
|
74
70
|
queryMappingRulesRequestBodySchema,
|
package/dist/8.9/role.d.ts
CHANGED
|
@@ -158,14 +158,17 @@ declare const queryMappingRulesByRoleRequestBodySchema: z.ZodObject<{
|
|
|
158
158
|
}, z.core.$strip>>;
|
|
159
159
|
}, z.core.$strip>;
|
|
160
160
|
type QueryMappingRulesByRoleRequestBody = z.infer<typeof queryMappingRulesByRoleRequestBodySchema>;
|
|
161
|
-
declare const queryMappingRulesByRoleResponseBodySchema: z.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
161
|
+
declare const queryMappingRulesByRoleResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
162
|
+
mappingRuleId: string;
|
|
163
|
+
claimName: string;
|
|
164
|
+
claimValue: string;
|
|
165
|
+
name: string;
|
|
166
|
+
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
167
|
+
mappingRuleId: string;
|
|
168
|
+
claimName: string;
|
|
169
|
+
claimValue: string;
|
|
170
|
+
name: string;
|
|
171
|
+
}>, unknown>>;
|
|
169
172
|
type QueryMappingRulesByRoleResponseBody = z.infer<typeof queryMappingRulesByRoleResponseBodySchema>;
|
|
170
173
|
declare const createRole: Endpoint;
|
|
171
174
|
declare const getRole: Endpoint<Pick<Role, 'roleId'>>;
|
|
@@ -189,8 +192,8 @@ declare const unassignClientFromRole: Endpoint<Pick<Role, 'roleId'> & {
|
|
|
189
192
|
declare const assignGroupToRole: Endpoint<Pick<Role, 'roleId'> & Pick<Group, 'groupId'>>;
|
|
190
193
|
declare const unassignGroupFromRole: Endpoint<Pick<Role, 'roleId'> & Pick<Group, 'groupId'>>;
|
|
191
194
|
declare const queryGroupsByRole: Endpoint<Pick<Role, 'roleId'>>;
|
|
192
|
-
declare const assignMappingToRole: Endpoint<Pick<Role, 'roleId'> & Pick<MappingRule, '
|
|
193
|
-
declare const unassignMappingFromRole: Endpoint<Pick<Role, 'roleId'> & Pick<MappingRule, '
|
|
195
|
+
declare const assignMappingToRole: Endpoint<Pick<Role, 'roleId'> & Pick<MappingRule, 'mappingRuleId'>>;
|
|
196
|
+
declare const unassignMappingFromRole: Endpoint<Pick<Role, 'roleId'> & Pick<MappingRule, 'mappingRuleId'>>;
|
|
194
197
|
declare const queryMappingRulesByRole: Endpoint<Pick<Role, 'roleId'>>;
|
|
195
198
|
export { createRole, getRole, updateRole, deleteRole, queryRoles, queryUsersByRole, queryClientsByRole, assignUserToRole, unassignUserFromRole, assignClientToRole, unassignClientFromRole, assignGroupToRole, unassignGroupFromRole, queryGroupsByRole, assignMappingToRole, unassignMappingFromRole, queryMappingRulesByRole, roleSchema, createRoleRequestBodySchema, createRoleResponseBodySchema, updateRoleRequestBodySchema, updateRoleResponseBodySchema, queryRolesRequestBodySchema, queryRolesResponseBodySchema, queryUsersByRoleRequestBodySchema, queryUsersByRoleResponseBodySchema, queryClientsByRoleRequestBodySchema, queryClientsByRoleResponseBodySchema, queryGroupsByRoleRequestBodySchema, queryGroupsByRoleResponseBodySchema, queryMappingRulesByRoleRequestBodySchema, queryMappingRulesByRoleResponseBodySchema, };
|
|
196
199
|
export type { Role, CreateRoleRequestBody, CreateRoleResponseBody, UpdateRoleRequestBody, UpdateRoleResponseBody, QueryRolesRequestBody, QueryRolesResponseBody, QueryUsersByRoleRequestBody, QueryUsersByRoleResponseBody, QueryClientsByRoleRequestBody, QueryClientsByRoleResponseBody, QueryGroupsByRoleRequestBody, QueryGroupsByRoleResponseBody, QueryMappingRulesByRoleRequestBody, QueryMappingRulesByRoleResponseBody, };
|
package/dist/8.9/role.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { getQueryRequestBodySchema, getQueryResponseBodySchema, API_VERSION } from "./common.js";
|
|
3
3
|
import { roleSchema } from "./group-role.js";
|
|
4
4
|
import { mappingRuleSchema } from "./mapping-rule.js";
|
|
5
5
|
import { userSchema } from "./user.js";
|
|
6
|
-
const pageOnlyQueryResponseBodySchema = z.object({
|
|
7
|
-
page: queryResponsePageSchema
|
|
8
|
-
});
|
|
9
6
|
const createRoleRequestBodySchema = roleSchema;
|
|
10
7
|
const createRoleResponseBodySchema = roleSchema;
|
|
11
8
|
const updateRoleRequestBodySchema = roleSchema.pick({
|
|
@@ -52,7 +49,7 @@ const queryMappingRulesByRoleRequestBodySchema = getQueryRequestBodySchema({
|
|
|
52
49
|
name: true
|
|
53
50
|
}).partial()
|
|
54
51
|
});
|
|
55
|
-
const queryMappingRulesByRoleResponseBodySchema =
|
|
52
|
+
const queryMappingRulesByRoleResponseBodySchema = getQueryResponseBodySchema(mappingRuleSchema);
|
|
56
53
|
const createRole = {
|
|
57
54
|
method: "POST",
|
|
58
55
|
getUrl() {
|
|
@@ -152,15 +149,15 @@ const queryGroupsByRole = {
|
|
|
152
149
|
const assignMappingToRole = {
|
|
153
150
|
method: "PUT",
|
|
154
151
|
getUrl(params) {
|
|
155
|
-
const { roleId,
|
|
156
|
-
return `/${API_VERSION}/roles/${roleId}/mapping-rules/${
|
|
152
|
+
const { roleId, mappingRuleId } = params;
|
|
153
|
+
return `/${API_VERSION}/roles/${roleId}/mapping-rules/${mappingRuleId}`;
|
|
157
154
|
}
|
|
158
155
|
};
|
|
159
156
|
const unassignMappingFromRole = {
|
|
160
157
|
method: "DELETE",
|
|
161
158
|
getUrl(params) {
|
|
162
|
-
const { roleId,
|
|
163
|
-
return `/${API_VERSION}/roles/${roleId}/mapping-rules/${
|
|
159
|
+
const { roleId, mappingRuleId } = params;
|
|
160
|
+
return `/${API_VERSION}/roles/${roleId}/mapping-rules/${mappingRuleId}`;
|
|
164
161
|
}
|
|
165
162
|
};
|
|
166
163
|
const queryMappingRulesByRole = {
|
package/dist/8.9/tenant.d.ts
CHANGED
|
@@ -172,20 +172,21 @@ declare const queryRolesByTenantRequestBodySchema: z.ZodObject<{
|
|
|
172
172
|
}, z.core.$strip>>;
|
|
173
173
|
}, z.core.$strip>;
|
|
174
174
|
type QueryRolesByTenantRequestBody = z.infer<typeof queryRolesByTenantRequestBodySchema>;
|
|
175
|
-
declare const queryRolesByTenantResponseBodySchema: z.
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
175
|
+
declare const queryRolesByTenantResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
176
|
+
roleId: string;
|
|
177
|
+
name: string;
|
|
178
|
+
description: string;
|
|
179
|
+
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
180
|
+
roleId: string;
|
|
181
|
+
name: string;
|
|
182
|
+
description: string;
|
|
183
|
+
}>, unknown>>;
|
|
183
184
|
type QueryRolesByTenantResponseBody = z.infer<typeof queryRolesByTenantResponseBodySchema>;
|
|
184
185
|
declare const queryMappingRulesByTenantRequestBodySchema: z.ZodObject<{
|
|
185
186
|
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
186
187
|
field: z.ZodEnum<{
|
|
187
188
|
name: "name";
|
|
188
|
-
|
|
189
|
+
mappingRuleId: "mappingRuleId";
|
|
189
190
|
claimName: "claimName";
|
|
190
191
|
claimValue: "claimValue";
|
|
191
192
|
}>;
|
|
@@ -202,20 +203,23 @@ declare const queryMappingRulesByTenantRequestBodySchema: z.ZodObject<{
|
|
|
202
203
|
}, z.core.$strip>>;
|
|
203
204
|
filter: z.ZodOptional<z.ZodObject<{
|
|
204
205
|
name: z.ZodOptional<z.ZodString>;
|
|
205
|
-
|
|
206
|
+
mappingRuleId: z.ZodOptional<z.ZodString>;
|
|
206
207
|
claimName: z.ZodOptional<z.ZodString>;
|
|
207
208
|
claimValue: z.ZodOptional<z.ZodString>;
|
|
208
209
|
}, z.core.$strip>>;
|
|
209
210
|
}, z.core.$strip>;
|
|
210
211
|
type QueryMappingRulesByTenantRequestBody = z.infer<typeof queryMappingRulesByTenantRequestBodySchema>;
|
|
211
|
-
declare const queryMappingRulesByTenantResponseBodySchema: z.
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
212
|
+
declare const queryMappingRulesByTenantResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
213
|
+
mappingRuleId: string;
|
|
214
|
+
claimName: string;
|
|
215
|
+
claimValue: string;
|
|
216
|
+
name: string;
|
|
217
|
+
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
218
|
+
mappingRuleId: string;
|
|
219
|
+
claimName: string;
|
|
220
|
+
claimValue: string;
|
|
221
|
+
name: string;
|
|
222
|
+
}>, unknown>>;
|
|
219
223
|
type QueryMappingRulesByTenantResponseBody = z.infer<typeof queryMappingRulesByTenantResponseBodySchema>;
|
|
220
224
|
declare const createTenant: Endpoint;
|
|
221
225
|
declare const getTenant: Endpoint<Pick<Tenant, 'tenantId'>>;
|
|
@@ -238,8 +242,8 @@ declare const assignClientToTenant: Endpoint<Pick<Tenant, 'tenantId'> & {
|
|
|
238
242
|
declare const unassignClientFromTenant: Endpoint<Pick<Tenant, 'tenantId'> & {
|
|
239
243
|
clientId: string;
|
|
240
244
|
}>;
|
|
241
|
-
declare const assignMappingRuleToTenant: Endpoint<Pick<Tenant, 'tenantId'> & Pick<MappingRule, '
|
|
242
|
-
declare const unassignMappingRuleFromTenant: Endpoint<Pick<Tenant, 'tenantId'> & Pick<MappingRule, '
|
|
245
|
+
declare const assignMappingRuleToTenant: Endpoint<Pick<Tenant, 'tenantId'> & Pick<MappingRule, 'mappingRuleId'>>;
|
|
246
|
+
declare const unassignMappingRuleFromTenant: Endpoint<Pick<Tenant, 'tenantId'> & Pick<MappingRule, 'mappingRuleId'>>;
|
|
243
247
|
declare const queryMappingRulesByTenant: Endpoint<Pick<Tenant, 'tenantId'>>;
|
|
244
248
|
declare const assignGroupToTenant: Endpoint<Pick<Tenant, 'tenantId'> & Pick<Group, 'groupId'>>;
|
|
245
249
|
declare const unassignGroupFromTenant: Endpoint<Pick<Tenant, 'tenantId'> & Pick<Group, 'groupId'>>;
|
package/dist/8.9/tenant.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { getQueryRequestBodySchema, getQueryResponseBodySchema, API_VERSION } from "./common.js";
|
|
3
3
|
import "./group.js";
|
|
4
|
+
import { roleSchema } from "./group-role.js";
|
|
4
5
|
import { queryRolesRequestBodySchema } from "./role.js";
|
|
5
|
-
import { queryMappingRulesRequestBodySchema } from "./mapping-rule.js";
|
|
6
|
-
const pageOnlyQueryResponseBodySchema = z.object({
|
|
7
|
-
page: queryResponsePageSchema
|
|
8
|
-
});
|
|
6
|
+
import { mappingRuleSchema, queryMappingRulesRequestBodySchema } from "./mapping-rule.js";
|
|
9
7
|
const tenantSchema = z.object({
|
|
10
8
|
tenantId: z.string(),
|
|
11
9
|
name: z.string(),
|
|
@@ -56,9 +54,9 @@ const queryGroupsByTenantResponseBodySchema = getQueryResponseBodySchema(
|
|
|
56
54
|
})
|
|
57
55
|
);
|
|
58
56
|
const queryRolesByTenantRequestBodySchema = queryRolesRequestBodySchema;
|
|
59
|
-
const queryRolesByTenantResponseBodySchema =
|
|
57
|
+
const queryRolesByTenantResponseBodySchema = getQueryResponseBodySchema(roleSchema);
|
|
60
58
|
const queryMappingRulesByTenantRequestBodySchema = queryMappingRulesRequestBodySchema;
|
|
61
|
-
const queryMappingRulesByTenantResponseBodySchema =
|
|
59
|
+
const queryMappingRulesByTenantResponseBodySchema = getQueryResponseBodySchema(mappingRuleSchema);
|
|
62
60
|
const createTenant = {
|
|
63
61
|
method: "POST",
|
|
64
62
|
getUrl: () => `/${API_VERSION}/tenants`
|
|
@@ -113,11 +111,11 @@ const unassignClientFromTenant = {
|
|
|
113
111
|
};
|
|
114
112
|
const assignMappingRuleToTenant = {
|
|
115
113
|
method: "PUT",
|
|
116
|
-
getUrl: ({ tenantId,
|
|
114
|
+
getUrl: ({ tenantId, mappingRuleId }) => `/${API_VERSION}/tenants/${tenantId}/mapping-rules/${mappingRuleId}`
|
|
117
115
|
};
|
|
118
116
|
const unassignMappingRuleFromTenant = {
|
|
119
117
|
method: "DELETE",
|
|
120
|
-
getUrl: ({ tenantId,
|
|
118
|
+
getUrl: ({ tenantId, mappingRuleId }) => `/${API_VERSION}/tenants/${tenantId}/mapping-rules/${mappingRuleId}`
|
|
121
119
|
};
|
|
122
120
|
const queryMappingRulesByTenant = {
|
|
123
121
|
method: "POST",
|
package/dist/8.9.js
CHANGED
|
@@ -27,7 +27,7 @@ import { getIncidentResponseBodySchema, incidentErrorTypeSchema, incidentSchema,
|
|
|
27
27
|
import { getLicense } from "./8.9/license.js";
|
|
28
28
|
import { licenseSchema } from "./8.9/license.js";
|
|
29
29
|
import { queryMappingRules, getMappingRule, deleteMappingRule, updateMappingRule, createMappingRule } from "./8.9/mapping-rule.js";
|
|
30
|
-
import { createMappingRuleRequestBodySchema, createMappingRuleResponseBodySchema, getMappingRuleResponseBodySchema,
|
|
30
|
+
import { createMappingRuleRequestBodySchema, createMappingRuleResponseBodySchema, getMappingRuleResponseBodySchema, mappingRuleSchema, queryMappingRulesRequestBodySchema, queryMappingRulesResponseBodySchema, updateMappingRuleRequestBodySchema, updateMappingRuleResponseBodySchema } from "./8.9/mapping-rule.js";
|
|
31
31
|
import { correlateMessage, publishMessage } from "./8.9/message.js";
|
|
32
32
|
import { correlateMessageRequestBodySchema, correlateMessageResponseBodySchema, publishMessageRequestBodySchema, publishMessageResponseBodySchema } from "./8.9/message.js";
|
|
33
33
|
import { queryCorrelatedMessageSubscriptions, queryMessageSubscriptions } from "./8.9/message-subscriptions.js";
|
|
@@ -377,7 +377,6 @@ export {
|
|
|
377
377
|
licenseSchema,
|
|
378
378
|
listenerEventTypeFilterSchema,
|
|
379
379
|
listenerEventTypeSchema,
|
|
380
|
-
mappingRuleResultSchema,
|
|
381
380
|
mappingRuleSchema,
|
|
382
381
|
matchedDecisionRuleItemSchema,
|
|
383
382
|
messageSubscriptionSchema,
|
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.48",
|
|
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>",
|