@shuffl/api-contracts 0.5.9 → 0.5.11
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 +105 -3
- package/dist/management-operations.d.ts +1 -1
- package/dist/management-operations.js +9 -2
- package/dist/management.generated.d.ts +103 -3
- package/dist/management.generated.js +176 -2
- package/dist/permissions.d.ts +2 -0
- package/openapi.json +1193 -2
- package/package.json +1 -1
|
@@ -345,6 +345,7 @@ const credentials_api_createInput = z
|
|
|
345
345
|
z.literal('pulse.createAction'),
|
|
346
346
|
z.literal('pulse.decideProposal'),
|
|
347
347
|
z.literal('pulse.editProposal'),
|
|
348
|
+
z.literal('pulse.groupTrends'),
|
|
348
349
|
z.literal('pulse.insights'),
|
|
349
350
|
z.literal('pulse.latestRead'),
|
|
350
351
|
z.literal('pulse.mine'),
|
|
@@ -2344,6 +2345,7 @@ const credentials_api_listOutput = z.strictObject({
|
|
|
2344
2345
|
z.literal('pulse.createAction'),
|
|
2345
2346
|
z.literal('pulse.decideProposal'),
|
|
2346
2347
|
z.literal('pulse.editProposal'),
|
|
2348
|
+
z.literal('pulse.groupTrends'),
|
|
2347
2349
|
z.literal('pulse.insights'),
|
|
2348
2350
|
z.literal('pulse.latestRead'),
|
|
2349
2351
|
z.literal('pulse.mine'),
|
|
@@ -2795,6 +2797,7 @@ const credentials_api_listOutput = z.strictObject({
|
|
|
2795
2797
|
z.literal('pulse.createAction'),
|
|
2796
2798
|
z.literal('pulse.decideProposal'),
|
|
2797
2799
|
z.literal('pulse.editProposal'),
|
|
2800
|
+
z.literal('pulse.groupTrends'),
|
|
2798
2801
|
z.literal('pulse.insights'),
|
|
2799
2802
|
z.literal('pulse.latestRead'),
|
|
2800
2803
|
z.literal('pulse.mine'),
|
|
@@ -5237,6 +5240,7 @@ const groups_allAutomationsOutput = z.strictObject({
|
|
|
5237
5240
|
when: z.string(),
|
|
5238
5241
|
})),
|
|
5239
5242
|
playbookStarts: z.array(z.strictObject({
|
|
5243
|
+
dayZero: z.union([z.literal('last_day'), z.literal('start_date')]),
|
|
5240
5244
|
group: z.union([
|
|
5241
5245
|
z.null(),
|
|
5242
5246
|
z.strictObject({
|
|
@@ -15712,6 +15716,167 @@ const pulse_insightsOutput = z.strictObject({
|
|
|
15712
15716
|
windowStart: z.iso.datetime({ offset: true }),
|
|
15713
15717
|
withheld: z.number(),
|
|
15714
15718
|
});
|
|
15719
|
+
const pulse_groupTrendsInput = z.strictObject({
|
|
15720
|
+
days: z
|
|
15721
|
+
.union([z.literal(30), z.literal(90), z.literal(180)])
|
|
15722
|
+
.optional()
|
|
15723
|
+
.optional(),
|
|
15724
|
+
});
|
|
15725
|
+
const pulse_groupTrendsOutput = z.strictObject({
|
|
15726
|
+
days: z.union([z.literal(30), z.literal(90), z.literal(180)]),
|
|
15727
|
+
dimensions: z.strictObject({
|
|
15728
|
+
department: z.array(z.strictObject({
|
|
15729
|
+
label: z.string(),
|
|
15730
|
+
segment: z.string(),
|
|
15731
|
+
series: z.array(z.strictObject({
|
|
15732
|
+
change: z.union([z.null(), z.number()]),
|
|
15733
|
+
latest: z.union([z.null(), z.number()]),
|
|
15734
|
+
metric: z.union([
|
|
15735
|
+
z.literal('ai_adoption'),
|
|
15736
|
+
z.literal('belonging'),
|
|
15737
|
+
z.literal('clarity'),
|
|
15738
|
+
z.literal('engagement'),
|
|
15739
|
+
z.literal('enps'),
|
|
15740
|
+
z.literal('favourable'),
|
|
15741
|
+
z.literal('growth'),
|
|
15742
|
+
z.literal('manager'),
|
|
15743
|
+
z.literal('recognition'),
|
|
15744
|
+
z.literal('safety'),
|
|
15745
|
+
z.literal('tools'),
|
|
15746
|
+
z.literal('workload'),
|
|
15747
|
+
]),
|
|
15748
|
+
points: z.array(z.strictObject({
|
|
15749
|
+
seen: z.boolean(),
|
|
15750
|
+
value: z.union([z.null(), z.number()]),
|
|
15751
|
+
})),
|
|
15752
|
+
})),
|
|
15753
|
+
})),
|
|
15754
|
+
group: z.array(z.strictObject({
|
|
15755
|
+
label: z.string(),
|
|
15756
|
+
segment: z.string(),
|
|
15757
|
+
series: z.array(z.strictObject({
|
|
15758
|
+
change: z.union([z.null(), z.number()]),
|
|
15759
|
+
latest: z.union([z.null(), z.number()]),
|
|
15760
|
+
metric: z.union([
|
|
15761
|
+
z.literal('ai_adoption'),
|
|
15762
|
+
z.literal('belonging'),
|
|
15763
|
+
z.literal('clarity'),
|
|
15764
|
+
z.literal('engagement'),
|
|
15765
|
+
z.literal('enps'),
|
|
15766
|
+
z.literal('favourable'),
|
|
15767
|
+
z.literal('growth'),
|
|
15768
|
+
z.literal('manager'),
|
|
15769
|
+
z.literal('recognition'),
|
|
15770
|
+
z.literal('safety'),
|
|
15771
|
+
z.literal('tools'),
|
|
15772
|
+
z.literal('workload'),
|
|
15773
|
+
]),
|
|
15774
|
+
points: z.array(z.strictObject({
|
|
15775
|
+
seen: z.boolean(),
|
|
15776
|
+
value: z.union([z.null(), z.number()]),
|
|
15777
|
+
})),
|
|
15778
|
+
})),
|
|
15779
|
+
})),
|
|
15780
|
+
role: z.array(z.strictObject({
|
|
15781
|
+
label: z.string(),
|
|
15782
|
+
segment: z.string(),
|
|
15783
|
+
series: z.array(z.strictObject({
|
|
15784
|
+
change: z.union([z.null(), z.number()]),
|
|
15785
|
+
latest: z.union([z.null(), z.number()]),
|
|
15786
|
+
metric: z.union([
|
|
15787
|
+
z.literal('ai_adoption'),
|
|
15788
|
+
z.literal('belonging'),
|
|
15789
|
+
z.literal('clarity'),
|
|
15790
|
+
z.literal('engagement'),
|
|
15791
|
+
z.literal('enps'),
|
|
15792
|
+
z.literal('favourable'),
|
|
15793
|
+
z.literal('growth'),
|
|
15794
|
+
z.literal('manager'),
|
|
15795
|
+
z.literal('recognition'),
|
|
15796
|
+
z.literal('safety'),
|
|
15797
|
+
z.literal('tools'),
|
|
15798
|
+
z.literal('workload'),
|
|
15799
|
+
]),
|
|
15800
|
+
points: z.array(z.strictObject({
|
|
15801
|
+
seen: z.boolean(),
|
|
15802
|
+
value: z.union([z.null(), z.number()]),
|
|
15803
|
+
})),
|
|
15804
|
+
})),
|
|
15805
|
+
})),
|
|
15806
|
+
tenure: z.array(z.strictObject({
|
|
15807
|
+
label: z.string(),
|
|
15808
|
+
segment: z.string(),
|
|
15809
|
+
series: z.array(z.strictObject({
|
|
15810
|
+
change: z.union([z.null(), z.number()]),
|
|
15811
|
+
latest: z.union([z.null(), z.number()]),
|
|
15812
|
+
metric: z.union([
|
|
15813
|
+
z.literal('ai_adoption'),
|
|
15814
|
+
z.literal('belonging'),
|
|
15815
|
+
z.literal('clarity'),
|
|
15816
|
+
z.literal('engagement'),
|
|
15817
|
+
z.literal('enps'),
|
|
15818
|
+
z.literal('favourable'),
|
|
15819
|
+
z.literal('growth'),
|
|
15820
|
+
z.literal('manager'),
|
|
15821
|
+
z.literal('recognition'),
|
|
15822
|
+
z.literal('safety'),
|
|
15823
|
+
z.literal('tools'),
|
|
15824
|
+
z.literal('workload'),
|
|
15825
|
+
]),
|
|
15826
|
+
points: z.array(z.strictObject({
|
|
15827
|
+
seen: z.boolean(),
|
|
15828
|
+
value: z.union([z.null(), z.number()]),
|
|
15829
|
+
})),
|
|
15830
|
+
})),
|
|
15831
|
+
})),
|
|
15832
|
+
}),
|
|
15833
|
+
enpsPeriods: z.array(z.string()),
|
|
15834
|
+
everyone: z.array(z.strictObject({
|
|
15835
|
+
change: z.union([z.null(), z.number()]),
|
|
15836
|
+
latest: z.union([z.null(), z.number()]),
|
|
15837
|
+
metric: z.union([
|
|
15838
|
+
z.literal('ai_adoption'),
|
|
15839
|
+
z.literal('belonging'),
|
|
15840
|
+
z.literal('clarity'),
|
|
15841
|
+
z.literal('engagement'),
|
|
15842
|
+
z.literal('enps'),
|
|
15843
|
+
z.literal('favourable'),
|
|
15844
|
+
z.literal('growth'),
|
|
15845
|
+
z.literal('manager'),
|
|
15846
|
+
z.literal('recognition'),
|
|
15847
|
+
z.literal('safety'),
|
|
15848
|
+
z.literal('tools'),
|
|
15849
|
+
z.literal('workload'),
|
|
15850
|
+
]),
|
|
15851
|
+
points: z.array(z.strictObject({
|
|
15852
|
+
seen: z.boolean(),
|
|
15853
|
+
value: z.union([z.null(), z.number()]),
|
|
15854
|
+
})),
|
|
15855
|
+
})),
|
|
15856
|
+
metrics: z.array(z.strictObject({
|
|
15857
|
+
label: z.string(),
|
|
15858
|
+
metric: z.union([
|
|
15859
|
+
z.literal('ai_adoption'),
|
|
15860
|
+
z.literal('belonging'),
|
|
15861
|
+
z.literal('clarity'),
|
|
15862
|
+
z.literal('engagement'),
|
|
15863
|
+
z.literal('enps'),
|
|
15864
|
+
z.literal('favourable'),
|
|
15865
|
+
z.literal('growth'),
|
|
15866
|
+
z.literal('manager'),
|
|
15867
|
+
z.literal('recognition'),
|
|
15868
|
+
z.literal('safety'),
|
|
15869
|
+
z.literal('tools'),
|
|
15870
|
+
z.literal('workload'),
|
|
15871
|
+
]),
|
|
15872
|
+
})),
|
|
15873
|
+
periods: z.array(z.string()),
|
|
15874
|
+
unit: z.union([
|
|
15875
|
+
z.literal('fortnight'),
|
|
15876
|
+
z.literal('month'),
|
|
15877
|
+
z.literal('week'),
|
|
15878
|
+
]),
|
|
15879
|
+
});
|
|
15715
15880
|
const pulse_actionsInput = z.strictObject({
|
|
15716
15881
|
driver: z
|
|
15717
15882
|
.union([
|
|
@@ -18211,7 +18376,7 @@ export const managementContract = {
|
|
|
18211
18376
|
.route({
|
|
18212
18377
|
method: 'POST',
|
|
18213
18378
|
path: '/manage/groups/allAutomations',
|
|
18214
|
-
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',
|
|
18379
|
+
summary: 'Every join and leave automation in the workspace: group automations with their group and last runs, playbooks that start on each start date or each last day (`dayZero`) and Connections programs whose people are a group; or only those that start one playbook, program or community',
|
|
18215
18380
|
})
|
|
18216
18381
|
.input(groups_allAutomationsInput)
|
|
18217
18382
|
.output(groups_allAutomationsOutput),
|
|
@@ -18427,7 +18592,7 @@ export const managementContract = {
|
|
|
18427
18592
|
.route({
|
|
18428
18593
|
method: 'POST',
|
|
18429
18594
|
path: '/manage/groups/setPlaybookAutoStart',
|
|
18430
|
-
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',
|
|
18595
|
+
summary: 'Turn on, pause or remove a playbook’s automation that starts it on each new hire’s start date, or a leaving playbook’s on each last day, for everyone or one group',
|
|
18431
18596
|
})
|
|
18432
18597
|
.input(groups_setPlaybookAutoStartInput)
|
|
18433
18598
|
.output(groups_setPlaybookAutoStartOutput),
|
|
@@ -19982,6 +20147,15 @@ export const managementContract = {
|
|
|
19982
20147
|
})
|
|
19983
20148
|
.input(pulse_editProposalInput)
|
|
19984
20149
|
.output(pulse_editProposalOutput),
|
|
20150
|
+
groupTrends: base
|
|
20151
|
+
.meta({ scope: 'pulse:read' })
|
|
20152
|
+
.route({
|
|
20153
|
+
method: 'POST',
|
|
20154
|
+
path: '/manage/pulse/groupTrends',
|
|
20155
|
+
summary: "Read each group's Pulse results over time, period by period, with the change since the start (published group totals only)",
|
|
20156
|
+
})
|
|
20157
|
+
.input(pulse_groupTrendsInput)
|
|
20158
|
+
.output(pulse_groupTrendsOutput),
|
|
19985
20159
|
insights: base
|
|
19986
20160
|
.meta({ scope: 'pulse:read' })
|
|
19987
20161
|
.route({
|
package/dist/permissions.d.ts
CHANGED
|
@@ -304,6 +304,7 @@ export declare const permissionSchema: z.ZodEnum<{
|
|
|
304
304
|
"pulse.createAction": "pulse.createAction";
|
|
305
305
|
"pulse.decideProposal": "pulse.decideProposal";
|
|
306
306
|
"pulse.editProposal": "pulse.editProposal";
|
|
307
|
+
"pulse.groupTrends": "pulse.groupTrends";
|
|
307
308
|
"pulse.insights": "pulse.insights";
|
|
308
309
|
"pulse.latestRead": "pulse.latestRead";
|
|
309
310
|
"pulse.mine": "pulse.mine";
|
|
@@ -705,6 +706,7 @@ export declare const permissionDefinitionSchema: z.ZodObject<{
|
|
|
705
706
|
"pulse.createAction": "pulse.createAction";
|
|
706
707
|
"pulse.decideProposal": "pulse.decideProposal";
|
|
707
708
|
"pulse.editProposal": "pulse.editProposal";
|
|
709
|
+
"pulse.groupTrends": "pulse.groupTrends";
|
|
708
710
|
"pulse.insights": "pulse.insights";
|
|
709
711
|
"pulse.latestRead": "pulse.latestRead";
|
|
710
712
|
"pulse.mine": "pulse.mine";
|