@shuffl/api-contracts 0.3.0 → 0.4.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/company.d.ts +235 -0
- package/dist/company.js +177 -0
- package/dist/index.d.ts +279 -45
- package/dist/index.js +1 -0
- package/dist/management-operations.d.ts +1 -1
- package/dist/management-operations.js +8 -1
- package/dist/management.generated.d.ts +276 -45
- package/dist/management.generated.js +391 -121
- package/dist/permissions.d.ts +2 -0
- package/openapi.json +3001 -673
- package/package.json +5 -1
|
@@ -213,6 +213,7 @@ const credentials_api_createInput = z
|
|
|
213
213
|
z.literal('onboarding.assignBuddy'),
|
|
214
214
|
z.literal('onboarding.buddySuggestions'),
|
|
215
215
|
z.literal('onboarding.candidates'),
|
|
216
|
+
z.literal('onboarding.completeTodo'),
|
|
216
217
|
z.literal('onboarding.enroll'),
|
|
217
218
|
z.literal('onboarding.enrollmentPreview'),
|
|
218
219
|
z.literal('onboarding.firstDaysCheckIns'),
|
|
@@ -919,6 +920,58 @@ const exports_teamOutput = z.strictObject({
|
|
|
919
920
|
introductionOffsetDays: z.number(),
|
|
920
921
|
responderPersonId: z.union([z.null(), z.string()]),
|
|
921
922
|
sendTime: z.string(),
|
|
923
|
+
steps: z
|
|
924
|
+
.array(z.strictObject({
|
|
925
|
+
body: z.string(),
|
|
926
|
+
checkpoint: z
|
|
927
|
+
.union([
|
|
928
|
+
z.literal('day_30'),
|
|
929
|
+
z.literal('day_365'),
|
|
930
|
+
z.literal('day_60'),
|
|
931
|
+
z.literal('day_90'),
|
|
932
|
+
])
|
|
933
|
+
.optional()
|
|
934
|
+
.optional(),
|
|
935
|
+
id: z.string(),
|
|
936
|
+
kind: z.union([
|
|
937
|
+
z.literal('acknowledge'),
|
|
938
|
+
z.literal('checkpoint'),
|
|
939
|
+
z.literal('form'),
|
|
940
|
+
z.literal('meet'),
|
|
941
|
+
z.literal('message'),
|
|
942
|
+
z.literal('task'),
|
|
943
|
+
]),
|
|
944
|
+
offsetDays: z.number(),
|
|
945
|
+
personId: z.union([z.null(), z.string()]),
|
|
946
|
+
recipient: z.union([
|
|
947
|
+
z.literal('buddy'),
|
|
948
|
+
z.literal('hire'),
|
|
949
|
+
z.literal('hr'),
|
|
950
|
+
z.literal('manager'),
|
|
951
|
+
z.literal('person'),
|
|
952
|
+
]),
|
|
953
|
+
resources: z.array(z.union([
|
|
954
|
+
z.strictObject({
|
|
955
|
+
sourceId: z.string(),
|
|
956
|
+
title: z.string(),
|
|
957
|
+
type: z.literal('knowledge'),
|
|
958
|
+
}),
|
|
959
|
+
z.strictObject({
|
|
960
|
+
label: z.string(),
|
|
961
|
+
type: z.literal('link'),
|
|
962
|
+
url: z.string(),
|
|
963
|
+
}),
|
|
964
|
+
z.strictObject({
|
|
965
|
+
communityId: z.string(),
|
|
966
|
+
name: z.string(),
|
|
967
|
+
type: z.literal('community'),
|
|
968
|
+
}),
|
|
969
|
+
])),
|
|
970
|
+
title: z.string(),
|
|
971
|
+
todos: z.array(z.strictObject({ id: z.string(), label: z.string() })),
|
|
972
|
+
}))
|
|
973
|
+
.optional()
|
|
974
|
+
.optional(),
|
|
922
975
|
timezone: z.string(),
|
|
923
976
|
}),
|
|
924
977
|
]),
|
|
@@ -1875,6 +1928,7 @@ const credentials_api_listOutput = z.strictObject({
|
|
|
1875
1928
|
z.literal('onboarding.assignBuddy'),
|
|
1876
1929
|
z.literal('onboarding.buddySuggestions'),
|
|
1877
1930
|
z.literal('onboarding.candidates'),
|
|
1931
|
+
z.literal('onboarding.completeTodo'),
|
|
1878
1932
|
z.literal('onboarding.enroll'),
|
|
1879
1933
|
z.literal('onboarding.enrollmentPreview'),
|
|
1880
1934
|
z.literal('onboarding.firstDaysCheckIns'),
|
|
@@ -2241,6 +2295,7 @@ const credentials_api_listOutput = z.strictObject({
|
|
|
2241
2295
|
z.literal('onboarding.assignBuddy'),
|
|
2242
2296
|
z.literal('onboarding.buddySuggestions'),
|
|
2243
2297
|
z.literal('onboarding.candidates'),
|
|
2298
|
+
z.literal('onboarding.completeTodo'),
|
|
2244
2299
|
z.literal('onboarding.enroll'),
|
|
2245
2300
|
z.literal('onboarding.enrollmentPreview'),
|
|
2246
2301
|
z.literal('onboarding.firstDaysCheckIns'),
|
|
@@ -7237,6 +7292,58 @@ const reports_overviewOutput = z.strictObject({
|
|
|
7237
7292
|
introductionOffsetDays: z.number(),
|
|
7238
7293
|
responderPersonId: z.union([z.null(), z.string()]),
|
|
7239
7294
|
sendTime: z.string(),
|
|
7295
|
+
steps: z
|
|
7296
|
+
.array(z.strictObject({
|
|
7297
|
+
body: z.string(),
|
|
7298
|
+
checkpoint: z
|
|
7299
|
+
.union([
|
|
7300
|
+
z.literal('day_30'),
|
|
7301
|
+
z.literal('day_365'),
|
|
7302
|
+
z.literal('day_60'),
|
|
7303
|
+
z.literal('day_90'),
|
|
7304
|
+
])
|
|
7305
|
+
.optional()
|
|
7306
|
+
.optional(),
|
|
7307
|
+
id: z.string(),
|
|
7308
|
+
kind: z.union([
|
|
7309
|
+
z.literal('acknowledge'),
|
|
7310
|
+
z.literal('checkpoint'),
|
|
7311
|
+
z.literal('form'),
|
|
7312
|
+
z.literal('meet'),
|
|
7313
|
+
z.literal('message'),
|
|
7314
|
+
z.literal('task'),
|
|
7315
|
+
]),
|
|
7316
|
+
offsetDays: z.number(),
|
|
7317
|
+
personId: z.union([z.null(), z.string()]),
|
|
7318
|
+
recipient: z.union([
|
|
7319
|
+
z.literal('buddy'),
|
|
7320
|
+
z.literal('hire'),
|
|
7321
|
+
z.literal('hr'),
|
|
7322
|
+
z.literal('manager'),
|
|
7323
|
+
z.literal('person'),
|
|
7324
|
+
]),
|
|
7325
|
+
resources: z.array(z.union([
|
|
7326
|
+
z.strictObject({
|
|
7327
|
+
sourceId: z.string(),
|
|
7328
|
+
title: z.string(),
|
|
7329
|
+
type: z.literal('knowledge'),
|
|
7330
|
+
}),
|
|
7331
|
+
z.strictObject({
|
|
7332
|
+
label: z.string(),
|
|
7333
|
+
type: z.literal('link'),
|
|
7334
|
+
url: z.string(),
|
|
7335
|
+
}),
|
|
7336
|
+
z.strictObject({
|
|
7337
|
+
communityId: z.string(),
|
|
7338
|
+
name: z.string(),
|
|
7339
|
+
type: z.literal('community'),
|
|
7340
|
+
}),
|
|
7341
|
+
])),
|
|
7342
|
+
title: z.string(),
|
|
7343
|
+
todos: z.array(z.strictObject({ id: z.string(), label: z.string() })),
|
|
7344
|
+
}))
|
|
7345
|
+
.optional()
|
|
7346
|
+
.optional(),
|
|
7240
7347
|
timezone: z.string(),
|
|
7241
7348
|
}),
|
|
7242
7349
|
]),
|
|
@@ -7485,6 +7592,11 @@ const reports_onboardingOutput = z.strictObject({
|
|
|
7485
7592
|
failed: z.number(),
|
|
7486
7593
|
onTime: z.number(),
|
|
7487
7594
|
sent: z.number(),
|
|
7595
|
+
weekly: z.array(z.strictObject({
|
|
7596
|
+
onTime: z.number(),
|
|
7597
|
+
sent: z.number(),
|
|
7598
|
+
week: z.string(),
|
|
7599
|
+
})),
|
|
7488
7600
|
}),
|
|
7489
7601
|
start: z.iso.datetime({ offset: true }),
|
|
7490
7602
|
weekly: z.array(z.strictObject({ hires: z.number(), week: z.string() })),
|
|
@@ -7672,6 +7784,58 @@ const onboarding_programOutput = z.strictObject({
|
|
|
7672
7784
|
introductionOffsetDays: z.number(),
|
|
7673
7785
|
responderPersonId: z.union([z.null(), z.string()]),
|
|
7674
7786
|
sendTime: z.string(),
|
|
7787
|
+
steps: z
|
|
7788
|
+
.array(z.strictObject({
|
|
7789
|
+
body: z.string(),
|
|
7790
|
+
checkpoint: z
|
|
7791
|
+
.union([
|
|
7792
|
+
z.literal('day_30'),
|
|
7793
|
+
z.literal('day_365'),
|
|
7794
|
+
z.literal('day_60'),
|
|
7795
|
+
z.literal('day_90'),
|
|
7796
|
+
])
|
|
7797
|
+
.optional()
|
|
7798
|
+
.optional(),
|
|
7799
|
+
id: z.string(),
|
|
7800
|
+
kind: z.union([
|
|
7801
|
+
z.literal('acknowledge'),
|
|
7802
|
+
z.literal('checkpoint'),
|
|
7803
|
+
z.literal('form'),
|
|
7804
|
+
z.literal('meet'),
|
|
7805
|
+
z.literal('message'),
|
|
7806
|
+
z.literal('task'),
|
|
7807
|
+
]),
|
|
7808
|
+
offsetDays: z.number(),
|
|
7809
|
+
personId: z.union([z.null(), z.string()]),
|
|
7810
|
+
recipient: z.union([
|
|
7811
|
+
z.literal('buddy'),
|
|
7812
|
+
z.literal('hire'),
|
|
7813
|
+
z.literal('hr'),
|
|
7814
|
+
z.literal('manager'),
|
|
7815
|
+
z.literal('person'),
|
|
7816
|
+
]),
|
|
7817
|
+
resources: z.array(z.union([
|
|
7818
|
+
z.strictObject({
|
|
7819
|
+
sourceId: z.string(),
|
|
7820
|
+
title: z.string(),
|
|
7821
|
+
type: z.literal('knowledge'),
|
|
7822
|
+
}),
|
|
7823
|
+
z.strictObject({
|
|
7824
|
+
label: z.string(),
|
|
7825
|
+
type: z.literal('link'),
|
|
7826
|
+
url: z.string(),
|
|
7827
|
+
}),
|
|
7828
|
+
z.strictObject({
|
|
7829
|
+
communityId: z.string(),
|
|
7830
|
+
name: z.string(),
|
|
7831
|
+
type: z.literal('community'),
|
|
7832
|
+
}),
|
|
7833
|
+
])),
|
|
7834
|
+
title: z.string(),
|
|
7835
|
+
todos: z.array(z.strictObject({ id: z.string(), label: z.string() })),
|
|
7836
|
+
}))
|
|
7837
|
+
.optional()
|
|
7838
|
+
.optional(),
|
|
7675
7839
|
timezone: z.string(),
|
|
7676
7840
|
}),
|
|
7677
7841
|
intro: z.string(),
|
|
@@ -7767,10 +7931,16 @@ const onboarding_programOutput = z.strictObject({
|
|
|
7767
7931
|
]),
|
|
7768
7932
|
id: z.string(),
|
|
7769
7933
|
kind: z.union([
|
|
7934
|
+
z.literal('acknowledge'),
|
|
7770
7935
|
z.literal('buddy_invitation'),
|
|
7771
7936
|
z.literal('check_in'),
|
|
7937
|
+
z.literal('checkpoint'),
|
|
7772
7938
|
z.literal('follow_up'),
|
|
7939
|
+
z.literal('form'),
|
|
7773
7940
|
z.literal('introduction'),
|
|
7941
|
+
z.literal('meet'),
|
|
7942
|
+
z.literal('message'),
|
|
7943
|
+
z.literal('task'),
|
|
7774
7944
|
]),
|
|
7775
7945
|
offsetDays: z.number(),
|
|
7776
7946
|
sentAt: z.union([z.null(), z.iso.datetime({ offset: true })]),
|
|
@@ -7787,9 +7957,12 @@ const onboarding_programOutput = z.strictObject({
|
|
|
7787
7957
|
z.literal('unknown'),
|
|
7788
7958
|
z.literal('waiting'),
|
|
7789
7959
|
]),
|
|
7960
|
+
stepKey: z.union([z.null(), z.string()]),
|
|
7961
|
+
title: z.union([z.null(), z.string()]),
|
|
7790
7962
|
})),
|
|
7791
7963
|
timezone: z.string(),
|
|
7792
7964
|
})),
|
|
7965
|
+
stepPeople: z.record(z.string(), z.string()),
|
|
7793
7966
|
});
|
|
7794
7967
|
const onboarding_saveProgramInput = z
|
|
7795
7968
|
.strictObject({
|
|
@@ -7810,6 +7983,61 @@ const onboarding_saveProgramInput = z
|
|
|
7810
7983
|
introductionOffsetDays: z.number(),
|
|
7811
7984
|
responderPersonId: z.union([z.null(), z.string()]),
|
|
7812
7985
|
sendTime: z.string(),
|
|
7986
|
+
steps: z
|
|
7987
|
+
.array(z.strictObject({
|
|
7988
|
+
body: z.string().optional().optional(),
|
|
7989
|
+
checkpoint: z
|
|
7990
|
+
.union([
|
|
7991
|
+
z.literal('day_30'),
|
|
7992
|
+
z.literal('day_365'),
|
|
7993
|
+
z.literal('day_60'),
|
|
7994
|
+
z.literal('day_90'),
|
|
7995
|
+
])
|
|
7996
|
+
.optional()
|
|
7997
|
+
.optional(),
|
|
7998
|
+
id: z.string(),
|
|
7999
|
+
kind: z.union([
|
|
8000
|
+
z.literal('checkpoint'),
|
|
8001
|
+
z.literal('message'),
|
|
8002
|
+
z.literal('task'),
|
|
8003
|
+
]),
|
|
8004
|
+
offsetDays: z.number(),
|
|
8005
|
+
personId: z.union([z.null(), z.string()]).optional().optional(),
|
|
8006
|
+
recipient: z.union([
|
|
8007
|
+
z.literal('buddy'),
|
|
8008
|
+
z.literal('hire'),
|
|
8009
|
+
z.literal('hr'),
|
|
8010
|
+
z.literal('manager'),
|
|
8011
|
+
z.literal('person'),
|
|
8012
|
+
]),
|
|
8013
|
+
resources: z
|
|
8014
|
+
.array(z.union([
|
|
8015
|
+
z.strictObject({
|
|
8016
|
+
sourceId: z.string(),
|
|
8017
|
+
title: z.string(),
|
|
8018
|
+
type: z.literal('knowledge'),
|
|
8019
|
+
}),
|
|
8020
|
+
z.strictObject({
|
|
8021
|
+
label: z.string(),
|
|
8022
|
+
type: z.literal('link'),
|
|
8023
|
+
url: z.string(),
|
|
8024
|
+
}),
|
|
8025
|
+
z.strictObject({
|
|
8026
|
+
communityId: z.string(),
|
|
8027
|
+
name: z.string(),
|
|
8028
|
+
type: z.literal('community'),
|
|
8029
|
+
}),
|
|
8030
|
+
]))
|
|
8031
|
+
.optional()
|
|
8032
|
+
.optional(),
|
|
8033
|
+
title: z.string(),
|
|
8034
|
+
todos: z
|
|
8035
|
+
.array(z.strictObject({ id: z.string(), label: z.string() }))
|
|
8036
|
+
.optional()
|
|
8037
|
+
.optional(),
|
|
8038
|
+
}))
|
|
8039
|
+
.optional()
|
|
8040
|
+
.optional(),
|
|
7813
8041
|
timezone: z.string(),
|
|
7814
8042
|
}),
|
|
7815
8043
|
}),
|
|
@@ -7891,6 +8119,58 @@ const onboarding_saveProgramOutput = z.object({
|
|
|
7891
8119
|
introductionOffsetDays: z.number(),
|
|
7892
8120
|
responderPersonId: z.union([z.null(), z.string()]),
|
|
7893
8121
|
sendTime: z.string(),
|
|
8122
|
+
steps: z
|
|
8123
|
+
.array(z.strictObject({
|
|
8124
|
+
body: z.string(),
|
|
8125
|
+
checkpoint: z
|
|
8126
|
+
.union([
|
|
8127
|
+
z.literal('day_30'),
|
|
8128
|
+
z.literal('day_365'),
|
|
8129
|
+
z.literal('day_60'),
|
|
8130
|
+
z.literal('day_90'),
|
|
8131
|
+
])
|
|
8132
|
+
.optional()
|
|
8133
|
+
.optional(),
|
|
8134
|
+
id: z.string(),
|
|
8135
|
+
kind: z.union([
|
|
8136
|
+
z.literal('acknowledge'),
|
|
8137
|
+
z.literal('checkpoint'),
|
|
8138
|
+
z.literal('form'),
|
|
8139
|
+
z.literal('meet'),
|
|
8140
|
+
z.literal('message'),
|
|
8141
|
+
z.literal('task'),
|
|
8142
|
+
]),
|
|
8143
|
+
offsetDays: z.number(),
|
|
8144
|
+
personId: z.union([z.null(), z.string()]),
|
|
8145
|
+
recipient: z.union([
|
|
8146
|
+
z.literal('buddy'),
|
|
8147
|
+
z.literal('hire'),
|
|
8148
|
+
z.literal('hr'),
|
|
8149
|
+
z.literal('manager'),
|
|
8150
|
+
z.literal('person'),
|
|
8151
|
+
]),
|
|
8152
|
+
resources: z.array(z.union([
|
|
8153
|
+
z.strictObject({
|
|
8154
|
+
sourceId: z.string(),
|
|
8155
|
+
title: z.string(),
|
|
8156
|
+
type: z.literal('knowledge'),
|
|
8157
|
+
}),
|
|
8158
|
+
z.strictObject({
|
|
8159
|
+
label: z.string(),
|
|
8160
|
+
type: z.literal('link'),
|
|
8161
|
+
url: z.string(),
|
|
8162
|
+
}),
|
|
8163
|
+
z.strictObject({
|
|
8164
|
+
communityId: z.string(),
|
|
8165
|
+
name: z.string(),
|
|
8166
|
+
type: z.literal('community'),
|
|
8167
|
+
}),
|
|
8168
|
+
])),
|
|
8169
|
+
title: z.string(),
|
|
8170
|
+
todos: z.array(z.strictObject({ id: z.string(), label: z.string() })),
|
|
8171
|
+
}))
|
|
8172
|
+
.optional()
|
|
8173
|
+
.optional(),
|
|
7894
8174
|
timezone: z.string(),
|
|
7895
8175
|
}),
|
|
7896
8176
|
]),
|
|
@@ -8023,13 +8303,29 @@ const onboarding_enrollmentPreviewOutput = z.strictObject({
|
|
|
8023
8303
|
steps: z.array(z.strictObject({
|
|
8024
8304
|
dueAt: z.iso.datetime({ offset: true }),
|
|
8025
8305
|
kind: z.union([
|
|
8306
|
+
z.literal('acknowledge'),
|
|
8026
8307
|
z.literal('buddy_invitation'),
|
|
8027
8308
|
z.literal('check_in'),
|
|
8309
|
+
z.literal('checkpoint'),
|
|
8310
|
+
z.literal('form'),
|
|
8028
8311
|
z.literal('introduction'),
|
|
8312
|
+
z.literal('meet'),
|
|
8313
|
+
z.literal('message'),
|
|
8314
|
+
z.literal('task'),
|
|
8029
8315
|
]),
|
|
8030
8316
|
offsetDays: z.number(),
|
|
8031
8317
|
pending: z.boolean(),
|
|
8032
8318
|
preview: z.string(),
|
|
8319
|
+
recipient: z.union([
|
|
8320
|
+
z.null(),
|
|
8321
|
+
z.literal('buddy'),
|
|
8322
|
+
z.literal('hire'),
|
|
8323
|
+
z.literal('hr'),
|
|
8324
|
+
z.literal('manager'),
|
|
8325
|
+
z.literal('person'),
|
|
8326
|
+
]),
|
|
8327
|
+
recipientName: z.union([z.null(), z.string()]),
|
|
8328
|
+
ref: z.string(),
|
|
8033
8329
|
status: z.union([
|
|
8034
8330
|
z.null(),
|
|
8035
8331
|
z.literal('accepted'),
|
|
@@ -8044,6 +8340,8 @@ const onboarding_enrollmentPreviewOutput = z.strictObject({
|
|
|
8044
8340
|
z.literal('unknown'),
|
|
8045
8341
|
z.literal('waiting'),
|
|
8046
8342
|
]),
|
|
8343
|
+
title: z.union([z.null(), z.string()]),
|
|
8344
|
+
todos: z.array(z.string()),
|
|
8047
8345
|
})),
|
|
8048
8346
|
});
|
|
8049
8347
|
const onboarding_previewEnrollmentInput = z
|
|
@@ -8291,6 +8589,16 @@ const onboarding_journeyOutput = z.union([
|
|
|
8291
8589
|
})),
|
|
8292
8590
|
day: z.union([z.null(), z.number()]),
|
|
8293
8591
|
enrolled: z.boolean(),
|
|
8592
|
+
gettingReady: z.array(z.strictObject({
|
|
8593
|
+
done: z.boolean(),
|
|
8594
|
+
due: z.union([z.null(), z.string()]),
|
|
8595
|
+
id: z.string(),
|
|
8596
|
+
label: z.string(),
|
|
8597
|
+
owner: z.union([
|
|
8598
|
+
z.null(),
|
|
8599
|
+
z.strictObject({ id: z.string(), name: z.string() }),
|
|
8600
|
+
]),
|
|
8601
|
+
})),
|
|
8294
8602
|
manager: z.union([
|
|
8295
8603
|
z.null(),
|
|
8296
8604
|
z.strictObject({
|
|
@@ -8303,15 +8611,27 @@ const onboarding_journeyOutput = z.union([
|
|
|
8303
8611
|
userId: z.union([z.null(), z.string()]),
|
|
8304
8612
|
}),
|
|
8305
8613
|
]),
|
|
8306
|
-
|
|
8307
|
-
|
|
8614
|
+
programName: z.union([z.null(), z.string()]),
|
|
8615
|
+
resources: z.array(z.union([
|
|
8308
8616
|
z.strictObject({
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8617
|
+
day: z.number(),
|
|
8618
|
+
sourceId: z.string(),
|
|
8619
|
+
title: z.string(),
|
|
8620
|
+
type: z.literal('knowledge'),
|
|
8312
8621
|
}),
|
|
8313
|
-
|
|
8314
|
-
|
|
8622
|
+
z.strictObject({
|
|
8623
|
+
day: z.number(),
|
|
8624
|
+
label: z.string(),
|
|
8625
|
+
type: z.literal('link'),
|
|
8626
|
+
url: z.string(),
|
|
8627
|
+
}),
|
|
8628
|
+
z.strictObject({
|
|
8629
|
+
communityId: z.string(),
|
|
8630
|
+
day: z.number(),
|
|
8631
|
+
name: z.string(),
|
|
8632
|
+
type: z.literal('community'),
|
|
8633
|
+
}),
|
|
8634
|
+
])),
|
|
8315
8635
|
startDate: z.union([z.null(), z.string()]),
|
|
8316
8636
|
steps: z.array(z.strictObject({
|
|
8317
8637
|
answer: z.union([
|
|
@@ -8321,7 +8641,13 @@ const onboarding_journeyOutput = z.union([
|
|
|
8321
8641
|
]),
|
|
8322
8642
|
date: z.string(),
|
|
8323
8643
|
day: z.number(),
|
|
8324
|
-
kind: z.union([
|
|
8644
|
+
kind: z.union([
|
|
8645
|
+
z.literal('check_in'),
|
|
8646
|
+
z.literal('checkpoint'),
|
|
8647
|
+
z.literal('introduction'),
|
|
8648
|
+
z.literal('message'),
|
|
8649
|
+
z.literal('task'),
|
|
8650
|
+
]),
|
|
8325
8651
|
state: z.union([
|
|
8326
8652
|
z.literal('done'),
|
|
8327
8653
|
z.literal('planned'),
|
|
@@ -8329,10 +8655,34 @@ const onboarding_journeyOutput = z.union([
|
|
|
8329
8655
|
]),
|
|
8330
8656
|
status: z.string(),
|
|
8331
8657
|
stepId: z.string(),
|
|
8658
|
+
stepKey: z.union([z.null(), z.string()]),
|
|
8659
|
+
title: z.union([z.null(), z.string()]),
|
|
8332
8660
|
})),
|
|
8333
8661
|
today: z.string(),
|
|
8662
|
+
todos: z.array(z.strictObject({
|
|
8663
|
+
done: z.boolean(),
|
|
8664
|
+
due: z.union([z.null(), z.string()]),
|
|
8665
|
+
id: z.string(),
|
|
8666
|
+
label: z.string(),
|
|
8667
|
+
owner: z.union([
|
|
8668
|
+
z.null(),
|
|
8669
|
+
z.strictObject({ id: z.string(), name: z.string() }),
|
|
8670
|
+
]),
|
|
8671
|
+
})),
|
|
8334
8672
|
}),
|
|
8335
8673
|
]);
|
|
8674
|
+
const onboarding_completeTodoInput = z
|
|
8675
|
+
.strictObject({ done: z.boolean(), todoId: z.string() })
|
|
8676
|
+
.extend({
|
|
8677
|
+
confirm: z.literal('onboarding.completeTodo'),
|
|
8678
|
+
requestKey: z.string().min(1).max(128),
|
|
8679
|
+
});
|
|
8680
|
+
const onboarding_completeTodoOutput = z.object({
|
|
8681
|
+
receipt: commandReceiptSchema,
|
|
8682
|
+
result: z
|
|
8683
|
+
.strictObject({ changed: z.boolean(), done: z.boolean() })
|
|
8684
|
+
.nullable(),
|
|
8685
|
+
});
|
|
8336
8686
|
const onboarding_firstDaysCheckInsInput = z.strictObject({});
|
|
8337
8687
|
const onboarding_firstDaysCheckInsOutput = z.array(z.strictObject({
|
|
8338
8688
|
checkpoint: z.union([
|
|
@@ -8425,7 +8775,6 @@ const onboarding_firstDaysResultsOutput = z.strictObject({
|
|
|
8425
8775
|
sent: z.number(),
|
|
8426
8776
|
})),
|
|
8427
8777
|
floor: z.number(),
|
|
8428
|
-
manager: z.strictObject({ booked: z.number(), sent: z.number() }),
|
|
8429
8778
|
});
|
|
8430
8779
|
const onboarding_answerCheckInInput = z
|
|
8431
8780
|
.strictObject({
|
|
@@ -10163,6 +10512,18 @@ const reports_peopleOutput = z.strictObject({
|
|
|
10163
10512
|
onLeave: z.number(),
|
|
10164
10513
|
withStartDate: z.number(),
|
|
10165
10514
|
}),
|
|
10515
|
+
history: z.strictObject({
|
|
10516
|
+
departments: z.array(z.strictObject({ label: z.string(), value: z.number() })),
|
|
10517
|
+
monthly: z.array(z.strictObject({
|
|
10518
|
+
headcount: z.number(),
|
|
10519
|
+
joined: z.number(),
|
|
10520
|
+
left: z.number(),
|
|
10521
|
+
month: z.string(),
|
|
10522
|
+
})),
|
|
10523
|
+
noDepartment: z.number(),
|
|
10524
|
+
tenure: z.array(z.strictObject({ label: z.string(), value: z.number() })),
|
|
10525
|
+
undated: z.number(),
|
|
10526
|
+
}),
|
|
10166
10527
|
joins: z.strictObject({ current: z.number(), previous: z.number() }),
|
|
10167
10528
|
roles: z.strictObject({
|
|
10168
10529
|
admin: z.number(),
|
|
@@ -12514,7 +12875,12 @@ const praise_insightsOutput = z.strictObject({
|
|
|
12514
12875
|
praise: z.union([z.null(), z.number()]),
|
|
12515
12876
|
recognizedShare: z.union([z.null(), z.number()]),
|
|
12516
12877
|
values: z.array(z.strictObject({ count: z.number(), value: z.string() })),
|
|
12517
|
-
weeks: z.array(z.strictObject({
|
|
12878
|
+
weeks: z.array(z.strictObject({
|
|
12879
|
+
count: z.number(),
|
|
12880
|
+
givers: z.number(),
|
|
12881
|
+
recognized: z.number(),
|
|
12882
|
+
week: z.string(),
|
|
12883
|
+
})),
|
|
12518
12884
|
});
|
|
12519
12885
|
const praise_feedInput = z.strictObject({
|
|
12520
12886
|
before: z.json().optional(),
|
|
@@ -12633,55 +12999,15 @@ const praise_setHiddenOutput = z.object({
|
|
|
12633
12999
|
});
|
|
12634
13000
|
const reminders_settingsInput = z.strictObject({});
|
|
12635
13001
|
const reminders_settingsOutput = z.strictObject({
|
|
12636
|
-
manager_check_in: z.strictObject({
|
|
12637
|
-
available: z.boolean(),
|
|
12638
|
-
choice: z.union([
|
|
12639
|
-
z.literal('before_close'),
|
|
12640
|
-
z.literal('biweekly'),
|
|
12641
|
-
z.literal('every_2_weeks'),
|
|
12642
|
-
z.literal('first_90_days'),
|
|
12643
|
-
z.literal('first_year'),
|
|
12644
|
-
z.literal('monthly'),
|
|
12645
|
-
z.literal('next_day'),
|
|
12646
|
-
z.literal('off'),
|
|
12647
|
-
z.literal('quarterly'),
|
|
12648
|
-
z.literal('weekly'),
|
|
12649
|
-
]),
|
|
12650
|
-
days: z.array(z.number()),
|
|
12651
|
-
optedOut: z.number(),
|
|
12652
|
-
options: z.array(z.string()),
|
|
12653
|
-
}),
|
|
12654
|
-
new_hire_check_in: z.strictObject({
|
|
12655
|
-
available: z.boolean(),
|
|
12656
|
-
choice: z.union([
|
|
12657
|
-
z.literal('before_close'),
|
|
12658
|
-
z.literal('biweekly'),
|
|
12659
|
-
z.literal('every_2_weeks'),
|
|
12660
|
-
z.literal('first_90_days'),
|
|
12661
|
-
z.literal('first_year'),
|
|
12662
|
-
z.literal('monthly'),
|
|
12663
|
-
z.literal('next_day'),
|
|
12664
|
-
z.literal('off'),
|
|
12665
|
-
z.literal('quarterly'),
|
|
12666
|
-
z.literal('weekly'),
|
|
12667
|
-
]),
|
|
12668
|
-
days: z.array(z.number()),
|
|
12669
|
-
optedOut: z.number(),
|
|
12670
|
-
options: z.array(z.string()),
|
|
12671
|
-
}),
|
|
12672
13002
|
praise: z.strictObject({
|
|
12673
13003
|
available: z.boolean(),
|
|
12674
13004
|
choice: z.union([
|
|
12675
13005
|
z.literal('before_close'),
|
|
12676
|
-
z.literal('biweekly'),
|
|
12677
13006
|
z.literal('every_2_weeks'),
|
|
12678
|
-
z.literal('first_90_days'),
|
|
12679
|
-
z.literal('first_year'),
|
|
12680
13007
|
z.literal('monthly'),
|
|
12681
13008
|
z.literal('next_day'),
|
|
12682
13009
|
z.literal('off'),
|
|
12683
13010
|
z.literal('quarterly'),
|
|
12684
|
-
z.literal('weekly'),
|
|
12685
13011
|
]),
|
|
12686
13012
|
days: z.array(z.number()),
|
|
12687
13013
|
optedOut: z.number(),
|
|
@@ -12691,15 +13017,11 @@ const reminders_settingsOutput = z.strictObject({
|
|
|
12691
13017
|
available: z.boolean(),
|
|
12692
13018
|
choice: z.union([
|
|
12693
13019
|
z.literal('before_close'),
|
|
12694
|
-
z.literal('biweekly'),
|
|
12695
13020
|
z.literal('every_2_weeks'),
|
|
12696
|
-
z.literal('first_90_days'),
|
|
12697
|
-
z.literal('first_year'),
|
|
12698
13021
|
z.literal('monthly'),
|
|
12699
13022
|
z.literal('next_day'),
|
|
12700
13023
|
z.literal('off'),
|
|
12701
13024
|
z.literal('quarterly'),
|
|
12702
|
-
z.literal('weekly'),
|
|
12703
13025
|
]),
|
|
12704
13026
|
days: z.array(z.number()),
|
|
12705
13027
|
optedOut: z.number(),
|
|
@@ -12710,12 +13032,7 @@ const reminders_saveSettingInput = z
|
|
|
12710
13032
|
.strictObject({
|
|
12711
13033
|
choice: z.string(),
|
|
12712
13034
|
days: z.array(z.number()).optional().optional(),
|
|
12713
|
-
kind: z.union([
|
|
12714
|
-
z.literal('manager_check_in'),
|
|
12715
|
-
z.literal('new_hire_check_in'),
|
|
12716
|
-
z.literal('praise'),
|
|
12717
|
-
z.literal('pulse'),
|
|
12718
|
-
]),
|
|
13035
|
+
kind: z.union([z.literal('praise'), z.literal('pulse')]),
|
|
12719
13036
|
})
|
|
12720
13037
|
.extend({
|
|
12721
13038
|
confirm: z.literal('reminders.saveSetting'),
|
|
@@ -12728,23 +13045,14 @@ const reminders_saveSettingOutput = z.object({
|
|
|
12728
13045
|
changed: z.boolean(),
|
|
12729
13046
|
choice: z.union([
|
|
12730
13047
|
z.literal('before_close'),
|
|
12731
|
-
z.literal('biweekly'),
|
|
12732
13048
|
z.literal('every_2_weeks'),
|
|
12733
|
-
z.literal('first_90_days'),
|
|
12734
|
-
z.literal('first_year'),
|
|
12735
13049
|
z.literal('monthly'),
|
|
12736
13050
|
z.literal('next_day'),
|
|
12737
13051
|
z.literal('off'),
|
|
12738
13052
|
z.literal('quarterly'),
|
|
12739
|
-
z.literal('weekly'),
|
|
12740
13053
|
]),
|
|
12741
13054
|
days: z.array(z.number()),
|
|
12742
|
-
kind: z.union([
|
|
12743
|
-
z.literal('manager_check_in'),
|
|
12744
|
-
z.literal('new_hire_check_in'),
|
|
12745
|
-
z.literal('praise'),
|
|
12746
|
-
z.literal('pulse'),
|
|
12747
|
-
]),
|
|
13055
|
+
kind: z.union([z.literal('praise'), z.literal('pulse')]),
|
|
12748
13056
|
})
|
|
12749
13057
|
.nullable(),
|
|
12750
13058
|
});
|
|
@@ -12753,57 +13061,36 @@ const reminders_mineOutput = z.strictObject({
|
|
|
12753
13061
|
kinds: z.array(z.strictObject({
|
|
12754
13062
|
choice: z.union([
|
|
12755
13063
|
z.literal('before_close'),
|
|
12756
|
-
z.literal('biweekly'),
|
|
12757
13064
|
z.literal('default'),
|
|
12758
13065
|
z.literal('every_2_weeks'),
|
|
12759
|
-
z.literal('first_90_days'),
|
|
12760
|
-
z.literal('first_year'),
|
|
12761
13066
|
z.literal('monthly'),
|
|
12762
13067
|
z.literal('next_day'),
|
|
12763
13068
|
z.literal('off'),
|
|
12764
13069
|
z.literal('quarterly'),
|
|
12765
|
-
z.literal('weekly'),
|
|
12766
13070
|
]),
|
|
12767
13071
|
effective: z.union([
|
|
12768
13072
|
z.literal('before_close'),
|
|
12769
|
-
z.literal('biweekly'),
|
|
12770
13073
|
z.literal('every_2_weeks'),
|
|
12771
|
-
z.literal('first_90_days'),
|
|
12772
|
-
z.literal('first_year'),
|
|
12773
13074
|
z.literal('monthly'),
|
|
12774
13075
|
z.literal('next_day'),
|
|
12775
13076
|
z.literal('off'),
|
|
12776
13077
|
z.literal('quarterly'),
|
|
12777
|
-
z.literal('weekly'),
|
|
12778
|
-
]),
|
|
12779
|
-
kind: z.union([
|
|
12780
|
-
z.literal('manager_check_in'),
|
|
12781
|
-
z.literal('new_hire_check_in'),
|
|
12782
|
-
z.literal('praise'),
|
|
12783
|
-
z.literal('pulse'),
|
|
12784
13078
|
]),
|
|
13079
|
+
kind: z.union([z.literal('praise'), z.literal('pulse')]),
|
|
12785
13080
|
options: z.array(z.union([
|
|
12786
13081
|
z.literal('before_close'),
|
|
12787
|
-
z.literal('biweekly'),
|
|
12788
13082
|
z.literal('every_2_weeks'),
|
|
12789
|
-
z.literal('first_90_days'),
|
|
12790
|
-
z.literal('first_year'),
|
|
12791
13083
|
z.literal('monthly'),
|
|
12792
13084
|
z.literal('next_day'),
|
|
12793
13085
|
z.literal('quarterly'),
|
|
12794
|
-
z.literal('weekly'),
|
|
12795
13086
|
])),
|
|
12796
13087
|
team: z.union([
|
|
12797
13088
|
z.literal('before_close'),
|
|
12798
|
-
z.literal('biweekly'),
|
|
12799
13089
|
z.literal('every_2_weeks'),
|
|
12800
|
-
z.literal('first_90_days'),
|
|
12801
|
-
z.literal('first_year'),
|
|
12802
13090
|
z.literal('monthly'),
|
|
12803
13091
|
z.literal('next_day'),
|
|
12804
13092
|
z.literal('off'),
|
|
12805
13093
|
z.literal('quarterly'),
|
|
12806
|
-
z.literal('weekly'),
|
|
12807
13094
|
]),
|
|
12808
13095
|
})),
|
|
12809
13096
|
linked: z.boolean(),
|
|
@@ -12811,12 +13098,7 @@ const reminders_mineOutput = z.strictObject({
|
|
|
12811
13098
|
const reminders_saveMineInput = z
|
|
12812
13099
|
.strictObject({
|
|
12813
13100
|
choice: z.string(),
|
|
12814
|
-
kind: z.union([
|
|
12815
|
-
z.literal('manager_check_in'),
|
|
12816
|
-
z.literal('new_hire_check_in'),
|
|
12817
|
-
z.literal('praise'),
|
|
12818
|
-
z.literal('pulse'),
|
|
12819
|
-
]),
|
|
13101
|
+
kind: z.union([z.literal('praise'), z.literal('pulse')]),
|
|
12820
13102
|
})
|
|
12821
13103
|
.extend({
|
|
12822
13104
|
confirm: z.literal('reminders.saveMine'),
|
|
@@ -12830,57 +13112,36 @@ const reminders_saveMineOutput = z.object({
|
|
|
12830
13112
|
kinds: z.array(z.strictObject({
|
|
12831
13113
|
choice: z.union([
|
|
12832
13114
|
z.literal('before_close'),
|
|
12833
|
-
z.literal('biweekly'),
|
|
12834
13115
|
z.literal('default'),
|
|
12835
13116
|
z.literal('every_2_weeks'),
|
|
12836
|
-
z.literal('first_90_days'),
|
|
12837
|
-
z.literal('first_year'),
|
|
12838
13117
|
z.literal('monthly'),
|
|
12839
13118
|
z.literal('next_day'),
|
|
12840
13119
|
z.literal('off'),
|
|
12841
13120
|
z.literal('quarterly'),
|
|
12842
|
-
z.literal('weekly'),
|
|
12843
13121
|
]),
|
|
12844
13122
|
effective: z.union([
|
|
12845
13123
|
z.literal('before_close'),
|
|
12846
|
-
z.literal('biweekly'),
|
|
12847
13124
|
z.literal('every_2_weeks'),
|
|
12848
|
-
z.literal('first_90_days'),
|
|
12849
|
-
z.literal('first_year'),
|
|
12850
13125
|
z.literal('monthly'),
|
|
12851
13126
|
z.literal('next_day'),
|
|
12852
13127
|
z.literal('off'),
|
|
12853
13128
|
z.literal('quarterly'),
|
|
12854
|
-
z.literal('weekly'),
|
|
12855
|
-
]),
|
|
12856
|
-
kind: z.union([
|
|
12857
|
-
z.literal('manager_check_in'),
|
|
12858
|
-
z.literal('new_hire_check_in'),
|
|
12859
|
-
z.literal('praise'),
|
|
12860
|
-
z.literal('pulse'),
|
|
12861
13129
|
]),
|
|
13130
|
+
kind: z.union([z.literal('praise'), z.literal('pulse')]),
|
|
12862
13131
|
options: z.array(z.union([
|
|
12863
13132
|
z.literal('before_close'),
|
|
12864
|
-
z.literal('biweekly'),
|
|
12865
13133
|
z.literal('every_2_weeks'),
|
|
12866
|
-
z.literal('first_90_days'),
|
|
12867
|
-
z.literal('first_year'),
|
|
12868
13134
|
z.literal('monthly'),
|
|
12869
13135
|
z.literal('next_day'),
|
|
12870
13136
|
z.literal('quarterly'),
|
|
12871
|
-
z.literal('weekly'),
|
|
12872
13137
|
])),
|
|
12873
13138
|
team: z.union([
|
|
12874
13139
|
z.literal('before_close'),
|
|
12875
|
-
z.literal('biweekly'),
|
|
12876
13140
|
z.literal('every_2_weeks'),
|
|
12877
|
-
z.literal('first_90_days'),
|
|
12878
|
-
z.literal('first_year'),
|
|
12879
13141
|
z.literal('monthly'),
|
|
12880
13142
|
z.literal('next_day'),
|
|
12881
13143
|
z.literal('off'),
|
|
12882
13144
|
z.literal('quarterly'),
|
|
12883
|
-
z.literal('weekly'),
|
|
12884
13145
|
]),
|
|
12885
13146
|
})),
|
|
12886
13147
|
linked: z.boolean(),
|
|
@@ -14336,6 +14597,15 @@ export const managementContract = {
|
|
|
14336
14597
|
})
|
|
14337
14598
|
.input(onboarding_candidatesInput)
|
|
14338
14599
|
.output(onboarding_candidatesOutput),
|
|
14600
|
+
completeTodo: base
|
|
14601
|
+
.meta({ scope: 'self:write' })
|
|
14602
|
+
.route({
|
|
14603
|
+
method: 'POST',
|
|
14604
|
+
path: '/manage/onboarding/completeTodo',
|
|
14605
|
+
summary: 'Check off (or reopen) one of your own onboarding to-dos',
|
|
14606
|
+
})
|
|
14607
|
+
.input(onboarding_completeTodoInput)
|
|
14608
|
+
.output(onboarding_completeTodoOutput),
|
|
14339
14609
|
enroll: base
|
|
14340
14610
|
.meta({ scope: 'onboarding:write' })
|
|
14341
14611
|
.route({
|
|
@@ -14377,7 +14647,7 @@ export const managementContract = {
|
|
|
14377
14647
|
.route({
|
|
14378
14648
|
method: 'POST',
|
|
14379
14649
|
path: '/manage/onboarding/journey',
|
|
14380
|
-
summary: 'Your onboarding timeline: start date, buddy, manager
|
|
14650
|
+
summary: 'Your onboarding timeline: start date, buddy, manager, upcoming check-ins, your to-dos and resources',
|
|
14381
14651
|
})
|
|
14382
14652
|
.input(onboarding_journeyInput)
|
|
14383
14653
|
.output(onboarding_journeyOutput),
|