@dsptch-work/api-client 0.48.0 → 0.50.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/sdk.gen.d.ts +13 -7
- package/dist/gen/sdk.gen.js +13 -7
- package/dist/gen/types.gen.d.ts +142 -14
- package/dist/gen/zod.gen.d.ts +93 -8
- package/dist/gen/zod.gen.js +42 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,34 @@ minor bump until `1.0.0`. See [RELEASING.md](./RELEASING.md) for the release and
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.50.0] - 2026-11-04
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `ProjectResponseObject.project_address` is required and contains `{ label }` or `null`. `ProjectParameters` and `ProjectUpdateParameters` accept `project_address_attributes` for structured addresses. On update, omit the field to keep the address or send `null` to clear it; `zProjectResponseObject` now requires the response field.
|
|
15
|
+
- `AssetsSiteResponseObject.responsible_user_ids` lists the responders for transfers into an asset location. `AssetsSiteParameters` and `AssetsSiteUpdateParameters` accept the replacement list; omit it to preserve responders on update, or pass `[]` to clear them. `zAssetsSiteResponseObject` now requires the response field.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **Breaking:** `ProjectParameters.tz_name` and `ProjectUpdateParameters.tz_name` no longer accept `null`, and `zProjectParameters` and `zProjectUpdateParameters` reject it. Omit the field when creating a project to use the company's time zone, or provide a valid time zone. A company without a configured time zone must provide one on creation.
|
|
20
|
+
- Position writes reject a newly assigned worker unless the job provider employs them now or from a future date; template copies skip ineligible assignments and offers. Existing generated request types do not express those checks; see the API changelog for the precise rules.
|
|
21
|
+
|
|
22
|
+
See the [API changelog](https://dsptch.app/support/docs/developers/api-changelog#2026-11-04) for the full REST contract and behavior changes.
|
|
23
|
+
|
|
24
|
+
## [0.49.0] - 2026-11-03
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- `AssetsTransactionEventResponseObject.transaction.kind` and `zAssetsTransactionEventResponseObject` now include `transfer_contents`. Update exhaustive handlers for item movement events.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- **Breaking:** `AssetsTransferResponseObject.from_assets_sub_location_id` moved to the required nullable `transfer_lines[].from_assets_sub_location_id`. Update readers and typed fixtures; `zAssetsTransferResponseObject` now requires the field on each line. `AssetsTransferParameters.from_assets_sub_location_id` remains a top-level request field and applies to each line.
|
|
33
|
+
- `AssetsTransfers.listTransfers()` accepts `declined` in `query['filter[status]']`; the generated query remains a `string`. The generated `AssetsTransferResponseObject.status` type and its Zod validator do not yet include `declined`, even though the API can return it; handle the response accordingly.
|
|
34
|
+
- `PwaCompanyDetailsParameters.pwcr_number` and `PwaCompanyDetailsUpdateParameters.pwcr_number` document a ten-digit value; the API rejects `NA`. Their generated types remain `string | null`, and callers should not rely on those types for validation.
|
|
35
|
+
|
|
36
|
+
See the [API changelog](https://dsptch.app/support/docs/developers/api-changelog) for the full REST contract changes.
|
|
37
|
+
|
|
10
38
|
## [0.48.0] - 2026-11-02
|
|
11
39
|
|
|
12
40
|
### Added
|
package/dist/gen/sdk.gen.d.ts
CHANGED
|
@@ -1088,7 +1088,7 @@ export declare class AssetsSites {
|
|
|
1088
1088
|
/**
|
|
1089
1089
|
* Create Site
|
|
1090
1090
|
*
|
|
1091
|
-
* Only `site_id`, `kind`, and `
|
|
1091
|
+
* Only `site_id`, `kind`, `name`, and `responsible_user_ids` are writable. An undeclared key returns 400 before any site is written.
|
|
1092
1092
|
*
|
|
1093
1093
|
* **Required scope:**
|
|
1094
1094
|
*
|
|
@@ -1117,7 +1117,7 @@ export declare class AssetsSites {
|
|
|
1117
1117
|
/**
|
|
1118
1118
|
* Update Site
|
|
1119
1119
|
*
|
|
1120
|
-
* Only `site_id`, `kind`, and `
|
|
1120
|
+
* Only `site_id`, `kind`, `name`, and `responsible_user_ids` are writable. An omitted `responsible_user_ids` keeps the responders and `[]` clears them. An undeclared key returns 400 before any site is written.
|
|
1121
1121
|
*
|
|
1122
1122
|
* **Required scope:**
|
|
1123
1123
|
*
|
|
@@ -5836,7 +5836,9 @@ export declare class Projects {
|
|
|
5836
5836
|
*
|
|
5837
5837
|
* Create a project owned by the API key's company (owned_by_company_id is set
|
|
5838
5838
|
* automatically from the key). Requires `name`, and `created_by_user_id` must
|
|
5839
|
-
* reference a member of the owning company. `
|
|
5839
|
+
* reference a member of the owning company. `tz_name` cannot be null; when
|
|
5840
|
+
* omitted it defaults to the company's time zone setting, and a company with
|
|
5841
|
+
* no setting must send it. `budget_currency` defaults to USD;
|
|
5840
5842
|
* the federal-PWA-only fields (administrator name/email/phone, `budget_cents`, and the
|
|
5841
5843
|
* prevailing-wage lock-in / beginning-of-construction / placed-in-service dates)
|
|
5842
5844
|
* and `asset_owner` apply only while `federal_pwa_mode` is not `none`, so sending
|
|
@@ -5847,8 +5849,10 @@ export declare class Projects {
|
|
|
5847
5849
|
* keys is present, `performed_by_user_id` is required. `parent_id` may name a
|
|
5848
5850
|
* project visible to the API key's policy, `participating_company_ids` is the
|
|
5849
5851
|
* complete set of participating companies, and `manager_user_ids` is the complete
|
|
5850
|
-
* set of project managers (each a manager of the owning company).
|
|
5851
|
-
*
|
|
5852
|
+
* set of project managers (each a manager of the owning company).
|
|
5853
|
+
* `project_address_attributes` sets the structured address; omit it to leave
|
|
5854
|
+
* none. Remove a participant's jobs before removing it from this set. Returns
|
|
5855
|
+
* 201 with the
|
|
5852
5856
|
* project; unknown or inaccessible parent, company, manager, or filer user IDs
|
|
5853
5857
|
* return 404, and invalid attributes or relationships return 422. Undeclared
|
|
5854
5858
|
* body keys return 400 before any project or relationship is saved.
|
|
@@ -5894,8 +5898,10 @@ export declare class Projects {
|
|
|
5894
5898
|
* still accepts updates that keep that parent. `participating_company_ids`
|
|
5895
5899
|
* replaces the complete set of participating companies. `manager_user_ids`
|
|
5896
5900
|
* replaces the complete set of project managers; omit the key to keep the
|
|
5897
|
-
* stored set, or send an empty array to clear it.
|
|
5898
|
-
*
|
|
5901
|
+
* stored set, or send an empty array to clear it. `project_address_attributes`
|
|
5902
|
+
* replaces the structured address; omit the key to keep it, or send null to
|
|
5903
|
+
* clear it. Remove a participant's jobs before removing it from this set.
|
|
5904
|
+
* Only the owning company may update the
|
|
5899
5905
|
* project. Undeclared body keys return 400 before any project or relationship changes.
|
|
5900
5906
|
*
|
|
5901
5907
|
*
|
package/dist/gen/sdk.gen.js
CHANGED
|
@@ -1877,7 +1877,7 @@ export class AssetsSites {
|
|
|
1877
1877
|
/**
|
|
1878
1878
|
* Create Site
|
|
1879
1879
|
*
|
|
1880
|
-
* Only `site_id`, `kind`, and `
|
|
1880
|
+
* Only `site_id`, `kind`, `name`, and `responsible_user_ids` are writable. An undeclared key returns 400 before any site is written.
|
|
1881
1881
|
*
|
|
1882
1882
|
* **Required scope:**
|
|
1883
1883
|
*
|
|
@@ -1928,7 +1928,7 @@ export class AssetsSites {
|
|
|
1928
1928
|
/**
|
|
1929
1929
|
* Update Site
|
|
1930
1930
|
*
|
|
1931
|
-
* Only `site_id`, `kind`, and `
|
|
1931
|
+
* Only `site_id`, `kind`, `name`, and `responsible_user_ids` are writable. An omitted `responsible_user_ids` keeps the responders and `[]` clears them. An undeclared key returns 400 before any site is written.
|
|
1932
1932
|
*
|
|
1933
1933
|
* **Required scope:**
|
|
1934
1934
|
*
|
|
@@ -9350,7 +9350,9 @@ export class Projects {
|
|
|
9350
9350
|
*
|
|
9351
9351
|
* Create a project owned by the API key's company (owned_by_company_id is set
|
|
9352
9352
|
* automatically from the key). Requires `name`, and `created_by_user_id` must
|
|
9353
|
-
* reference a member of the owning company. `
|
|
9353
|
+
* reference a member of the owning company. `tz_name` cannot be null; when
|
|
9354
|
+
* omitted it defaults to the company's time zone setting, and a company with
|
|
9355
|
+
* no setting must send it. `budget_currency` defaults to USD;
|
|
9354
9356
|
* the federal-PWA-only fields (administrator name/email/phone, `budget_cents`, and the
|
|
9355
9357
|
* prevailing-wage lock-in / beginning-of-construction / placed-in-service dates)
|
|
9356
9358
|
* and `asset_owner` apply only while `federal_pwa_mode` is not `none`, so sending
|
|
@@ -9361,8 +9363,10 @@ export class Projects {
|
|
|
9361
9363
|
* keys is present, `performed_by_user_id` is required. `parent_id` may name a
|
|
9362
9364
|
* project visible to the API key's policy, `participating_company_ids` is the
|
|
9363
9365
|
* complete set of participating companies, and `manager_user_ids` is the complete
|
|
9364
|
-
* set of project managers (each a manager of the owning company).
|
|
9365
|
-
*
|
|
9366
|
+
* set of project managers (each a manager of the owning company).
|
|
9367
|
+
* `project_address_attributes` sets the structured address; omit it to leave
|
|
9368
|
+
* none. Remove a participant's jobs before removing it from this set. Returns
|
|
9369
|
+
* 201 with the
|
|
9366
9370
|
* project; unknown or inaccessible parent, company, manager, or filer user IDs
|
|
9367
9371
|
* return 404, and invalid attributes or relationships return 422. Undeclared
|
|
9368
9372
|
* body keys return 400 before any project or relationship is saved.
|
|
@@ -9424,8 +9428,10 @@ export class Projects {
|
|
|
9424
9428
|
* still accepts updates that keep that parent. `participating_company_ids`
|
|
9425
9429
|
* replaces the complete set of participating companies. `manager_user_ids`
|
|
9426
9430
|
* replaces the complete set of project managers; omit the key to keep the
|
|
9427
|
-
* stored set, or send an empty array to clear it.
|
|
9428
|
-
*
|
|
9431
|
+
* stored set, or send an empty array to clear it. `project_address_attributes`
|
|
9432
|
+
* replaces the structured address; omit the key to keep it, or send null to
|
|
9433
|
+
* clear it. Remove a participant's jobs before removing it from this set.
|
|
9434
|
+
* Only the owning company may update the
|
|
9429
9435
|
* project. Undeclared body keys return 400 before any project or relationship changes.
|
|
9430
9436
|
*
|
|
9431
9437
|
*
|
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -4117,7 +4117,7 @@ export type PwaCompanyDetailsResponseObject = {
|
|
|
4117
4117
|
*/
|
|
4118
4118
|
company_id: string;
|
|
4119
4119
|
/**
|
|
4120
|
-
* California PWCR number (exactly 10 digits
|
|
4120
|
+
* California PWCR number (exactly 10 digits); null when unset.
|
|
4121
4121
|
*/
|
|
4122
4122
|
pwcr_number: string | null;
|
|
4123
4123
|
/**
|
|
@@ -4214,7 +4214,7 @@ export type PwaCompanyDetailsResponseObject = {
|
|
|
4214
4214
|
*/
|
|
4215
4215
|
export type PwaCompanyDetailsParameters = {
|
|
4216
4216
|
/**
|
|
4217
|
-
* California PWCR number (exactly 10 digits
|
|
4217
|
+
* California PWCR number (exactly 10 digits).
|
|
4218
4218
|
*/
|
|
4219
4219
|
pwcr_number?: string | null;
|
|
4220
4220
|
/**
|
|
@@ -4311,7 +4311,7 @@ export type PwaCompanyDetailsParameters = {
|
|
|
4311
4311
|
*/
|
|
4312
4312
|
export type PwaCompanyDetailsUpdateParameters = {
|
|
4313
4313
|
/**
|
|
4314
|
-
* California PWCR number (exactly 10 digits
|
|
4314
|
+
* California PWCR number (exactly 10 digits).
|
|
4315
4315
|
*/
|
|
4316
4316
|
pwcr_number?: string | null;
|
|
4317
4317
|
/**
|
|
@@ -8872,6 +8872,15 @@ export type ProjectResponseObject = {
|
|
|
8872
8872
|
*/
|
|
8873
8873
|
name: string;
|
|
8874
8874
|
}>;
|
|
8875
|
+
/**
|
|
8876
|
+
* The project's structured address; null when unset.
|
|
8877
|
+
*/
|
|
8878
|
+
project_address: {
|
|
8879
|
+
/**
|
|
8880
|
+
* Human-readable one-line address label.
|
|
8881
|
+
*/
|
|
8882
|
+
label: string;
|
|
8883
|
+
} | null;
|
|
8875
8884
|
/**
|
|
8876
8885
|
* Federal PWA tracking mode: `all` (prevailing wage + apprenticeship), `pw_only` (prevailing wage), `ap_only` (apprenticeship), or `none`.
|
|
8877
8886
|
*/
|
|
@@ -9040,6 +9049,59 @@ export type ProjectParameters = {
|
|
|
9040
9049
|
* Complete desired set of unique nonblank manager user IDs. Omit to preserve the set; send an empty array to clear it. Null, null members, wrong types, blank IDs, and duplicate IDs answer 422 before any project or relationship is saved. Each id must name a manager of the owning company.
|
|
9041
9050
|
*/
|
|
9042
9051
|
manager_user_ids?: Array<string>;
|
|
9052
|
+
/**
|
|
9053
|
+
* The project's structured street address. Send an object to set it; null clears the association; omit the key to leave the stored address; an empty object is a no-op. A non-object answers 422; an unknown key inside it, `place_id` included, answers 422 at its pointer.
|
|
9054
|
+
*/
|
|
9055
|
+
project_address_attributes?: {
|
|
9056
|
+
/**
|
|
9057
|
+
* ID of an existing address to update; null to create a new address.
|
|
9058
|
+
*/
|
|
9059
|
+
id?: string | null;
|
|
9060
|
+
/**
|
|
9061
|
+
* Secondary address designator such as an apartment or suite number; null when unset.
|
|
9062
|
+
*/
|
|
9063
|
+
sub_address_number?: string | null;
|
|
9064
|
+
/**
|
|
9065
|
+
* Street number of the address; null when unset.
|
|
9066
|
+
*/
|
|
9067
|
+
address_number?: string | null;
|
|
9068
|
+
/**
|
|
9069
|
+
* Neighborhood of the address; null when unset.
|
|
9070
|
+
*/
|
|
9071
|
+
neighborhood?: string | null;
|
|
9072
|
+
/**
|
|
9073
|
+
* City or municipality of the address; null when unset.
|
|
9074
|
+
*/
|
|
9075
|
+
municipality?: string | null;
|
|
9076
|
+
/**
|
|
9077
|
+
* County or other sub-region of the address; null when unset.
|
|
9078
|
+
*/
|
|
9079
|
+
sub_region?: string | null;
|
|
9080
|
+
/**
|
|
9081
|
+
* State or region of the address; null when unset.
|
|
9082
|
+
*/
|
|
9083
|
+
region?: string | null;
|
|
9084
|
+
/**
|
|
9085
|
+
* Postal or ZIP code of the address; null when unset.
|
|
9086
|
+
*/
|
|
9087
|
+
postal_code?: string | null;
|
|
9088
|
+
/**
|
|
9089
|
+
* Country of the address; null when unset.
|
|
9090
|
+
*/
|
|
9091
|
+
country?: string | null;
|
|
9092
|
+
/**
|
|
9093
|
+
* Time zone of the address (e.g. US/Central); null when unset. A blank or unlisted name answers 422.
|
|
9094
|
+
*/
|
|
9095
|
+
timezone?: string | null;
|
|
9096
|
+
/**
|
|
9097
|
+
* Whether the address has been verified. A boolean; null or any other type returns 422.
|
|
9098
|
+
*/
|
|
9099
|
+
verified?: boolean;
|
|
9100
|
+
/**
|
|
9101
|
+
* Human-readable one-line address label; null derives it from the other fields.
|
|
9102
|
+
*/
|
|
9103
|
+
label?: string | null;
|
|
9104
|
+
} | null;
|
|
9043
9105
|
/**
|
|
9044
9106
|
* Schedule start date as an ISO8601 date (YYYY-MM-DD), or null; requires tz_name to be set. Any other string, a timestamp included, answers 422.
|
|
9045
9107
|
*/
|
|
@@ -9049,9 +9111,9 @@ export type ProjectParameters = {
|
|
|
9049
9111
|
*/
|
|
9050
9112
|
end_date?: string | null;
|
|
9051
9113
|
/**
|
|
9052
|
-
* IANA time zone name,
|
|
9114
|
+
* IANA time zone name, never null. A blank or unlisted name answers 422.
|
|
9053
9115
|
*/
|
|
9054
|
-
tz_name?: string
|
|
9116
|
+
tz_name?: string;
|
|
9055
9117
|
/**
|
|
9056
9118
|
* Day of week billing starts, as an integer: 0 (Sunday) through 6 (Saturday), or null. Any other value, a numeric string included, answers 422.
|
|
9057
9119
|
*/
|
|
@@ -9149,6 +9211,59 @@ export type ProjectUpdateParameters = {
|
|
|
9149
9211
|
* Complete desired set of unique nonblank manager user IDs. Omit to preserve the set; send an empty array to clear it. Null, null members, wrong types, blank IDs, and duplicate IDs answer 422 before any project or relationship is saved. Each id must name a manager of the owning company.
|
|
9150
9212
|
*/
|
|
9151
9213
|
manager_user_ids?: Array<string>;
|
|
9214
|
+
/**
|
|
9215
|
+
* The project's structured street address. Send an object to set it; null clears the association; omit the key to leave the stored address; an empty object is a no-op. A non-object answers 422; an unknown key inside it, `place_id` included, answers 422 at its pointer.
|
|
9216
|
+
*/
|
|
9217
|
+
project_address_attributes?: {
|
|
9218
|
+
/**
|
|
9219
|
+
* ID of an existing address to update; null to create a new address.
|
|
9220
|
+
*/
|
|
9221
|
+
id?: string | null;
|
|
9222
|
+
/**
|
|
9223
|
+
* Secondary address designator such as an apartment or suite number; null when unset.
|
|
9224
|
+
*/
|
|
9225
|
+
sub_address_number?: string | null;
|
|
9226
|
+
/**
|
|
9227
|
+
* Street number of the address; null when unset.
|
|
9228
|
+
*/
|
|
9229
|
+
address_number?: string | null;
|
|
9230
|
+
/**
|
|
9231
|
+
* Neighborhood of the address; null when unset.
|
|
9232
|
+
*/
|
|
9233
|
+
neighborhood?: string | null;
|
|
9234
|
+
/**
|
|
9235
|
+
* City or municipality of the address; null when unset.
|
|
9236
|
+
*/
|
|
9237
|
+
municipality?: string | null;
|
|
9238
|
+
/**
|
|
9239
|
+
* County or other sub-region of the address; null when unset.
|
|
9240
|
+
*/
|
|
9241
|
+
sub_region?: string | null;
|
|
9242
|
+
/**
|
|
9243
|
+
* State or region of the address; null when unset.
|
|
9244
|
+
*/
|
|
9245
|
+
region?: string | null;
|
|
9246
|
+
/**
|
|
9247
|
+
* Postal or ZIP code of the address; null when unset.
|
|
9248
|
+
*/
|
|
9249
|
+
postal_code?: string | null;
|
|
9250
|
+
/**
|
|
9251
|
+
* Country of the address; null when unset.
|
|
9252
|
+
*/
|
|
9253
|
+
country?: string | null;
|
|
9254
|
+
/**
|
|
9255
|
+
* Time zone of the address (e.g. US/Central); null when unset. A blank or unlisted name answers 422.
|
|
9256
|
+
*/
|
|
9257
|
+
timezone?: string | null;
|
|
9258
|
+
/**
|
|
9259
|
+
* Whether the address has been verified. A boolean; null or any other type returns 422.
|
|
9260
|
+
*/
|
|
9261
|
+
verified?: boolean;
|
|
9262
|
+
/**
|
|
9263
|
+
* Human-readable one-line address label; null derives it from the other fields.
|
|
9264
|
+
*/
|
|
9265
|
+
label?: string | null;
|
|
9266
|
+
} | null;
|
|
9152
9267
|
/**
|
|
9153
9268
|
* Schedule start date as an ISO8601 date (YYYY-MM-DD), or null; requires tz_name to be set. Any other string, a timestamp included, answers 422.
|
|
9154
9269
|
*/
|
|
@@ -9158,9 +9273,9 @@ export type ProjectUpdateParameters = {
|
|
|
9158
9273
|
*/
|
|
9159
9274
|
end_date?: string | null;
|
|
9160
9275
|
/**
|
|
9161
|
-
* IANA time zone name,
|
|
9276
|
+
* IANA time zone name, never null. A blank or unlisted name answers 422.
|
|
9162
9277
|
*/
|
|
9163
|
-
tz_name?: string
|
|
9278
|
+
tz_name?: string;
|
|
9164
9279
|
/**
|
|
9165
9280
|
* Day of week billing starts, as an integer: 0 (Sunday) through 6 (Saturday), or null. Any other value, a numeric string included, answers 422.
|
|
9166
9281
|
*/
|
|
@@ -15654,6 +15769,10 @@ export type AssetsSiteResponseObject = {
|
|
|
15654
15769
|
* Category of the backing Atlas site, taken from its site-type catalog; null when the location is not backed by a map site. Read-only — derived from the backing site.
|
|
15655
15770
|
*/
|
|
15656
15771
|
site_type: string | null;
|
|
15772
|
+
/**
|
|
15773
|
+
* IDs of the users who answer for this location — a transfer sent to it is addressed to them, and they are notified and asked to accept it. Empty when nobody is named, in which case every admin and manager of the company answers.
|
|
15774
|
+
*/
|
|
15775
|
+
responsible_user_ids: Array<string>;
|
|
15657
15776
|
/**
|
|
15658
15777
|
* When the record was created (ISO 8601).
|
|
15659
15778
|
*/
|
|
@@ -15679,6 +15798,10 @@ export type AssetsSiteParameters = {
|
|
|
15679
15798
|
* Display name for the location. Required when no backing site_id is given; otherwise falls back to the backing Atlas site's name.
|
|
15680
15799
|
*/
|
|
15681
15800
|
name?: string | null;
|
|
15801
|
+
/**
|
|
15802
|
+
* Unique nonblank IDs of the users who answer for this location; each must be an admin, manager, safety manager, or field lead of the company. Providing this replaces the entire set; an empty array clears it, leaving every admin and manager of the company to answer. Omit to name nobody or leave the set unchanged on update. Null, null members, wrong types, blank IDs, and duplicate IDs answer 422. A user who cannot answer for the location answers 404.
|
|
15803
|
+
*/
|
|
15804
|
+
responsible_user_ids?: Array<string>;
|
|
15682
15805
|
};
|
|
15683
15806
|
/**
|
|
15684
15807
|
* Request body for updating an asset location. Every field is optional; send only the fields to change. The saved location must still have a name or a backing `site_id`.
|
|
@@ -15696,6 +15819,10 @@ export type AssetsSiteUpdateParameters = {
|
|
|
15696
15819
|
* Display name for the location. `null` clears the direct name when a backing `site_id` supplies the display name.
|
|
15697
15820
|
*/
|
|
15698
15821
|
name?: string | null;
|
|
15822
|
+
/**
|
|
15823
|
+
* Unique nonblank IDs of the users who answer for this location; each must be an admin, manager, safety manager, or field lead of the company. Providing this replaces the entire set; an empty array clears it, leaving every admin and manager of the company to answer. Omit to name nobody or leave the set unchanged on update. Null, null members, wrong types, blank IDs, and duplicate IDs answer 422. A user who cannot answer for the location answers 404.
|
|
15824
|
+
*/
|
|
15825
|
+
responsible_user_ids?: Array<string>;
|
|
15699
15826
|
};
|
|
15700
15827
|
/**
|
|
15701
15828
|
* A company-level rule that auto-generates asset form assignments. When an item of one of its products changes custody (an assignment or unassignment), the rule creates or refreshes a form task for the chosen users, due on the configured schedule.
|
|
@@ -16410,7 +16537,7 @@ export type AssetsTransactionEventResponseObject = {
|
|
|
16410
16537
|
/**
|
|
16411
16538
|
* What produced the movement: receive (a stock, unstock, or custody change), adjust (a reconciliation), or transfer (part of a stock transfer).
|
|
16412
16539
|
*/
|
|
16413
|
-
kind: 'receive' | 'adjust' | 'transfer';
|
|
16540
|
+
kind: 'receive' | 'adjust' | 'transfer' | 'transfer_contents';
|
|
16414
16541
|
/**
|
|
16415
16542
|
* Number of units moved; always positive.
|
|
16416
16543
|
*/
|
|
@@ -16957,10 +17084,6 @@ export type AssetsTransferResponseObject = {
|
|
|
16957
17084
|
* ID of the destination container item; null when the destination is a site or user.
|
|
16958
17085
|
*/
|
|
16959
17086
|
to_container_item_id: string | null;
|
|
16960
|
-
/**
|
|
16961
|
-
* ID of the storage location within the source site or container the stock drew from; null for an unbinned source or a user source.
|
|
16962
|
-
*/
|
|
16963
|
-
from_assets_sub_location_id: string | null;
|
|
16964
17087
|
/**
|
|
16965
17088
|
* ID of the storage location within the destination site or container the stock landed in; null for an unbinned destination or a user destination.
|
|
16966
17089
|
*/
|
|
@@ -16989,6 +17112,10 @@ export type AssetsTransferResponseObject = {
|
|
|
16989
17112
|
* Number of units of the item to move; greater than 0.
|
|
16990
17113
|
*/
|
|
16991
17114
|
quantity: number;
|
|
17115
|
+
/**
|
|
17116
|
+
* ID of the storage location within the source site or container this line's stock drew from; null for an unbinned source or a user source.
|
|
17117
|
+
*/
|
|
17118
|
+
from_assets_sub_location_id: string | null;
|
|
16992
17119
|
}>;
|
|
16993
17120
|
/**
|
|
16994
17121
|
* When the record was created (ISO 8601).
|
|
@@ -17016,7 +17143,7 @@ export type AssetsTransferParameters = {
|
|
|
17016
17143
|
*/
|
|
17017
17144
|
from_container_item_id?: string;
|
|
17018
17145
|
/**
|
|
17019
|
-
* Optional. The storage location within the source site or container
|
|
17146
|
+
* Optional. The storage location within the source site or container every line's stock draws from, recorded on each line. Omit or send null for the source's unbinned stock. A blank ID or a wrong type answers 422, a storage location outside the company that owns the API key answers 404, and one named without a source site or container, or not belonging to it, answers 422.
|
|
17020
17147
|
*/
|
|
17021
17148
|
from_assets_sub_location_id?: string | null;
|
|
17022
17149
|
/**
|
|
@@ -21556,6 +21683,7 @@ export type ListTransfersData = {
|
|
|
21556
21683
|
* * `pending`
|
|
21557
21684
|
* * `in_transit`
|
|
21558
21685
|
* * `completed`
|
|
21686
|
+
* * `declined`
|
|
21559
21687
|
* * `cancelled`
|
|
21560
21688
|
*
|
|
21561
21689
|
*/
|
|
@@ -34599,7 +34727,7 @@ export type CreateProjectErrors = {
|
|
|
34599
34727
|
*/
|
|
34600
34728
|
404: Problem;
|
|
34601
34729
|
/**
|
|
34602
|
-
* Unprocessable Content (
|
|
34730
|
+
* Unprocessable Content (unknown nested address key)
|
|
34603
34731
|
*/
|
|
34604
34732
|
422: Problem;
|
|
34605
34733
|
};
|
package/dist/gen/zod.gen.d.ts
CHANGED
|
@@ -4514,6 +4514,9 @@ export declare const zProjectResponseObject: z.ZodObject<{
|
|
|
4514
4514
|
id: z.ZodString;
|
|
4515
4515
|
name: z.ZodString;
|
|
4516
4516
|
}, z.core.$strip>>;
|
|
4517
|
+
project_address: z.ZodNullable<z.ZodObject<{
|
|
4518
|
+
label: z.ZodString;
|
|
4519
|
+
}, z.core.$strip>>;
|
|
4517
4520
|
federal_pwa_mode: z.ZodEnum<{
|
|
4518
4521
|
none: "none";
|
|
4519
4522
|
all: "all";
|
|
@@ -4572,9 +4575,23 @@ export declare const zProjectParameters: z.ZodObject<{
|
|
|
4572
4575
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4573
4576
|
participating_company_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4574
4577
|
manager_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4578
|
+
project_address_attributes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4579
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4580
|
+
sub_address_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4581
|
+
address_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4582
|
+
neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4583
|
+
municipality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4584
|
+
sub_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4585
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4586
|
+
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4587
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4588
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4589
|
+
verified: z.ZodOptional<z.ZodBoolean>;
|
|
4590
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4591
|
+
}, z.core.$strip>>>;
|
|
4575
4592
|
start_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
4576
4593
|
end_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
4577
|
-
tz_name: z.ZodOptional<z.
|
|
4594
|
+
tz_name: z.ZodOptional<z.ZodString>;
|
|
4578
4595
|
billing_start_day: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4579
4596
|
federal_pwa_mode: z.ZodOptional<z.ZodEnum<{
|
|
4580
4597
|
none: "none";
|
|
@@ -4613,9 +4630,23 @@ export declare const zProjectUpdateParameters: z.ZodObject<{
|
|
|
4613
4630
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4614
4631
|
participating_company_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4615
4632
|
manager_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4633
|
+
project_address_attributes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4634
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4635
|
+
sub_address_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4636
|
+
address_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4637
|
+
neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4638
|
+
municipality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4639
|
+
sub_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4640
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4641
|
+
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4642
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4643
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4644
|
+
verified: z.ZodOptional<z.ZodBoolean>;
|
|
4645
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4646
|
+
}, z.core.$strip>>>;
|
|
4616
4647
|
start_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
4617
4648
|
end_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
4618
|
-
tz_name: z.ZodOptional<z.
|
|
4649
|
+
tz_name: z.ZodOptional<z.ZodString>;
|
|
4619
4650
|
billing_start_day: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4620
4651
|
federal_pwa_mode: z.ZodOptional<z.ZodEnum<{
|
|
4621
4652
|
none: "none";
|
|
@@ -10793,6 +10824,7 @@ export declare const zAssetsSiteResponseObject: z.ZodObject<{
|
|
|
10793
10824
|
}>;
|
|
10794
10825
|
name: z.ZodString;
|
|
10795
10826
|
site_type: z.ZodNullable<z.ZodString>;
|
|
10827
|
+
responsible_user_ids: z.ZodArray<z.ZodString>;
|
|
10796
10828
|
created_at: z.ZodISODateTime;
|
|
10797
10829
|
updated_at: z.ZodISODateTime;
|
|
10798
10830
|
}, z.core.$strip>;
|
|
@@ -10806,6 +10838,7 @@ export declare const zAssetsSiteParameters: z.ZodObject<{
|
|
|
10806
10838
|
yard: "yard";
|
|
10807
10839
|
}>;
|
|
10808
10840
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10841
|
+
responsible_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10809
10842
|
}, z.core.$strip>;
|
|
10810
10843
|
/**
|
|
10811
10844
|
* Request body for updating an asset location. Every field is optional; send only the fields to change. The saved location must still have a name or a backing `site_id`.
|
|
@@ -10817,6 +10850,7 @@ export declare const zAssetsSiteUpdateParameters: z.ZodObject<{
|
|
|
10817
10850
|
yard: "yard";
|
|
10818
10851
|
}>>;
|
|
10819
10852
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10853
|
+
responsible_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10820
10854
|
}, z.core.$strip>;
|
|
10821
10855
|
/**
|
|
10822
10856
|
* A company-level rule that auto-generates asset form assignments. When an item of one of its products changes custody (an assignment or unassignment), the rule creates or refreshes a form task for the chosen users, due on the configured schedule.
|
|
@@ -11316,6 +11350,7 @@ export declare const zAssetsTransactionEventResponseObject: z.ZodObject<{
|
|
|
11316
11350
|
receive: "receive";
|
|
11317
11351
|
adjust: "adjust";
|
|
11318
11352
|
transfer: "transfer";
|
|
11353
|
+
transfer_contents: "transfer_contents";
|
|
11319
11354
|
}>;
|
|
11320
11355
|
quantity: z.ZodInt;
|
|
11321
11356
|
}, z.core.$strip>;
|
|
@@ -11371,6 +11406,7 @@ export declare const zAssetsItemEventResponseObject: z.ZodDiscriminatedUnion<[z.
|
|
|
11371
11406
|
receive: "receive";
|
|
11372
11407
|
adjust: "adjust";
|
|
11373
11408
|
transfer: "transfer";
|
|
11409
|
+
transfer_contents: "transfer_contents";
|
|
11374
11410
|
}>;
|
|
11375
11411
|
quantity: z.ZodInt;
|
|
11376
11412
|
}, z.core.$strip>;
|
|
@@ -11661,7 +11697,6 @@ export declare const zAssetsTransferResponseObject: z.ZodObject<{
|
|
|
11661
11697
|
to_assets_site_id: z.ZodNullable<z.ZodString>;
|
|
11662
11698
|
to_user_id: z.ZodNullable<z.ZodString>;
|
|
11663
11699
|
to_container_item_id: z.ZodNullable<z.ZodString>;
|
|
11664
|
-
from_assets_sub_location_id: z.ZodNullable<z.ZodString>;
|
|
11665
11700
|
to_assets_sub_location_id: z.ZodNullable<z.ZodString>;
|
|
11666
11701
|
initiated_by_user_id: z.ZodString;
|
|
11667
11702
|
completed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -11669,6 +11704,7 @@ export declare const zAssetsTransferResponseObject: z.ZodObject<{
|
|
|
11669
11704
|
id: z.ZodString;
|
|
11670
11705
|
assets_item_id: z.ZodString;
|
|
11671
11706
|
quantity: z.ZodInt;
|
|
11707
|
+
from_assets_sub_location_id: z.ZodNullable<z.ZodString>;
|
|
11672
11708
|
}, z.core.$strip>>;
|
|
11673
11709
|
created_at: z.ZodISODateTime;
|
|
11674
11710
|
updated_at: z.ZodISODateTime;
|
|
@@ -13472,6 +13508,7 @@ export declare const zListEventsResponse: z.ZodObject<{
|
|
|
13472
13508
|
receive: "receive";
|
|
13473
13509
|
adjust: "adjust";
|
|
13474
13510
|
transfer: "transfer";
|
|
13511
|
+
transfer_contents: "transfer_contents";
|
|
13475
13512
|
}>;
|
|
13476
13513
|
quantity: z.ZodInt;
|
|
13477
13514
|
}, z.core.$strip>;
|
|
@@ -13526,6 +13563,7 @@ export declare const zGetEventResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
13526
13563
|
receive: "receive";
|
|
13527
13564
|
adjust: "adjust";
|
|
13528
13565
|
transfer: "transfer";
|
|
13566
|
+
transfer_contents: "transfer_contents";
|
|
13529
13567
|
}>;
|
|
13530
13568
|
quantity: z.ZodInt;
|
|
13531
13569
|
}, z.core.$strip>;
|
|
@@ -16185,6 +16223,7 @@ export declare const zListAssetsSitesResponse: z.ZodObject<{
|
|
|
16185
16223
|
}>;
|
|
16186
16224
|
name: z.ZodString;
|
|
16187
16225
|
site_type: z.ZodNullable<z.ZodString>;
|
|
16226
|
+
responsible_user_ids: z.ZodArray<z.ZodString>;
|
|
16188
16227
|
created_at: z.ZodISODateTime;
|
|
16189
16228
|
updated_at: z.ZodISODateTime;
|
|
16190
16229
|
}, z.core.$strip>>;
|
|
@@ -16196,6 +16235,7 @@ export declare const zCreateSiteBody: z.ZodObject<{
|
|
|
16196
16235
|
yard: "yard";
|
|
16197
16236
|
}>;
|
|
16198
16237
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16238
|
+
responsible_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16199
16239
|
}, z.core.$strip>;
|
|
16200
16240
|
/**
|
|
16201
16241
|
* Created (site-backed)
|
|
@@ -16210,6 +16250,7 @@ export declare const zCreateSiteResponse: z.ZodObject<{
|
|
|
16210
16250
|
}>;
|
|
16211
16251
|
name: z.ZodString;
|
|
16212
16252
|
site_type: z.ZodNullable<z.ZodString>;
|
|
16253
|
+
responsible_user_ids: z.ZodArray<z.ZodString>;
|
|
16213
16254
|
created_at: z.ZodISODateTime;
|
|
16214
16255
|
updated_at: z.ZodISODateTime;
|
|
16215
16256
|
}, z.core.$strip>;
|
|
@@ -16229,6 +16270,7 @@ export declare const zDeleteSiteResponse: z.ZodObject<{
|
|
|
16229
16270
|
}>;
|
|
16230
16271
|
name: z.ZodString;
|
|
16231
16272
|
site_type: z.ZodNullable<z.ZodString>;
|
|
16273
|
+
responsible_user_ids: z.ZodArray<z.ZodString>;
|
|
16232
16274
|
created_at: z.ZodISODateTime;
|
|
16233
16275
|
updated_at: z.ZodISODateTime;
|
|
16234
16276
|
}, z.core.$strip>;
|
|
@@ -16248,6 +16290,7 @@ export declare const zGetAssetsSiteResponse: z.ZodObject<{
|
|
|
16248
16290
|
}>;
|
|
16249
16291
|
name: z.ZodString;
|
|
16250
16292
|
site_type: z.ZodNullable<z.ZodString>;
|
|
16293
|
+
responsible_user_ids: z.ZodArray<z.ZodString>;
|
|
16251
16294
|
created_at: z.ZodISODateTime;
|
|
16252
16295
|
updated_at: z.ZodISODateTime;
|
|
16253
16296
|
}, z.core.$strip>;
|
|
@@ -16258,6 +16301,7 @@ export declare const zUpdateSiteBody: z.ZodObject<{
|
|
|
16258
16301
|
yard: "yard";
|
|
16259
16302
|
}>>;
|
|
16260
16303
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16304
|
+
responsible_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16261
16305
|
}, z.core.$strip>;
|
|
16262
16306
|
export declare const zUpdateSitePath: z.ZodObject<{
|
|
16263
16307
|
id: z.ZodString;
|
|
@@ -16275,6 +16319,7 @@ export declare const zUpdateSiteResponse: z.ZodObject<{
|
|
|
16275
16319
|
}>;
|
|
16276
16320
|
name: z.ZodString;
|
|
16277
16321
|
site_type: z.ZodNullable<z.ZodString>;
|
|
16322
|
+
responsible_user_ids: z.ZodArray<z.ZodString>;
|
|
16278
16323
|
created_at: z.ZodISODateTime;
|
|
16279
16324
|
updated_at: z.ZodISODateTime;
|
|
16280
16325
|
}, z.core.$strip>;
|
|
@@ -16499,7 +16544,6 @@ export declare const zListTransfersResponse: z.ZodObject<{
|
|
|
16499
16544
|
to_assets_site_id: z.ZodNullable<z.ZodString>;
|
|
16500
16545
|
to_user_id: z.ZodNullable<z.ZodString>;
|
|
16501
16546
|
to_container_item_id: z.ZodNullable<z.ZodString>;
|
|
16502
|
-
from_assets_sub_location_id: z.ZodNullable<z.ZodString>;
|
|
16503
16547
|
to_assets_sub_location_id: z.ZodNullable<z.ZodString>;
|
|
16504
16548
|
initiated_by_user_id: z.ZodString;
|
|
16505
16549
|
completed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -16507,6 +16551,7 @@ export declare const zListTransfersResponse: z.ZodObject<{
|
|
|
16507
16551
|
id: z.ZodString;
|
|
16508
16552
|
assets_item_id: z.ZodString;
|
|
16509
16553
|
quantity: z.ZodInt;
|
|
16554
|
+
from_assets_sub_location_id: z.ZodNullable<z.ZodString>;
|
|
16510
16555
|
}, z.core.$strip>>;
|
|
16511
16556
|
created_at: z.ZodISODateTime;
|
|
16512
16557
|
updated_at: z.ZodISODateTime;
|
|
@@ -16542,7 +16587,6 @@ export declare const zCreateTransferResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
16542
16587
|
to_assets_site_id: z.ZodNullable<z.ZodString>;
|
|
16543
16588
|
to_user_id: z.ZodNullable<z.ZodString>;
|
|
16544
16589
|
to_container_item_id: z.ZodNullable<z.ZodString>;
|
|
16545
|
-
from_assets_sub_location_id: z.ZodNullable<z.ZodString>;
|
|
16546
16590
|
to_assets_sub_location_id: z.ZodNullable<z.ZodString>;
|
|
16547
16591
|
initiated_by_user_id: z.ZodString;
|
|
16548
16592
|
completed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -16550,6 +16594,7 @@ export declare const zCreateTransferResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
16550
16594
|
id: z.ZodString;
|
|
16551
16595
|
assets_item_id: z.ZodString;
|
|
16552
16596
|
quantity: z.ZodInt;
|
|
16597
|
+
from_assets_sub_location_id: z.ZodNullable<z.ZodString>;
|
|
16553
16598
|
}, z.core.$strip>>;
|
|
16554
16599
|
created_at: z.ZodISODateTime;
|
|
16555
16600
|
updated_at: z.ZodISODateTime;
|
|
@@ -16575,7 +16620,6 @@ export declare const zGetTransferResponse: z.ZodObject<{
|
|
|
16575
16620
|
to_assets_site_id: z.ZodNullable<z.ZodString>;
|
|
16576
16621
|
to_user_id: z.ZodNullable<z.ZodString>;
|
|
16577
16622
|
to_container_item_id: z.ZodNullable<z.ZodString>;
|
|
16578
|
-
from_assets_sub_location_id: z.ZodNullable<z.ZodString>;
|
|
16579
16623
|
to_assets_sub_location_id: z.ZodNullable<z.ZodString>;
|
|
16580
16624
|
initiated_by_user_id: z.ZodString;
|
|
16581
16625
|
completed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -16583,6 +16627,7 @@ export declare const zGetTransferResponse: z.ZodObject<{
|
|
|
16583
16627
|
id: z.ZodString;
|
|
16584
16628
|
assets_item_id: z.ZodString;
|
|
16585
16629
|
quantity: z.ZodInt;
|
|
16630
|
+
from_assets_sub_location_id: z.ZodNullable<z.ZodString>;
|
|
16586
16631
|
}, z.core.$strip>>;
|
|
16587
16632
|
created_at: z.ZodISODateTime;
|
|
16588
16633
|
updated_at: z.ZodISODateTime;
|
|
@@ -31595,6 +31640,9 @@ export declare const zListProjectsResponse: z.ZodObject<{
|
|
|
31595
31640
|
id: z.ZodString;
|
|
31596
31641
|
name: z.ZodString;
|
|
31597
31642
|
}, z.core.$strip>>;
|
|
31643
|
+
project_address: z.ZodNullable<z.ZodObject<{
|
|
31644
|
+
label: z.ZodString;
|
|
31645
|
+
}, z.core.$strip>>;
|
|
31598
31646
|
federal_pwa_mode: z.ZodEnum<{
|
|
31599
31647
|
none: "none";
|
|
31600
31648
|
all: "all";
|
|
@@ -31651,9 +31699,23 @@ export declare const zCreateProjectBody: z.ZodObject<{
|
|
|
31651
31699
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31652
31700
|
participating_company_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31653
31701
|
manager_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31702
|
+
project_address_attributes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31703
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31704
|
+
sub_address_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31705
|
+
address_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31706
|
+
neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31707
|
+
municipality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31708
|
+
sub_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31709
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31710
|
+
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31711
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31712
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31713
|
+
verified: z.ZodOptional<z.ZodBoolean>;
|
|
31714
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31715
|
+
}, z.core.$strip>>>;
|
|
31654
31716
|
start_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
31655
31717
|
end_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
31656
|
-
tz_name: z.ZodOptional<z.
|
|
31718
|
+
tz_name: z.ZodOptional<z.ZodString>;
|
|
31657
31719
|
billing_start_day: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
31658
31720
|
federal_pwa_mode: z.ZodOptional<z.ZodEnum<{
|
|
31659
31721
|
none: "none";
|
|
@@ -31700,6 +31762,9 @@ export declare const zCreateProjectResponse: z.ZodObject<{
|
|
|
31700
31762
|
id: z.ZodString;
|
|
31701
31763
|
name: z.ZodString;
|
|
31702
31764
|
}, z.core.$strip>>;
|
|
31765
|
+
project_address: z.ZodNullable<z.ZodObject<{
|
|
31766
|
+
label: z.ZodString;
|
|
31767
|
+
}, z.core.$strip>>;
|
|
31703
31768
|
federal_pwa_mode: z.ZodEnum<{
|
|
31704
31769
|
none: "none";
|
|
31705
31770
|
all: "all";
|
|
@@ -31769,6 +31834,9 @@ export declare const zGetProjectResponse: z.ZodObject<{
|
|
|
31769
31834
|
id: z.ZodString;
|
|
31770
31835
|
name: z.ZodString;
|
|
31771
31836
|
}, z.core.$strip>>;
|
|
31837
|
+
project_address: z.ZodNullable<z.ZodObject<{
|
|
31838
|
+
label: z.ZodString;
|
|
31839
|
+
}, z.core.$strip>>;
|
|
31772
31840
|
federal_pwa_mode: z.ZodEnum<{
|
|
31773
31841
|
none: "none";
|
|
31774
31842
|
all: "all";
|
|
@@ -31824,9 +31892,23 @@ export declare const zUpdateProjectBody: z.ZodObject<{
|
|
|
31824
31892
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31825
31893
|
participating_company_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31826
31894
|
manager_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31895
|
+
project_address_attributes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31896
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31897
|
+
sub_address_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31898
|
+
address_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31899
|
+
neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31900
|
+
municipality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31901
|
+
sub_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31902
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31903
|
+
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31904
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31905
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31906
|
+
verified: z.ZodOptional<z.ZodBoolean>;
|
|
31907
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31908
|
+
}, z.core.$strip>>>;
|
|
31827
31909
|
start_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
31828
31910
|
end_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
31829
|
-
tz_name: z.ZodOptional<z.
|
|
31911
|
+
tz_name: z.ZodOptional<z.ZodString>;
|
|
31830
31912
|
billing_start_day: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
31831
31913
|
federal_pwa_mode: z.ZodOptional<z.ZodEnum<{
|
|
31832
31914
|
none: "none";
|
|
@@ -31875,6 +31957,9 @@ export declare const zUpdateProjectResponse: z.ZodObject<{
|
|
|
31875
31957
|
id: z.ZodString;
|
|
31876
31958
|
name: z.ZodString;
|
|
31877
31959
|
}, z.core.$strip>>;
|
|
31960
|
+
project_address: z.ZodNullable<z.ZodObject<{
|
|
31961
|
+
label: z.ZodString;
|
|
31962
|
+
}, z.core.$strip>>;
|
|
31878
31963
|
federal_pwa_mode: z.ZodEnum<{
|
|
31879
31964
|
none: "none";
|
|
31880
31965
|
all: "all";
|
package/dist/gen/zod.gen.js
CHANGED
|
@@ -4190,6 +4190,9 @@ export const zProjectResponseObject = z.object({
|
|
|
4190
4190
|
id: z.string(),
|
|
4191
4191
|
name: z.string()
|
|
4192
4192
|
})),
|
|
4193
|
+
project_address: z.object({
|
|
4194
|
+
label: z.string()
|
|
4195
|
+
}).nullable(),
|
|
4193
4196
|
federal_pwa_mode: z.enum([
|
|
4194
4197
|
'all',
|
|
4195
4198
|
'pw_only',
|
|
@@ -4248,9 +4251,23 @@ export const zProjectParameters = z.object({
|
|
|
4248
4251
|
parent_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish(),
|
|
4249
4252
|
participating_company_ids: z.array(z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)).optional(),
|
|
4250
4253
|
manager_user_ids: z.array(z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)).optional(),
|
|
4254
|
+
project_address_attributes: z.object({
|
|
4255
|
+
id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish(),
|
|
4256
|
+
sub_address_number: z.string().nullish(),
|
|
4257
|
+
address_number: z.string().nullish(),
|
|
4258
|
+
neighborhood: z.string().nullish(),
|
|
4259
|
+
municipality: z.string().nullish(),
|
|
4260
|
+
sub_region: z.string().nullish(),
|
|
4261
|
+
region: z.string().nullish(),
|
|
4262
|
+
postal_code: z.string().nullish(),
|
|
4263
|
+
country: z.string().nullish(),
|
|
4264
|
+
timezone: z.string().nullish(),
|
|
4265
|
+
verified: z.boolean().optional(),
|
|
4266
|
+
label: z.string().nullish()
|
|
4267
|
+
}).nullish(),
|
|
4251
4268
|
start_date: z.iso.date().nullish(),
|
|
4252
4269
|
end_date: z.iso.date().nullish(),
|
|
4253
|
-
tz_name: z.string().
|
|
4270
|
+
tz_name: z.string().optional(),
|
|
4254
4271
|
billing_start_day: z.int().gte(0).lte(6).nullish(),
|
|
4255
4272
|
federal_pwa_mode: z.enum([
|
|
4256
4273
|
'all',
|
|
@@ -4289,9 +4306,23 @@ export const zProjectUpdateParameters = z.object({
|
|
|
4289
4306
|
parent_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish(),
|
|
4290
4307
|
participating_company_ids: z.array(z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)).optional(),
|
|
4291
4308
|
manager_user_ids: z.array(z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)).optional(),
|
|
4309
|
+
project_address_attributes: z.object({
|
|
4310
|
+
id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish(),
|
|
4311
|
+
sub_address_number: z.string().nullish(),
|
|
4312
|
+
address_number: z.string().nullish(),
|
|
4313
|
+
neighborhood: z.string().nullish(),
|
|
4314
|
+
municipality: z.string().nullish(),
|
|
4315
|
+
sub_region: z.string().nullish(),
|
|
4316
|
+
region: z.string().nullish(),
|
|
4317
|
+
postal_code: z.string().nullish(),
|
|
4318
|
+
country: z.string().nullish(),
|
|
4319
|
+
timezone: z.string().nullish(),
|
|
4320
|
+
verified: z.boolean().optional(),
|
|
4321
|
+
label: z.string().nullish()
|
|
4322
|
+
}).nullish(),
|
|
4292
4323
|
start_date: z.iso.date().nullish(),
|
|
4293
4324
|
end_date: z.iso.date().nullish(),
|
|
4294
|
-
tz_name: z.string().
|
|
4325
|
+
tz_name: z.string().optional(),
|
|
4295
4326
|
billing_start_day: z.int().gte(0).lte(6).nullish(),
|
|
4296
4327
|
federal_pwa_mode: z.enum([
|
|
4297
4328
|
'all',
|
|
@@ -8093,6 +8124,7 @@ export const zAssetsSiteResponseObject = z.object({
|
|
|
8093
8124
|
kind: z.enum(['warehouse', 'yard']),
|
|
8094
8125
|
name: z.string(),
|
|
8095
8126
|
site_type: z.string().nullable(),
|
|
8127
|
+
responsible_user_ids: z.array(z.string()),
|
|
8096
8128
|
created_at: z.iso.datetime(),
|
|
8097
8129
|
updated_at: z.iso.datetime()
|
|
8098
8130
|
});
|
|
@@ -8102,7 +8134,8 @@ export const zAssetsSiteResponseObject = z.object({
|
|
|
8102
8134
|
export const zAssetsSiteParameters = z.object({
|
|
8103
8135
|
site_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish(),
|
|
8104
8136
|
kind: z.enum(['warehouse', 'yard']),
|
|
8105
|
-
name: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish()
|
|
8137
|
+
name: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish(),
|
|
8138
|
+
responsible_user_ids: z.array(z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)).optional()
|
|
8106
8139
|
});
|
|
8107
8140
|
/**
|
|
8108
8141
|
* Request body for updating an asset location. Every field is optional; send only the fields to change. The saved location must still have a name or a backing `site_id`.
|
|
@@ -8110,7 +8143,8 @@ export const zAssetsSiteParameters = z.object({
|
|
|
8110
8143
|
export const zAssetsSiteUpdateParameters = z.object({
|
|
8111
8144
|
site_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish(),
|
|
8112
8145
|
kind: z.enum(['warehouse', 'yard']).optional(),
|
|
8113
|
-
name: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish()
|
|
8146
|
+
name: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish(),
|
|
8147
|
+
responsible_user_ids: z.array(z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)).optional()
|
|
8114
8148
|
});
|
|
8115
8149
|
/**
|
|
8116
8150
|
* A company-level rule that auto-generates asset form assignments. When an item of one of its products changes custody (an assignment or unassignment), the rule creates or refreshes a form task for the chosen users, due on the configured schedule.
|
|
@@ -8561,7 +8595,8 @@ export const zAssetsTransactionEventResponseObject = z.object({
|
|
|
8561
8595
|
kind: z.enum([
|
|
8562
8596
|
'receive',
|
|
8563
8597
|
'adjust',
|
|
8564
|
-
'transfer'
|
|
8598
|
+
'transfer',
|
|
8599
|
+
'transfer_contents'
|
|
8565
8600
|
]),
|
|
8566
8601
|
quantity: z.int()
|
|
8567
8602
|
}),
|
|
@@ -8834,14 +8869,14 @@ export const zAssetsTransferResponseObject = z.object({
|
|
|
8834
8869
|
to_assets_site_id: z.string().nullable(),
|
|
8835
8870
|
to_user_id: z.string().nullable(),
|
|
8836
8871
|
to_container_item_id: z.string().nullable(),
|
|
8837
|
-
from_assets_sub_location_id: z.string().nullable(),
|
|
8838
8872
|
to_assets_sub_location_id: z.string().nullable(),
|
|
8839
8873
|
initiated_by_user_id: z.string(),
|
|
8840
8874
|
completed_at: z.iso.datetime().nullable(),
|
|
8841
8875
|
transfer_lines: z.array(z.object({
|
|
8842
8876
|
id: z.string(),
|
|
8843
8877
|
assets_item_id: z.string(),
|
|
8844
|
-
quantity: z.int()
|
|
8878
|
+
quantity: z.int(),
|
|
8879
|
+
from_assets_sub_location_id: z.string().nullable()
|
|
8845
8880
|
})),
|
|
8846
8881
|
created_at: z.iso.datetime(),
|
|
8847
8882
|
updated_at: z.iso.datetime()
|