@dsptch-work/api-client 0.49.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 CHANGED
@@ -7,6 +7,20 @@ 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
+
10
24
  ## [0.49.0] - 2026-11-03
11
25
 
12
26
  ### Added
@@ -1088,7 +1088,7 @@ export declare class AssetsSites {
1088
1088
  /**
1089
1089
  * Create Site
1090
1090
  *
1091
- * Only `site_id`, `kind`, and `name` are writable. An undeclared key returns 400 before any site is written.
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 `name` are writable. An undeclared key returns 400 before any site is written.
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. `budget_currency` defaults to USD;
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). Remove a
5851
- * participant's jobs before removing it from this set. Returns 201 with the
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. Remove a participant's
5898
- * jobs before removing it from this set. Only the owning company may update the
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
  *
@@ -1877,7 +1877,7 @@ export class AssetsSites {
1877
1877
  /**
1878
1878
  * Create Site
1879
1879
  *
1880
- * Only `site_id`, `kind`, and `name` are writable. An undeclared key returns 400 before any site is written.
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 `name` are writable. An undeclared key returns 400 before any site is written.
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. `budget_currency` defaults to USD;
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). Remove a
9365
- * participant's jobs before removing it from this set. Returns 201 with the
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. Remove a participant's
9428
- * jobs before removing it from this set. Only the owning company may update the
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
  *
@@ -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, or null. Required when start_date is set. A blank or unlisted name answers 422.
9114
+ * IANA time zone name, never null. A blank or unlisted name answers 422.
9053
9115
  */
9054
- tz_name?: string | null;
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, or null. Required when start_date is set. A blank or unlisted name answers 422.
9276
+ * IANA time zone name, never null. A blank or unlisted name answers 422.
9162
9277
  */
9163
- tz_name?: string | null;
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.
@@ -34600,7 +34727,7 @@ export type CreateProjectErrors = {
34600
34727
  */
34601
34728
  404: Problem;
34602
34729
  /**
34603
- * Unprocessable Content (invalid signed id)
34730
+ * Unprocessable Content (unknown nested address key)
34604
34731
  */
34605
34732
  422: Problem;
34606
34733
  };
@@ -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.ZodNullable<z.ZodString>>;
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.ZodNullable<z.ZodString>>;
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.
@@ -16189,6 +16223,7 @@ export declare const zListAssetsSitesResponse: z.ZodObject<{
16189
16223
  }>;
16190
16224
  name: z.ZodString;
16191
16225
  site_type: z.ZodNullable<z.ZodString>;
16226
+ responsible_user_ids: z.ZodArray<z.ZodString>;
16192
16227
  created_at: z.ZodISODateTime;
16193
16228
  updated_at: z.ZodISODateTime;
16194
16229
  }, z.core.$strip>>;
@@ -16200,6 +16235,7 @@ export declare const zCreateSiteBody: z.ZodObject<{
16200
16235
  yard: "yard";
16201
16236
  }>;
16202
16237
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16238
+ responsible_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
16203
16239
  }, z.core.$strip>;
