@dsptch-work/api-client 0.19.0 → 0.20.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 +28 -0
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/sdk.gen.d.ts +8 -8
- package/dist/gen/sdk.gen.js +8 -8
- package/dist/gen/types.gen.d.ts +525 -24
- package/dist/gen/zod.gen.d.ts +416 -55
- package/dist/gen/zod.gen.js +299 -43
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -25,6 +25,19 @@ export type Problem = {
|
|
|
25
25
|
* An opaque URN identifying this one occurrence of the failure, carrying the request's id. Quote it when correlating a failure with support or your logs.
|
|
26
26
|
*/
|
|
27
27
|
instance?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Optional nonempty validation entries. Each item gives a readable detail and, when the server can prove a public body location, a pointer to it. Clients must accept entries without a pointer.
|
|
30
|
+
*/
|
|
31
|
+
errors?: Array<{
|
|
32
|
+
/**
|
|
33
|
+
* The validation message for this entry.
|
|
34
|
+
*/
|
|
35
|
+
detail: string;
|
|
36
|
+
/**
|
|
37
|
+
* A JSON Pointer URI fragment for the public request-body field this entry identifies. Omitted when the server cannot reliably name a public field. It may name a required field absent from the body (for example `#/name`); clients must handle that missing target.
|
|
38
|
+
*/
|
|
39
|
+
pointer?: string;
|
|
40
|
+
}>;
|
|
28
41
|
};
|
|
29
42
|
/**
|
|
30
43
|
* Error types
|
|
@@ -3537,7 +3550,7 @@ export type PwaJobDetailsResponseObject = {
|
|
|
3537
3550
|
ny_dol_prc_number?: string | null;
|
|
3538
3551
|
} | null;
|
|
3539
3552
|
/**
|
|
3540
|
-
*
|
|
3553
|
+
* Fields shared by job creation and updates. Updates may omit any field to preserve its current value. The resulting job must still satisfy its schedule and PWA validation rules. Extra keys are accepted, including custom fields.
|
|
3541
3554
|
*/
|
|
3542
3555
|
export type JobParameters = {
|
|
3543
3556
|
/**
|
|
@@ -3553,13 +3566,13 @@ export type JobParameters = {
|
|
|
3553
3566
|
*/
|
|
3554
3567
|
description?: string;
|
|
3555
3568
|
/**
|
|
3556
|
-
* ID of the company that requested the job (for example a general contractor). Required.
|
|
3569
|
+
* ID of the company that requested the job (for example a general contractor). Required on create; omit on update to preserve the existing requester.
|
|
3557
3570
|
*/
|
|
3558
|
-
requested_by_company_id
|
|
3571
|
+
requested_by_company_id?: string;
|
|
3559
3572
|
/**
|
|
3560
3573
|
* ID of the user creating the job. Required on create and immutable thereafter — an update that sets, changes, or clears it is rejected.
|
|
3561
3574
|
*/
|
|
3562
|
-
created_by_user_id
|
|
3575
|
+
created_by_user_id?: string;
|
|
3563
3576
|
/**
|
|
3564
3577
|
* IDs of the users who manage the job; null when the job has no managers.
|
|
3565
3578
|
*/
|
|
@@ -3780,7 +3793,13 @@ export type JobParameters = {
|
|
|
3780
3793
|
[key: string]: unknown;
|
|
3781
3794
|
};
|
|
3782
3795
|
/**
|
|
3783
|
-
* Parameters for
|
|
3796
|
+
* Parameters for creating a job. `requested_by_company_id` and `created_by_user_id` are required. Sets the job's schedule, work types, address, and optional Prevailing Wage / Apprenticeship (PWA) compliance.
|
|
3797
|
+
*/
|
|
3798
|
+
export type JobCreateParameters = JobParameters & {
|
|
3799
|
+
[key: string]: unknown;
|
|
3800
|
+
};
|
|
3801
|
+
/**
|
|
3802
|
+
* Parameters for updating an existing job. Every field is optional; omit a field to preserve its current value. The resulting job must still satisfy schedule and PWA validation rules. Accepts every shared job field plus a directly settable status.
|
|
3784
3803
|
*/
|
|
3785
3804
|
export type JobUpdateParameters = JobParameters & {
|
|
3786
3805
|
/**
|
|
@@ -4227,11 +4246,11 @@ export type UserParameters = {
|
|
|
4227
4246
|
*/
|
|
4228
4247
|
avatar_signed_id?: string;
|
|
4229
4248
|
/**
|
|
4230
|
-
* Id of the internal user recorded as the creator of the worker's invite. Ignored when skip_invite is set.
|
|
4249
|
+
* Id of the internal user recorded as the creator of the worker's invite, and named to the recipient as the person inviting them; must be a member of your company. Ignored when skip_invite is set.
|
|
4231
4250
|
*/
|
|
4232
4251
|
created_by_user_id?: string;
|
|
4233
4252
|
/**
|
|
4234
|
-
* Id of the internal user recorded as having last sent the worker's invite. Null, and ignored, when skip_invite is set.
|
|
4253
|
+
* Id of the internal user recorded as having last sent the worker's invite, and named as the sender on that person's in-app notification; must be a member of your company. Null, and ignored, when skip_invite is set.
|
|
4235
4254
|
*/
|
|
4236
4255
|
last_sent_by_user_id?: string | null;
|
|
4237
4256
|
/**
|
|
@@ -5151,7 +5170,7 @@ export type CustomFieldConfigsResponseObject = {
|
|
|
5151
5170
|
updated_at: string;
|
|
5152
5171
|
};
|
|
5153
5172
|
/**
|
|
5154
|
-
* Request body for creating
|
|
5173
|
+
* Request body for creating a custom field definition. `name` and `model_type` are required.
|
|
5155
5174
|
*/
|
|
5156
5175
|
export type CustomFieldConfigParameters = {
|
|
5157
5176
|
/**
|
|
@@ -5171,6 +5190,27 @@ export type CustomFieldConfigParameters = {
|
|
|
5171
5190
|
*/
|
|
5172
5191
|
visible?: boolean;
|
|
5173
5192
|
};
|
|
5193
|
+
/**
|
|
5194
|
+
* Request body for updating a custom field definition. Every field is optional; omit a field to preserve its current value. The resulting definition's name must remain unique for its company and model type.
|
|
5195
|
+
*/
|
|
5196
|
+
export type CustomFieldConfigUpdateParameters = {
|
|
5197
|
+
/**
|
|
5198
|
+
* Name of the custom field; omit to preserve the current value. The resulting name must remain present and unique per company and model type.
|
|
5199
|
+
*/
|
|
5200
|
+
name?: string;
|
|
5201
|
+
/**
|
|
5202
|
+
* Optional description of the custom field.
|
|
5203
|
+
*/
|
|
5204
|
+
description?: string | null;
|
|
5205
|
+
/**
|
|
5206
|
+
* The kind of record the field attaches to: one of apprenticeship_apprentice, company, job, or user_company. Omit to preserve the current value.
|
|
5207
|
+
*/
|
|
5208
|
+
model_type?: 'apprenticeship_apprentice' | 'company' | 'job' | 'user_company';
|
|
5209
|
+
/**
|
|
5210
|
+
* Whether the field is shown.
|
|
5211
|
+
*/
|
|
5212
|
+
visible?: boolean;
|
|
5213
|
+
};
|
|
5174
5214
|
/**
|
|
5175
5215
|
* A user's membership in a group.
|
|
5176
5216
|
*/
|
|
@@ -6731,7 +6771,7 @@ export type ProjectResponseObject = {
|
|
|
6731
6771
|
updated_at: string;
|
|
6732
6772
|
};
|
|
6733
6773
|
/**
|
|
6734
|
-
* Request body for creating
|
|
6774
|
+
* Request body for creating a project. `name` is required by the schema; `created_by_user_id` is additionally required on create and must be a member of the owning company. The owning company is inferred from the API key and is not part of the body.
|
|
6735
6775
|
*/
|
|
6736
6776
|
export type ProjectParameters = {
|
|
6737
6777
|
/**
|
|
@@ -6746,6 +6786,87 @@ export type ProjectParameters = {
|
|
|
6746
6786
|
* Free-form project description, or null.
|
|
6747
6787
|
*/
|
|
6748
6788
|
description?: string | null;
|
|
6789
|
+
/**
|
|
6790
|
+
* User recorded as the project's creator; must be a member of the owning company. Required on create and immutable thereafter — an update that sets, changes, or clears it is rejected.
|
|
6791
|
+
*/
|
|
6792
|
+
created_by_user_id: string;
|
|
6793
|
+
/**
|
|
6794
|
+
* Schedule start date as an ISO8601 date (YYYY-MM-DD), or null; requires tz_name to be set.
|
|
6795
|
+
*/
|
|
6796
|
+
start_date?: string | null;
|
|
6797
|
+
/**
|
|
6798
|
+
* Schedule end date as an ISO8601 date (YYYY-MM-DD), or null; must be on or after start_date.
|
|
6799
|
+
*/
|
|
6800
|
+
end_date?: string | null;
|
|
6801
|
+
/**
|
|
6802
|
+
* IANA time zone name. Required when start_date is set.
|
|
6803
|
+
*/
|
|
6804
|
+
tz_name?: string | null;
|
|
6805
|
+
/**
|
|
6806
|
+
* Day of week billing starts: 0 (Sunday) through 6 (Saturday).
|
|
6807
|
+
*/
|
|
6808
|
+
billing_start_day?: number | null;
|
|
6809
|
+
/**
|
|
6810
|
+
* Federal PWA tracking mode: `all` (prevailing wage + apprenticeship), `pw_only`, `ap_only`, or `none`. Any other value returns 422.
|
|
6811
|
+
*/
|
|
6812
|
+
federal_pwa_mode?: 'all' | 'pw_only' | 'ap_only' | 'none';
|
|
6813
|
+
/**
|
|
6814
|
+
* Any value other than `none` requires `region`.
|
|
6815
|
+
*/
|
|
6816
|
+
regional_pwa_mode?: 'all' | 'pw_only' | 'ap_only' | 'none';
|
|
6817
|
+
/**
|
|
6818
|
+
* US state abbreviation; must be one of the owning company's operating regions.
|
|
6819
|
+
*/
|
|
6820
|
+
region?: string | null;
|
|
6821
|
+
/**
|
|
6822
|
+
* Gates IRA tax-credit checks. Applies only while `federal_pwa_mode` is not `none` — sending `true` or null while federal tracking is off returns 422, and switching to `none` sets it back to `false`.
|
|
6823
|
+
*/
|
|
6824
|
+
asset_owner?: boolean;
|
|
6825
|
+
/**
|
|
6826
|
+
* Name of the project administrator. Applies only while `federal_pwa_mode` is not `none` — sending it while federal tracking is off, even as null, returns 422, and switching to `none` clears the stored value.
|
|
6827
|
+
*/
|
|
6828
|
+
administrator_name?: string | null;
|
|
6829
|
+
/**
|
|
6830
|
+
* Email of the project administrator. Applies only while `federal_pwa_mode` is not `none` — sending it while federal tracking is off, even as null, returns 422, and switching to `none` clears the stored value.
|
|
6831
|
+
*/
|
|
6832
|
+
administrator_email?: string | null;
|
|
6833
|
+
/**
|
|
6834
|
+
* Phone of the project administrator, normalized to E.164. Applies only while `federal_pwa_mode` is not `none` — sending it while federal tracking is off, even as null, returns 422, and switching to `none` clears the stored value.
|
|
6835
|
+
*/
|
|
6836
|
+
administrator_phone?: string | null;
|
|
6837
|
+
/**
|
|
6838
|
+
* Decimal string (e.g. "5000.0"). Applies only while `federal_pwa_mode` is not `none` — sending it while federal tracking is off, even as null, returns 422, and switching to `none` clears the stored value.
|
|
6839
|
+
*/
|
|
6840
|
+
budget?: string;
|
|
6841
|
+
/**
|
|
6842
|
+
* Prevailing-wage lock-in date as an ISO8601 date. Applies only while `federal_pwa_mode` is not `none` — sending it while federal tracking is off, even as null, returns 422, and switching to `none` clears the stored value.
|
|
6843
|
+
*/
|
|
6844
|
+
prevailing_wage_lock_in_date?: string | null;
|
|
6845
|
+
/**
|
|
6846
|
+
* IRA beginning-of-construction date as an ISO8601 date. Applies only while `federal_pwa_mode` is not `none` — sending it while federal tracking is off, even as null, returns 422, and switching to `none` clears the stored value.
|
|
6847
|
+
*/
|
|
6848
|
+
beginning_of_construction_date?: string | null;
|
|
6849
|
+
/**
|
|
6850
|
+
* IRA placed-in-service date as an ISO8601 date. Applies only while `federal_pwa_mode` is not `none` — sending it while federal tracking is off, even as null, returns 422, and switching to `none` clears the stored value.
|
|
6851
|
+
*/
|
|
6852
|
+
placed_in_service_date?: string | null;
|
|
6853
|
+
};
|
|
6854
|
+
/**
|
|
6855
|
+
* Request body for updating a project. Every field is optional; omit a field to preserve its current value. The resulting project must still satisfy conditional PWA, regional, and schedule validation rules. `created_by_user_id` is create-only and an update that names it is rejected.
|
|
6856
|
+
*/
|
|
6857
|
+
export type ProjectUpdateParameters = {
|
|
6858
|
+
/**
|
|
6859
|
+
* Client-supplied external identifier, or null.
|
|
6860
|
+
*/
|
|
6861
|
+
external_id?: string | null;
|
|
6862
|
+
/**
|
|
6863
|
+
* Human-readable project name; omit to preserve the current value. The resulting project name must remain present and unique within the owning company.
|
|
6864
|
+
*/
|
|
6865
|
+
name?: string;
|
|
6866
|
+
/**
|
|
6867
|
+
* Free-form project description, or null.
|
|
6868
|
+
*/
|
|
6869
|
+
description?: string | null;
|
|
6749
6870
|
/**
|
|
6750
6871
|
* User recorded as the project's creator; must be a member of the owning company. Required on create and immutable thereafter — an update that sets, changes, or clears it is rejected.
|
|
6751
6872
|
*/
|
|
@@ -8165,7 +8286,7 @@ export type PositionParameters = {
|
|
|
8165
8286
|
};
|
|
8166
8287
|
};
|
|
8167
8288
|
/**
|
|
8168
|
-
* Parameters for creating
|
|
8289
|
+
* Parameters for creating a per-unit scope price on a job. `scope_kind` and `unit_price` are required.
|
|
8169
8290
|
*/
|
|
8170
8291
|
export type ProductionJobScopePriceParameters = {
|
|
8171
8292
|
/**
|
|
@@ -8185,6 +8306,27 @@ export type ProductionJobScopePriceParameters = {
|
|
|
8185
8306
|
*/
|
|
8186
8307
|
unit_of_measure?: string;
|
|
8187
8308
|
};
|
|
8309
|
+
/**
|
|
8310
|
+
* Parameters for updating a per-unit scope price on a job. Every field is optional; omit a field to preserve its current value. The resulting price must retain a scope kind and non-negative unit price.
|
|
8311
|
+
*/
|
|
8312
|
+
export type ProductionJobScopePriceUpdateParameters = {
|
|
8313
|
+
/**
|
|
8314
|
+
* The scope of work this price covers, as a free-text label (for example "annual", "semi_annual", or "modules"). A job has at most one price per scope kind.
|
|
8315
|
+
*/
|
|
8316
|
+
scope_kind?: string;
|
|
8317
|
+
/**
|
|
8318
|
+
* Billing rate per unit, as a decimal string in the company's currency.
|
|
8319
|
+
*/
|
|
8320
|
+
unit_price?: string;
|
|
8321
|
+
/**
|
|
8322
|
+
* Contracted number of units expected for this scope on the job; null when no target is set.
|
|
8323
|
+
*/
|
|
8324
|
+
contracted_count?: number | null;
|
|
8325
|
+
/**
|
|
8326
|
+
* What each priced unit represents, as a free-text label (for example "modules", "piles", or "turbines"); defaults to "units".
|
|
8327
|
+
*/
|
|
8328
|
+
unit_of_measure?: string;
|
|
8329
|
+
};
|
|
8188
8330
|
/**
|
|
8189
8331
|
* A per-unit billing price for one scope of work on a job. Production completions bill against these prices.
|
|
8190
8332
|
*/
|
|
@@ -8639,7 +8781,7 @@ export type CertificationResponseObject = {
|
|
|
8639
8781
|
updated_at: string;
|
|
8640
8782
|
};
|
|
8641
8783
|
/**
|
|
8642
|
-
* Request body for recording
|
|
8784
|
+
* Request body for recording a certification held by a worker — who holds it, which certification, when it was received, and optional proof, expiry, and verification details.
|
|
8643
8785
|
*/
|
|
8644
8786
|
export type UserCertificationParameters = {
|
|
8645
8787
|
/**
|
|
@@ -8692,6 +8834,60 @@ export type UserCertificationParameters = {
|
|
|
8692
8834
|
*/
|
|
8693
8835
|
approved_at?: string | null;
|
|
8694
8836
|
};
|
|
8837
|
+
/**
|
|
8838
|
+
* Request body for updating a certification held by a worker. Every field is optional; omit a field to preserve its current value. The resulting certification must still have a receipt date and verification state, and any expiry date must remain after its receipt date.
|
|
8839
|
+
*/
|
|
8840
|
+
export type UserCertificationUpdateParameters = {
|
|
8841
|
+
/**
|
|
8842
|
+
* Id of the worker who holds the certification. Omit to preserve the current worker.
|
|
8843
|
+
*/
|
|
8844
|
+
user_id?: string;
|
|
8845
|
+
/**
|
|
8846
|
+
* Id of the certification held. Omit to preserve the current certification; a worker can hold each certification at most once.
|
|
8847
|
+
*/
|
|
8848
|
+
certification_id?: string;
|
|
8849
|
+
/**
|
|
8850
|
+
* When the worker earned the certification (ISO 8601). Omit to preserve the current receipt date.
|
|
8851
|
+
*/
|
|
8852
|
+
received_at?: string;
|
|
8853
|
+
/**
|
|
8854
|
+
* Optional proof document to attach (for example a certificate scan). Write-only — it is not returned in responses.
|
|
8855
|
+
*/
|
|
8856
|
+
file?: {
|
|
8857
|
+
/**
|
|
8858
|
+
* File name of the proof document, including its extension (for example "gwo-cert.pdf").
|
|
8859
|
+
*/
|
|
8860
|
+
name: string;
|
|
8861
|
+
/**
|
|
8862
|
+
* Base64-encoded contents of the proof document.
|
|
8863
|
+
*/
|
|
8864
|
+
content: string;
|
|
8865
|
+
} | null;
|
|
8866
|
+
/**
|
|
8867
|
+
* Whether DSPTCH has verified this held certification. Distinct from the verified flag on the certification definition itself.
|
|
8868
|
+
*/
|
|
8869
|
+
verified?: boolean;
|
|
8870
|
+
/**
|
|
8871
|
+
* When the held certification expires (YYYY-MM-DD). Must be after received_at; null when it does not expire.
|
|
8872
|
+
*/
|
|
8873
|
+
expiration_date?: string | null;
|
|
8874
|
+
/**
|
|
8875
|
+
* The credential or document number for the held certification, as issued by the issuer (for example a WINDA number or a license number). Free text; null when none.
|
|
8876
|
+
*/
|
|
8877
|
+
credential_id?: string | null;
|
|
8878
|
+
/**
|
|
8879
|
+
* Id of the user recorded as approving this held certification; null when unset.
|
|
8880
|
+
*/
|
|
8881
|
+
approved_by_user_id?: string | null;
|
|
8882
|
+
/**
|
|
8883
|
+
* When the held certification was archived (ISO 8601); null while active. Archiving is a soft flag, separate from deleting the record.
|
|
8884
|
+
*/
|
|
8885
|
+
archived_at?: string | null;
|
|
8886
|
+
/**
|
|
8887
|
+
* When this held certification was approved (ISO 8601); null when unset.
|
|
8888
|
+
*/
|
|
8889
|
+
approved_at?: string | null;
|
|
8890
|
+
};
|
|
8695
8891
|
/**
|
|
8696
8892
|
* A page of certifications held by your company's workers.
|
|
8697
8893
|
*/
|
|
@@ -10212,7 +10408,7 @@ export type AssetsItemResponseObject = {
|
|
|
10212
10408
|
updated_at: string;
|
|
10213
10409
|
};
|
|
10214
10410
|
/**
|
|
10215
|
-
* Create
|
|
10411
|
+
* Create an asset item. The write API creates serial items only; assets_product_id and serial_number identify the product and serial number. On create you may also place the item — assets_site_id to stock it at a site, or user_id to assign it to a user (the two are mutually exclusive). performed_by_user_id is required.
|
|
10216
10412
|
*/
|
|
10217
10413
|
export type AssetsItemParameters = {
|
|
10218
10414
|
/**
|
|
@@ -10276,6 +10472,71 @@ export type AssetsItemParameters = {
|
|
|
10276
10472
|
*/
|
|
10277
10473
|
performed_by_user_id: string;
|
|
10278
10474
|
};
|
|
10475
|
+
/**
|
|
10476
|
+
* Update an asset item. All item fields are optional — send only what changes — but performed_by_user_id is required to record the updater and any placement. Omitted attributes retain their existing values.
|
|
10477
|
+
*/
|
|
10478
|
+
export type AssetsItemUpdateParameters = {
|
|
10479
|
+
/**
|
|
10480
|
+
* Human-readable name for the item.
|
|
10481
|
+
*/
|
|
10482
|
+
name?: string;
|
|
10483
|
+
/**
|
|
10484
|
+
* Free-text description of the item.
|
|
10485
|
+
*/
|
|
10486
|
+
description?: string;
|
|
10487
|
+
/**
|
|
10488
|
+
* ID of the product this item is an instance of.
|
|
10489
|
+
*/
|
|
10490
|
+
assets_product_id?: string;
|
|
10491
|
+
/**
|
|
10492
|
+
* Serial number identifying the individual physical unit; unique within its product.
|
|
10493
|
+
*/
|
|
10494
|
+
serial_number?: string;
|
|
10495
|
+
/**
|
|
10496
|
+
* Placement status of the item: available, or assigned when held by a user.
|
|
10497
|
+
*/
|
|
10498
|
+
status?: 'available' | 'assigned';
|
|
10499
|
+
/**
|
|
10500
|
+
* When the item was purchased (ISO 8601).
|
|
10501
|
+
*/
|
|
10502
|
+
purchase_date?: string;
|
|
10503
|
+
/**
|
|
10504
|
+
* Purchase price in cents, in the item's currency.
|
|
10505
|
+
*/
|
|
10506
|
+
purchase_price_cents?: number;
|
|
10507
|
+
/**
|
|
10508
|
+
* Identifier for this item in an external system.
|
|
10509
|
+
*/
|
|
10510
|
+
external_id?: string;
|
|
10511
|
+
/**
|
|
10512
|
+
* URL to this item in an external system.
|
|
10513
|
+
*/
|
|
10514
|
+
external_system_url?: string;
|
|
10515
|
+
/**
|
|
10516
|
+
* Image attachments. Send file with a signed_id to add one; include id with _destroy to remove an existing one.
|
|
10517
|
+
*/
|
|
10518
|
+
images_attributes?: Array<AssetsAttachmentParameters>;
|
|
10519
|
+
/**
|
|
10520
|
+
* Optional. Move the item to this site; mutually exclusive with user_id and container_item_id.
|
|
10521
|
+
*/
|
|
10522
|
+
assets_site_id?: string;
|
|
10523
|
+
/**
|
|
10524
|
+
* Optional. Assign the item to this user; mutually exclusive with assets_site_id and container_item_id.
|
|
10525
|
+
*/
|
|
10526
|
+
user_id?: string;
|
|
10527
|
+
/**
|
|
10528
|
+
* Optional. Place the item inside this container item; mutually exclusive with assets_site_id and user_id.
|
|
10529
|
+
*/
|
|
10530
|
+
container_item_id?: string;
|
|
10531
|
+
/**
|
|
10532
|
+
* Optional. The storage location within the placement site or container; omit for an unbinned placement. Ignored for a user assignment.
|
|
10533
|
+
*/
|
|
10534
|
+
assets_sub_location_id?: string;
|
|
10535
|
+
/**
|
|
10536
|
+
* ID of the user this update is performed on behalf of, recorded as updater and attributed to any placement. Required; must belong to your company.
|
|
10537
|
+
*/
|
|
10538
|
+
performed_by_user_id: string;
|
|
10539
|
+
};
|
|
10279
10540
|
/**
|
|
10280
10541
|
* A vendor in the company's asset catalog — a supplier or manufacturer that products are sourced from.
|
|
10281
10542
|
*/
|
|
@@ -10531,6 +10792,59 @@ export type AssetsFormAssignmentTriggerParameters = {
|
|
|
10531
10792
|
*/
|
|
10532
10793
|
assets_product_ids?: Array<string>;
|
|
10533
10794
|
};
|
|
10795
|
+
/**
|
|
10796
|
+
* Update a form-assignment trigger rule. All fields are optional — send only what changes. When changing first_due_by, include the matching day field when required; assigned_user_ids applies only to the custom assign_to mode.
|
|
10797
|
+
*/
|
|
10798
|
+
export type AssetsFormAssignmentTriggerUpdateParameters = {
|
|
10799
|
+
/**
|
|
10800
|
+
* ID of the form definition (a SurveyJS form template) this assignment is for.
|
|
10801
|
+
*/
|
|
10802
|
+
form_definition_id?: string;
|
|
10803
|
+
/**
|
|
10804
|
+
* The custody event that fires the rule: assignment (an item is assigned to a user) or unassignment (an item is removed from a user).
|
|
10805
|
+
*/
|
|
10806
|
+
triggered_by?: 'assignment' | 'unassignment';
|
|
10807
|
+
/**
|
|
10808
|
+
* Who the generated form is assigned to: custom (the users in assigned_user_ids), asset_assignee (the user who now holds the item), or previous_asset_assignee (the user who held it before the event).
|
|
10809
|
+
*/
|
|
10810
|
+
assign_to?: 'custom' | 'asset_assignee' | 'previous_asset_assignee';
|
|
10811
|
+
/**
|
|
10812
|
+
* How the first due date is set: day_of_event (the day the rule fires), day_of_week (the next day_of_week_due), or day_of_month (day_of_month_due of the current or next month).
|
|
10813
|
+
*/
|
|
10814
|
+
first_due_by?: 'day_of_event' | 'day_of_week' | 'day_of_month';
|
|
10815
|
+
/**
|
|
10816
|
+
* IANA time zone (e.g. "America/New_York") in which time_of_day_due is interpreted.
|
|
10817
|
+
*/
|
|
10818
|
+
tz_name?: string;
|
|
10819
|
+
/**
|
|
10820
|
+
* Wall-clock time of day the form is due (HH:MM), interpreted in tz_name.
|
|
10821
|
+
*/
|
|
10822
|
+
time_of_day_due?: string;
|
|
10823
|
+
/**
|
|
10824
|
+
* Optional label for this trigger rule; null when unset.
|
|
10825
|
+
*/
|
|
10826
|
+
name?: string | null;
|
|
10827
|
+
/**
|
|
10828
|
+
* How often the generated form recurs: one of DAILY, WORKDAILY, WORKDAILYSIX, WEEKLY, BIWEEKLY, MONTHLY, or QUARTERLY. Null for a one-time assignment.
|
|
10829
|
+
*/
|
|
10830
|
+
recurrence_frequency?: 'DAILY' | 'WORKDAILY' | 'WORKDAILYSIX' | 'WEEKLY' | 'BIWEEKLY' | 'MONTHLY' | 'QUARTERLY' | null;
|
|
10831
|
+
/**
|
|
10832
|
+
* Day of week the form is first due, 0 (Sunday) to 6 (Saturday). Required when first_due_by is day_of_week; null otherwise.
|
|
10833
|
+
*/
|
|
10834
|
+
day_of_week_due?: number | null;
|
|
10835
|
+
/**
|
|
10836
|
+
* Day of month the form is first due, 1 to 31 (clamped to the month's last day). Required when first_due_by is day_of_month; null otherwise.
|
|
10837
|
+
*/
|
|
10838
|
+
day_of_month_due?: number | null;
|
|
10839
|
+
/**
|
|
10840
|
+
* IDs of the users the generated form is assigned to. Used only when assign_to is custom; cleared for the other modes.
|
|
10841
|
+
*/
|
|
10842
|
+
assigned_user_ids?: Array<string>;
|
|
10843
|
+
/**
|
|
10844
|
+
* IDs of the products this rule applies to; the rule fires for items of these products.
|
|
10845
|
+
*/
|
|
10846
|
+
assets_product_ids?: Array<string>;
|
|
10847
|
+
};
|
|
10534
10848
|
/**
|
|
10535
10849
|
* A file attached to an asset — an item or product image, or a service-event attachment. Uploaded through the direct-upload flow; the response carries a URL to download it.
|
|
10536
10850
|
*/
|
|
@@ -10665,6 +10979,23 @@ export type AssetsDocumentParameters = {
|
|
|
10665
10979
|
*/
|
|
10666
10980
|
description?: string | null;
|
|
10667
10981
|
};
|
|
10982
|
+
/**
|
|
10983
|
+
* Update an asset-item document. All fields are optional — send only what changes. Omit file to retain the existing attachment, or supply a new signed_id to replace it.
|
|
10984
|
+
*/
|
|
10985
|
+
export type AssetsDocumentUpdateParameters = {
|
|
10986
|
+
/**
|
|
10987
|
+
* A signed_id from POST /api/v1/direct_uploads identifying a replacement blob. Register the upload naming `assets.items.documents` — a signed_id issued for any other resource will not resolve here.
|
|
10988
|
+
*/
|
|
10989
|
+
file?: string;
|
|
10990
|
+
/**
|
|
10991
|
+
* The file's human-readable download name; null when not set.
|
|
10992
|
+
*/
|
|
10993
|
+
filename?: string | null;
|
|
10994
|
+
/**
|
|
10995
|
+
* Free-text description of the document; null when none.
|
|
10996
|
+
*/
|
|
10997
|
+
description?: string | null;
|
|
10998
|
+
};
|
|
10668
10999
|
/**
|
|
10669
11000
|
* One entry in an item document's change history, recorded whenever the document is created, updated, or deleted — including when only its attached file is replaced.
|
|
10670
11001
|
*/
|
|
@@ -10811,6 +11142,69 @@ export type AssetsItemFormAssignmentParameters = {
|
|
|
10811
11142
|
}>;
|
|
10812
11143
|
};
|
|
10813
11144
|
};
|
|
11145
|
+
/**
|
|
11146
|
+
* Update an item 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.
|
|
11147
|
+
*/
|
|
11148
|
+
export type AssetsItemFormAssignmentUpdateParameters = {
|
|
11149
|
+
/**
|
|
11150
|
+
* ID of the form definition (a SurveyJS form template) this assignment is for.
|
|
11151
|
+
*/
|
|
11152
|
+
form_definition_id?: string;
|
|
11153
|
+
/**
|
|
11154
|
+
* When true, frequency and recurrence_end_time apply; when false or omitted, the task is one-time and those fields are cleared.
|
|
11155
|
+
*/
|
|
11156
|
+
recurring?: boolean;
|
|
11157
|
+
/**
|
|
11158
|
+
* The underlying task's name, schedule, assignees, and reminders.
|
|
11159
|
+
*/
|
|
11160
|
+
task_attributes?: {
|
|
11161
|
+
/**
|
|
11162
|
+
* Name of the form task; defaults to the form definition's name.
|
|
11163
|
+
*/
|
|
11164
|
+
name?: string | null;
|
|
11165
|
+
/**
|
|
11166
|
+
* Free-text description of the task.
|
|
11167
|
+
*/
|
|
11168
|
+
description?: string | null;
|
|
11169
|
+
/**
|
|
11170
|
+
* ID of the user who created the task. Existing assignments retain their creator when this is omitted.
|
|
11171
|
+
*/
|
|
11172
|
+
created_by_user_id?: string;
|
|
11173
|
+
/**
|
|
11174
|
+
* ID of the user updating the task. The API derives the stored updater from the task creator.
|
|
11175
|
+
*/
|
|
11176
|
+
updated_by_user_id?: string | null;
|
|
11177
|
+
/**
|
|
11178
|
+
* When the form task is due (ISO 8601), interpreted in tz_name; null for an unscheduled task.
|
|
11179
|
+
*/
|
|
11180
|
+
time_due?: string | null;
|
|
11181
|
+
/**
|
|
11182
|
+
* IANA time zone in which time_due is interpreted; null for an unscheduled task.
|
|
11183
|
+
*/
|
|
11184
|
+
tz_name?: string | null;
|
|
11185
|
+
/**
|
|
11186
|
+
* How often this form task recurs: one of DAILY, WORKDAILY, WORKDAILYSIX, WEEKLY, BIWEEKLY, MONTHLY, or QUARTERLY. Null for a one-time assignment; on write, applied only when recurring is true.
|
|
11187
|
+
*/
|
|
11188
|
+
frequency?: 'DAILY' | 'WORKDAILY' | 'WORKDAILYSIX' | 'WEEKLY' | 'BIWEEKLY' | 'MONTHLY' | 'QUARTERLY' | null;
|
|
11189
|
+
/**
|
|
11190
|
+
* When recurrence stops (ISO 8601); null for a non-recurring or open-ended task.
|
|
11191
|
+
*/
|
|
11192
|
+
recurrence_end_time?: string | null;
|
|
11193
|
+
/**
|
|
11194
|
+
* IDs of the users this form task is assigned to.
|
|
11195
|
+
*/
|
|
11196
|
+
task_assignee_user_ids?: Array<string>;
|
|
11197
|
+
/**
|
|
11198
|
+
* Reminders to attach, each an offset from the due time. On update, replaces the existing set.
|
|
11199
|
+
*/
|
|
11200
|
+
reminders_attributes?: Array<{
|
|
11201
|
+
/**
|
|
11202
|
+
* ISO 8601 duration offset from the due time for the reminder (e.g. -PT1H for one hour before); must be one of the preset reminder times.
|
|
11203
|
+
*/
|
|
11204
|
+
offset: 'PT0S' | 'PT-1M' | 'PT-5M' | 'PT-10M' | 'PT-15M' | 'PT-30M' | 'PT-1H' | 'PT-2H' | 'P-1D' | 'P-2D' | 'P-3D' | 'P-4D' | 'P-5D' | 'P-6D' | 'P-1W' | 'P-2W' | 'P-1M' | 'P-2M' | 'P-3M' | 'P-6M' | 'P-1Y' | 'PT5M' | 'PT15M' | 'PT30M' | 'PT1H' | 'PT6H' | 'PT12H' | 'P1D' | 'P2D' | 'P3D' | 'P4D' | 'P5D' | 'P6D' | 'P1W' | 'P2W' | 'P3W';
|
|
11205
|
+
}>;
|
|
11206
|
+
};
|
|
11207
|
+
};
|
|
10814
11208
|
/**
|
|
10815
11209
|
* On-hand stock of an item at a site — one row per item, site, and storage location. Read-only. A site with none of the item has no row at all, since a row is removed once its count reaches zero.
|
|
10816
11210
|
*/
|
|
@@ -11107,6 +11501,35 @@ export type AssetsServiceScheduleParameters = {
|
|
|
11107
11501
|
*/
|
|
11108
11502
|
performed_by_user_id: string;
|
|
11109
11503
|
};
|
|
11504
|
+
/**
|
|
11505
|
+
* Update a service schedule. Cadence and last_serviced_on fields are optional — send only what changes — but performed_by_user_id is required to record the updater. next_due_date is recomputed.
|
|
11506
|
+
*/
|
|
11507
|
+
export type AssetsServiceScheduleUpdateParameters = {
|
|
11508
|
+
/**
|
|
11509
|
+
* The service cadence: one of calibration or maintenance.
|
|
11510
|
+
*/
|
|
11511
|
+
kind?: 'calibration' | 'maintenance';
|
|
11512
|
+
/**
|
|
11513
|
+
* Optional label distinguishing this schedule from others of the same kind on the item; null when unset.
|
|
11514
|
+
*/
|
|
11515
|
+
name?: string | null;
|
|
11516
|
+
/**
|
|
11517
|
+
* Unit of the service interval: one of year, month, week, or day.
|
|
11518
|
+
*/
|
|
11519
|
+
interval_unit?: 'year' | 'month' | 'week' | 'day';
|
|
11520
|
+
/**
|
|
11521
|
+
* Number of interval_units between services; greater than 0.
|
|
11522
|
+
*/
|
|
11523
|
+
interval_count?: number;
|
|
11524
|
+
/**
|
|
11525
|
+
* Manually-set anchor date of the most recent service; next_due_date derives from it until an actual service event supersedes it. Null when unset.
|
|
11526
|
+
*/
|
|
11527
|
+
last_serviced_on?: string | null;
|
|
11528
|
+
/**
|
|
11529
|
+
* ID of the user this update is performed on behalf of, recorded as the schedule's updater. Required; must belong to your company.
|
|
11530
|
+
*/
|
|
11531
|
+
performed_by_user_id: string;
|
|
11532
|
+
};
|
|
11110
11533
|
/**
|
|
11111
11534
|
* A service performed on a serial item — scheduled (satisfying a service schedule) or ad-hoc. Recording one advances the linked schedule's next_due_date.
|
|
11112
11535
|
*/
|
|
@@ -11185,6 +11608,35 @@ export type AssetsServiceEventParameters = {
|
|
|
11185
11608
|
*/
|
|
11186
11609
|
attachments_attributes?: Array<AssetsAttachmentParameters>;
|
|
11187
11610
|
};
|
|
11611
|
+
/**
|
|
11612
|
+
* Update a service event. Event fields are optional — send only what changes — but performed_by_user_id is required to record the updater. A linked schedule dictates kind, and changing or removing the link recomputes affected due dates.
|
|
11613
|
+
*/
|
|
11614
|
+
export type AssetsServiceEventUpdateParameters = {
|
|
11615
|
+
/**
|
|
11616
|
+
* The kind of service performed: one of calibration, maintenance, or repair. Ignored when assets_service_schedule_id is set — the schedule dictates the kind.
|
|
11617
|
+
*/
|
|
11618
|
+
kind?: 'calibration' | 'maintenance' | 'repair';
|
|
11619
|
+
/**
|
|
11620
|
+
* Free-text notes on the service; null when none.
|
|
11621
|
+
*/
|
|
11622
|
+
notes?: string | null;
|
|
11623
|
+
/**
|
|
11624
|
+
* Date the service was performed; stored as company-local midnight and returned as performed_at. Omit to retain the existing date.
|
|
11625
|
+
*/
|
|
11626
|
+
performed_on?: string;
|
|
11627
|
+
/**
|
|
11628
|
+
* ID of the service schedule this event satisfies; must belong to the item. Omit to retain the existing link, or send null to remove it.
|
|
11629
|
+
*/
|
|
11630
|
+
assets_service_schedule_id?: string | null;
|
|
11631
|
+
/**
|
|
11632
|
+
* ID of the user this update is performed on behalf of. Required; must belong to your company.
|
|
11633
|
+
*/
|
|
11634
|
+
performed_by_user_id: string;
|
|
11635
|
+
/**
|
|
11636
|
+
* Document attachments for the service. Set _destroy with an id to remove an existing one; omit id to add a new one.
|
|
11637
|
+
*/
|
|
11638
|
+
attachments_attributes?: Array<AssetsAttachmentParameters>;
|
|
11639
|
+
};
|
|
11188
11640
|
/**
|
|
11189
11641
|
* A product-level service cadence that seeds and syncs the matching schedules on that product's items. Changing its defining fields (name, kind, interval) reconciles linked item schedules in the background.
|
|
11190
11642
|
*/
|
|
@@ -11251,6 +11703,31 @@ export type AssetsServiceScheduleTemplateParameters = {
|
|
|
11251
11703
|
*/
|
|
11252
11704
|
performed_by_user_id: string;
|
|
11253
11705
|
};
|
|
11706
|
+
/**
|
|
11707
|
+
* Update a service schedule template. Cadence fields are optional — send only what changes — but performed_by_user_id is required to record the updater. Changing defining fields reconciles linked item schedules in the background.
|
|
11708
|
+
*/
|
|
11709
|
+
export type AssetsServiceScheduleTemplateUpdateParameters = {
|
|
11710
|
+
/**
|
|
11711
|
+
* The service cadence: one of calibration or maintenance.
|
|
11712
|
+
*/
|
|
11713
|
+
kind?: 'calibration' | 'maintenance';
|
|
11714
|
+
/**
|
|
11715
|
+
* Optional label distinguishing this template from others of the same kind on the product; null when unset.
|
|
11716
|
+
*/
|
|
11717
|
+
name?: string | null;
|
|
11718
|
+
/**
|
|
11719
|
+
* Unit of the service interval: one of year, month, week, or day.
|
|
11720
|
+
*/
|
|
11721
|
+
interval_unit?: 'year' | 'month' | 'week' | 'day';
|
|
11722
|
+
/**
|
|
11723
|
+
* Number of interval_units between services; greater than 0.
|
|
11724
|
+
*/
|
|
11725
|
+
interval_count?: number;
|
|
11726
|
+
/**
|
|
11727
|
+
* ID of the user this update is performed on behalf of, recorded as the template's updater. Required; must belong to your company.
|
|
11728
|
+
*/
|
|
11729
|
+
performed_by_user_id: string;
|
|
11730
|
+
};
|
|
11254
11731
|
/**
|
|
11255
11732
|
* A node of fixed storage structure inside a site or a container item — a zone, aisle, rack, shelf, bin, or drawer. Nodes form a tree per holder, and each carries a scannable path_code composed from its ancestors' codes.
|
|
11256
11733
|
*/
|
|
@@ -12902,7 +13379,7 @@ export type GetFormAssignmentTriggerResponses = {
|
|
|
12902
13379
|
};
|
|
12903
13380
|
export type GetFormAssignmentTriggerResponse = GetFormAssignmentTriggerResponses[keyof GetFormAssignmentTriggerResponses];
|
|
12904
13381
|
export type UpdateFormAssignmentTriggerData = {
|
|
12905
|
-
body:
|
|
13382
|
+
body: AssetsFormAssignmentTriggerUpdateParameters;
|
|
12906
13383
|
path: {
|
|
12907
13384
|
id: string;
|
|
12908
13385
|
};
|
|
@@ -13122,7 +13599,7 @@ export type GetItemResponses = {
|
|
|
13122
13599
|
};
|
|
13123
13600
|
export type GetItemResponse = GetItemResponses[keyof GetItemResponses];
|
|
13124
13601
|
export type UpdateItemData = {
|
|
13125
|
-
body:
|
|
13602
|
+
body: AssetsItemUpdateParameters;
|
|
13126
13603
|
path: {
|
|
13127
13604
|
id: string;
|
|
13128
13605
|
};
|
|
@@ -13130,10 +13607,18 @@ export type UpdateItemData = {
|
|
|
13130
13607
|
url: '/api/v1/assets/items/{id}';
|
|
13131
13608
|
};
|
|
13132
13609
|
export type UpdateItemErrors = {
|
|
13610
|
+
/**
|
|
13611
|
+
* Bad Request (missing performed_by_user_id)
|
|
13612
|
+
*/
|
|
13613
|
+
400: Problem;
|
|
13133
13614
|
/**
|
|
13134
13615
|
* Forbidden
|
|
13135
13616
|
*/
|
|
13136
13617
|
403: Problem;
|
|
13618
|
+
/**
|
|
13619
|
+
* Unprocessable Content
|
|
13620
|
+
*/
|
|
13621
|
+
422: Problem;
|
|
13137
13622
|
};
|
|
13138
13623
|
export type UpdateItemError = UpdateItemErrors[keyof UpdateItemErrors];
|
|
13139
13624
|
export type UpdateItemResponses = {
|
|
@@ -13328,7 +13813,7 @@ export type GetServiceScheduleResponses = {
|
|
|
13328
13813
|
};
|
|
13329
13814
|
export type GetServiceScheduleResponse = GetServiceScheduleResponses[keyof GetServiceScheduleResponses];
|
|
13330
13815
|
export type UpdateServiceScheduleData = {
|
|
13331
|
-
body:
|
|
13816
|
+
body: AssetsServiceScheduleUpdateParameters;
|
|
13332
13817
|
path: {
|
|
13333
13818
|
item_id: string;
|
|
13334
13819
|
id: string;
|
|
@@ -13337,6 +13822,10 @@ export type UpdateServiceScheduleData = {
|
|
|
13337
13822
|
url: '/api/v1/assets/items/{item_id}/service_schedules/{id}';
|
|
13338
13823
|
};
|
|
13339
13824
|
export type UpdateServiceScheduleErrors = {
|
|
13825
|
+
/**
|
|
13826
|
+
* Bad Request (missing performed_by_user_id)
|
|
13827
|
+
*/
|
|
13828
|
+
400: Problem;
|
|
13340
13829
|
/**
|
|
13341
13830
|
* Forbidden
|
|
13342
13831
|
*/
|
|
@@ -13486,7 +13975,7 @@ export type GetServiceEventResponses = {
|
|
|
13486
13975
|
};
|
|
13487
13976
|
export type GetServiceEventResponse = GetServiceEventResponses[keyof GetServiceEventResponses];
|
|
13488
13977
|
export type UpdateServiceEventData = {
|
|
13489
|
-
body:
|
|
13978
|
+
body: AssetsServiceEventUpdateParameters;
|
|
13490
13979
|
path: {
|
|
13491
13980
|
item_id: string;
|
|
13492
13981
|
id: string;
|
|
@@ -13495,6 +13984,10 @@ export type UpdateServiceEventData = {
|
|
|
13495
13984
|
url: '/api/v1/assets/items/{item_id}/service_events/{id}';
|
|
13496
13985
|
};
|
|
13497
13986
|
export type UpdateServiceEventErrors = {
|
|
13987
|
+
/**
|
|
13988
|
+
* Bad Request (missing performed_by_user_id)
|
|
13989
|
+
*/
|
|
13990
|
+
400: Problem;
|
|
13498
13991
|
/**
|
|
13499
13992
|
* Forbidden
|
|
13500
13993
|
*/
|
|
@@ -13607,7 +14100,7 @@ export type GetFormAssignmentTaskResponses = {
|
|
|
13607
14100
|
};
|
|
13608
14101
|
export type GetFormAssignmentTaskResponse = GetFormAssignmentTaskResponses[keyof GetFormAssignmentTaskResponses];
|
|
13609
14102
|
export type UpdateFormAssignmentTaskData = {
|
|
13610
|
-
body:
|
|
14103
|
+
body: AssetsItemFormAssignmentUpdateParameters;
|
|
13611
14104
|
path: {
|
|
13612
14105
|
item_id: string;
|
|
13613
14106
|
id: string;
|
|
@@ -13753,7 +14246,7 @@ export type GetDocumentResponses = {
|
|
|
13753
14246
|
};
|
|
13754
14247
|
export type GetDocumentResponse = GetDocumentResponses[keyof GetDocumentResponses];
|
|
13755
14248
|
export type UpdateDocumentData = {
|
|
13756
|
-
body:
|
|
14249
|
+
body: AssetsDocumentUpdateParameters;
|
|
13757
14250
|
path: {
|
|
13758
14251
|
item_id: string;
|
|
13759
14252
|
id: string;
|
|
@@ -14194,7 +14687,7 @@ export type GetServiceScheduleTemplateResponses = {
|
|
|
14194
14687
|
};
|
|
14195
14688
|
export type GetServiceScheduleTemplateResponse = GetServiceScheduleTemplateResponses[keyof GetServiceScheduleTemplateResponses];
|
|
14196
14689
|
export type UpdateServiceScheduleTemplateData = {
|
|
14197
|
-
body:
|
|
14690
|
+
body: AssetsServiceScheduleTemplateUpdateParameters;
|
|
14198
14691
|
path: {
|
|
14199
14692
|
product_id: string;
|
|
14200
14693
|
id: string;
|
|
@@ -14203,6 +14696,10 @@ export type UpdateServiceScheduleTemplateData = {
|
|
|
14203
14696
|
url: '/api/v1/assets/products/{product_id}/service_schedule_templates/{id}';
|
|
14204
14697
|
};
|
|
14205
14698
|
export type UpdateServiceScheduleTemplateErrors = {
|
|
14699
|
+
/**
|
|
14700
|
+
* Bad Request (missing performed_by_user_id)
|
|
14701
|
+
*/
|
|
14702
|
+
400: Problem;
|
|
14206
14703
|
/**
|
|
14207
14704
|
* Forbidden
|
|
14208
14705
|
*/
|
|
@@ -15325,7 +15822,7 @@ export type GetUserCertificationResponses = {
|
|
|
15325
15822
|
};
|
|
15326
15823
|
export type GetUserCertificationResponse = GetUserCertificationResponses[keyof GetUserCertificationResponses];
|
|
15327
15824
|
export type UpdateUserCertificationData = {
|
|
15328
|
-
body?:
|
|
15825
|
+
body?: UserCertificationUpdateParameters;
|
|
15329
15826
|
path: {
|
|
15330
15827
|
id: string;
|
|
15331
15828
|
};
|
|
@@ -16021,7 +16518,7 @@ export type GetCustomFieldConfigResponses = {
|
|
|
16021
16518
|
};
|
|
16022
16519
|
export type GetCustomFieldConfigResponse = GetCustomFieldConfigResponses[keyof GetCustomFieldConfigResponses];
|
|
16023
16520
|
export type UpdateCustomFieldConfigData = {
|
|
16024
|
-
body?:
|
|
16521
|
+
body?: CustomFieldConfigUpdateParameters;
|
|
16025
16522
|
path: {
|
|
16026
16523
|
id: string;
|
|
16027
16524
|
};
|
|
@@ -16631,7 +17128,7 @@ export type GetJobScopePriceResponses = {
|
|
|
16631
17128
|
};
|
|
16632
17129
|
export type GetJobScopePriceResponse = GetJobScopePriceResponses[keyof GetJobScopePriceResponses];
|
|
16633
17130
|
export type UpdateJobScopePriceData = {
|
|
16634
|
-
body?:
|
|
17131
|
+
body?: ProductionJobScopePriceUpdateParameters;
|
|
16635
17132
|
path: {
|
|
16636
17133
|
job_id: string;
|
|
16637
17134
|
id: string;
|
|
@@ -17424,7 +17921,7 @@ export type CreateJobData = {
|
|
|
17424
17921
|
/**
|
|
17425
17922
|
* Create a job
|
|
17426
17923
|
*/
|
|
17427
|
-
body:
|
|
17924
|
+
body: JobCreateParameters;
|
|
17428
17925
|
path?: never;
|
|
17429
17926
|
query?: never;
|
|
17430
17927
|
url: '/api/v1/jobs';
|
|
@@ -20086,6 +20583,10 @@ export type UpdatePositionFunctionErrors = {
|
|
|
20086
20583
|
* Not Found
|
|
20087
20584
|
*/
|
|
20088
20585
|
404: Problem;
|
|
20586
|
+
/**
|
|
20587
|
+
* Unprocessable Content
|
|
20588
|
+
*/
|
|
20589
|
+
422: Problem;
|
|
20089
20590
|
};
|
|
20090
20591
|
export type UpdatePositionFunctionError = UpdatePositionFunctionErrors[keyof UpdatePositionFunctionErrors];
|
|
20091
20592
|
export type UpdatePositionFunctionResponses = {
|
|
@@ -20409,7 +20910,7 @@ export type GetProjectResponses = {
|
|
|
20409
20910
|
};
|
|
20410
20911
|
export type GetProjectResponse = GetProjectResponses[keyof GetProjectResponses];
|
|
20411
20912
|
export type UpdateProjectData = {
|
|
20412
|
-
body:
|
|
20913
|
+
body: ProjectUpdateParameters;
|
|
20413
20914
|
path: {
|
|
20414
20915
|
/**
|
|
20415
20916
|
* Unique identifier of the project (UUID).
|