@dakkitor/api-contracts 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abilities/abilities.contract.d.ts +6 -2
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +45 -1
- package/dist/abilities/abilities.contract.spec.js +98 -0
- package/dist/abilities/first-agent.abilities.json +8 -14
- package/dist/abilities/outreach.abilities.json +25 -0
- package/dist/abilities/second-agent.abilities.json +4 -13
- package/dist/actives/actives.contract.d.ts +3618 -3479
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +2 -0
- package/dist/actives/actives.contract.spec.d.ts +2 -0
- package/dist/actives/actives.contract.spec.d.ts.map +1 -0
- package/dist/actives/actives.contract.spec.js +35 -0
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1087 -1087
- package/dist/auth/auth.contract.d.ts +108 -108
- package/dist/bookings/bookings.contract.d.ts +6644 -6452
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +718 -718
- package/dist/calls-feed/calls-feed.contract.d.ts +86 -86
- package/dist/client-contacts/client-contacts.contract.d.ts +469 -469
- package/dist/clients/clients.contract.d.ts +203 -203
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2713 -2713
- package/dist/collaborations/collaborations.contract.d.ts +2270 -2270
- package/dist/common/common-schemas.d.ts +12 -12
- package/dist/companies/companies.contract.d.ts +74 -74
- package/dist/crews/crews.contract.d.ts +253 -253
- package/dist/cron-executions/cron-executions.contract.d.ts +182 -182
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2723 -2723
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +378 -378
- package/dist/curated-worker-leads/consent-queue.contract.d.ts +1137 -1107
- package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +16 -16
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +2 -2
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +5818 -5372
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +34 -1
- package/dist/curated-worker-leads/lead-agent-area.contract.d.ts +4 -4
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts +2 -0
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.js +39 -0
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +148 -148
- package/dist/curated-workers/curated-workers.contract.d.ts +789 -789
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +2 -2
- package/dist/dashboards/dashboard-widgets.contract.d.ts +180 -180
- package/dist/dashboards/dashboard.contract.d.ts +12 -12
- package/dist/document-intake/document-intake.contract.d.ts +601 -601
- package/dist/export-jobs/export-jobs.contract.d.ts +694 -694
- package/dist/exports-events/exports-events.schemas.d.ts +4 -4
- package/dist/files/files.contract.d.ts +74 -74
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/interactions/interactions.contract.d.ts +6 -6
- package/dist/job-clusters/job-clusters.contract.d.ts +112 -112
- package/dist/jobs/job-moderation-fields.spec.d.ts +2 -0
- package/dist/jobs/job-moderation-fields.spec.d.ts.map +1 -0
- package/dist/jobs/job-moderation-fields.spec.js +72 -0
- package/dist/jobs/jobs.contract.d.ts +4773 -4525
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +48 -0
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +141 -141
- package/dist/lead-assignments/lead-assignments.contract.d.ts +911 -911
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +209 -209
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +77 -77
- package/dist/leads/leads.contract.d.ts +283 -283
- package/dist/locations/locations.contract.d.ts +49 -49
- package/dist/notifications/notifications.contract.d.ts +67 -67
- package/dist/offices/offices.contract.d.ts +34 -34
- package/dist/outreach/__tests__/outreach-contract-additions.spec.js +11 -0
- package/dist/outreach/__tests__/outreach-requests.contract.spec.js +13 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +14 -3
- package/dist/outreach/outreach-requests.contract.d.ts +862 -217
- package/dist/outreach/outreach-requests.contract.d.ts.map +1 -1
- package/dist/outreach/outreach-requests.contract.js +23 -3
- package/dist/outreach/outreach-requests.schemas.d.ts +56 -10
- package/dist/outreach/outreach-requests.schemas.d.ts.map +1 -1
- package/dist/outreach/outreach-requests.schemas.js +3 -0
- package/dist/outreach/outreach.contract.d.ts +300 -38
- package/dist/outreach/outreach.contract.d.ts.map +1 -1
- package/dist/outreach/outreach.contract.js +18 -0
- package/dist/outreach/outreach.contract.spec.d.ts +2 -0
- package/dist/outreach/outreach.contract.spec.d.ts.map +1 -0
- package/dist/outreach/outreach.contract.spec.js +54 -0
- package/dist/outreach/outreach.schemas.d.ts +2 -2
- package/dist/own-research/own-research.contract.d.ts +775 -775
- package/dist/postcodes/postcodes.contract.d.ts +24 -24
- package/dist/proofs/proof-type.enum.d.ts +4 -4
- package/dist/proofs/proofs.contract.d.ts +363 -363
- package/dist/proofs/proofs.dtos.d.ts +124 -124
- package/dist/qualifications/qualifications.contract.d.ts +38 -38
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts +680 -0
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-sessions.contract.js +67 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.js +129 -0
- package/dist/relay-pods/relay-pods.contract.d.ts +1569 -0
- package/dist/relay-pods/relay-pods.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.contract.js +188 -0
- package/dist/relay-pods/relay-pods.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-pods.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.contract.spec.js +141 -0
- package/dist/relay-pods/relay-pods.schemas.d.ts +415 -0
- package/dist/relay-pods/relay-pods.schemas.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.schemas.js +112 -0
- package/dist/shared/live-booking.schema.d.ts +4 -4
- package/dist/shared/summary-schemas.d.ts +6 -6
- package/dist/sheets-sync/sheets-sync.contract.d.ts +939 -939
- package/dist/telegram/telegram.contract.d.ts +22 -22
- package/dist/trades/trades.contract.d.ts +90 -90
- package/dist/user-access-grants/user-access-grants.contract.d.ts +165 -165
- package/dist/users/__tests__/assignable-roles.spec.d.ts +2 -0
- package/dist/users/__tests__/assignable-roles.spec.d.ts.map +1 -0
- package/dist/users/__tests__/assignable-roles.spec.js +41 -0
- package/dist/users/users.contract.d.ts +399 -393
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +11 -0
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +585 -527
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +278 -236
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts.map +1 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.js +1 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +153 -153
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +59 -59
- package/dist/workers/workers.contract.d.ts +2919 -2919
- package/package.json +1 -1
- package/dist/bookings/bookings.contract.spec.d.ts +0 -2
- package/dist/bookings/bookings.contract.spec.d.ts.map +0 -1
- package/dist/bookings/bookings.contract.spec.js +0 -11
|
@@ -12,11 +12,11 @@ export declare const EffectiveUserAccessGrantScopeSchema: z.ZodObject<{
|
|
|
12
12
|
targetUserIds: z.ZodArray<z.ZodString, "many">;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
action: "READ";
|
|
15
|
-
resource: "
|
|
15
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
16
16
|
targetUserIds: string[];
|
|
17
17
|
}, {
|
|
18
18
|
action: "READ";
|
|
19
|
-
resource: "
|
|
19
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
20
20
|
targetUserIds: string[];
|
|
21
21
|
}>;
|
|
22
22
|
export type EffectiveUserAccessGrantScope = z.infer<typeof EffectiveUserAccessGrantScopeSchema>;
|
|
@@ -27,25 +27,25 @@ export declare const AccessGrantScopesResponseSchema: z.ZodObject<{
|
|
|
27
27
|
targetUserIds: z.ZodArray<z.ZodString, "many">;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
action: "READ";
|
|
30
|
-
resource: "
|
|
30
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
31
31
|
targetUserIds: string[];
|
|
32
32
|
}, {
|
|
33
33
|
action: "READ";
|
|
34
|
-
resource: "
|
|
34
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
35
35
|
targetUserIds: string[];
|
|
36
36
|
}>, "many">;
|
|
37
37
|
validUntil: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
scopes: {
|
|
40
40
|
action: "READ";
|
|
41
|
-
resource: "
|
|
41
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
42
42
|
targetUserIds: string[];
|
|
43
43
|
}[];
|
|
44
44
|
validUntil: string | null;
|
|
45
45
|
}, {
|
|
46
46
|
scopes: {
|
|
47
47
|
action: "READ";
|
|
48
|
-
resource: "
|
|
48
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
49
49
|
targetUserIds: string[];
|
|
50
50
|
}[];
|
|
51
51
|
validUntil: string | Date | null;
|
|
@@ -253,10 +253,10 @@ export declare const UserAccessGrantSchema: z.ZodObject<{
|
|
|
253
253
|
}[];
|
|
254
254
|
deletedAt?: string | null | undefined;
|
|
255
255
|
};
|
|
256
|
-
expiresAt: string | null;
|
|
257
256
|
reason: string | null;
|
|
257
|
+
expiresAt: string | null;
|
|
258
258
|
action: "READ";
|
|
259
|
-
resource: "
|
|
259
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
260
260
|
grantee: {
|
|
261
261
|
id: string;
|
|
262
262
|
firstName: string;
|
|
@@ -311,10 +311,10 @@ export declare const UserAccessGrantSchema: z.ZodObject<{
|
|
|
311
311
|
}[] | undefined;
|
|
312
312
|
deletedAt?: string | Date | null | undefined;
|
|
313
313
|
};
|
|
314
|
-
expiresAt: string | Date | null;
|
|
315
314
|
reason: string | null;
|
|
315
|
+
expiresAt: string | Date | null;
|
|
316
316
|
action: "READ";
|
|
317
|
-
resource: "
|
|
317
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
318
318
|
grantee: {
|
|
319
319
|
id: string;
|
|
320
320
|
firstName: string;
|
|
@@ -361,15 +361,15 @@ export declare const CreateUserAccessGrantsSchema: z.ZodObject<{
|
|
|
361
361
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
362
362
|
reason: z.ZodNullable<z.ZodString>;
|
|
363
363
|
}, "strip", z.ZodTypeAny, {
|
|
364
|
-
expiresAt: string | null;
|
|
365
364
|
reason: string | null;
|
|
365
|
+
expiresAt: string | null;
|
|
366
366
|
targetUserIds: string[];
|
|
367
|
-
resources: ("
|
|
367
|
+
resources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
368
368
|
}, {
|
|
369
|
-
expiresAt: string | null;
|
|
370
369
|
reason: string | null;
|
|
370
|
+
expiresAt: string | null;
|
|
371
371
|
targetUserIds: string[];
|
|
372
|
-
resources: ("
|
|
372
|
+
resources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
373
373
|
}>;
|
|
374
374
|
export type CreateUserAccessGrants = z.infer<typeof CreateUserAccessGrantsSchema>;
|
|
375
375
|
export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
|
|
@@ -575,10 +575,10 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
|
|
|
575
575
|
}[];
|
|
576
576
|
deletedAt?: string | null | undefined;
|
|
577
577
|
};
|
|
578
|
-
expiresAt: string | null;
|
|
579
578
|
reason: string | null;
|
|
579
|
+
expiresAt: string | null;
|
|
580
580
|
action: "READ";
|
|
581
|
-
resource: "
|
|
581
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
582
582
|
grantee: {
|
|
583
583
|
id: string;
|
|
584
584
|
firstName: string;
|
|
@@ -633,10 +633,10 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
|
|
|
633
633
|
}[] | undefined;
|
|
634
634
|
deletedAt?: string | Date | null | undefined;
|
|
635
635
|
};
|
|
636
|
-
expiresAt: string | Date | null;
|
|
637
636
|
reason: string | null;
|
|
637
|
+
expiresAt: string | Date | null;
|
|
638
638
|
action: "READ";
|
|
639
|
-
resource: "
|
|
639
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
640
640
|
grantee: {
|
|
641
641
|
id: string;
|
|
642
642
|
firstName: string;
|
|
@@ -878,10 +878,10 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
|
|
|
878
878
|
}[];
|
|
879
879
|
deletedAt?: string | null | undefined;
|
|
880
880
|
};
|
|
881
|
-
expiresAt: string | null;
|
|
882
881
|
reason: string | null;
|
|
882
|
+
expiresAt: string | null;
|
|
883
883
|
action: "READ";
|
|
884
|
-
resource: "
|
|
884
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
885
885
|
grantee: {
|
|
886
886
|
id: string;
|
|
887
887
|
firstName: string;
|
|
@@ -936,10 +936,10 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
|
|
|
936
936
|
}[] | undefined;
|
|
937
937
|
deletedAt?: string | Date | null | undefined;
|
|
938
938
|
};
|
|
939
|
-
expiresAt: string | Date | null;
|
|
940
939
|
reason: string | null;
|
|
940
|
+
expiresAt: string | Date | null;
|
|
941
941
|
action: "READ";
|
|
942
|
-
resource: "
|
|
942
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
943
943
|
grantee: {
|
|
944
944
|
id: string;
|
|
945
945
|
firstName: string;
|
|
@@ -996,10 +996,10 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
|
|
|
996
996
|
}[];
|
|
997
997
|
deletedAt?: string | null | undefined;
|
|
998
998
|
};
|
|
999
|
-
expiresAt: string | null;
|
|
1000
999
|
reason: string | null;
|
|
1000
|
+
expiresAt: string | null;
|
|
1001
1001
|
action: "READ";
|
|
1002
|
-
resource: "
|
|
1002
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
1003
1003
|
grantee: {
|
|
1004
1004
|
id: string;
|
|
1005
1005
|
firstName: string;
|
|
@@ -1055,10 +1055,10 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
|
|
|
1055
1055
|
}[];
|
|
1056
1056
|
deletedAt?: string | null | undefined;
|
|
1057
1057
|
};
|
|
1058
|
-
expiresAt: string | null;
|
|
1059
1058
|
reason: string | null;
|
|
1059
|
+
expiresAt: string | null;
|
|
1060
1060
|
action: "READ";
|
|
1061
|
-
resource: "
|
|
1061
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
1062
1062
|
grantee: {
|
|
1063
1063
|
id: string;
|
|
1064
1064
|
firstName: string;
|
|
@@ -1115,10 +1115,10 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
|
|
|
1115
1115
|
}[] | undefined;
|
|
1116
1116
|
deletedAt?: string | Date | null | undefined;
|
|
1117
1117
|
};
|
|
1118
|
-
expiresAt: string | Date | null;
|
|
1119
1118
|
reason: string | null;
|
|
1119
|
+
expiresAt: string | Date | null;
|
|
1120
1120
|
action: "READ";
|
|
1121
|
-
resource: "
|
|
1121
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
1122
1122
|
grantee: {
|
|
1123
1123
|
id: string;
|
|
1124
1124
|
firstName: string;
|
|
@@ -1174,10 +1174,10 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
|
|
|
1174
1174
|
}[] | undefined;
|
|
1175
1175
|
deletedAt?: string | Date | null | undefined;
|
|
1176
1176
|
};
|
|
1177
|
-
expiresAt: string | Date | null;
|
|
1178
1177
|
reason: string | null;
|
|
1178
|
+
expiresAt: string | Date | null;
|
|
1179
1179
|
action: "READ";
|
|
1180
|
-
resource: "
|
|
1180
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
1181
1181
|
grantee: {
|
|
1182
1182
|
id: string;
|
|
1183
1183
|
firstName: string;
|
|
@@ -1241,7 +1241,7 @@ export declare const UserAccessGrantGranteeIdentitySchema: z.ZodObject<{
|
|
|
1241
1241
|
firstName: z.ZodString;
|
|
1242
1242
|
lastName: z.ZodString;
|
|
1243
1243
|
email: z.ZodString;
|
|
1244
|
-
roles: z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">;
|
|
1244
|
+
roles: z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">;
|
|
1245
1245
|
office: z.ZodNullable<z.ZodObject<{
|
|
1246
1246
|
id: z.ZodString;
|
|
1247
1247
|
name: z.ZodString;
|
|
@@ -1259,22 +1259,22 @@ export declare const UserAccessGrantGranteeIdentitySchema: z.ZodObject<{
|
|
|
1259
1259
|
firstName: string;
|
|
1260
1260
|
lastName: string;
|
|
1261
1261
|
email: string;
|
|
1262
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
1263
1262
|
office: {
|
|
1264
1263
|
id: string;
|
|
1265
1264
|
name: string;
|
|
1266
1265
|
} | null;
|
|
1266
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
1267
1267
|
}, {
|
|
1268
1268
|
status: "ACTIVE" | "INACTIVE";
|
|
1269
1269
|
id: string;
|
|
1270
1270
|
firstName: string;
|
|
1271
1271
|
lastName: string;
|
|
1272
1272
|
email: string;
|
|
1273
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
1274
1273
|
office: {
|
|
1275
1274
|
id: string;
|
|
1276
1275
|
name: string;
|
|
1277
1276
|
} | null;
|
|
1277
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
1278
1278
|
}>;
|
|
1279
1279
|
export type UserAccessGrantGranteeIdentity = z.infer<typeof UserAccessGrantGranteeIdentitySchema>;
|
|
1280
1280
|
export declare const UserAccessGrantGranteeSummarySchema: z.ZodObject<{
|
|
@@ -1283,7 +1283,7 @@ export declare const UserAccessGrantGranteeSummarySchema: z.ZodObject<{
|
|
|
1283
1283
|
firstName: z.ZodString;
|
|
1284
1284
|
lastName: z.ZodString;
|
|
1285
1285
|
email: z.ZodString;
|
|
1286
|
-
roles: z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">;
|
|
1286
|
+
roles: z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">;
|
|
1287
1287
|
office: z.ZodNullable<z.ZodObject<{
|
|
1288
1288
|
id: z.ZodString;
|
|
1289
1289
|
name: z.ZodString;
|
|
@@ -1301,22 +1301,22 @@ export declare const UserAccessGrantGranteeSummarySchema: z.ZodObject<{
|
|
|
1301
1301
|
firstName: string;
|
|
1302
1302
|
lastName: string;
|
|
1303
1303
|
email: string;
|
|
1304
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
1305
1304
|
office: {
|
|
1306
1305
|
id: string;
|
|
1307
1306
|
name: string;
|
|
1308
1307
|
} | null;
|
|
1308
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
1309
1309
|
}, {
|
|
1310
1310
|
status: "ACTIVE" | "INACTIVE";
|
|
1311
1311
|
id: string;
|
|
1312
1312
|
firstName: string;
|
|
1313
1313
|
lastName: string;
|
|
1314
1314
|
email: string;
|
|
1315
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
1316
1315
|
office: {
|
|
1317
1316
|
id: string;
|
|
1318
1317
|
name: string;
|
|
1319
1318
|
} | null;
|
|
1319
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
1320
1320
|
}>;
|
|
1321
1321
|
activeResources: z.ZodArray<z.ZodEnum<["BOOKING", "ACTIVE", "WORKER"]>, "many">;
|
|
1322
1322
|
activeTargetCount: z.ZodNumber;
|
|
@@ -1324,41 +1324,41 @@ export declare const UserAccessGrantGranteeSummarySchema: z.ZodObject<{
|
|
|
1324
1324
|
nearestExpiry: z.ZodNullable<z.ZodString>;
|
|
1325
1325
|
lastActivityAt: z.ZodNullable<z.ZodString>;
|
|
1326
1326
|
}, "strip", z.ZodTypeAny, {
|
|
1327
|
-
lastActivityAt: string | null;
|
|
1328
1327
|
grantee: {
|
|
1329
1328
|
status: "ACTIVE" | "INACTIVE";
|
|
1330
1329
|
id: string;
|
|
1331
1330
|
firstName: string;
|
|
1332
1331
|
lastName: string;
|
|
1333
1332
|
email: string;
|
|
1334
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
1335
1333
|
office: {
|
|
1336
1334
|
id: string;
|
|
1337
1335
|
name: string;
|
|
1338
1336
|
} | null;
|
|
1337
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
1339
1338
|
};
|
|
1340
|
-
activeResources: ("
|
|
1339
|
+
activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
1341
1340
|
activeTargetCount: number;
|
|
1342
1341
|
activeGrantCount: number;
|
|
1343
1342
|
nearestExpiry: string | null;
|
|
1344
|
-
}, {
|
|
1345
1343
|
lastActivityAt: string | null;
|
|
1344
|
+
}, {
|
|
1346
1345
|
grantee: {
|
|
1347
1346
|
status: "ACTIVE" | "INACTIVE";
|
|
1348
1347
|
id: string;
|
|
1349
1348
|
firstName: string;
|
|
1350
1349
|
lastName: string;
|
|
1351
1350
|
email: string;
|
|
1352
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
1353
1351
|
office: {
|
|
1354
1352
|
id: string;
|
|
1355
1353
|
name: string;
|
|
1356
1354
|
} | null;
|
|
1355
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
1357
1356
|
};
|
|
1358
|
-
activeResources: ("
|
|
1357
|
+
activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
1359
1358
|
activeTargetCount: number;
|
|
1360
1359
|
activeGrantCount: number;
|
|
1361
1360
|
nearestExpiry: string | null;
|
|
1361
|
+
lastActivityAt: string | null;
|
|
1362
1362
|
}>;
|
|
1363
1363
|
export type UserAccessGrantGranteeSummary = z.infer<typeof UserAccessGrantGranteeSummarySchema>;
|
|
1364
1364
|
export declare const UserAccessGrantGranteeSortableFieldSchema: z.ZodEnum<["name", "activeGrantCount", "nearestExpiry", "lastActivityAt"]>;
|
|
@@ -1375,33 +1375,33 @@ export declare const FilterUserAccessGrantGranteesSchema: z.ZodObject<{
|
|
|
1375
1375
|
field: z.ZodEnum<["name", "activeGrantCount", "nearestExpiry", "lastActivityAt"]>;
|
|
1376
1376
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
1377
1377
|
}, "strip", z.ZodTypeAny, {
|
|
1378
|
-
field: "name" | "
|
|
1378
|
+
field: "name" | "activeGrantCount" | "nearestExpiry" | "lastActivityAt";
|
|
1379
1379
|
order: "ASC" | "DESC";
|
|
1380
1380
|
}, {
|
|
1381
|
-
field: "name" | "
|
|
1381
|
+
field: "name" | "activeGrantCount" | "nearestExpiry" | "lastActivityAt";
|
|
1382
1382
|
order: "ASC" | "DESC";
|
|
1383
1383
|
}>, "many">>>>;
|
|
1384
1384
|
}, "strip", z.ZodTypeAny, {
|
|
1385
|
-
limit: number;
|
|
1386
|
-
page: number;
|
|
1387
1385
|
sort: {
|
|
1388
|
-
field: "name" | "
|
|
1386
|
+
field: "name" | "activeGrantCount" | "nearestExpiry" | "lastActivityAt";
|
|
1389
1387
|
order: "ASC" | "DESC";
|
|
1390
1388
|
}[] | null;
|
|
1389
|
+
limit: number;
|
|
1390
|
+
page: number;
|
|
1391
1391
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1392
1392
|
query?: string | undefined;
|
|
1393
|
-
resource?: "
|
|
1393
|
+
resource?: "ACTIVE" | "WORKER" | "BOOKING" | undefined;
|
|
1394
1394
|
grantState?: "HAS_ACTIVE" | "NO_ACTIVE" | undefined;
|
|
1395
1395
|
}, {
|
|
1396
|
-
limit?: number | undefined;
|
|
1397
|
-
page?: number | undefined;
|
|
1398
1396
|
sort?: {
|
|
1399
|
-
field: "name" | "
|
|
1397
|
+
field: "name" | "activeGrantCount" | "nearestExpiry" | "lastActivityAt";
|
|
1400
1398
|
order: "ASC" | "DESC";
|
|
1401
1399
|
}[] | null | undefined;
|
|
1402
1400
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1403
1401
|
query?: string | undefined;
|
|
1404
|
-
|
|
1402
|
+
limit?: number | undefined;
|
|
1403
|
+
page?: number | undefined;
|
|
1404
|
+
resource?: "ACTIVE" | "WORKER" | "BOOKING" | undefined;
|
|
1405
1405
|
grantState?: "HAS_ACTIVE" | "NO_ACTIVE" | undefined;
|
|
1406
1406
|
}>;
|
|
1407
1407
|
export type FilterUserAccessGrantGrantees = z.infer<typeof FilterUserAccessGrantGranteesSchema>;
|
|
@@ -1412,7 +1412,7 @@ export declare const PaginatedUserAccessGrantGranteesSchema: z.ZodObject<{
|
|
|
1412
1412
|
firstName: z.ZodString;
|
|
1413
1413
|
lastName: z.ZodString;
|
|
1414
1414
|
email: z.ZodString;
|
|
1415
|
-
roles: z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">;
|
|
1415
|
+
roles: z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">;
|
|
1416
1416
|
office: z.ZodNullable<z.ZodObject<{
|
|
1417
1417
|
id: z.ZodString;
|
|
1418
1418
|
name: z.ZodString;
|
|
@@ -1430,22 +1430,22 @@ export declare const PaginatedUserAccessGrantGranteesSchema: z.ZodObject<{
|
|
|
1430
1430
|
firstName: string;
|
|
1431
1431
|
lastName: string;
|
|
1432
1432
|
email: string;
|
|
1433
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
1434
1433
|
office: {
|
|
1435
1434
|
id: string;
|
|
1436
1435
|
name: string;
|
|
1437
1436
|
} | null;
|
|
1437
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
1438
1438
|
}, {
|
|
1439
1439
|
status: "ACTIVE" | "INACTIVE";
|
|
1440
1440
|
id: string;
|
|
1441
1441
|
firstName: string;
|
|
1442
1442
|
lastName: string;
|
|
1443
1443
|
email: string;
|
|
1444
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
1445
1444
|
office: {
|
|
1446
1445
|
id: string;
|
|
1447
1446
|
name: string;
|
|
1448
1447
|
} | null;
|
|
1448
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
1449
1449
|
}>;
|
|
1450
1450
|
activeResources: z.ZodArray<z.ZodEnum<["BOOKING", "ACTIVE", "WORKER"]>, "many">;
|
|
1451
1451
|
activeTargetCount: z.ZodNumber;
|
|
@@ -1453,41 +1453,41 @@ export declare const PaginatedUserAccessGrantGranteesSchema: z.ZodObject<{
|
|
|
1453
1453
|
nearestExpiry: z.ZodNullable<z.ZodString>;
|
|
1454
1454
|
lastActivityAt: z.ZodNullable<z.ZodString>;
|
|
1455
1455
|
}, "strip", z.ZodTypeAny, {
|
|
1456
|
-
lastActivityAt: string | null;
|
|
1457
1456
|
grantee: {
|
|
1458
1457
|
status: "ACTIVE" | "INACTIVE";
|
|
1459
1458
|
id: string;
|
|
1460
1459
|
firstName: string;
|
|
1461
1460
|
lastName: string;
|
|
1462
1461
|
email: string;
|
|
1463
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
1464
1462
|
office: {
|
|
1465
1463
|
id: string;
|
|
1466
1464
|
name: string;
|
|
1467
1465
|
} | null;
|
|
1466
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
1468
1467
|
};
|
|
1469
|
-
activeResources: ("
|
|
1468
|
+
activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
1470
1469
|
activeTargetCount: number;
|
|
1471
1470
|
activeGrantCount: number;
|
|
1472
1471
|
nearestExpiry: string | null;
|
|
1473
|
-
}, {
|
|
1474
1472
|
lastActivityAt: string | null;
|
|
1473
|
+
}, {
|
|
1475
1474
|
grantee: {
|
|
1476
1475
|
status: "ACTIVE" | "INACTIVE";
|
|
1477
1476
|
id: string;
|
|
1478
1477
|
firstName: string;
|
|
1479
1478
|
lastName: string;
|
|
1480
1479
|
email: string;
|
|
1481
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
1482
1480
|
office: {
|
|
1483
1481
|
id: string;
|
|
1484
1482
|
name: string;
|
|
1485
1483
|
} | null;
|
|
1484
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
1486
1485
|
};
|
|
1487
|
-
activeResources: ("
|
|
1486
|
+
activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
1488
1487
|
activeTargetCount: number;
|
|
1489
1488
|
activeGrantCount: number;
|
|
1490
1489
|
nearestExpiry: string | null;
|
|
1490
|
+
lastActivityAt: string | null;
|
|
1491
1491
|
}>, "many">;
|
|
1492
1492
|
totalCount: z.ZodNumber;
|
|
1493
1493
|
limit: z.ZodNumber;
|
|
@@ -1497,23 +1497,23 @@ export declare const PaginatedUserAccessGrantGranteesSchema: z.ZodObject<{
|
|
|
1497
1497
|
}, "strip", z.ZodTypeAny, {
|
|
1498
1498
|
limit: number;
|
|
1499
1499
|
items: {
|
|
1500
|
-
lastActivityAt: string | null;
|
|
1501
1500
|
grantee: {
|
|
1502
1501
|
status: "ACTIVE" | "INACTIVE";
|
|
1503
1502
|
id: string;
|
|
1504
1503
|
firstName: string;
|
|
1505
1504
|
lastName: string;
|
|
1506
1505
|
email: string;
|
|
1507
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
1508
1506
|
office: {
|
|
1509
1507
|
id: string;
|
|
1510
1508
|
name: string;
|
|
1511
1509
|
} | null;
|
|
1510
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
1512
1511
|
};
|
|
1513
|
-
activeResources: ("
|
|
1512
|
+
activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
1514
1513
|
activeTargetCount: number;
|
|
1515
1514
|
activeGrantCount: number;
|
|
1516
1515
|
nearestExpiry: string | null;
|
|
1516
|
+
lastActivityAt: string | null;
|
|
1517
1517
|
}[];
|
|
1518
1518
|
totalCount: number;
|
|
1519
1519
|
skip: number;
|
|
@@ -1522,23 +1522,23 @@ export declare const PaginatedUserAccessGrantGranteesSchema: z.ZodObject<{
|
|
|
1522
1522
|
}, {
|
|
1523
1523
|
limit: number;
|
|
1524
1524
|
items: {
|
|
1525
|
-
lastActivityAt: string | null;
|
|
1526
1525
|
grantee: {
|
|
1527
1526
|
status: "ACTIVE" | "INACTIVE";
|
|
1528
1527
|
id: string;
|
|
1529
1528
|
firstName: string;
|
|
1530
1529
|
lastName: string;
|
|
1531
1530
|
email: string;
|
|
1532
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
1533
1531
|
office: {
|
|
1534
1532
|
id: string;
|
|
1535
1533
|
name: string;
|
|
1536
1534
|
} | null;
|
|
1535
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
1537
1536
|
};
|
|
1538
|
-
activeResources: ("
|
|
1537
|
+
activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
1539
1538
|
activeTargetCount: number;
|
|
1540
1539
|
activeGrantCount: number;
|
|
1541
1540
|
nearestExpiry: string | null;
|
|
1541
|
+
lastActivityAt: string | null;
|
|
1542
1542
|
}[];
|
|
1543
1543
|
totalCount: number;
|
|
1544
1544
|
skip: number;
|
|
@@ -1551,13 +1551,13 @@ export declare const UserAccessGrantListQuerySchema: z.ZodObject<{
|
|
|
1551
1551
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1552
1552
|
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ACTIVE", "EXPIRED", "REVOKED", "ALL"]>>>;
|
|
1553
1553
|
}, "strip", z.ZodTypeAny, {
|
|
1554
|
+
status: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL";
|
|
1554
1555
|
limit: number;
|
|
1555
1556
|
page: number;
|
|
1556
|
-
status: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL";
|
|
1557
1557
|
}, {
|
|
1558
|
+
status?: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL" | undefined;
|
|
1558
1559
|
limit?: number | undefined;
|
|
1559
1560
|
page?: number | undefined;
|
|
1560
|
-
status?: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL" | undefined;
|
|
1561
1561
|
}>;
|
|
1562
1562
|
export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
|
|
1563
1563
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -1762,10 +1762,10 @@ export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
|
|
|
1762
1762
|
}[];
|
|
1763
1763
|
deletedAt?: string | null | undefined;
|
|
1764
1764
|
};
|
|
1765
|
-
expiresAt: string | null;
|
|
1766
1765
|
reason: string | null;
|
|
1766
|
+
expiresAt: string | null;
|
|
1767
1767
|
action: "READ";
|
|
1768
|
-
resource: "
|
|
1768
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
1769
1769
|
grantee: {
|
|
1770
1770
|
id: string;
|
|
1771
1771
|
firstName: string;
|
|
@@ -1820,10 +1820,10 @@ export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
|
|
|
1820
1820
|
}[] | undefined;
|
|
1821
1821
|
deletedAt?: string | Date | null | undefined;
|
|
1822
1822
|
};
|
|
1823
|
-
expiresAt: string | Date | null;
|
|
1824
1823
|
reason: string | null;
|
|
1824
|
+
expiresAt: string | Date | null;
|
|
1825
1825
|
action: "READ";
|
|
1826
|
-
resource: "
|
|
1826
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
1827
1827
|
grantee: {
|
|
1828
1828
|
id: string;
|
|
1829
1829
|
firstName: string;
|
|
@@ -1886,10 +1886,10 @@ export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
|
|
|
1886
1886
|
}[];
|
|
1887
1887
|
deletedAt?: string | null | undefined;
|
|
1888
1888
|
};
|
|
1889
|
-
expiresAt: string | null;
|
|
1890
1889
|
reason: string | null;
|
|
1890
|
+
expiresAt: string | null;
|
|
1891
1891
|
action: "READ";
|
|
1892
|
-
resource: "
|
|
1892
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
1893
1893
|
grantee: {
|
|
1894
1894
|
id: string;
|
|
1895
1895
|
firstName: string;
|
|
@@ -1951,10 +1951,10 @@ export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
|
|
|
1951
1951
|
}[] | undefined;
|
|
1952
1952
|
deletedAt?: string | Date | null | undefined;
|
|
1953
1953
|
};
|
|
1954
|
-
expiresAt: string | Date | null;
|
|
1955
1954
|
reason: string | null;
|
|
1955
|
+
expiresAt: string | Date | null;
|
|
1956
1956
|
action: "READ";
|
|
1957
|
-
resource: "
|
|
1957
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
1958
1958
|
grantee: {
|
|
1959
1959
|
id: string;
|
|
1960
1960
|
firstName: string;
|
|
@@ -2013,33 +2013,33 @@ export declare const userAccessGrantsContract: {
|
|
|
2013
2013
|
field: z.ZodEnum<["name", "activeGrantCount", "nearestExpiry", "lastActivityAt"]>;
|
|
2014
2014
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
2015
2015
|
}, "strip", z.ZodTypeAny, {
|
|
2016
|
-
field: "name" | "
|
|
2016
|
+
field: "name" | "activeGrantCount" | "nearestExpiry" | "lastActivityAt";
|
|
2017
2017
|
order: "ASC" | "DESC";
|
|
2018
2018
|
}, {
|
|
2019
|
-
field: "name" | "
|
|
2019
|
+
field: "name" | "activeGrantCount" | "nearestExpiry" | "lastActivityAt";
|
|
2020
2020
|
order: "ASC" | "DESC";
|
|
2021
2021
|
}>, "many">>>>;
|
|
2022
2022
|
}, "strip", z.ZodTypeAny, {
|
|
2023
|
-
limit: number;
|
|
2024
|
-
page: number;
|
|
2025
2023
|
sort: {
|
|
2026
|
-
field: "name" | "
|
|
2024
|
+
field: "name" | "activeGrantCount" | "nearestExpiry" | "lastActivityAt";
|
|
2027
2025
|
order: "ASC" | "DESC";
|
|
2028
2026
|
}[] | null;
|
|
2027
|
+
limit: number;
|
|
2028
|
+
page: number;
|
|
2029
2029
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
2030
2030
|
query?: string | undefined;
|
|
2031
|
-
resource?: "
|
|
2031
|
+
resource?: "ACTIVE" | "WORKER" | "BOOKING" | undefined;
|
|
2032
2032
|
grantState?: "HAS_ACTIVE" | "NO_ACTIVE" | undefined;
|
|
2033
2033
|
}, {
|
|
2034
|
-
limit?: number | undefined;
|
|
2035
|
-
page?: number | undefined;
|
|
2036
2034
|
sort?: {
|
|
2037
|
-
field: "name" | "
|
|
2035
|
+
field: "name" | "activeGrantCount" | "nearestExpiry" | "lastActivityAt";
|
|
2038
2036
|
order: "ASC" | "DESC";
|
|
2039
2037
|
}[] | null | undefined;
|
|
2040
2038
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
2041
2039
|
query?: string | undefined;
|
|
2042
|
-
|
|
2040
|
+
limit?: number | undefined;
|
|
2041
|
+
page?: number | undefined;
|
|
2042
|
+
resource?: "ACTIVE" | "WORKER" | "BOOKING" | undefined;
|
|
2043
2043
|
grantState?: "HAS_ACTIVE" | "NO_ACTIVE" | undefined;
|
|
2044
2044
|
}>;
|
|
2045
2045
|
summary: "List users with aggregate access-grant administration status";
|
|
@@ -2053,7 +2053,7 @@ export declare const userAccessGrantsContract: {
|
|
|
2053
2053
|
firstName: z.ZodString;
|
|
2054
2054
|
lastName: z.ZodString;
|
|
2055
2055
|
email: z.ZodString;
|
|
2056
|
-
roles: z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">;
|
|
2056
|
+
roles: z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">;
|
|
2057
2057
|
office: z.ZodNullable<z.ZodObject<{
|
|
2058
2058
|
id: z.ZodString;
|
|
2059
2059
|
name: z.ZodString;
|
|
@@ -2071,22 +2071,22 @@ export declare const userAccessGrantsContract: {
|
|
|
2071
2071
|
firstName: string;
|
|
2072
2072
|
lastName: string;
|
|
2073
2073
|
email: string;
|
|
2074
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
2075
2074
|
office: {
|
|
2076
2075
|
id: string;
|
|
2077
2076
|
name: string;
|
|
2078
2077
|
} | null;
|
|
2078
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
2079
2079
|
}, {
|
|
2080
2080
|
status: "ACTIVE" | "INACTIVE";
|
|
2081
2081
|
id: string;
|
|
2082
2082
|
firstName: string;
|
|
2083
2083
|
lastName: string;
|
|
2084
2084
|
email: string;
|
|
2085
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
2086
2085
|
office: {
|
|
2087
2086
|
id: string;
|
|
2088
2087
|
name: string;
|
|
2089
2088
|
} | null;
|
|
2089
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
2090
2090
|
}>;
|
|
2091
2091
|
activeResources: z.ZodArray<z.ZodEnum<["BOOKING", "ACTIVE", "WORKER"]>, "many">;
|
|
2092
2092
|
activeTargetCount: z.ZodNumber;
|
|
@@ -2094,41 +2094,41 @@ export declare const userAccessGrantsContract: {
|
|
|
2094
2094
|
nearestExpiry: z.ZodNullable<z.ZodString>;
|
|
2095
2095
|
lastActivityAt: z.ZodNullable<z.ZodString>;
|
|
2096
2096
|
}, "strip", z.ZodTypeAny, {
|
|
2097
|
-
lastActivityAt: string | null;
|
|
2098
2097
|
grantee: {
|
|
2099
2098
|
status: "ACTIVE" | "INACTIVE";
|
|
2100
2099
|
id: string;
|
|
2101
2100
|
firstName: string;
|
|
2102
2101
|
lastName: string;
|
|
2103
2102
|
email: string;
|
|
2104
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
2105
2103
|
office: {
|
|
2106
2104
|
id: string;
|
|
2107
2105
|
name: string;
|
|
2108
2106
|
} | null;
|
|
2107
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
2109
2108
|
};
|
|
2110
|
-
activeResources: ("
|
|
2109
|
+
activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
2111
2110
|
activeTargetCount: number;
|
|
2112
2111
|
activeGrantCount: number;
|
|
2113
2112
|
nearestExpiry: string | null;
|
|
2114
|
-
}, {
|
|
2115
2113
|
lastActivityAt: string | null;
|
|
2114
|
+
}, {
|
|
2116
2115
|
grantee: {
|
|
2117
2116
|
status: "ACTIVE" | "INACTIVE";
|
|
2118
2117
|
id: string;
|
|
2119
2118
|
firstName: string;
|
|
2120
2119
|
lastName: string;
|
|
2121
2120
|
email: string;
|
|
2122
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
2123
2121
|
office: {
|
|
2124
2122
|
id: string;
|
|
2125
2123
|
name: string;
|
|
2126
2124
|
} | null;
|
|
2125
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
2127
2126
|
};
|
|
2128
|
-
activeResources: ("
|
|
2127
|
+
activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
2129
2128
|
activeTargetCount: number;
|
|
2130
2129
|
activeGrantCount: number;
|
|
2131
2130
|
nearestExpiry: string | null;
|
|
2131
|
+
lastActivityAt: string | null;
|
|
2132
2132
|
}>, "many">;
|
|
2133
2133
|
totalCount: z.ZodNumber;
|
|
2134
2134
|
limit: z.ZodNumber;
|
|
@@ -2138,23 +2138,23 @@ export declare const userAccessGrantsContract: {
|
|
|
2138
2138
|
}, "strip", z.ZodTypeAny, {
|
|
2139
2139
|
limit: number;
|
|
2140
2140
|
items: {
|
|
2141
|
-
lastActivityAt: string | null;
|
|
2142
2141
|
grantee: {
|
|
2143
2142
|
status: "ACTIVE" | "INACTIVE";
|
|
2144
2143
|
id: string;
|
|
2145
2144
|
firstName: string;
|
|
2146
2145
|
lastName: string;
|
|
2147
2146
|
email: string;
|
|
2148
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
2149
2147
|
office: {
|
|
2150
2148
|
id: string;
|
|
2151
2149
|
name: string;
|
|
2152
2150
|
} | null;
|
|
2151
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
2153
2152
|
};
|
|
2154
|
-
activeResources: ("
|
|
2153
|
+
activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
2155
2154
|
activeTargetCount: number;
|
|
2156
2155
|
activeGrantCount: number;
|
|
2157
2156
|
nearestExpiry: string | null;
|
|
2157
|
+
lastActivityAt: string | null;
|
|
2158
2158
|
}[];
|
|
2159
2159
|
totalCount: number;
|
|
2160
2160
|
skip: number;
|
|
@@ -2163,23 +2163,23 @@ export declare const userAccessGrantsContract: {
|
|
|
2163
2163
|
}, {
|
|
2164
2164
|
limit: number;
|
|
2165
2165
|
items: {
|
|
2166
|
-
lastActivityAt: string | null;
|
|
2167
2166
|
grantee: {
|
|
2168
2167
|
status: "ACTIVE" | "INACTIVE";
|
|
2169
2168
|
id: string;
|
|
2170
2169
|
firstName: string;
|
|
2171
2170
|
lastName: string;
|
|
2172
2171
|
email: string;
|
|
2173
|
-
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[];
|
|
2174
2172
|
office: {
|
|
2175
2173
|
id: string;
|
|
2176
2174
|
name: string;
|
|
2177
2175
|
} | null;
|
|
2176
|
+
roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
|
|
2178
2177
|
};
|
|
2179
|
-
activeResources: ("
|
|
2178
|
+
activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
2180
2179
|
activeTargetCount: number;
|
|
2181
2180
|
activeGrantCount: number;
|
|
2182
2181
|
nearestExpiry: string | null;
|
|
2182
|
+
lastActivityAt: string | null;
|
|
2183
2183
|
}[];
|
|
2184
2184
|
totalCount: number;
|
|
2185
2185
|
skip: number;
|
|
@@ -2195,17 +2195,17 @@ export declare const userAccessGrantsContract: {
|
|
|
2195
2195
|
path: z.ZodString;
|
|
2196
2196
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2197
2197
|
}, "strip", z.ZodTypeAny, {
|
|
2198
|
+
message: string;
|
|
2198
2199
|
code: string;
|
|
2199
2200
|
path: string;
|
|
2200
|
-
message: string;
|
|
2201
2201
|
statusCode: number;
|
|
2202
2202
|
timestamp: string;
|
|
2203
2203
|
details?: unknown;
|
|
2204
2204
|
correlationId?: string | undefined;
|
|
2205
2205
|
}, {
|
|
2206
|
+
message: string;
|
|
2206
2207
|
code: string;
|
|
2207
2208
|
path: string;
|
|
2208
|
-
message: string;
|
|
2209
2209
|
statusCode: number;
|
|
2210
2210
|
timestamp: string;
|
|
2211
2211
|
details?: unknown;
|
|
@@ -2220,17 +2220,17 @@ export declare const userAccessGrantsContract: {
|
|
|
2220
2220
|
path: z.ZodString;
|
|
2221
2221
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2222
2222
|
}, "strip", z.ZodTypeAny, {
|
|
2223
|
+
message: string;
|
|
2223
2224
|
code: string;
|
|
2224
2225
|
path: string;
|
|
2225
|
-
message: string;
|
|
2226
2226
|
statusCode: number;
|
|
2227
2227
|
timestamp: string;
|
|
2228
2228
|
details?: unknown;
|
|
2229
2229
|
correlationId?: string | undefined;
|
|
2230
2230
|
}, {
|
|
2231
|
+
message: string;
|
|
2231
2232
|
code: string;
|
|
2232
2233
|
path: string;
|
|
2233
|
-
message: string;
|
|
2234
2234
|
statusCode: number;
|
|
2235
2235
|
timestamp: string;
|
|
2236
2236
|
details?: unknown;
|
|
@@ -2239,26 +2239,26 @@ export declare const userAccessGrantsContract: {
|
|
|
2239
2239
|
};
|
|
2240
2240
|
};
|
|
2241
2241
|
list: {
|
|
2242
|
-
pathParams: z.ZodObject<{
|
|
2243
|
-
granteeUserId: z.ZodString;
|
|
2244
|
-
}, "strip", z.ZodTypeAny, {
|
|
2245
|
-
granteeUserId: string;
|
|
2246
|
-
}, {
|
|
2247
|
-
granteeUserId: string;
|
|
2248
|
-
}>;
|
|
2249
2242
|
query: z.ZodObject<{
|
|
2250
2243
|
page: z.ZodDefault<z.ZodNumber>;
|
|
2251
2244
|
} & {
|
|
2252
2245
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
2253
2246
|
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ACTIVE", "EXPIRED", "REVOKED", "ALL"]>>>;
|
|
2254
2247
|
}, "strip", z.ZodTypeAny, {
|
|
2248
|
+
status: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL";
|
|
2255
2249
|
limit: number;
|
|
2256
2250
|
page: number;
|
|
2257
|
-
status: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL";
|
|
2258
2251
|
}, {
|
|
2252
|
+
status?: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL" | undefined;
|
|
2259
2253
|
limit?: number | undefined;
|
|
2260
2254
|
page?: number | undefined;
|
|
2261
|
-
|
|
2255
|
+
}>;
|
|
2256
|
+
pathParams: z.ZodObject<{
|
|
2257
|
+
granteeUserId: z.ZodString;
|
|
2258
|
+
}, "strip", z.ZodTypeAny, {
|
|
2259
|
+
granteeUserId: string;
|
|
2260
|
+
}, {
|
|
2261
|
+
granteeUserId: string;
|
|
2262
2262
|
}>;
|
|
2263
2263
|
summary: "List access grants (audit history) for a grantee";
|
|
2264
2264
|
method: "GET";
|
|
@@ -2467,10 +2467,10 @@ export declare const userAccessGrantsContract: {
|
|
|
2467
2467
|
}[];
|
|
2468
2468
|
deletedAt?: string | null | undefined;
|
|
2469
2469
|
};
|
|
2470
|
-
expiresAt: string | null;
|
|
2471
2470
|
reason: string | null;
|
|
2471
|
+
expiresAt: string | null;
|
|
2472
2472
|
action: "READ";
|
|
2473
|
-
resource: "
|
|
2473
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
2474
2474
|
grantee: {
|
|
2475
2475
|
id: string;
|
|
2476
2476
|
firstName: string;
|
|
@@ -2525,10 +2525,10 @@ export declare const userAccessGrantsContract: {
|
|
|
2525
2525
|
}[] | undefined;
|
|
2526
2526
|
deletedAt?: string | Date | null | undefined;
|
|
2527
2527
|
};
|
|
2528
|
-
expiresAt: string | Date | null;
|
|
2529
2528
|
reason: string | null;
|
|
2529
|
+
expiresAt: string | Date | null;
|
|
2530
2530
|
action: "READ";
|
|
2531
|
-
resource: "
|
|
2531
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
2532
2532
|
grantee: {
|
|
2533
2533
|
id: string;
|
|
2534
2534
|
firstName: string;
|
|
@@ -2591,10 +2591,10 @@ export declare const userAccessGrantsContract: {
|
|
|
2591
2591
|
}[];
|
|
2592
2592
|
deletedAt?: string | null | undefined;
|
|
2593
2593
|
};
|
|
2594
|
-
expiresAt: string | null;
|
|
2595
2594
|
reason: string | null;
|
|
2595
|
+
expiresAt: string | null;
|
|
2596
2596
|
action: "READ";
|
|
2597
|
-
resource: "
|
|
2597
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
2598
2598
|
grantee: {
|
|
2599
2599
|
id: string;
|
|
2600
2600
|
firstName: string;
|
|
@@ -2656,10 +2656,10 @@ export declare const userAccessGrantsContract: {
|
|
|
2656
2656
|
}[] | undefined;
|
|
2657
2657
|
deletedAt?: string | Date | null | undefined;
|
|
2658
2658
|
};
|
|
2659
|
-
expiresAt: string | Date | null;
|
|
2660
2659
|
reason: string | null;
|
|
2660
|
+
expiresAt: string | Date | null;
|
|
2661
2661
|
action: "READ";
|
|
2662
|
-
resource: "
|
|
2662
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
2663
2663
|
grantee: {
|
|
2664
2664
|
id: string;
|
|
2665
2665
|
firstName: string;
|
|
@@ -2713,17 +2713,17 @@ export declare const userAccessGrantsContract: {
|
|
|
2713
2713
|
path: z.ZodString;
|
|
2714
2714
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2715
2715
|
}, "strip", z.ZodTypeAny, {
|
|
2716
|
+
message: string;
|
|
2716
2717
|
code: string;
|
|
2717
2718
|
path: string;
|
|
2718
|
-
message: string;
|
|
2719
2719
|
statusCode: number;
|
|
2720
2720
|
timestamp: string;
|
|
2721
2721
|
details?: unknown;
|
|
2722
2722
|
correlationId?: string | undefined;
|
|
2723
2723
|
}, {
|
|
2724
|
+
message: string;
|
|
2724
2725
|
code: string;
|
|
2725
2726
|
path: string;
|
|
2726
|
-
message: string;
|
|
2727
2727
|
statusCode: number;
|
|
2728
2728
|
timestamp: string;
|
|
2729
2729
|
details?: unknown;
|
|
@@ -2738,17 +2738,17 @@ export declare const userAccessGrantsContract: {
|
|
|
2738
2738
|
path: z.ZodString;
|
|
2739
2739
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2740
2740
|
}, "strip", z.ZodTypeAny, {
|
|
2741
|
+
message: string;
|
|
2741
2742
|
code: string;
|
|
2742
2743
|
path: string;
|
|
2743
|
-
message: string;
|
|
2744
2744
|
statusCode: number;
|
|
2745
2745
|
timestamp: string;
|
|
2746
2746
|
details?: unknown;
|
|
2747
2747
|
correlationId?: string | undefined;
|
|
2748
2748
|
}, {
|
|
2749
|
+
message: string;
|
|
2749
2750
|
code: string;
|
|
2750
2751
|
path: string;
|
|
2751
|
-
message: string;
|
|
2752
2752
|
statusCode: number;
|
|
2753
2753
|
timestamp: string;
|
|
2754
2754
|
details?: unknown;
|
|
@@ -2763,17 +2763,17 @@ export declare const userAccessGrantsContract: {
|
|
|
2763
2763
|
path: z.ZodString;
|
|
2764
2764
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2765
2765
|
}, "strip", z.ZodTypeAny, {
|
|
2766
|
+
message: string;
|
|
2766
2767
|
code: string;
|
|
2767
2768
|
path: string;
|
|
2768
|
-
message: string;
|
|
2769
2769
|
statusCode: number;
|
|
2770
2770
|
timestamp: string;
|
|
2771
2771
|
details?: unknown;
|
|
2772
2772
|
correlationId?: string | undefined;
|
|
2773
2773
|
}, {
|
|
2774
|
+
message: string;
|
|
2774
2775
|
code: string;
|
|
2775
2776
|
path: string;
|
|
2776
|
-
message: string;
|
|
2777
2777
|
statusCode: number;
|
|
2778
2778
|
timestamp: string;
|
|
2779
2779
|
details?: unknown;
|
|
@@ -2797,15 +2797,15 @@ export declare const userAccessGrantsContract: {
|
|
|
2797
2797
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
2798
2798
|
reason: z.ZodNullable<z.ZodString>;
|
|
2799
2799
|
}, "strip", z.ZodTypeAny, {
|
|
2800
|
-
expiresAt: string | null;
|
|
2801
2800
|
reason: string | null;
|
|
2801
|
+
expiresAt: string | null;
|
|
2802
2802
|
targetUserIds: string[];
|
|
2803
|
-
resources: ("
|
|
2803
|
+
resources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
2804
2804
|
}, {
|
|
2805
|
-
expiresAt: string | null;
|
|
2806
2805
|
reason: string | null;
|
|
2806
|
+
expiresAt: string | null;
|
|
2807
2807
|
targetUserIds: string[];
|
|
2808
|
-
resources: ("
|
|
2808
|
+
resources: ("ACTIVE" | "WORKER" | "BOOKING")[];
|
|
2809
2809
|
}>;
|
|
2810
2810
|
path: "/v2/users/:granteeUserId/access-grants";
|
|
2811
2811
|
responses: {
|
|
@@ -3012,10 +3012,10 @@ export declare const userAccessGrantsContract: {
|
|
|
3012
3012
|
}[];
|
|
3013
3013
|
deletedAt?: string | null | undefined;
|
|
3014
3014
|
};
|
|
3015
|
-
expiresAt: string | null;
|
|
3016
3015
|
reason: string | null;
|
|
3016
|
+
expiresAt: string | null;
|
|
3017
3017
|
action: "READ";
|
|
3018
|
-
resource: "
|
|
3018
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
3019
3019
|
grantee: {
|
|
3020
3020
|
id: string;
|
|
3021
3021
|
firstName: string;
|
|
@@ -3070,10 +3070,10 @@ export declare const userAccessGrantsContract: {
|
|
|
3070
3070
|
}[] | undefined;
|
|
3071
3071
|
deletedAt?: string | Date | null | undefined;
|
|
3072
3072
|
};
|
|
3073
|
-
expiresAt: string | Date | null;
|
|
3074
3073
|
reason: string | null;
|
|
3074
|
+
expiresAt: string | Date | null;
|
|
3075
3075
|
action: "READ";
|
|
3076
|
-
resource: "
|
|
3076
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
3077
3077
|
grantee: {
|
|
3078
3078
|
id: string;
|
|
3079
3079
|
firstName: string;
|
|
@@ -3315,10 +3315,10 @@ export declare const userAccessGrantsContract: {
|
|
|
3315
3315
|
}[];
|
|
3316
3316
|
deletedAt?: string | null | undefined;
|
|
3317
3317
|
};
|
|
3318
|
-
expiresAt: string | null;
|
|
3319
3318
|
reason: string | null;
|
|
3319
|
+
expiresAt: string | null;
|
|
3320
3320
|
action: "READ";
|
|
3321
|
-
resource: "
|
|
3321
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
3322
3322
|
grantee: {
|
|
3323
3323
|
id: string;
|
|
3324
3324
|
firstName: string;
|
|
@@ -3373,10 +3373,10 @@ export declare const userAccessGrantsContract: {
|
|
|
3373
3373
|
}[] | undefined;
|
|
3374
3374
|
deletedAt?: string | Date | null | undefined;
|
|
3375
3375
|
};
|
|
3376
|
-
expiresAt: string | Date | null;
|
|
3377
3376
|
reason: string | null;
|
|
3377
|
+
expiresAt: string | Date | null;
|
|
3378
3378
|
action: "READ";
|
|
3379
|
-
resource: "
|
|
3379
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
3380
3380
|
grantee: {
|
|
3381
3381
|
id: string;
|
|
3382
3382
|
firstName: string;
|
|
@@ -3433,10 +3433,10 @@ export declare const userAccessGrantsContract: {
|
|
|
3433
3433
|
}[];
|
|
3434
3434
|
deletedAt?: string | null | undefined;
|
|
3435
3435
|
};
|
|
3436
|
-
expiresAt: string | null;
|
|
3437
3436
|
reason: string | null;
|
|
3437
|
+
expiresAt: string | null;
|
|
3438
3438
|
action: "READ";
|
|
3439
|
-
resource: "
|
|
3439
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
3440
3440
|
grantee: {
|
|
3441
3441
|
id: string;
|
|
3442
3442
|
firstName: string;
|
|
@@ -3492,10 +3492,10 @@ export declare const userAccessGrantsContract: {
|
|
|
3492
3492
|
}[];
|
|
3493
3493
|
deletedAt?: string | null | undefined;
|
|
3494
3494
|
};
|
|
3495
|
-
expiresAt: string | null;
|
|
3496
3495
|
reason: string | null;
|
|
3496
|
+
expiresAt: string | null;
|
|
3497
3497
|
action: "READ";
|
|
3498
|
-
resource: "
|
|
3498
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
3499
3499
|
grantee: {
|
|
3500
3500
|
id: string;
|
|
3501
3501
|
firstName: string;
|
|
@@ -3552,10 +3552,10 @@ export declare const userAccessGrantsContract: {
|
|
|
3552
3552
|
}[] | undefined;
|
|
3553
3553
|
deletedAt?: string | Date | null | undefined;
|
|
3554
3554
|
};
|
|
3555
|
-
expiresAt: string | Date | null;
|
|
3556
3555
|
reason: string | null;
|
|
3556
|
+
expiresAt: string | Date | null;
|
|
3557
3557
|
action: "READ";
|
|
3558
|
-
resource: "
|
|
3558
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
3559
3559
|
grantee: {
|
|
3560
3560
|
id: string;
|
|
3561
3561
|
firstName: string;
|
|
@@ -3611,10 +3611,10 @@ export declare const userAccessGrantsContract: {
|
|
|
3611
3611
|
}[] | undefined;
|
|
3612
3612
|
deletedAt?: string | Date | null | undefined;
|
|
3613
3613
|
};
|
|
3614
|
-
expiresAt: string | Date | null;
|
|
3615
3614
|
reason: string | null;
|
|
3615
|
+
expiresAt: string | Date | null;
|
|
3616
3616
|
action: "READ";
|
|
3617
|
-
resource: "
|
|
3617
|
+
resource: "ACTIVE" | "WORKER" | "BOOKING";
|
|
3618
3618
|
grantee: {
|
|
3619
3619
|
id: string;
|
|
3620
3620
|
firstName: string;
|
|
@@ -3664,17 +3664,17 @@ export declare const userAccessGrantsContract: {
|
|
|
3664
3664
|
path: z.ZodString;
|
|
3665
3665
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3666
3666
|
}, "strip", z.ZodTypeAny, {
|
|
3667
|
+
message: string;
|
|
3667
3668
|
code: string;
|
|
3668
3669
|
path: string;
|
|
3669
|
-
message: string;
|
|
3670
3670
|
statusCode: number;
|
|
3671
3671
|
timestamp: string;
|
|
3672
3672
|
details?: unknown;
|
|
3673
3673
|
correlationId?: string | undefined;
|
|
3674
3674
|
}, {
|
|
3675
|
+
message: string;
|
|
3675
3676
|
code: string;
|
|
3676
3677
|
path: string;
|
|
3677
|
-
message: string;
|
|
3678
3678
|
statusCode: number;
|
|
3679
3679
|
timestamp: string;
|
|
3680
3680
|
details?: unknown;
|
|
@@ -3689,17 +3689,17 @@ export declare const userAccessGrantsContract: {
|
|
|
3689
3689
|
path: z.ZodString;
|
|
3690
3690
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3691
3691
|
}, "strip", z.ZodTypeAny, {
|
|
3692
|
+
message: string;
|
|
3692
3693
|
code: string;
|
|
3693
3694
|
path: string;
|
|
3694
|
-
message: string;
|
|
3695
3695
|
statusCode: number;
|
|
3696
3696
|
timestamp: string;
|
|
3697
3697
|
details?: unknown;
|
|
3698
3698
|
correlationId?: string | undefined;
|
|
3699
3699
|
}, {
|
|
3700
|
+
message: string;
|
|
3700
3701
|
code: string;
|
|
3701
3702
|
path: string;
|
|
3702
|
-
message: string;
|
|
3703
3703
|
statusCode: number;
|
|
3704
3704
|
timestamp: string;
|
|
3705
3705
|
details?: unknown;
|
|
@@ -3714,17 +3714,17 @@ export declare const userAccessGrantsContract: {
|
|
|
3714
3714
|
path: z.ZodString;
|
|
3715
3715
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3716
3716
|
}, "strip", z.ZodTypeAny, {
|
|
3717
|
+
message: string;
|
|
3717
3718
|
code: string;
|
|
3718
3719
|
path: string;
|
|
3719
|
-
message: string;
|
|
3720
3720
|
statusCode: number;
|
|
3721
3721
|
timestamp: string;
|
|
3722
3722
|
details?: unknown;
|
|
3723
3723
|
correlationId?: string | undefined;
|
|
3724
3724
|
}, {
|
|
3725
|
+
message: string;
|
|
3725
3726
|
code: string;
|
|
3726
3727
|
path: string;
|
|
3727
|
-
message: string;
|
|
3728
3728
|
statusCode: number;
|
|
3729
3729
|
timestamp: string;
|
|
3730
3730
|
details?: unknown;
|
|
@@ -3739,17 +3739,17 @@ export declare const userAccessGrantsContract: {
|
|
|
3739
3739
|
path: z.ZodString;
|
|
3740
3740
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3741
3741
|
}, "strip", z.ZodTypeAny, {
|
|
3742
|
+
message: string;
|
|
3742
3743
|
code: string;
|
|
3743
3744
|
path: string;
|
|
3744
|
-
message: string;
|
|
3745
3745
|
statusCode: number;
|
|
3746
3746
|
timestamp: string;
|
|
3747
3747
|
details?: unknown;
|
|
3748
3748
|
correlationId?: string | undefined;
|
|
3749
3749
|
}, {
|
|
3750
|
+
message: string;
|
|
3750
3751
|
code: string;
|
|
3751
3752
|
path: string;
|
|
3752
|
-
message: string;
|
|
3753
3753
|
statusCode: number;
|
|
3754
3754
|
timestamp: string;
|
|
3755
3755
|
details?: unknown;
|
|
@@ -3764,17 +3764,17 @@ export declare const userAccessGrantsContract: {
|
|
|
3764
3764
|
path: z.ZodString;
|
|
3765
3765
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3766
3766
|
}, "strip", z.ZodTypeAny, {
|
|
3767
|
+
message: string;
|
|
3767
3768
|
code: string;
|
|
3768
3769
|
path: string;
|
|
3769
|
-
message: string;
|
|
3770
3770
|
statusCode: number;
|
|
3771
3771
|
timestamp: string;
|
|
3772
3772
|
details?: unknown;
|
|
3773
3773
|
correlationId?: string | undefined;
|
|
3774
3774
|
}, {
|
|
3775
|
+
message: string;
|
|
3775
3776
|
code: string;
|
|
3776
3777
|
path: string;
|
|
3777
|
-
message: string;
|
|
3778
3778
|
statusCode: number;
|
|
3779
3779
|
timestamp: string;
|
|
3780
3780
|
details?: unknown;
|
|
@@ -3814,17 +3814,17 @@ export declare const userAccessGrantsContract: {
|
|
|
3814
3814
|
path: z.ZodString;
|
|
3815
3815
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3816
3816
|
}, "strip", z.ZodTypeAny, {
|
|
3817
|
+
message: string;
|
|
3817
3818
|
code: string;
|
|
3818
3819
|
path: string;
|
|
3819
|
-
message: string;
|
|
3820
3820
|
statusCode: number;
|
|
3821
3821
|
timestamp: string;
|
|
3822
3822
|
details?: unknown;
|
|
3823
3823
|
correlationId?: string | undefined;
|
|
3824
3824
|
}, {
|
|
3825
|
+
message: string;
|
|
3825
3826
|
code: string;
|
|
3826
3827
|
path: string;
|
|
3827
|
-
message: string;
|
|
3828
3828
|
statusCode: number;
|
|
3829
3829
|
timestamp: string;
|
|
3830
3830
|
details?: unknown;
|
|
@@ -3839,17 +3839,17 @@ export declare const userAccessGrantsContract: {
|
|
|
3839
3839
|
path: z.ZodString;
|
|
3840
3840
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3841
3841
|
}, "strip", z.ZodTypeAny, {
|
|
3842
|
+
message: string;
|
|
3842
3843
|
code: string;
|
|
3843
3844
|
path: string;
|
|
3844
|
-
message: string;
|
|
3845
3845
|
statusCode: number;
|
|
3846
3846
|
timestamp: string;
|
|
3847
3847
|
details?: unknown;
|
|
3848
3848
|
correlationId?: string | undefined;
|
|
3849
3849
|
}, {
|
|
3850
|
+
message: string;
|
|
3850
3851
|
code: string;
|
|
3851
3852
|
path: string;
|
|
3852
|
-
message: string;
|
|
3853
3853
|
statusCode: number;
|
|
3854
3854
|
timestamp: string;
|
|
3855
3855
|
details?: unknown;
|
|
@@ -3864,17 +3864,17 @@ export declare const userAccessGrantsContract: {
|
|
|
3864
3864
|
path: z.ZodString;
|
|
3865
3865
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3866
3866
|
}, "strip", z.ZodTypeAny, {
|
|
3867
|
+
message: string;
|
|
3867
3868
|
code: string;
|
|
3868
3869
|
path: string;
|
|
3869
|
-
message: string;
|
|
3870
3870
|
statusCode: number;
|
|
3871
3871
|
timestamp: string;
|
|
3872
3872
|
details?: unknown;
|
|
3873
3873
|
correlationId?: string | undefined;
|
|
3874
3874
|
}, {
|
|
3875
|
+
message: string;
|
|
3875
3876
|
code: string;
|
|
3876
3877
|
path: string;
|
|
3877
|
-
message: string;
|
|
3878
3878
|
statusCode: number;
|
|
3879
3879
|
timestamp: string;
|
|
3880
3880
|
details?: unknown;
|