@dsptch-work/api-client 0.16.0 → 0.17.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/CHANGELOG.md +43 -0
- package/dist/gen/index.d.ts +2 -2
- package/dist/gen/index.js +1 -1
- package/dist/gen/sdk.gen.d.ts +26 -1
- package/dist/gen/sdk.gen.js +31 -0
- package/dist/gen/types.gen.d.ts +248 -25
- package/dist/gen/zod.gen.d.ts +530 -74
- package/dist/gen/zod.gen.js +203 -14
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -370,7 +370,7 @@ export type DirectUploadParameters = {
|
|
|
370
370
|
/**
|
|
371
371
|
* What the file is for, named as the endpoint that will attach it (for example `assets.vendors`). Required. It decides where the file is stored, and the signed ID this call returns is issued for that resource alone — it will not resolve at any other endpoint, so a vendor logo cannot be attached as an avatar, or an avatar as a logo.
|
|
372
372
|
*/
|
|
373
|
-
resource: 'assets.items' | 'assets.items.documents' | 'assets.items.service_events' | 'assets.products' | 'assets.vendors' | 'pay_periods.imports.aggregate_times' | 'pay_periods.imports.dsptch_cprs' | 'pay_periods.imports.time_entries' | 'payrolls.payroll_runs.imports.paystubs' | 'users';
|
|
373
|
+
resource: 'assets.items' | 'assets.items.documents' | 'assets.items.service_events' | 'assets.products' | 'assets.vendors' | 'compliance.checks' | 'pay_periods.imports.aggregate_times' | 'pay_periods.imports.dsptch_cprs' | 'pay_periods.imports.time_entries' | 'payrolls.payroll_runs.imports.paystubs' | 'users';
|
|
374
374
|
/**
|
|
375
375
|
* Metadata describing the file being registered, before its bytes are uploaded.
|
|
376
376
|
*/
|
|
@@ -875,7 +875,7 @@ export type ApprenticeshipOccupationParameters = {
|
|
|
875
875
|
*/
|
|
876
876
|
export type ApprenticeshipProgramEmployerParameters = {
|
|
877
877
|
/**
|
|
878
|
-
* ID of the company to authorize as an employer in this program;
|
|
878
|
+
* ID of the company to authorize as an employer in this program; it need not be related to the sponsor, since a group program names unaffiliated contractors. Naming a company here grants its admins and managers read access to this program, the right to enroll their own workers in it, the right to curate its trade-to-occupation scope decisions, and a passing apprenticeship-program compliance check; it grants no access to that company's own data. Cannot be changed once the employer has apprentices. Required.
|
|
879
879
|
*/
|
|
880
880
|
company_id: string;
|
|
881
881
|
/**
|
|
@@ -3096,7 +3096,7 @@ export type GroupParameters = {
|
|
|
3096
3096
|
name: string;
|
|
3097
3097
|
};
|
|
3098
3098
|
/**
|
|
3099
|
-
* A worker as your company sees them: the cross-company person merged with their employment record at your company (title, pay, benefits, and accruals), their roles at your company, and optional prevailing-wage compliance details. There is no delete — removing a worker terminates their employment at the company (see the user-company endpoints), which sets termination_date and drops them from the default list.
|
|
3099
|
+
* A worker as your company sees them: the cross-company person merged with their employment record at your company (title, pay, benefits, and accruals), their roles at your company, and optional prevailing-wage compliance details. Your company sees everyone it employs, everyone it has granted a role, and everyone it has invited, which is the same set the web app shows. A role holder or an invitee your company does not employ has no employment record to merge, so the employment fields (employment_id through employment_window, plus manager_user_id) are null for them, no employment custom fields are published for them, and employment_state reads none. There is no delete — removing a worker terminates their employment at the company (see the user-company endpoints), which sets termination_date and drops them from the default list.
|
|
3100
3100
|
*/
|
|
3101
3101
|
export type UserResponseObject = {
|
|
3102
3102
|
/**
|
|
@@ -3171,10 +3171,14 @@ export type UserResponseObject = {
|
|
|
3171
3171
|
* URL of the worker's LinkedIn profile. Null when unset.
|
|
3172
3172
|
*/
|
|
3173
3173
|
linkedin_url: string | null;
|
|
3174
|
+
/**
|
|
3175
|
+
* Where the worker stands with your company right now, read against the employment published here: active (an employment in effect now), scheduled (an employment that has not begun), terminated (an employment that has ended, with nothing current and nothing upcoming), or none (someone your company sees without employing — a role holder or an invitee, told apart by the roles array). It is computed at read time rather than stored, so a scheduled hire turns active on its start date with no write. The same four words are filter[state] values on the list endpoint, which also accepts all.
|
|
3176
|
+
*/
|
|
3177
|
+
employment_state: 'active' | 'scheduled' | 'terminated' | 'none';
|
|
3174
3178
|
/**
|
|
3175
3179
|
* Identity of the worker's employment at your company, stable across employment versions — a title change or a raise versions the employment without changing this id. It names the employment that this object's employment fields (type through employment_window, plus manager_user_id and any employment custom fields) describe: a worker rehired after an earlier stint holds a second employment with its own id, and exactly one of them is published here.
|
|
3176
3180
|
*/
|
|
3177
|
-
employment_id: string;
|
|
3181
|
+
employment_id: string | null;
|
|
3178
3182
|
type: UserCompanyType;
|
|
3179
3183
|
/**
|
|
3180
3184
|
* Job title at your company. Null when unset.
|
|
@@ -3183,11 +3187,11 @@ export type UserResponseObject = {
|
|
|
3183
3187
|
/**
|
|
3184
3188
|
* Whether the worker is eligible for overtime pay (a prerequisite for assigning an overtime package).
|
|
3185
3189
|
*/
|
|
3186
|
-
overtime_eligible: boolean;
|
|
3190
|
+
overtime_eligible: boolean | null;
|
|
3187
3191
|
/**
|
|
3188
3192
|
* Whether the worker is enrolled in Time and Attendance and participates in time tracking.
|
|
3189
3193
|
*/
|
|
3190
|
-
enrolled_in_t_and_a: boolean;
|
|
3194
|
+
enrolled_in_t_and_a: boolean | null;
|
|
3191
3195
|
/**
|
|
3192
3196
|
* The worker's identifier in your payroll system of record. Null when unset.
|
|
3193
3197
|
*/
|
|
@@ -3195,7 +3199,7 @@ export type UserResponseObject = {
|
|
|
3195
3199
|
/**
|
|
3196
3200
|
* How the worker is paid: hourly or salary.
|
|
3197
3201
|
*/
|
|
3198
|
-
compensation_type: string;
|
|
3202
|
+
compensation_type: string | null;
|
|
3199
3203
|
/**
|
|
3200
3204
|
* Base pay rate, formatted as a currency string in the company's currency. Null when unset.
|
|
3201
3205
|
*/
|
|
@@ -3248,7 +3252,7 @@ export type UserResponseObject = {
|
|
|
3248
3252
|
* When this version of the employment stopped applying (ISO 8601); null while it is still in effect. A value in the past means an ended version is being served because the worker has nothing current or scheduled.
|
|
3249
3253
|
*/
|
|
3250
3254
|
valid_to: string | null;
|
|
3251
|
-
};
|
|
3255
|
+
} | null;
|
|
3252
3256
|
/**
|
|
3253
3257
|
* Id of the worker's manager at your company (another user). Null when none.
|
|
3254
3258
|
*/
|
|
@@ -6172,6 +6176,103 @@ export type ComplianceCheckResponseObject = {
|
|
|
6172
6176
|
* ID of the employment (user-company) this check applies to, stable across all of its versions; set only when type is "Compliances::UserCompanyCheck", else null.
|
|
6173
6177
|
*/
|
|
6174
6178
|
employment_id: string | null;
|
|
6179
|
+
/**
|
|
6180
|
+
* IDs of the people assigned to the check; empty when nobody is assigned.
|
|
6181
|
+
*/
|
|
6182
|
+
assignee_user_ids: Array<string>;
|
|
6183
|
+
/**
|
|
6184
|
+
* From the check's requirement.
|
|
6185
|
+
*/
|
|
6186
|
+
title: string;
|
|
6187
|
+
/**
|
|
6188
|
+
* From the check's requirement.
|
|
6189
|
+
*/
|
|
6190
|
+
description: string;
|
|
6191
|
+
/**
|
|
6192
|
+
* Category of the requirement: one of apprenticeship, certified_payroll, company, job, payroll, project, regional, tax_credit, timekeeping, or worker.
|
|
6193
|
+
*/
|
|
6194
|
+
category: 'apprenticeship' | 'certified_payroll' | 'company' | 'job' | 'payroll' | 'project' | 'regional' | 'tax_credit' | 'timekeeping' | 'worker';
|
|
6195
|
+
/**
|
|
6196
|
+
* Point in the compliance lifecycle when the requirement applies: one of onboarding, setup, maintenance, before_approval_deadline, after_pay_date, or close_out.
|
|
6197
|
+
*/
|
|
6198
|
+
phase: 'after_pay_date' | 'before_approval_deadline' | 'close_out' | 'maintenance' | 'onboarding' | 'setup';
|
|
6199
|
+
/**
|
|
6200
|
+
* Urgency of the requirement: one of critical, high, medium, or low; null when the requirement sets no priority.
|
|
6201
|
+
*/
|
|
6202
|
+
priority: 'critical' | 'high' | 'medium' | 'low' | null;
|
|
6203
|
+
/**
|
|
6204
|
+
* When the check was last evaluated (ISO 8601); null when never evaluated.
|
|
6205
|
+
*/
|
|
6206
|
+
checked_at: string | null;
|
|
6207
|
+
/**
|
|
6208
|
+
* When the check most recently passed (ISO 8601); null while not passed.
|
|
6209
|
+
*/
|
|
6210
|
+
passed_at: string | null;
|
|
6211
|
+
/**
|
|
6212
|
+
* When the check is due (ISO 8601); null when no due date is set.
|
|
6213
|
+
*/
|
|
6214
|
+
time_due: string | null;
|
|
6215
|
+
/**
|
|
6216
|
+
* When the record was created (ISO 8601).
|
|
6217
|
+
*/
|
|
6218
|
+
created_at: string;
|
|
6219
|
+
/**
|
|
6220
|
+
* When the record was last updated (ISO 8601).
|
|
6221
|
+
*/
|
|
6222
|
+
updated_at: string;
|
|
6223
|
+
};
|
|
6224
|
+
/**
|
|
6225
|
+
* A single compliance check, with the documents attached to it. Same fields as compliance_check_response_object plus `documents`.
|
|
6226
|
+
*/
|
|
6227
|
+
export type ComplianceCheckDetailResponseObject = {
|
|
6228
|
+
/**
|
|
6229
|
+
* Unique identifier.
|
|
6230
|
+
*/
|
|
6231
|
+
id: string;
|
|
6232
|
+
/**
|
|
6233
|
+
* The kind of entity this check is evaluated against; exactly one of the corresponding `*_id` fields is set.
|
|
6234
|
+
*/
|
|
6235
|
+
type: 'Compliances::CompanyCheck' | 'Compliances::JobCheck' | 'Compliances::ProjectCheck' | 'Compliances::TimeCardCheck' | 'Compliances::PayPeriodCheck' | 'Compliances::UserCheck' | 'Compliances::UserCompanyCheck';
|
|
6236
|
+
/**
|
|
6237
|
+
* Lifecycle status of the check: one of passed, failed, not_applicable, dismissed, or pending; only dismissed and pending are client-settable (see compliance_check_parameters).
|
|
6238
|
+
*/
|
|
6239
|
+
status: 'passed' | 'failed' | 'not_applicable' | 'dismissed' | 'pending';
|
|
6240
|
+
/**
|
|
6241
|
+
* ID of the requirement this check evaluates.
|
|
6242
|
+
*/
|
|
6243
|
+
compliances_requirement_id: string;
|
|
6244
|
+
/**
|
|
6245
|
+
* ID of the company this check applies to; set only when type is "Compliances::CompanyCheck", else null.
|
|
6246
|
+
*/
|
|
6247
|
+
company_id: string | null;
|
|
6248
|
+
/**
|
|
6249
|
+
* ID of the job this check applies to; set only when type is "Compliances::JobCheck", else null.
|
|
6250
|
+
*/
|
|
6251
|
+
job_id: string | null;
|
|
6252
|
+
/**
|
|
6253
|
+
* ID of the project this check applies to; set only when type is "Compliances::ProjectCheck", else null.
|
|
6254
|
+
*/
|
|
6255
|
+
project_id: string | null;
|
|
6256
|
+
/**
|
|
6257
|
+
* ID of the time card this check applies to; set only when type is "Compliances::TimeCardCheck", else null.
|
|
6258
|
+
*/
|
|
6259
|
+
timekeeping_time_card_id: string | null;
|
|
6260
|
+
/**
|
|
6261
|
+
* ID of the pay period this check applies to; set only when type is "Compliances::PayPeriodCheck", else null.
|
|
6262
|
+
*/
|
|
6263
|
+
timekeeping_pay_period_id: string | null;
|
|
6264
|
+
/**
|
|
6265
|
+
* ID of the worker this check applies to; set only when type is "Compliances::UserCheck", else null.
|
|
6266
|
+
*/
|
|
6267
|
+
user_id: string | null;
|
|
6268
|
+
/**
|
|
6269
|
+
* ID of the employment (user-company) this check applies to, stable across all of its versions; set only when type is "Compliances::UserCompanyCheck", else null.
|
|
6270
|
+
*/
|
|
6271
|
+
employment_id: string | null;
|
|
6272
|
+
/**
|
|
6273
|
+
* IDs of the people assigned to the check; empty when nobody is assigned.
|
|
6274
|
+
*/
|
|
6275
|
+
assignee_user_ids: Array<string>;
|
|
6175
6276
|
/**
|
|
6176
6277
|
* From the check's requirement.
|
|
6177
6278
|
*/
|
|
@@ -6212,9 +6313,46 @@ export type ComplianceCheckResponseObject = {
|
|
|
6212
6313
|
* When the record was last updated (ISO 8601).
|
|
6213
6314
|
*/
|
|
6214
6315
|
updated_at: string;
|
|
6316
|
+
/**
|
|
6317
|
+
* Documents attached to the check; always empty when its requirement does not ask for one.
|
|
6318
|
+
*/
|
|
6319
|
+
documents: Array<ComplianceCheckDocumentObject>;
|
|
6320
|
+
};
|
|
6321
|
+
/**
|
|
6322
|
+
* A document attached to a compliance check.
|
|
6323
|
+
*/
|
|
6324
|
+
export type ComplianceCheckDocumentObject = {
|
|
6325
|
+
/**
|
|
6326
|
+
* ID of the document.
|
|
6327
|
+
*/
|
|
6328
|
+
id: string;
|
|
6329
|
+
/**
|
|
6330
|
+
* Name of the uploaded file.
|
|
6331
|
+
*/
|
|
6332
|
+
filename: string;
|
|
6333
|
+
/**
|
|
6334
|
+
* MIME type of the uploaded file; null when the upload did not declare one.
|
|
6335
|
+
*/
|
|
6336
|
+
content_type: string | null;
|
|
6337
|
+
/**
|
|
6338
|
+
* Size of the uploaded file in bytes.
|
|
6339
|
+
*/
|
|
6340
|
+
byte_size: number;
|
|
6341
|
+
/**
|
|
6342
|
+
* Time-limited download URL for the file.
|
|
6343
|
+
*/
|
|
6344
|
+
url: string;
|
|
6345
|
+
/**
|
|
6346
|
+
* ID of the person who uploaded the document.
|
|
6347
|
+
*/
|
|
6348
|
+
created_by_user_id: string;
|
|
6349
|
+
/**
|
|
6350
|
+
* When the document was uploaded (ISO 8601).
|
|
6351
|
+
*/
|
|
6352
|
+
created_at: string;
|
|
6215
6353
|
};
|
|
6216
6354
|
/**
|
|
6217
|
-
* Update a compliance check.
|
|
6355
|
+
* Update a compliance check. Every field is optional.
|
|
6218
6356
|
*/
|
|
6219
6357
|
export type ComplianceCheckParameters = {
|
|
6220
6358
|
/**
|
|
@@ -6225,6 +6363,70 @@ export type ComplianceCheckParameters = {
|
|
|
6225
6363
|
* When the check is due (ISO 8601); send null to clear it, or omit to leave it unchanged.
|
|
6226
6364
|
*/
|
|
6227
6365
|
time_due?: string | null;
|
|
6366
|
+
/**
|
|
6367
|
+
* Replaces the check's assignees: send every user id that should be assigned, or an empty array to clear them. Every id must belong to a person in your company. Omit to leave the assignees unchanged.
|
|
6368
|
+
*/
|
|
6369
|
+
assignee_user_ids?: Array<string>;
|
|
6370
|
+
/**
|
|
6371
|
+
* Adds a document to the check. Upload the file to /api/v1/direct_uploads naming the `compliance.checks` resource, then send the signed id it returns. Requires a user-scoped API key, because the document records who uploaded it; a company-scoped key is refused. The check re-evaluates unless this same request also sets `status`. Refused when the check's requirement does not ask for a document.
|
|
6372
|
+
*/
|
|
6373
|
+
file_signed_id?: string;
|
|
6374
|
+
};
|
|
6375
|
+
export type RichTextObject = {
|
|
6376
|
+
text: string;
|
|
6377
|
+
attachments: Array<{
|
|
6378
|
+
filename: string;
|
|
6379
|
+
content_type?: string | null;
|
|
6380
|
+
byte_size: number;
|
|
6381
|
+
url: string;
|
|
6382
|
+
}>;
|
|
6383
|
+
};
|
|
6384
|
+
export type TodoInboxEntryResponseObject = ({
|
|
6385
|
+
kind: 'todo';
|
|
6386
|
+
} & TodoInboxTodoResponseObject) | ({
|
|
6387
|
+
kind: 'compliance_check';
|
|
6388
|
+
} & TodoInboxComplianceCheckResponseObject);
|
|
6389
|
+
export type TodoInboxTodoResponseObject = {
|
|
6390
|
+
kind: 'todo';
|
|
6391
|
+
id: string;
|
|
6392
|
+
type: 'company' | 'job' | 'project';
|
|
6393
|
+
company_id: string | null;
|
|
6394
|
+
job_id: string | null;
|
|
6395
|
+
project_id: string | null;
|
|
6396
|
+
name: string;
|
|
6397
|
+
created_by_user_id: string;
|
|
6398
|
+
updated_by_user_id: string;
|
|
6399
|
+
completed: boolean;
|
|
6400
|
+
task_assignee_user_ids: Array<string>;
|
|
6401
|
+
description: RichTextObject;
|
|
6402
|
+
time_due: string | null;
|
|
6403
|
+
created_at: string;
|
|
6404
|
+
updated_at: string;
|
|
6405
|
+
};
|
|
6406
|
+
export type TodoInboxComplianceCheckResponseObject = {
|
|
6407
|
+
kind: 'compliance_check';
|
|
6408
|
+
id: string;
|
|
6409
|
+
type: 'Compliances::CompanyCheck' | 'Compliances::JobCheck' | 'Compliances::ProjectCheck' | 'Compliances::TimeCardCheck' | 'Compliances::PayPeriodCheck' | 'Compliances::UserCheck' | 'Compliances::UserCompanyCheck';
|
|
6410
|
+
status: 'passed' | 'failed' | 'not_applicable' | 'dismissed' | 'pending';
|
|
6411
|
+
compliances_requirement_id: string;
|
|
6412
|
+
company_id: string | null;
|
|
6413
|
+
job_id: string | null;
|
|
6414
|
+
project_id: string | null;
|
|
6415
|
+
timekeeping_time_card_id: string | null;
|
|
6416
|
+
timekeeping_pay_period_id: string | null;
|
|
6417
|
+
user_id: string | null;
|
|
6418
|
+
employment_id: string | null;
|
|
6419
|
+
assignee_user_ids: Array<string>;
|
|
6420
|
+
title: string;
|
|
6421
|
+
description: string;
|
|
6422
|
+
category: 'apprenticeship' | 'certified_payroll' | 'company' | 'job' | 'payroll' | 'project' | 'regional' | 'tax_credit' | 'timekeeping' | 'worker';
|
|
6423
|
+
phase: 'after_pay_date' | 'before_approval_deadline' | 'close_out' | 'maintenance' | 'onboarding' | 'setup';
|
|
6424
|
+
priority: 'critical' | 'high' | 'medium' | 'low' | null;
|
|
6425
|
+
checked_at: string | null;
|
|
6426
|
+
passed_at: string | null;
|
|
6427
|
+
time_due: string | null;
|
|
6428
|
+
created_at: string;
|
|
6429
|
+
updated_at: string;
|
|
6228
6430
|
};
|
|
6229
6431
|
/**
|
|
6230
6432
|
* One compliance requirement from the catalog. Requirements ship with the application, so the catalog reads the same for every company.
|
|
@@ -7007,18 +7209,9 @@ export type PositionParameters = {
|
|
|
7007
7209
|
*/
|
|
7008
7210
|
wage_adder_rate_cents?: number | null;
|
|
7009
7211
|
/**
|
|
7010
|
-
*
|
|
7212
|
+
* The complete desired set of job wage determination IDs. On PATCH, this replaces the current set; omit the field to leave assignments unchanged. Required federal and regional assignments cannot be removed from a PWA position.
|
|
7011
7213
|
*/
|
|
7012
|
-
|
|
7013
|
-
/**
|
|
7014
|
-
* Unique identifier.
|
|
7015
|
-
*/
|
|
7016
|
-
id?: number | null;
|
|
7017
|
-
/**
|
|
7018
|
-
* ID of the job wage determination to attach.
|
|
7019
|
-
*/
|
|
7020
|
-
job_wage_determination_id?: string | null;
|
|
7021
|
-
}>;
|
|
7214
|
+
job_wage_determination_ids?: Array<string>;
|
|
7022
7215
|
/**
|
|
7023
7216
|
* PWA classification detail to set; skill_level sets the apprenticeship or skill classification.
|
|
7024
7217
|
*/
|
|
@@ -7609,7 +7802,7 @@ export type PositionFunction = {
|
|
|
7609
7802
|
*/
|
|
7610
7803
|
export type UserRoleRequest = {
|
|
7611
7804
|
/**
|
|
7612
|
-
* ID of the user to grant the role to.
|
|
7805
|
+
* ID of the user to grant the role to. Must be someone your company can already see — a worker it employs, a holder of one of its roles, or someone it has invited.
|
|
7613
7806
|
*/
|
|
7614
7807
|
user_id?: string;
|
|
7615
7808
|
/**
|
|
@@ -14153,6 +14346,10 @@ export type ListChecksData = {
|
|
|
14153
14346
|
'filter[job_id][null]'?: boolean;
|
|
14154
14347
|
'filter[project_id]'?: string;
|
|
14155
14348
|
'filter[compliances_requirement_id]'?: string;
|
|
14349
|
+
/**
|
|
14350
|
+
* Only checks the given person is assigned to.
|
|
14351
|
+
*/
|
|
14352
|
+
'filter[assignee_user_id]'?: string;
|
|
14156
14353
|
'filter[time_due][gte]'?: string;
|
|
14157
14354
|
'filter[time_due][lte]'?: string;
|
|
14158
14355
|
filter?: string;
|
|
@@ -14219,7 +14416,7 @@ export type GetCheckResponses = {
|
|
|
14219
14416
|
/**
|
|
14220
14417
|
* Success
|
|
14221
14418
|
*/
|
|
14222
|
-
200:
|
|
14419
|
+
200: ComplianceCheckDetailResponseObject;
|
|
14223
14420
|
};
|
|
14224
14421
|
export type GetCheckResponse = GetCheckResponses[keyof GetCheckResponses];
|
|
14225
14422
|
export type UpdateCheckData = {
|
|
@@ -14249,7 +14446,7 @@ export type UpdateCheckResponses = {
|
|
|
14249
14446
|
/**
|
|
14250
14447
|
* Success
|
|
14251
14448
|
*/
|
|
14252
|
-
200:
|
|
14449
|
+
200: ComplianceCheckDetailResponseObject;
|
|
14253
14450
|
};
|
|
14254
14451
|
export type UpdateCheckResponse = UpdateCheckResponses[keyof UpdateCheckResponses];
|
|
14255
14452
|
export type ListRequirementsData = {
|
|
@@ -19211,6 +19408,10 @@ export type UpdatePositionErrors = {
|
|
|
19211
19408
|
* Not Found
|
|
19212
19409
|
*/
|
|
19213
19410
|
404: Problem;
|
|
19411
|
+
/**
|
|
19412
|
+
* Unprocessable Content
|
|
19413
|
+
*/
|
|
19414
|
+
422: Problem;
|
|
19214
19415
|
};
|
|
19215
19416
|
export type UpdatePositionError = UpdatePositionErrors[keyof UpdatePositionErrors];
|
|
19216
19417
|
export type UpdatePositionResponses = {
|
|
@@ -21075,6 +21276,28 @@ export type GetTimeCardActualResponses = {
|
|
|
21075
21276
|
200: TimeCardActualsResponseObject;
|
|
21076
21277
|
};
|
|
21077
21278
|
export type GetTimeCardActualResponse = GetTimeCardActualResponses[keyof GetTimeCardActualResponses];
|
|
21279
|
+
export type ListTodoInboxData = {
|
|
21280
|
+
body?: never;
|
|
21281
|
+
path?: never;
|
|
21282
|
+
query?: never;
|
|
21283
|
+
url: '/api/v1/todos';
|
|
21284
|
+
};
|
|
21285
|
+
export type ListTodoInboxErrors = {
|
|
21286
|
+
/**
|
|
21287
|
+
* Forbidden
|
|
21288
|
+
*/
|
|
21289
|
+
403: Problem;
|
|
21290
|
+
};
|
|
21291
|
+
export type ListTodoInboxError = ListTodoInboxErrors[keyof ListTodoInboxErrors];
|
|
21292
|
+
export type ListTodoInboxResponses = {
|
|
21293
|
+
/**
|
|
21294
|
+
* Success
|
|
21295
|
+
*/
|
|
21296
|
+
200: {
|
|
21297
|
+
data: Array<TodoInboxEntryResponseObject>;
|
|
21298
|
+
};
|
|
21299
|
+
};
|
|
21300
|
+
export type ListTodoInboxResponse = ListTodoInboxResponses[keyof ListTodoInboxResponses];
|
|
21078
21301
|
export type ListUserRolesData = {
|
|
21079
21302
|
body?: never;
|
|
21080
21303
|
path?: never;
|
|
@@ -21466,9 +21689,9 @@ export type ListUsersData = {
|
|
|
21466
21689
|
path?: never;
|
|
21467
21690
|
query?: {
|
|
21468
21691
|
/**
|
|
21469
|
-
* Filter users by their
|
|
21692
|
+
* Filter users by their employment lifecycle in the company, the same vocabulary `employment_state` publishes on each user. Defaults to `active` (an employment in effect now); `scheduled` returns employments that have not begun; `terminated` returns employments that have ended, with nothing current and nothing upcoming; `none` returns people your company sees without employing, which is its role holders and its invitees; `all` returns everyone your company sees.
|
|
21470
21693
|
*/
|
|
21471
|
-
'filter[state]'?: 'active' | 'terminated' | 'all';
|
|
21694
|
+
'filter[state]'?: 'active' | 'scheduled' | 'terminated' | 'none' | 'all';
|
|
21472
21695
|
/**
|
|
21473
21696
|
* This pagination cursor corresponds to the cursor value found in the response in
|
|
21474
21697
|
* `meta.page.next_cursor`.
|