@dsptch-work/api-client 0.53.0 → 0.54.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 +15 -0
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/sdk.gen.d.ts +63 -1
- package/dist/gen/sdk.gen.js +90 -0
- package/dist/gen/types.gen.d.ts +213 -17
- package/dist/gen/zod.gen.d.ts +269 -4
- package/dist/gen/zod.gen.js +114 -6
- package/package.json +1 -1
package/dist/gen/zod.gen.js
CHANGED
|
@@ -6402,9 +6402,9 @@ export const zProductionCompletionResponseObject = z.discriminatedUnion('complet
|
|
|
6402
6402
|
zProductionQuantityCompletionResponseObject.extend({ completable_type: z.literal('Production::QuantityCompletion') })
|
|
6403
6403
|
]);
|
|
6404
6404
|
/**
|
|
6405
|
-
*
|
|
6405
|
+
* A shared form-completion task — a SurveyJS form assigned to users with a due time, optional recurrence, and reminders. Path `{id}` is the `Tasks::FormAssignmentTask` id, not the web show `Task#uid`. Nested job, site, feature, and asset-item assignments are not this resource.
|
|
6406
6406
|
*/
|
|
6407
|
-
export const
|
|
6407
|
+
export const zFormAssignmentTaskItemObject = z.object({
|
|
6408
6408
|
id: z.string(),
|
|
6409
6409
|
form_definition_id: z.string(),
|
|
6410
6410
|
frequency: z.enum([
|
|
@@ -6417,8 +6417,8 @@ export const zFormAssignmentTaskResponseObject = z.array(z.object({
|
|
|
6417
6417
|
'QUARTERLY'
|
|
6418
6418
|
]).nullable(),
|
|
6419
6419
|
recurrence_end_time: z.iso.datetime().nullable(),
|
|
6420
|
-
time_due: z.iso.datetime(),
|
|
6421
|
-
tz_name: z.string(),
|
|
6420
|
+
time_due: z.iso.datetime().nullable(),
|
|
6421
|
+
tz_name: z.string().nullable(),
|
|
6422
6422
|
name: z.string(),
|
|
6423
6423
|
description: z.string().nullable(),
|
|
6424
6424
|
task_assignee_user_ids: z.array(z.string()),
|
|
@@ -6426,7 +6426,75 @@ export const zFormAssignmentTaskResponseObject = z.array(z.object({
|
|
|
6426
6426
|
offset: z.string(),
|
|
6427
6427
|
remind_at: z.iso.datetime()
|
|
6428
6428
|
}))
|
|
6429
|
-
})
|
|
6429
|
+
});
|
|
6430
|
+
/**
|
|
6431
|
+
* The form-assignment tasks created by one request — assigning a form to one or more users, each with a due time and optional recurrence and reminders. Returned as an array because a request can spread the assignment into one task per assignee.
|
|
6432
|
+
*/
|
|
6433
|
+
export const zFormAssignmentTaskResponseObject = z.array(zFormAssignmentTaskItemObject);
|
|
6434
|
+
/**
|
|
6435
|
+
* Update a shared form assignment. All fields are optional — send only what changes. recurring gates the recurrence fields, and task_attributes.reminders_attributes replaces the existing reminder set when supplied. A newly added assignee outside the credential company returns 422. The creator is set at creation and cannot be sent. Nested job, site, feature, and asset-item assignments are not this resource.
|
|
6436
|
+
*/
|
|
6437
|
+
export const zFormAssignmentTaskUpdateParameters = z.object({
|
|
6438
|
+
form_definition_id: z.string().optional(),
|
|
6439
|
+
recurring: z.boolean().optional(),
|
|
6440
|
+
task_attributes: z.object({
|
|
6441
|
+
name: z.string().nullish(),
|
|
6442
|
+
description: z.string().nullish(),
|
|
6443
|
+
time_due: z.iso.datetime().nullish(),
|
|
6444
|
+
tz_name: z.string().nullish(),
|
|
6445
|
+
frequency: z.enum([
|
|
6446
|
+
'DAILY',
|
|
6447
|
+
'WORKDAILY',
|
|
6448
|
+
'WORKDAILYSIX',
|
|
6449
|
+
'WEEKLY',
|
|
6450
|
+
'BIWEEKLY',
|
|
6451
|
+
'MONTHLY',
|
|
6452
|
+
'QUARTERLY'
|
|
6453
|
+
]).nullish(),
|
|
6454
|
+
recurrence_end_time: z.iso.datetime().nullish(),
|
|
6455
|
+
task_assignee_user_ids: z.array(z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)).optional(),
|
|
6456
|
+
reminders_attributes: z.array(z.object({
|
|
6457
|
+
offset: z.enum([
|
|
6458
|
+
'PT0S',
|
|
6459
|
+
'PT-1M',
|
|
6460
|
+
'PT-5M',
|
|
6461
|
+
'PT-10M',
|
|
6462
|
+
'PT-15M',
|
|
6463
|
+
'PT-30M',
|
|
6464
|
+
'PT-1H',
|
|
6465
|
+
'PT-2H',
|
|
6466
|
+
'P-1D',
|
|
6467
|
+
'P-2D',
|
|
6468
|
+
'P-3D',
|
|
6469
|
+
'P-4D',
|
|
6470
|
+
'P-5D',
|
|
6471
|
+
'P-6D',
|
|
6472
|
+
'P-1W',
|
|
6473
|
+
'P-2W',
|
|
6474
|
+
'P-1M',
|
|
6475
|
+
'P-2M',
|
|
6476
|
+
'P-3M',
|
|
6477
|
+
'P-6M',
|
|
6478
|
+
'P-1Y',
|
|
6479
|
+
'PT5M',
|
|
6480
|
+
'PT15M',
|
|
6481
|
+
'PT30M',
|
|
6482
|
+
'PT1H',
|
|
6483
|
+
'PT6H',
|
|
6484
|
+
'PT12H',
|
|
6485
|
+
'P1D',
|
|
6486
|
+
'P2D',
|
|
6487
|
+
'P3D',
|
|
6488
|
+
'P4D',
|
|
6489
|
+
'P5D',
|
|
6490
|
+
'P6D',
|
|
6491
|
+
'P1W',
|
|
6492
|
+
'P2W',
|
|
6493
|
+
'P3W'
|
|
6494
|
+
])
|
|
6495
|
+
})).optional()
|
|
6496
|
+
}).optional()
|
|
6497
|
+
});
|
|
6430
6498
|
/**
|
|
6431
6499
|
* Request body for creating a certification — a named qualification a worker can hold. You can only manage your own company's certifications; global (platform) certifications are read-only. Omitting company_id or name answers 400, and a null or blank one, or any wrong-typed value, answers 422.
|
|
6432
6500
|
*/
|
|
@@ -12749,7 +12817,9 @@ export const zListJobWageDeterminationsQuery = z.object({
|
|
|
12749
12817
|
as_of: z.string().optional(),
|
|
12750
12818
|
'as_of[bogus_axis]': z.string().optional(),
|
|
12751
12819
|
'as_of[valid][gte]': z.string().optional(),
|
|
12752
|
-
'as_of[transaction]': z.string().optional()
|
|
12820
|
+
'as_of[transaction]': z.string().optional(),
|
|
12821
|
+
filter: z.string().optional(),
|
|
12822
|
+
'filter[unexpected]': z.string().optional()
|
|
12753
12823
|
});
|
|
12754
12824
|
/**
|
|
12755
12825
|
* Success
|
|
@@ -14953,6 +15023,22 @@ export const zUpdateTradePath = z.object({
|
|
|
14953
15023
|
* Success
|
|
14954
15024
|
*/
|
|
14955
15025
|
export const zUpdateTradeResponse = zPwaTradeResponseObject;
|
|
15026
|
+
export const zListTasksFormAssignmentTasksQuery = z.object({
|
|
15027
|
+
'filter[form_definition_id]': z.string().optional(),
|
|
15028
|
+
'page[cursor]': z.string().optional(),
|
|
15029
|
+
'page[limit]': z.int().gte(1).optional().default(20),
|
|
15030
|
+
page: z.string().optional(),
|
|
15031
|
+
filter: z.string().optional(),
|
|
15032
|
+
'filter[unexpected]': z.string().optional()
|
|
15033
|
+
});
|
|
15034
|
+
/**
|
|
15035
|
+
* Success
|
|
15036
|
+
*/
|
|
15037
|
+
export const zListTasksFormAssignmentTasksResponse = z.object({
|
|
15038
|
+
meta: zMeta,
|
|
15039
|
+
links: zLinks,
|
|
15040
|
+
data: z.array(zFormAssignmentTaskItemObject)
|
|
15041
|
+
});
|
|
14956
15042
|
export const zCreateFormAssignmentTaskBody = z.object({
|
|
14957
15043
|
form_definition_id: z.string(),
|
|
14958
15044
|
spread_assignees: z.boolean().optional(),
|
|
@@ -15020,6 +15106,28 @@ export const zCreateFormAssignmentTaskBody = z.object({
|
|
|
15020
15106
|
* Created
|
|
15021
15107
|
*/
|
|
15022
15108
|
export const zCreateFormAssignmentTaskResponse = zFormAssignmentTaskResponseObject;
|
|
15109
|
+
export const zDeleteTasksFormAssignmentTaskPath = z.object({
|
|
15110
|
+
id: z.string()
|
|
15111
|
+
});
|
|
15112
|
+
/**
|
|
15113
|
+
* No Content
|
|
15114
|
+
*/
|
|
15115
|
+
export const zDeleteTasksFormAssignmentTaskResponse = z.void();
|
|
15116
|
+
export const zGetTasksFormAssignmentTaskPath = z.object({
|
|
15117
|
+
id: z.string()
|
|
15118
|
+
});
|
|
15119
|
+
/**
|
|
15120
|
+
* Success
|
|
15121
|
+
*/
|
|
15122
|
+
export const zGetTasksFormAssignmentTaskResponse = zFormAssignmentTaskItemObject;
|
|
15123
|
+
export const zUpdateTasksFormAssignmentTaskBody = zFormAssignmentTaskUpdateParameters;
|
|
15124
|
+
export const zUpdateTasksFormAssignmentTaskPath = z.object({
|
|
15125
|
+
id: z.string()
|
|
15126
|
+
});
|
|
15127
|
+
/**
|
|
15128
|
+
* Success
|
|
15129
|
+
*/
|
|
15130
|
+
export const zUpdateTasksFormAssignmentTaskResponse = zFormAssignmentTaskItemObject;
|
|
15023
15131
|
export const zListPositionsPath = z.object({
|
|
15024
15132
|
job_id: z.string()
|
|
15025
15133
|
});
|