@shuffl/api-contracts 0.5.3 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +95 -5
- package/dist/management-operations.d.ts +1 -1
- package/dist/management-operations.js +10 -3
- package/dist/management.generated.d.ts +93 -5
- package/dist/management.generated.js +136 -2
- package/dist/permissions.d.ts +2 -0
- package/openapi.json +1164 -214
- package/package.json +1 -1
|
@@ -269,6 +269,7 @@ const credentials_api_createInput = z
|
|
|
269
269
|
z.literal('playbooks.nudge'),
|
|
270
270
|
z.literal('playbooks.person'),
|
|
271
271
|
z.literal('playbooks.plans'),
|
|
272
|
+
z.literal('playbooks.previewAs'),
|
|
272
273
|
z.literal('playbooks.previewEnrollment'),
|
|
273
274
|
z.literal('playbooks.program'),
|
|
274
275
|
z.literal('playbooks.remove'),
|
|
@@ -1108,7 +1109,19 @@ const exports_teamOutput = z.strictObject({
|
|
|
1108
1109
|
z.literal('message'),
|
|
1109
1110
|
z.literal('task'),
|
|
1110
1111
|
]),
|
|
1112
|
+
meet: z
|
|
1113
|
+
.union([
|
|
1114
|
+
z.literal('manager'),
|
|
1115
|
+
z.literal('person'),
|
|
1116
|
+
z.literal('skip_level'),
|
|
1117
|
+
z.literal('teammates'),
|
|
1118
|
+
])
|
|
1119
|
+
.optional()
|
|
1120
|
+
.optional(),
|
|
1121
|
+
meetCount: z.number().optional().optional(),
|
|
1122
|
+
notFor: z.array(z.string()).optional().optional(),
|
|
1111
1123
|
offsetDays: z.number(),
|
|
1124
|
+
onlyFor: z.array(z.string()).optional().optional(),
|
|
1112
1125
|
personId: z.union([z.null(), z.string()]),
|
|
1113
1126
|
questions: z
|
|
1114
1127
|
.array(z.union([
|
|
@@ -2227,6 +2240,7 @@ const credentials_api_listOutput = z.strictObject({
|
|
|
2227
2240
|
z.literal('playbooks.nudge'),
|
|
2228
2241
|
z.literal('playbooks.person'),
|
|
2229
2242
|
z.literal('playbooks.plans'),
|
|
2243
|
+
z.literal('playbooks.previewAs'),
|
|
2230
2244
|
z.literal('playbooks.previewEnrollment'),
|
|
2231
2245
|
z.literal('playbooks.program'),
|
|
2232
2246
|
z.literal('playbooks.remove'),
|
|
@@ -2658,6 +2672,7 @@ const credentials_api_listOutput = z.strictObject({
|
|
|
2658
2672
|
z.literal('playbooks.nudge'),
|
|
2659
2673
|
z.literal('playbooks.person'),
|
|
2660
2674
|
z.literal('playbooks.plans'),
|
|
2675
|
+
z.literal('playbooks.previewAs'),
|
|
2661
2676
|
z.literal('playbooks.previewEnrollment'),
|
|
2662
2677
|
z.literal('playbooks.program'),
|
|
2663
2678
|
z.literal('playbooks.remove'),
|
|
@@ -9110,7 +9125,19 @@ const reports_overviewOutput = z.strictObject({
|
|
|
9110
9125
|
z.literal('message'),
|
|
9111
9126
|
z.literal('task'),
|
|
9112
9127
|
]),
|
|
9128
|
+
meet: z
|
|
9129
|
+
.union([
|
|
9130
|
+
z.literal('manager'),
|
|
9131
|
+
z.literal('person'),
|
|
9132
|
+
z.literal('skip_level'),
|
|
9133
|
+
z.literal('teammates'),
|
|
9134
|
+
])
|
|
9135
|
+
.optional()
|
|
9136
|
+
.optional(),
|
|
9137
|
+
meetCount: z.number().optional().optional(),
|
|
9138
|
+
notFor: z.array(z.string()).optional().optional(),
|
|
9113
9139
|
offsetDays: z.number(),
|
|
9140
|
+
onlyFor: z.array(z.string()).optional().optional(),
|
|
9114
9141
|
personId: z.union([z.null(), z.string()]),
|
|
9115
9142
|
questions: z
|
|
9116
9143
|
.array(z.union([
|
|
@@ -9667,7 +9694,19 @@ const playbooks_programOutput = z.strictObject({
|
|
|
9667
9694
|
z.literal('message'),
|
|
9668
9695
|
z.literal('task'),
|
|
9669
9696
|
]),
|
|
9697
|
+
meet: z
|
|
9698
|
+
.union([
|
|
9699
|
+
z.literal('manager'),
|
|
9700
|
+
z.literal('person'),
|
|
9701
|
+
z.literal('skip_level'),
|
|
9702
|
+
z.literal('teammates'),
|
|
9703
|
+
])
|
|
9704
|
+
.optional()
|
|
9705
|
+
.optional(),
|
|
9706
|
+
meetCount: z.number().optional().optional(),
|
|
9707
|
+
notFor: z.array(z.string()).optional().optional(),
|
|
9670
9708
|
offsetDays: z.number(),
|
|
9709
|
+
onlyFor: z.array(z.string()).optional().optional(),
|
|
9671
9710
|
personId: z.union([z.null(), z.string()]),
|
|
9672
9711
|
questions: z
|
|
9673
9712
|
.array(z.union([
|
|
@@ -9904,6 +9943,16 @@ const playbooks_programOutput = z.strictObject({
|
|
|
9904
9943
|
timezone: z.string(),
|
|
9905
9944
|
})),
|
|
9906
9945
|
stepPeople: z.record(z.string(), z.string()),
|
|
9946
|
+
tracks: z.array(z.strictObject({
|
|
9947
|
+
department: z.boolean(),
|
|
9948
|
+
hires: z.number(),
|
|
9949
|
+
id: z.string(),
|
|
9950
|
+
kind: z.union([z.literal('dynamic'), z.literal('list')]),
|
|
9951
|
+
name: z.string(),
|
|
9952
|
+
not: z.number(),
|
|
9953
|
+
only: z.number(),
|
|
9954
|
+
rules: z.union([z.null(), z.string()]),
|
|
9955
|
+
})),
|
|
9907
9956
|
});
|
|
9908
9957
|
const playbooks_saveProgramInput = z
|
|
9909
9958
|
.strictObject({
|
|
@@ -9977,10 +10026,23 @@ const playbooks_saveProgramInput = z
|
|
|
9977
10026
|
kind: z.union([
|
|
9978
10027
|
z.literal('acknowledge'),
|
|
9979
10028
|
z.literal('checkpoint'),
|
|
10029
|
+
z.literal('meet'),
|
|
9980
10030
|
z.literal('message'),
|
|
9981
10031
|
z.literal('task'),
|
|
9982
10032
|
]),
|
|
10033
|
+
meet: z
|
|
10034
|
+
.union([
|
|
10035
|
+
z.literal('manager'),
|
|
10036
|
+
z.literal('person'),
|
|
10037
|
+
z.literal('skip_level'),
|
|
10038
|
+
z.literal('teammates'),
|
|
10039
|
+
])
|
|
10040
|
+
.optional()
|
|
10041
|
+
.optional(),
|
|
10042
|
+
meetCount: z.number().optional().optional(),
|
|
10043
|
+
notFor: z.array(z.string()).optional().optional(),
|
|
9983
10044
|
offsetDays: z.number(),
|
|
10045
|
+
onlyFor: z.array(z.string()).optional().optional(),
|
|
9984
10046
|
personId: z.union([z.null(), z.string()]).optional().optional(),
|
|
9985
10047
|
questions: z
|
|
9986
10048
|
.array(z.union([
|
|
@@ -10185,7 +10247,19 @@ const playbooks_saveProgramOutput = z.object({
|
|
|
10185
10247
|
z.literal('message'),
|
|
10186
10248
|
z.literal('task'),
|
|
10187
10249
|
]),
|
|
10250
|
+
meet: z
|
|
10251
|
+
.union([
|
|
10252
|
+
z.literal('manager'),
|
|
10253
|
+
z.literal('person'),
|
|
10254
|
+
z.literal('skip_level'),
|
|
10255
|
+
z.literal('teammates'),
|
|
10256
|
+
])
|
|
10257
|
+
.optional()
|
|
10258
|
+
.optional(),
|
|
10259
|
+
meetCount: z.number().optional().optional(),
|
|
10260
|
+
notFor: z.array(z.string()).optional().optional(),
|
|
10188
10261
|
offsetDays: z.number(),
|
|
10262
|
+
onlyFor: z.array(z.string()).optional().optional(),
|
|
10189
10263
|
personId: z.union([z.null(), z.string()]),
|
|
10190
10264
|
questions: z
|
|
10191
10265
|
.array(z.union([
|
|
@@ -10387,6 +10461,7 @@ const playbooks_enrollmentPreviewOutput = z.strictObject({
|
|
|
10387
10461
|
z.literal('message'),
|
|
10388
10462
|
z.literal('task'),
|
|
10389
10463
|
]),
|
|
10464
|
+
meets: z.union([z.null(), z.array(z.string())]),
|
|
10390
10465
|
offsetDays: z.number(),
|
|
10391
10466
|
pending: z.boolean(),
|
|
10392
10467
|
preview: z.string(),
|
|
@@ -10417,6 +10492,7 @@ const playbooks_enrollmentPreviewOutput = z.strictObject({
|
|
|
10417
10492
|
]),
|
|
10418
10493
|
title: z.union([z.null(), z.string()]),
|
|
10419
10494
|
todos: z.array(z.string()),
|
|
10495
|
+
track: z.union([z.null(), z.string()]),
|
|
10420
10496
|
})),
|
|
10421
10497
|
});
|
|
10422
10498
|
const playbooks_previewEnrollmentInput = z
|
|
@@ -10790,6 +10866,45 @@ const playbooks_nudgeOutput = z.object({
|
|
|
10790
10866
|
})
|
|
10791
10867
|
.nullable(),
|
|
10792
10868
|
});
|
|
10869
|
+
const playbooks_previewAsInput = z.strictObject({
|
|
10870
|
+
personId: z.string(),
|
|
10871
|
+
programId: z.string(),
|
|
10872
|
+
});
|
|
10873
|
+
const playbooks_previewAsOutput = z.strictObject({
|
|
10874
|
+
dayZero: z.string(),
|
|
10875
|
+
person: z.strictObject({ id: z.string(), name: z.string() }),
|
|
10876
|
+
skipped: z.number(),
|
|
10877
|
+
steps: z.array(z.strictObject({
|
|
10878
|
+
dueAt: z.iso.datetime({ offset: true }),
|
|
10879
|
+
kind: z.union([
|
|
10880
|
+
z.literal('acknowledge'),
|
|
10881
|
+
z.literal('buddy_invitation'),
|
|
10882
|
+
z.literal('catch_up'),
|
|
10883
|
+
z.literal('check_in'),
|
|
10884
|
+
z.literal('checkpoint'),
|
|
10885
|
+
z.literal('form'),
|
|
10886
|
+
z.literal('introduction'),
|
|
10887
|
+
z.literal('meet'),
|
|
10888
|
+
z.literal('message'),
|
|
10889
|
+
z.literal('task'),
|
|
10890
|
+
]),
|
|
10891
|
+
meets: z.array(z.string()),
|
|
10892
|
+
offsetDays: z.number(),
|
|
10893
|
+
recipient: z.union([
|
|
10894
|
+
z.null(),
|
|
10895
|
+
z.literal('buddy'),
|
|
10896
|
+
z.literal('hire'),
|
|
10897
|
+
z.literal('hr'),
|
|
10898
|
+
z.literal('manager'),
|
|
10899
|
+
z.literal('person'),
|
|
10900
|
+
]),
|
|
10901
|
+
ref: z.string(),
|
|
10902
|
+
skipped: z.union([z.null(), z.string()]),
|
|
10903
|
+
title: z.union([z.null(), z.string()]),
|
|
10904
|
+
track: z.union([z.null(), z.string()]),
|
|
10905
|
+
})),
|
|
10906
|
+
tracked: z.number(),
|
|
10907
|
+
});
|
|
10793
10908
|
const playbooks_mineInput = z.strictObject({});
|
|
10794
10909
|
const playbooks_mineOutput = z.union([
|
|
10795
10910
|
z.strictObject({
|
|
@@ -10931,6 +11046,15 @@ const playbooks_runOutput = z.union([
|
|
|
10931
11046
|
userId: z.union([z.null(), z.string()]),
|
|
10932
11047
|
}),
|
|
10933
11048
|
]),
|
|
11049
|
+
met: z.array(z.strictObject({
|
|
11050
|
+
email: z.union([z.null(), z.string()]),
|
|
11051
|
+
id: z.string(),
|
|
11052
|
+
name: z.string(),
|
|
11053
|
+
photoUrl: z.union([z.null(), z.string()]),
|
|
11054
|
+
slackUserId: z.union([z.null(), z.string()]),
|
|
11055
|
+
title: z.union([z.null(), z.string()]),
|
|
11056
|
+
userId: z.union([z.null(), z.string()]),
|
|
11057
|
+
})),
|
|
10934
11058
|
playbooks: z.array(z.strictObject({
|
|
10935
11059
|
current: z.boolean(),
|
|
10936
11060
|
dayZero: z.union([
|
|
@@ -10984,6 +11108,7 @@ const playbooks_runOutput = z.union([
|
|
|
10984
11108
|
z.literal('check_in'),
|
|
10985
11109
|
z.literal('checkpoint'),
|
|
10986
11110
|
z.literal('introduction'),
|
|
11111
|
+
z.literal('meet'),
|
|
10987
11112
|
z.literal('message'),
|
|
10988
11113
|
z.literal('task'),
|
|
10989
11114
|
]),
|
|
@@ -17384,7 +17509,7 @@ export const managementContract = {
|
|
|
17384
17509
|
.route({
|
|
17385
17510
|
method: 'POST',
|
|
17386
17511
|
path: '/manage/groups/allAutomations',
|
|
17387
|
-
summary: 'Every join and leave
|
|
17512
|
+
summary: 'Every join and leave automation in the workspace: group automations with their group and last runs, playbooks that start on each start date and Connections programs whose people are a group; or only those that start one playbook, program or community',
|
|
17388
17513
|
})
|
|
17389
17514
|
.input(groups_allAutomationsInput)
|
|
17390
17515
|
.output(groups_allAutomationsOutput),
|
|
@@ -17591,7 +17716,7 @@ export const managementContract = {
|
|
|
17591
17716
|
.route({
|
|
17592
17717
|
method: 'POST',
|
|
17593
17718
|
path: '/manage/groups/setPlaybookAutoStart',
|
|
17594
|
-
summary: 'Turn on, pause or remove a playbook’s
|
|
17719
|
+
summary: 'Turn on, pause or remove a playbook’s automation that starts it on each new hire’s start date, for everyone or one group',
|
|
17595
17720
|
})
|
|
17596
17721
|
.input(groups_setPlaybookAutoStartInput)
|
|
17597
17722
|
.output(groups_setPlaybookAutoStartOutput),
|
|
@@ -18535,6 +18660,15 @@ export const managementContract = {
|
|
|
18535
18660
|
})
|
|
18536
18661
|
.input(playbooks_plansInput)
|
|
18537
18662
|
.output(playbooks_plansOutput),
|
|
18663
|
+
previewAs: base
|
|
18664
|
+
.meta({ scope: 'playbooks:read' })
|
|
18665
|
+
.route({
|
|
18666
|
+
method: 'POST',
|
|
18667
|
+
path: '/manage/playbooks/previewAs',
|
|
18668
|
+
summary: 'Which steps of a playbook one person would get, on which day, and why each skipped step is left out',
|
|
18669
|
+
})
|
|
18670
|
+
.input(playbooks_previewAsInput)
|
|
18671
|
+
.output(playbooks_previewAsOutput),
|
|
18538
18672
|
previewEnrollment: base
|
|
18539
18673
|
.meta({ scope: 'playbooks:write' })
|
|
18540
18674
|
.route({
|
package/dist/permissions.d.ts
CHANGED
|
@@ -228,6 +228,7 @@ export declare const permissionSchema: z.ZodEnum<{
|
|
|
228
228
|
"playbooks.nudge": "playbooks.nudge";
|
|
229
229
|
"playbooks.person": "playbooks.person";
|
|
230
230
|
"playbooks.plans": "playbooks.plans";
|
|
231
|
+
"playbooks.previewAs": "playbooks.previewAs";
|
|
231
232
|
"playbooks.previewEnrollment": "playbooks.previewEnrollment";
|
|
232
233
|
"playbooks.program": "playbooks.program";
|
|
233
234
|
"playbooks.remove": "playbooks.remove";
|
|
@@ -611,6 +612,7 @@ export declare const permissionDefinitionSchema: z.ZodObject<{
|
|
|
611
612
|
"playbooks.nudge": "playbooks.nudge";
|
|
612
613
|
"playbooks.person": "playbooks.person";
|
|
613
614
|
"playbooks.plans": "playbooks.plans";
|
|
615
|
+
"playbooks.previewAs": "playbooks.previewAs";
|
|
614
616
|
"playbooks.previewEnrollment": "playbooks.previewEnrollment";
|
|
615
617
|
"playbooks.program": "playbooks.program";
|
|
616
618
|
"playbooks.remove": "playbooks.remove";
|