16204
16240
  /**
16205
16241
  * Created (site-backed)
@@ -16214,6 +16250,7 @@ export declare const zCreateSiteResponse: z.ZodObject<{
16214
16250
  }>;
16215
16251
  name: z.ZodString;
16216
16252
  site_type: z.ZodNullable<z.ZodString>;
16253
+ responsible_user_ids: z.ZodArray<z.ZodString>;
16217
16254
  created_at: z.ZodISODateTime;
16218
16255
  updated_at: z.ZodISODateTime;
16219
16256
  }, z.core.$strip>;
@@ -16233,6 +16270,7 @@ export declare const zDeleteSiteResponse: z.ZodObject<{
16233
16270
  }>;
16234
16271
  name: z.ZodString;
16235
16272
  site_type: z.ZodNullable<z.ZodString>;
16273
+ responsible_user_ids: z.ZodArray<z.ZodString>;
16236
16274
  created_at: z.ZodISODateTime;
16237
16275
  updated_at: z.ZodISODateTime;
16238
16276
  }, z.core.$strip>;
@@ -16252,6 +16290,7 @@ export declare const zGetAssetsSiteResponse: z.ZodObject<{
16252
16290
  }>;
16253
16291
  name: z.ZodString;
16254
16292
  site_type: z.ZodNullable<z.ZodString>;
16293
+ responsible_user_ids: z.ZodArray<z.ZodString>;
16255
16294
  created_at: z.ZodISODateTime;
16256
16295
  updated_at: z.ZodISODateTime;
16257
16296
  }, z.core.$strip>;
@@ -16262,6 +16301,7 @@ export declare const zUpdateSiteBody: z.ZodObject<{
16262
16301
  yard: "yard";
16263
16302
  }>>;
16264
16303
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16304
+ responsible_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
16265
16305
  }, z.core.$strip>;
16266
16306
  export declare const zUpdateSitePath: z.ZodObject<{
16267
16307
  id: z.ZodString;
@@ -16279,6 +16319,7 @@ export declare const zUpdateSiteResponse: z.ZodObject<{
16279
16319
  }>;
16280
16320
  name: z.ZodString;
16281
16321
  site_type: z.ZodNullable<z.ZodString>;
16322
+ responsible_user_ids: z.ZodArray<z.ZodString>;
16282
16323
  created_at: z.ZodISODateTime;
16283
16324
  updated_at: z.ZodISODateTime;
16284
16325
  }, z.core.$strip>;
@@ -31599,6 +31640,9 @@ export declare const zListProjectsResponse: z.ZodObject<{
31599
31640
  id: z.ZodString;
31600
31641
  name: z.ZodString;
31601
31642
  }, z.core.$strip>>;
31643
+ project_address: z.ZodNullable<z.ZodObject<{
31644
+ label: z.ZodString;
31645
+ }, z.core.$strip>>;
31602
31646
  federal_pwa_mode: z.ZodEnum<{
31603
31647
  none: "none";
31604
31648
  all: "all";
@@ -31655,9 +31699,23 @@ export declare const zCreateProjectBody: z.ZodObject<{
31655
31699
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31656
31700
  participating_company_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
31657
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>>>;
31658
31716
  start_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
31659
31717
  end_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
31660
- tz_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31718
+ tz_name: z.ZodOptional<z.ZodString>;
31661
31719
  billing_start_day: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
31662
31720
  federal_pwa_mode: z.ZodOptional<z.ZodEnum<{
31663
31721
  none: "none";
@@ -31704,6 +31762,9 @@ export declare const zCreateProjectResponse: z.ZodObject<{
31704
31762
  id: z.ZodString;
31705
31763
  name: z.ZodString;
31706
31764
  }, z.core.$strip>>;
31765
+ project_address: z.ZodNullable<z.ZodObject<{
31766
+ label: z.ZodString;
31767
+ }, z.core.$strip>>;
31707
31768
  federal_pwa_mode: z.ZodEnum<{
31708
31769
  none: "none";
31709
31770
  all: "all";
@@ -31773,6 +31834,9 @@ export declare const zGetProjectResponse: z.ZodObject<{
31773
31834
  id: z.ZodString;
31774
31835
  name: z.ZodString;
31775
31836
  }, z.core.$strip>>;
31837
+ project_address: z.ZodNullable<z.ZodObject<{
31838
+ label: z.ZodString;
31839
+ }, z.core.$strip>>;
31776
31840
  federal_pwa_mode: z.ZodEnum<{
31777
31841
  none: "none";
31778
31842
  all: "all";
@@ -31828,9 +31892,23 @@ export declare const zUpdateProjectBody: z.ZodObject<{
31828
31892
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31829
31893
  participating_company_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
31830
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>>>;
31831
31909
  start_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
31832
31910
  end_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
31833
- tz_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31911
+ tz_name: z.ZodOptional<z.ZodString>;
31834
31912
  billing_start_day: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
31835
31913
  federal_pwa_mode: z.ZodOptional<z.ZodEnum<{
31836
31914
  none: "none";
@@ -31879,6 +31957,9 @@ export declare const zUpdateProjectResponse: z.ZodObject<{
31879
31957
  id: z.ZodString;
31880
31958
  name: z.ZodString;
31881
31959
  }, z.core.$strip>>;
31960
+ project_address: z.ZodNullable<z.ZodObject<{
31961
+ label: z.ZodString;
31962
+ }, z.core.$strip>>;
31882
31963
  federal_pwa_mode: z.ZodEnum<{
31883
31964
  none: "none";
31884
31965
  all: "all";
@@ -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().nullish(),
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().nullish(),
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsptch-work/api-client",
3
- "version": "0.49.0",
3
+ "version": "0.50.0",
4
4
  "description": "Generated TypeScript client for the DSPTCH REST API.",
5
5
  "keywords": [
6
6
  "dsptch",