@dsptch-work/api-client 0.27.0 → 0.28.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 +12 -0
- package/dist/gen/types.gen.d.ts +32 -0
- package/dist/gen/zod.gen.d.ts +14 -0
- package/dist/gen/zod.gen.js +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to `@dsptch-work/api-client` are documented here. The format
|
|
|
5
5
|
[Semantic Versioning](https://semver.org) — currently `0.x`, so breaking changes may land in a
|
|
6
6
|
minor bump until `1.0.0`. See [RELEASING.md](./RELEASING.md) for the release and versioning process.
|
|
7
7
|
|
|
8
|
+
## [0.28.0] - 2026-10-01
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `WageDeterminationResponseObject.uid` (required, UUID), returned by `WageDeterminations.listWageDeterminations()` and `getWageDetermination()`. Every modification of one annual general decision shares the same `uid`; `id` still identifies one revision. Code that builds wage-determination response literals must supply `uid`.
|
|
13
|
+
- `FormDefinitionObject.assignment_only` (required boolean), returned by `Forms.listFormDefinitions()` and `getFormDefinition()`. Code that builds form-definition response literals must supply `assignment_only`.
|
|
14
|
+
- `PerDiems.listPerDiems()` and `ApprenticeshipApprentices.listApprentices()` query accept optional `filter[name]` (fuzzy name match; for apprentices, the worker's name). Existing filters still assign.
|
|
15
|
+
- `ProductionCompletions.listCompletions()` query accepts optional `filter[site_id]`, `filter[crew_user_id]`, `filter[crew_department_id]`, and `filter[crew_group_id]`.
|
|
16
|
+
- Zod: `zWageDeterminationResponseObject` requires `uid` (`z.uuid()`) and `zFormDefinitionObject` requires `assignment_only`, so payloads without those keys no longer parse.
|
|
17
|
+
|
|
18
|
+
See the [API changelog](https://dsptch.app/support/docs/developers/api-changelog) for scopes, status codes, and field rules.
|
|
19
|
+
|
|
8
20
|
## [0.27.0] - 2026-09-30
|
|
9
21
|
|
|
10
22
|
### Added
|
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -5139,6 +5139,10 @@ export type FormDefinitionObject = {
|
|
|
5139
5139
|
* Whether the form is always shown to users.
|
|
5140
5140
|
*/
|
|
5141
5141
|
always_visible: boolean;
|
|
5142
|
+
/**
|
|
5143
|
+
* Whether the form is hidden from free-submit catalogs and available only through assignments and tasks.
|
|
5144
|
+
*/
|
|
5145
|
+
assignment_only: boolean;
|
|
5142
5146
|
/**
|
|
5143
5147
|
* Whether the form collects sensitive data.
|
|
5144
5148
|
*/
|
|
@@ -10295,6 +10299,10 @@ export type WageDeterminationResponseObject = {
|
|
|
10295
10299
|
* Identifier of this determination record — permanent, because the record is an immutable DOL publication; a DOL revision arrives as a new record linked through superseded_by_wage_determination_id, not a rewrite of this one.
|
|
10296
10300
|
*/
|
|
10297
10301
|
id: string;
|
|
10302
|
+
/**
|
|
10303
|
+
* Stable UUID identifying the annual general decision family, shared by every modification. A successor-year general decision has its own UID. Use id to retrieve a specific published revision.
|
|
10304
|
+
*/
|
|
10305
|
+
uid: string;
|
|
10298
10306
|
/**
|
|
10299
10307
|
* DOL general decision number identifying this determination (e.g. "CA20240001"); combine with modification_number for the full versioned identifier (e.g. "CA20240001/1").
|
|
10300
10308
|
*/
|
|
@@ -13668,6 +13676,10 @@ export type ListApprenticesData = {
|
|
|
13668
13676
|
*
|
|
13669
13677
|
*/
|
|
13670
13678
|
'filter[status]'?: string;
|
|
13679
|
+
/**
|
|
13680
|
+
* Fuzzy-matches the enrolled worker name (trigram word-similarity). Matches the user name only — not the program, occupation, or wage-schedule name.
|
|
13681
|
+
*/
|
|
13682
|
+
'filter[name]'?: string;
|
|
13671
13683
|
'filter[created_at][gte]'?: string;
|
|
13672
13684
|
'filter[created_at][lte]'?: string;
|
|
13673
13685
|
'filter[updated_at][gte]'?: string;
|
|
@@ -24163,6 +24175,10 @@ export type ListPerDiemsData = {
|
|
|
24163
24175
|
* Filter by taxable status
|
|
24164
24176
|
*/
|
|
24165
24177
|
'filter[taxable]'?: boolean;
|
|
24178
|
+
/**
|
|
24179
|
+
* Fuzzy-matches the per diem name (trigram word-similarity). Matches the name column only.
|
|
24180
|
+
*/
|
|
24181
|
+
'filter[name]'?: string;
|
|
24166
24182
|
'filter[created_at][gte]'?: string;
|
|
24167
24183
|
'filter[created_at][lte]'?: string;
|
|
24168
24184
|
'filter[updated_at][gte]'?: string;
|
|
@@ -24504,6 +24520,22 @@ export type ListCompletionsData = {
|
|
|
24504
24520
|
'filter[scope_kind]'?: string;
|
|
24505
24521
|
'filter[feature_id]'?: string;
|
|
24506
24522
|
'filter[created_by_user_id]'?: string;
|
|
24523
|
+
/**
|
|
24524
|
+
* Feature completions on this site, or quantity completions on a job that has exactly this one site.
|
|
24525
|
+
*/
|
|
24526
|
+
'filter[site_id]'?: string;
|
|
24527
|
+
/**
|
|
24528
|
+
* Completions whose crew includes this worker. Distinct from created_by_user_id (the filer).
|
|
24529
|
+
*/
|
|
24530
|
+
'filter[crew_user_id]'?: string;
|
|
24531
|
+
/**
|
|
24532
|
+
* Completions whose crew includes a current member of this department.
|
|
24533
|
+
*/
|
|
24534
|
+
'filter[crew_department_id]'?: string;
|
|
24535
|
+
/**
|
|
24536
|
+
* Completions whose crew includes a member of this group.
|
|
24537
|
+
*/
|
|
24538
|
+
'filter[crew_group_id]'?: string;
|
|
24507
24539
|
'filter[created_at][gte]'?: string;
|
|
24508
24540
|
'filter[created_at][lte]'?: string;
|
|
24509
24541
|
'filter[updated_at][gte]'?: string;
|
package/dist/gen/zod.gen.d.ts
CHANGED
|
@@ -2394,6 +2394,7 @@ export declare const zFormDefinitionObject: z.ZodObject<{
|
|
|
2394
2394
|
title_keys: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2395
2395
|
editable: z.ZodBoolean;
|
|
2396
2396
|
always_visible: z.ZodBoolean;
|
|
2397
|
+
assignment_only: z.ZodBoolean;
|
|
2397
2398
|
sensitive_form: z.ZodBoolean;
|
|
2398
2399
|
allow_carry_forward: z.ZodBoolean;
|
|
2399
2400
|
current_revision: z.ZodNullable<z.ZodInt>;
|
|
@@ -6109,6 +6110,7 @@ export declare const zFormDefinitionResponseObject: z.ZodObject<{
|
|
|
6109
6110
|
title_keys: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
6110
6111
|
editable: z.ZodBoolean;
|
|
6111
6112
|
always_visible: z.ZodBoolean;
|
|
6113
|
+
assignment_only: z.ZodBoolean;
|
|
6112
6114
|
sensitive_form: z.ZodBoolean;
|
|
6113
6115
|
allow_carry_forward: z.ZodBoolean;
|
|
6114
6116
|
current_revision: z.ZodNullable<z.ZodInt>;
|
|
@@ -6648,6 +6650,7 @@ export declare const zDateTimeFilter: z.ZodNullable<z.ZodObject<{
|
|
|
6648
6650
|
*/
|
|
6649
6651
|
export declare const zWageDeterminationResponseObject: z.ZodObject<{
|
|
6650
6652
|
id: z.ZodString;
|
|
6653
|
+
uid: z.ZodUUID;
|
|
6651
6654
|
general_decision_number: z.ZodString;
|
|
6652
6655
|
modification_number: z.ZodInt;
|
|
6653
6656
|
superseded_by_wage_determination_id: z.ZodNullable<z.ZodString>;
|
|
@@ -6675,6 +6678,7 @@ export declare const zWageDeterminationsResponseObject: z.ZodObject<{
|
|
|
6675
6678
|
}, z.core.$strip>;
|
|
6676
6679
|
data: z.ZodArray<z.ZodObject<{
|
|
6677
6680
|
id: z.ZodString;
|
|
6681
|
+
uid: z.ZodUUID;
|
|
6678
6682
|
general_decision_number: z.ZodString;
|
|
6679
6683
|
modification_number: z.ZodInt;
|
|
6680
6684
|
superseded_by_wage_determination_id: z.ZodNullable<z.ZodString>;
|
|
@@ -9659,6 +9663,7 @@ export declare const zListApprenticesPath: z.ZodObject<{
|
|
|
9659
9663
|
export declare const zListApprenticesQuery: z.ZodObject<{
|
|
9660
9664
|
'filter[user_id]': z.ZodOptional<z.ZodString>;
|
|
9661
9665
|
'filter[status]': z.ZodOptional<z.ZodString>;
|
|
9666
|
+
'filter[name]': z.ZodOptional<z.ZodString>;
|
|
9662
9667
|
'filter[created_at][gte]': z.ZodOptional<z.ZodISODateTime>;
|
|
9663
9668
|
'filter[created_at][lte]': z.ZodOptional<z.ZodISODateTime>;
|
|
9664
9669
|
'filter[updated_at][gte]': z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -15812,6 +15817,7 @@ export declare const zListFormDefinitionsResponse: z.ZodObject<{
|
|
|
15812
15817
|
title_keys: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
15813
15818
|
editable: z.ZodBoolean;
|
|
15814
15819
|
always_visible: z.ZodBoolean;
|
|
15820
|
+
assignment_only: z.ZodBoolean;
|
|
15815
15821
|
sensitive_form: z.ZodBoolean;
|
|
15816
15822
|
allow_carry_forward: z.ZodBoolean;
|
|
15817
15823
|
current_revision: z.ZodNullable<z.ZodInt>;
|
|
@@ -15835,6 +15841,7 @@ export declare const zGetFormDefinitionResponse: z.ZodObject<{
|
|
|
15835
15841
|
title_keys: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
15836
15842
|
editable: z.ZodBoolean;
|
|
15837
15843
|
always_visible: z.ZodBoolean;
|
|
15844
|
+
assignment_only: z.ZodBoolean;
|
|
15838
15845
|
sensitive_form: z.ZodBoolean;
|
|
15839
15846
|
allow_carry_forward: z.ZodBoolean;
|
|
15840
15847
|
current_revision: z.ZodNullable<z.ZodInt>;
|
|
@@ -22802,6 +22809,7 @@ export declare const zUpdateEmploymentResponse: z.ZodObject<{
|
|
|
22802
22809
|
export declare const zListPerDiemsQuery: z.ZodObject<{
|
|
22803
22810
|
'filter[default]': z.ZodOptional<z.ZodBoolean>;
|
|
22804
22811
|
'filter[taxable]': z.ZodOptional<z.ZodBoolean>;
|
|
22812
|
+
'filter[name]': z.ZodOptional<z.ZodString>;
|
|
22805
22813
|
'filter[created_at][gte]': z.ZodOptional<z.ZodISODateTime>;
|
|
22806
22814
|
'filter[created_at][lte]': z.ZodOptional<z.ZodISODateTime>;
|
|
22807
22815
|
'filter[updated_at][gte]': z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -23041,6 +23049,10 @@ export declare const zListCompletionsQuery: z.ZodObject<{
|
|
|
23041
23049
|
'filter[scope_kind]': z.ZodOptional<z.ZodString>;
|
|
23042
23050
|
'filter[feature_id]': z.ZodOptional<z.ZodString>;
|
|
23043
23051
|
'filter[created_by_user_id]': z.ZodOptional<z.ZodString>;
|
|
23052
|
+
'filter[site_id]': z.ZodOptional<z.ZodString>;
|
|
23053
|
+
'filter[crew_user_id]': z.ZodOptional<z.ZodString>;
|
|
23054
|
+
'filter[crew_department_id]': z.ZodOptional<z.ZodString>;
|
|
23055
|
+
'filter[crew_group_id]': z.ZodOptional<z.ZodString>;
|
|
23044
23056
|
'filter[created_at][gte]': z.ZodOptional<z.ZodISODateTime>;
|
|
23045
23057
|
'filter[created_at][lte]': z.ZodOptional<z.ZodISODateTime>;
|
|
23046
23058
|
'filter[updated_at][gte]': z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -29105,6 +29117,7 @@ export declare const zListWageDeterminationsResponse: z.ZodObject<{
|
|
|
29105
29117
|
}, z.core.$strip>;
|
|
29106
29118
|
data: z.ZodArray<z.ZodObject<{
|
|
29107
29119
|
id: z.ZodString;
|
|
29120
|
+
uid: z.ZodUUID;
|
|
29108
29121
|
general_decision_number: z.ZodString;
|
|
29109
29122
|
modification_number: z.ZodInt;
|
|
29110
29123
|
superseded_by_wage_determination_id: z.ZodNullable<z.ZodString>;
|
|
@@ -29124,6 +29137,7 @@ export declare const zGetWageDeterminationPath: z.ZodObject<{
|
|
|
29124
29137
|
*/
|
|
29125
29138
|
export declare const zGetWageDeterminationResponse: z.ZodObject<{
|
|
29126
29139
|
id: z.ZodString;
|
|
29140
|
+
uid: z.ZodUUID;
|
|
29127
29141
|
general_decision_number: z.ZodString;
|
|
29128
29142
|
modification_number: z.ZodInt;
|
|
29129
29143
|
superseded_by_wage_determination_id: z.ZodNullable<z.ZodString>;
|
package/dist/gen/zod.gen.js
CHANGED
|
@@ -2198,6 +2198,7 @@ export const zFormDefinitionObject = z.object({
|
|
|
2198
2198
|
title_keys: z.array(z.string()).nullable(),
|
|
2199
2199
|
editable: z.boolean(),
|
|
2200
2200
|
always_visible: z.boolean(),
|
|
2201
|
+
assignment_only: z.boolean(),
|
|
2201
2202
|
sensitive_form: z.boolean(),
|
|
2202
2203
|
allow_carry_forward: z.boolean(),
|
|
2203
2204
|
current_revision: z.int().nullable(),
|
|
@@ -5535,6 +5536,7 @@ export const zDateTimeFilter = z.object({
|
|
|
5535
5536
|
*/
|
|
5536
5537
|
export const zWageDeterminationResponseObject = z.object({
|
|
5537
5538
|
id: z.string(),
|
|
5539
|
+
uid: z.uuid(),
|
|
5538
5540
|
general_decision_number: z.string(),
|
|
5539
5541
|
modification_number: z.int(),
|
|
5540
5542
|
superseded_by_wage_determination_id: z.string().nullable(),
|
|
@@ -7347,6 +7349,7 @@ export const zListApprenticesPath = z.object({
|
|
|
7347
7349
|
export const zListApprenticesQuery = z.object({
|
|
7348
7350
|
'filter[user_id]': z.string().optional(),
|
|
7349
7351
|
'filter[status]': z.string().optional(),
|
|
7352
|
+
'filter[name]': z.string().optional(),
|
|
7350
7353
|
'filter[created_at][gte]': z.iso.datetime().optional(),
|
|
7351
7354
|
'filter[created_at][lte]': z.iso.datetime().optional(),
|
|
7352
7355
|
'filter[updated_at][gte]': z.iso.datetime().optional(),
|
|
@@ -10480,6 +10483,7 @@ export const zUpdateEmploymentResponse = zPeopleEmploymentResponseObject;
|
|
|
10480
10483
|
export const zListPerDiemsQuery = z.object({
|
|
10481
10484
|
'filter[default]': z.boolean().optional(),
|
|
10482
10485
|
'filter[taxable]': z.boolean().optional(),
|
|
10486
|
+
'filter[name]': z.string().optional(),
|
|
10483
10487
|
'filter[created_at][gte]': z.iso.datetime().optional(),
|
|
10484
10488
|
'filter[created_at][lte]': z.iso.datetime().optional(),
|
|
10485
10489
|
'filter[updated_at][gte]': z.iso.datetime().optional(),
|
|
@@ -10575,6 +10579,10 @@ export const zListCompletionsQuery = z.object({
|
|
|
10575
10579
|
'filter[scope_kind]': z.string().optional(),
|
|
10576
10580
|
'filter[feature_id]': z.string().optional(),
|
|
10577
10581
|
'filter[created_by_user_id]': z.string().optional(),
|
|
10582
|
+
'filter[site_id]': z.string().optional(),
|
|
10583
|
+
'filter[crew_user_id]': z.string().optional(),
|
|
10584
|
+
'filter[crew_department_id]': z.string().optional(),
|
|
10585
|
+
'filter[crew_group_id]': z.string().optional(),
|
|
10578
10586
|
'filter[created_at][gte]': z.iso.datetime().optional(),
|
|
10579
10587
|
'filter[created_at][lte]': z.iso.datetime().optional(),
|
|
10580
10588
|
'filter[updated_at][gte]': z.iso.datetime().optional(),
|