@dsptch-work/api-client 0.44.0 → 0.46.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 +49 -0
- package/dist/gen/sdk.gen.d.ts +14 -14
- package/dist/gen/sdk.gen.js +14 -14
- package/dist/gen/types.gen.d.ts +62 -22
- package/dist/gen/zod.gen.d.ts +63 -17
- package/dist/gen/zod.gen.js +22 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,55 @@ All notable changes to `@dsptch-work/api-client` are documented here. The format
|
|
|
5
5
|
[Semantic Versioning](https://semver.org) — currently `0.x`, so breaking changes may land in a
|
|
6
6
|
minor bump until `1.0.0`. See [RELEASING.md](./RELEASING.md) for the release and versioning process.
|
|
7
7
|
|
|
8
|
+
## [0.46.0] - 2026-10-28
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `AssetsProducts.restockProduct()` and `adjustProductInventory()` accept `user_id` or
|
|
13
|
+
`container_item_id` in `AssetsRestockParameters` and `AssetsAdjustmentParameters`, and
|
|
14
|
+
`assets_site_id` is now optional. Supply exactly one holder: the API returns `422` for none or
|
|
15
|
+
multiple holders. A site or container can include `assets_sub_location_id`; a user cannot. The
|
|
16
|
+
generated types do not enforce the exactly-one constraint.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- **Breaking runtime validation:** `AssetsItems.createItem()` returns `422` when
|
|
21
|
+
`assets_sub_location_id` is supplied with `user_id` or without a placement. Remove the sublocation
|
|
22
|
+
from affected requests; the generated type does not enforce this constraint.
|
|
23
|
+
|
|
24
|
+
See the [October 28 API changelog](https://dsptch.app/support/docs/developers/api-changelog#2026-10-28)
|
|
25
|
+
for the full REST contract details.
|
|
26
|
+
|
|
27
|
+
## [0.45.0] - 2026-10-27
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
- `PeopleEmploymentCreateParameters`, `PeopleEmploymentScheduledChangeCreateParameters`, and
|
|
32
|
+
`PeopleEmploymentScheduledChangeUpdateParameters` accept `salary_annual_amount_cents` and
|
|
33
|
+
`salary_weekly_minutes`. The amount is a nullable decimal cents string; minutes must be an integer
|
|
34
|
+
from 1 to 10080 and cannot be null. On create, omitted minutes default to 2400; scheduled changes
|
|
35
|
+
preserve the applicable value when omitted. The corresponding Zod schemas enforce these formats.
|
|
36
|
+
- `PeopleEmploymentResponseObject`, `PeopleEmploymentHistoryVersionObject`, and
|
|
37
|
+
`PeopleEmploymentHistoryCorrectionObject` add required `salary_weekly_minutes` and optional nullable
|
|
38
|
+
`salary_annual_amount_cents`. The salary amount is visible to company keys, company administrators,
|
|
39
|
+
and the employed person. Their Zod schemas require the minutes field.
|
|
40
|
+
|
|
41
|
+
### Removed
|
|
42
|
+
|
|
43
|
+
- **Breaking:** `ProductionJobScopePriceParameters`, `ProductionJobScopePriceUpdateParameters`, and
|
|
44
|
+
`ProductionJobScopePriceResponseObject` remove `contracted_count`, as do their Zod schemas. Remove
|
|
45
|
+
it from `ProductionJobScopePrices.createJobScopePrice()` and `updateJobScopePrice()` bodies; the API
|
|
46
|
+
rejects the retired key with `400`. Use delivery targets for production requirements.
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
|
|
50
|
+
- `Jobs.updateJob()` now schedules a rate resync when
|
|
51
|
+
`body.pwa_details.pay_full_cash_fringe_by_default` changes. PWA position rates and unlocked
|
|
52
|
+
base-mode time entries are repriced; the generated request type is unchanged.
|
|
53
|
+
|
|
54
|
+
See the [October 27 API changelog](https://dsptch.app/support/docs/developers/api-changelog#2026-10-27)
|
|
55
|
+
for the full REST behavior changes.
|
|
56
|
+
|
|
8
57
|
## [0.44.0] - 2026-10-26
|
|
9
58
|
|
|
10
59
|
Generated method signatures, request/response types, and Zod validators are unchanged.
|
package/dist/gen/sdk.gen.d.ts
CHANGED
|
@@ -936,7 +936,7 @@ export declare class AssetsProducts {
|
|
|
936
936
|
*/
|
|
937
937
|
static archiveProduct<ThrowOnError extends boolean = false>(options: Options<ArchiveProductData, ThrowOnError>): RequestResult<ArchiveProductResponses, ArchiveProductErrors, ThrowOnError>;
|
|
938
938
|
/**
|
|
939
|
-
* Adjust
|
|
939
|
+
* Adjust bulk product count
|
|
940
940
|
*
|
|
941
941
|
* **Required scope:**
|
|
942
942
|
*
|
|
@@ -945,7 +945,7 @@ export declare class AssetsProducts {
|
|
|
945
945
|
*/
|
|
946
946
|
static adjustProductInventory<ThrowOnError extends boolean = false>(options: Options<AdjustProductInventoryData, ThrowOnError>): RequestResult<AdjustProductInventoryResponses, AdjustProductInventoryErrors, ThrowOnError>;
|
|
947
947
|
/**
|
|
948
|
-
* Restock bulk product
|
|
948
|
+
* Restock bulk product
|
|
949
949
|
*
|
|
950
950
|
* **Required scope:**
|
|
951
951
|
*
|
|
@@ -3030,9 +3030,9 @@ export declare class ProductionJobScopePrices {
|
|
|
3030
3030
|
* Scope prices on a production-tracked job. Company keys,
|
|
3031
3031
|
* and user keys held by an administrator, manager, safety
|
|
3032
3032
|
* manager, or field lead of the company that owns the job,
|
|
3033
|
-
* receive `unit_price_cents
|
|
3033
|
+
* receive `unit_price_cents`. Other user
|
|
3034
3034
|
* keys, held by crew on the job, receive the same rows
|
|
3035
|
-
* without
|
|
3035
|
+
* without the price. A present `unit_price_cents` is an
|
|
3036
3036
|
* exact decimal string, or null when the current price is unknown.
|
|
3037
3037
|
*
|
|
3038
3038
|
*
|
|
@@ -3046,9 +3046,9 @@ export declare class ProductionJobScopePrices {
|
|
|
3046
3046
|
* Create production job scope price
|
|
3047
3047
|
*
|
|
3048
3048
|
* Creates a scope price on the URL's job. The body accepts only `scope_kind`,
|
|
3049
|
-
* `unit_price_cents`,
|
|
3050
|
-
* including
|
|
3051
|
-
* `400`. Omit `unit_price_cents` or send null for an unknown price; "0" is a
|
|
3049
|
+
* `unit_price_cents`, and `unit_of_measure`. Undeclared keys,
|
|
3050
|
+
* including retired `contracted_count` or dollar `unit_price`, return `400`.
|
|
3051
|
+
* A missing `scope_kind` also returns `400`. Omit `unit_price_cents` or send null for an unknown price; "0" is a
|
|
3052
3052
|
* known zero. Supplied nonnull prices must be nonnegative decimal strings;
|
|
3053
3053
|
* blank, numeric, negative, or wrong-typed prices return `422` without a write.
|
|
3054
3054
|
*
|
|
@@ -3074,9 +3074,9 @@ export declare class ProductionJobScopePrices {
|
|
|
3074
3074
|
* One scope price on a production-tracked job. Company keys,
|
|
3075
3075
|
* and user keys held by an administrator, manager, safety
|
|
3076
3076
|
* manager, or field lead of the company that owns the job,
|
|
3077
|
-
* receive `unit_price_cents
|
|
3078
|
-
* keys, held by crew on the job, receive the
|
|
3079
|
-
*
|
|
3077
|
+
* receive `unit_price_cents`. Other user
|
|
3078
|
+
* keys, held by crew on the job, receive the row without
|
|
3079
|
+
* the price. A present `unit_price_cents` is an exact
|
|
3080
3080
|
* decimal string, or null when the current price is unknown.
|
|
3081
3081
|
*
|
|
3082
3082
|
*
|
|
@@ -3089,10 +3089,10 @@ export declare class ProductionJobScopePrices {
|
|
|
3089
3089
|
/**
|
|
3090
3090
|
* Update production job scope price
|
|
3091
3091
|
*
|
|
3092
|
-
* Updates only the supplied `scope_kind`, `unit_price_cents`,
|
|
3092
|
+
* Updates only the supplied `scope_kind`, `unit_price_cents`,
|
|
3093
3093
|
* and `unit_of_measure`. Omission preserves the stored value; null
|
|
3094
|
-
* `unit_price_cents` clears the price to unknown
|
|
3095
|
-
*
|
|
3094
|
+
* `unit_price_cents` clears the price to unknown. Undeclared keys,
|
|
3095
|
+
* including retired `contracted_count` or dollar `unit_price`,
|
|
3096
3096
|
* return `400`. Invalid supplied values return `422` without changing the scope
|
|
3097
3097
|
* price. Prices remain nonnegative decimal strings; "0" is a known zero.
|
|
3098
3098
|
* The job stays on the URL.
|
|
@@ -3134,7 +3134,7 @@ export declare class PwaTrades {
|
|
|
3134
3134
|
*
|
|
3135
3135
|
* A merge is refused (422) when the two crafts decided an occupation's apprentice
|
|
3136
3136
|
* scope opposite ways, in scope on one and out of scope on the other. The detail
|
|
3137
|
-
* lists each
|
|
3137
|
+
* lists each conflict and the employer companies of the occupation's program, whose
|
|
3138
3138
|
* admins and managers can change either decision or remove one. Nothing changes.
|
|
3139
3139
|
*
|
|
3140
3140
|
* Use this rather than `DELETE` when the craft still groups determinations:
|
package/dist/gen/sdk.gen.js
CHANGED
|
@@ -1597,7 +1597,7 @@ export class AssetsProducts {
|
|
|
1597
1597
|
});
|
|
1598
1598
|
}
|
|
1599
1599
|
/**
|
|
1600
|
-
* Adjust
|
|
1600
|
+
* Adjust bulk product count
|
|
1601
1601
|
*
|
|
1602
1602
|
* **Required scope:**
|
|
1603
1603
|
*
|
|
@@ -1616,7 +1616,7 @@ export class AssetsProducts {
|
|
|
1616
1616
|
});
|
|
1617
1617
|
}
|
|
1618
1618
|
/**
|
|
1619
|
-
* Restock bulk product
|
|
1619
|
+
* Restock bulk product
|
|
1620
1620
|
*
|
|
1621
1621
|
* **Required scope:**
|
|
1622
1622
|
*
|
|
@@ -5040,9 +5040,9 @@ export class ProductionJobScopePrices {
|
|
|
5040
5040
|
* Scope prices on a production-tracked job. Company keys,
|
|
5041
5041
|
* and user keys held by an administrator, manager, safety
|
|
5042
5042
|
* manager, or field lead of the company that owns the job,
|
|
5043
|
-
* receive `unit_price_cents
|
|
5043
|
+
* receive `unit_price_cents`. Other user
|
|
5044
5044
|
* keys, held by crew on the job, receive the same rows
|
|
5045
|
-
* without
|
|
5045
|
+
* without the price. A present `unit_price_cents` is an
|
|
5046
5046
|
* exact decimal string, or null when the current price is unknown.
|
|
5047
5047
|
*
|
|
5048
5048
|
*
|
|
@@ -5062,9 +5062,9 @@ export class ProductionJobScopePrices {
|
|
|
5062
5062
|
* Create production job scope price
|
|
5063
5063
|
*
|
|
5064
5064
|
* Creates a scope price on the URL's job. The body accepts only `scope_kind`,
|
|
5065
|
-
* `unit_price_cents`,
|
|
5066
|
-
* including
|
|
5067
|
-
* `400`. Omit `unit_price_cents` or send null for an unknown price; "0" is a
|
|
5065
|
+
* `unit_price_cents`, and `unit_of_measure`. Undeclared keys,
|
|
5066
|
+
* including retired `contracted_count` or dollar `unit_price`, return `400`.
|
|
5067
|
+
* A missing `scope_kind` also returns `400`. Omit `unit_price_cents` or send null for an unknown price; "0" is a
|
|
5068
5068
|
* known zero. Supplied nonnull prices must be nonnegative decimal strings;
|
|
5069
5069
|
* blank, numeric, negative, or wrong-typed prices return `422` without a write.
|
|
5070
5070
|
*
|
|
@@ -5106,9 +5106,9 @@ export class ProductionJobScopePrices {
|
|
|
5106
5106
|
* One scope price on a production-tracked job. Company keys,
|
|
5107
5107
|
* and user keys held by an administrator, manager, safety
|
|
5108
5108
|
* manager, or field lead of the company that owns the job,
|
|
5109
|
-
* receive `unit_price_cents
|
|
5110
|
-
* keys, held by crew on the job, receive the
|
|
5111
|
-
*
|
|
5109
|
+
* receive `unit_price_cents`. Other user
|
|
5110
|
+
* keys, held by crew on the job, receive the row without
|
|
5111
|
+
* the price. A present `unit_price_cents` is an exact
|
|
5112
5112
|
* decimal string, or null when the current price is unknown.
|
|
5113
5113
|
*
|
|
5114
5114
|
*
|
|
@@ -5127,10 +5127,10 @@ export class ProductionJobScopePrices {
|
|
|
5127
5127
|
/**
|
|
5128
5128
|
* Update production job scope price
|
|
5129
5129
|
*
|
|
5130
|
-
* Updates only the supplied `scope_kind`, `unit_price_cents`,
|
|
5130
|
+
* Updates only the supplied `scope_kind`, `unit_price_cents`,
|
|
5131
5131
|
* and `unit_of_measure`. Omission preserves the stored value; null
|
|
5132
|
-
* `unit_price_cents` clears the price to unknown
|
|
5133
|
-
*
|
|
5132
|
+
* `unit_price_cents` clears the price to unknown. Undeclared keys,
|
|
5133
|
+
* including retired `contracted_count` or dollar `unit_price`,
|
|
5134
5134
|
* return `400`. Invalid supplied values return `422` without changing the scope
|
|
5135
5135
|
* price. Prices remain nonnegative decimal strings; "0" is a known zero.
|
|
5136
5136
|
* The job stays on the URL.
|
|
@@ -5202,7 +5202,7 @@ export class PwaTrades {
|
|
|
5202
5202
|
*
|
|
5203
5203
|
* A merge is refused (422) when the two crafts decided an occupation's apprentice
|
|
5204
5204
|
* scope opposite ways, in scope on one and out of scope on the other. The detail
|
|
5205
|
-
* lists each
|
|
5205
|
+
* lists each conflict and the employer companies of the occupation's program, whose
|
|
5206
5206
|
* admins and managers can change either decision or remove one. Nothing changes.
|
|
5207
5207
|
*
|
|
5208
5208
|
* Use this rather than `DELETE` when the craft still groups determinations:
|
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -2144,6 +2144,10 @@ export type PeopleEmploymentResponseObject = {
|
|
|
2144
2144
|
* Annual training minutes; null when unset.
|
|
2145
2145
|
*/
|
|
2146
2146
|
training_annual_minutes: number | null;
|
|
2147
|
+
/**
|
|
2148
|
+
* Minutes per workweek the fixed salary is intended to compensate. This is the salary's fixed-hours basis, not time worked, and is separate from worked_annual_minutes.
|
|
2149
|
+
*/
|
|
2150
|
+
salary_weekly_minutes: number;
|
|
2147
2151
|
/**
|
|
2148
2152
|
* Hourly pay in cents as a decimal string; present for company keys, company administrators, and the employed person, and null when authorized but unset.
|
|
2149
2153
|
*/
|
|
@@ -2152,6 +2156,10 @@ export type PeopleEmploymentResponseObject = {
|
|
|
2152
2156
|
* Annual training amount in cents as a decimal string; present for company keys, company administrators, and the employed person, and null when authorized but unset.
|
|
2153
2157
|
*/
|
|
2154
2158
|
training_annual_amount_cents?: string | null;
|
|
2159
|
+
/**
|
|
2160
|
+
* Annual fixed-hours salary in cents as a decimal string; present for company keys, company administrators, and the employed person, and null when authorized but unset. Variable-hours and fluctuating-workweek salaries are not supported.
|
|
2161
|
+
*/
|
|
2162
|
+
salary_annual_amount_cents?: string | null;
|
|
2155
2163
|
/**
|
|
2156
2164
|
* Employer health amount in cents as a decimal string; present for company keys, company administrators, and the employed person, and null when authorized but unset.
|
|
2157
2165
|
*/
|
|
@@ -2257,6 +2265,14 @@ export type PeopleEmploymentCreateParameters = {
|
|
|
2257
2265
|
* Annual employer savings and retirement contribution in cents as a decimal string. Omit or send null to leave it unset.
|
|
2258
2266
|
*/
|
|
2259
2267
|
employer_combined_savings_cents?: string | null;
|
|
2268
|
+
/**
|
|
2269
|
+
* Annual fixed-hours salary in cents as a decimal string. Variable-hours and fluctuating-workweek salaries are not supported. Omit or send null to leave it unset.
|
|
2270
|
+
*/
|
|
2271
|
+
salary_annual_amount_cents?: string | null;
|
|
2272
|
+
/**
|
|
2273
|
+
* Minutes per workweek the fixed salary is intended to compensate, as a whole number from 1 to 10080 (one week). This is the salary's fixed-hours basis, not observed time. Omit to use 2400 (40 hours); null is refused.
|
|
2274
|
+
*/
|
|
2275
|
+
salary_weekly_minutes?: number;
|
|
2260
2276
|
};
|
|
2261
2277
|
/**
|
|
2262
2278
|
* Request body for creating one employment boundary. effective_date is required and is interpreted at midnight in the credential company's time zone. Today and past dates must fall inside the family's latest version, before its termination; future dates retain scheduling behavior. Send at least one value to change; omitted values carry forward from the version immediately before the new boundary.
|
|
@@ -2310,6 +2326,14 @@ export type PeopleEmploymentScheduledChangeCreateParameters = {
|
|
|
2310
2326
|
* Annual employer savings contribution in cents as a decimal string. Omit to carry forward the preceding version, or send null to clear it.
|
|
2311
2327
|
*/
|
|
2312
2328
|
employer_combined_savings_cents?: string | null;
|
|
2329
|
+
/**
|
|
2330
|
+
* Annual fixed-hours salary in cents as a decimal string. Variable-hours and fluctuating-workweek salaries are not supported. Omit to carry forward the preceding version, or send null to clear it.
|
|
2331
|
+
*/
|
|
2332
|
+
salary_annual_amount_cents?: string | null;
|
|
2333
|
+
/**
|
|
2334
|
+
* Minutes per workweek the fixed salary is intended to compensate, as a whole number from 1 to 10080 (one week). This is the salary's fixed-hours basis, not observed time. Omit to carry forward the preceding version; null is refused.
|
|
2335
|
+
*/
|
|
2336
|
+
salary_weekly_minutes?: number;
|
|
2313
2337
|
/**
|
|
2314
2338
|
* Department ID in the credential company. Omit to carry forward the preceding version, or send null to clear it. A submitted value applies to this and all later versions.
|
|
2315
2339
|
*/
|
|
@@ -2363,6 +2387,14 @@ export type PeopleEmploymentScheduledChangeUpdateParameters = {
|
|
|
2363
2387
|
* Annual employer savings contribution in cents as a decimal string. Omit to preserve the value at the targeted boundary, or send null to clear it.
|
|
2364
2388
|
*/
|
|
2365
2389
|
employer_combined_savings_cents?: string | null;
|
|
2390
|
+
/**
|
|
2391
|
+
* Annual fixed-hours salary in cents as a decimal string. Variable-hours and fluctuating-workweek salaries are not supported. Omit to preserve the value at the targeted boundary, or send null to clear it.
|
|
2392
|
+
*/
|
|
2393
|
+
salary_annual_amount_cents?: string | null;
|
|
2394
|
+
/**
|
|
2395
|
+
* Minutes per workweek the fixed salary is intended to compensate, as a whole number from 1 to 10080 (one week). This is the salary's fixed-hours basis, not observed time. Omit to preserve the value at the targeted boundary; null is refused.
|
|
2396
|
+
*/
|
|
2397
|
+
salary_weekly_minutes?: number;
|
|
2366
2398
|
/**
|
|
2367
2399
|
* Department ID in the credential company. Omit to preserve the value at the targeted boundary, or send null to clear it. A submitted value applies to this and all later versions.
|
|
2368
2400
|
*/
|
|
@@ -2451,8 +2483,10 @@ export type PeopleEmploymentHistoryCorrectionObject = {
|
|
|
2451
2483
|
pto_annual_minutes: number | null;
|
|
2452
2484
|
holiday_annual_minutes: number | null;
|
|
2453
2485
|
training_annual_minutes: number | null;
|
|
2486
|
+
salary_weekly_minutes: number;
|
|
2454
2487
|
hourly_rate_cents?: string | null;
|
|
2455
2488
|
training_annual_amount_cents?: string | null;
|
|
2489
|
+
salary_annual_amount_cents?: string | null;
|
|
2456
2490
|
employer_combined_health_amount_cents?: string | null;
|
|
2457
2491
|
employer_combined_savings_cents?: string | null;
|
|
2458
2492
|
currency: string;
|
|
@@ -2483,8 +2517,10 @@ export type PeopleEmploymentHistoryVersionObject = {
|
|
|
2483
2517
|
pto_annual_minutes: number | null;
|
|
2484
2518
|
holiday_annual_minutes: number | null;
|
|
2485
2519
|
training_annual_minutes: number | null;
|
|
2520
|
+
salary_weekly_minutes: number;
|
|
2486
2521
|
hourly_rate_cents?: string | null;
|
|
2487
2522
|
training_annual_amount_cents?: string | null;
|
|
2523
|
+
salary_annual_amount_cents?: string | null;
|
|
2488
2524
|
employer_combined_health_amount_cents?: string | null;
|
|
2489
2525
|
employer_combined_savings_cents?: string | null;
|
|
2490
2526
|
currency: string;
|
|
@@ -6170,7 +6206,7 @@ export type TimeEntryResponseObject = {
|
|
|
6170
6206
|
*/
|
|
6171
6207
|
currency?: string;
|
|
6172
6208
|
/**
|
|
6173
|
-
* Where the base rate came from: one of user_default, position, prevailing_wage, or custom; null when no rate is set. (The schema types this as a free-form nullable string; the value set is defined by the model enum.) Present for company keys and for administrators of the company whose pay schedule holds the entry; omitted for other user keys.
|
|
6209
|
+
* Where the base rate came from: one of user_default, position, prevailing_wage, or custom; null when no rate is set. A fixed-hours salary is a user_default rate. (The schema types this as a free-form nullable string; the value set is defined by the model enum.) Present for company keys and for administrators of the company whose pay schedule holds the entry; omitted for other user keys.
|
|
6174
6210
|
*/
|
|
6175
6211
|
hourly_rate_src_type?: string | null;
|
|
6176
6212
|
/**
|
|
@@ -12030,17 +12066,13 @@ export type ProductionJobScopePriceParameters = {
|
|
|
12030
12066
|
* Billing rate per unit in cents, as a decimal string (e.g. "120000" or the read form "120000.0" for $1,200.00, or "3.5" for $0.035); a fraction of a cent is kept exactly and bills exactly. Null means the current price is unknown; "0" is a known zero price. A negative value, blank string, JSON number, or wrong type answers 422.
|
|
12031
12067
|
*/
|
|
12032
12068
|
unit_price_cents?: string | null;
|
|
12033
|
-
/**
|
|
12034
|
-
* Contracted number of units expected for this scope on the job, as an integer; null when no target is set.
|
|
12035
|
-
*/
|
|
12036
|
-
contracted_count?: number | null;
|
|
12037
12069
|
/**
|
|
12038
12070
|
* What each priced unit represents, as a free-text label (for example "modules", "piles", or "turbines"); defaults to "units".
|
|
12039
12071
|
*/
|
|
12040
12072
|
unit_of_measure?: string;
|
|
12041
12073
|
};
|
|
12042
12074
|
/**
|
|
12043
|
-
* Parameters for updating a per-unit scope price on a job. Every field is optional; omit a field to preserve its current value. Send null for `unit_price_cents` to clear the known price
|
|
12075
|
+
* Parameters for updating a per-unit scope price on a job. Every field is optional; omit a field to preserve its current value. Send null for `unit_price_cents` to clear the known price. A null value for any other field, or a wrong-typed value, answers 422. The resulting price must retain a scope kind; supplied nonnull prices must be nonnegative decimal strings.
|
|
12044
12076
|
*/
|
|
12045
12077
|
export type ProductionJobScopePriceUpdateParameters = {
|
|
12046
12078
|
/**
|
|
@@ -12051,10 +12083,6 @@ export type ProductionJobScopePriceUpdateParameters = {
|
|
|
12051
12083
|
* Billing rate per unit in cents, as a decimal string (e.g. "120000" or the read form "120000.0" for $1,200.00, or "3.5" for $0.035); a fraction of a cent is kept exactly and bills exactly. Null means the current price is unknown; "0" is a known zero price. A negative value, blank string, JSON number, or wrong type answers 422.
|
|
12052
12084
|
*/
|
|
12053
12085
|
unit_price_cents?: string | null;
|
|
12054
|
-
/**
|
|
12055
|
-
* Contracted number of units expected for this scope on the job, as an integer; null when no target is set.
|
|
12056
|
-
*/
|
|
12057
|
-
contracted_count?: number | null;
|
|
12058
12086
|
/**
|
|
12059
12087
|
* What each priced unit represents, as a free-text label (for example "modules", "piles", or "turbines"); defaults to "units".
|
|
12060
12088
|
*/
|
|
@@ -12084,10 +12112,6 @@ export type ProductionJobScopePriceResponseObject = {
|
|
|
12084
12112
|
* Billing rate per unit in cents, as a decimal string (e.g. "120000.0" is $1,200.00 and "3.5" is $0.035); a fraction of a cent is kept exactly. Null means the current price is unknown; "0.0" is a known zero price. Present for company keys and for administrators, managers, safety managers, and field leads of the company that owns the job; omitted for other user keys.
|
|
12085
12113
|
*/
|
|
12086
12114
|
unit_price_cents?: string | null;
|
|
12087
|
-
/**
|
|
12088
|
-
* Contracted number of units expected for this scope on the job; null when no target is set. Present for company keys and for administrators, managers, safety managers, and field leads of the company that owns the job; omitted for other user keys.
|
|
12089
|
-
*/
|
|
12090
|
-
contracted_count?: number | null;
|
|
12091
12115
|
/**
|
|
12092
12116
|
* When the record was created (ISO 8601).
|
|
12093
12117
|
*/
|
|
@@ -15257,7 +15281,7 @@ export type AssetsItemParameters = {
|
|
|
15257
15281
|
*/
|
|
15258
15282
|
container_item_id?: string | null;
|
|
15259
15283
|
/**
|
|
15260
|
-
* Optional, create only. The storage location within the placement site or container the item lands in; must belong to that holder. Omit for an unbinned placement.
|
|
15284
|
+
* Optional, create only. The storage location within the placement site or container the item lands in; must belong to that holder. Omit for an unbinned placement. One named with user_id, or without a placement, answers 422 at its pointer.
|
|
15261
15285
|
*/
|
|
15262
15286
|
assets_sub_location_id?: string | null;
|
|
15263
15287
|
};
|
|
@@ -16761,15 +16785,23 @@ export type AssetsTransferParameters = {
|
|
|
16761
16785
|
}>;
|
|
16762
16786
|
};
|
|
16763
16787
|
/**
|
|
16764
|
-
* Add stock of a bulk product
|
|
16788
|
+
* Add stock of a bulk product to a holder — a site, a user's custody, or a container — recording a receive transaction. Name the holder with exactly one of assets_site_id, user_id, or container_item_id; several answer 422 at each named key, and none answers 422. Bulk products only.
|
|
16765
16789
|
*/
|
|
16766
16790
|
export type AssetsRestockParameters = {
|
|
16767
16791
|
/**
|
|
16768
16792
|
* ID of the site to add the stock to. A site the API key cannot see answers 404.
|
|
16769
16793
|
*/
|
|
16770
|
-
assets_site_id
|
|
16794
|
+
assets_site_id?: string;
|
|
16795
|
+
/**
|
|
16796
|
+
* ID of the user to give the stock to. A user outside the company, or one whose employment has ended, answers 404.
|
|
16797
|
+
*/
|
|
16798
|
+
user_id?: string;
|
|
16771
16799
|
/**
|
|
16772
|
-
*
|
|
16800
|
+
* ID of the container item to place the stock in. A container the API key cannot see answers 404; an item that is not a container answers 422.
|
|
16801
|
+
*/
|
|
16802
|
+
container_item_id?: string;
|
|
16803
|
+
/**
|
|
16804
|
+
* Optional. The site's or container's storage location the stock lands in; one that is not the holder's answers 404, and one named with user_id answers 422 at its pointer. Omit or send null for the holder's unbinned stock.
|
|
16773
16805
|
*/
|
|
16774
16806
|
assets_sub_location_id?: string | null;
|
|
16775
16807
|
/**
|
|
@@ -16782,19 +16814,27 @@ export type AssetsRestockParameters = {
|
|
|
16782
16814
|
performed_by_user_id: string;
|
|
16783
16815
|
};
|
|
16784
16816
|
/**
|
|
16785
|
-
* Set the
|
|
16817
|
+
* Set the count of a bulk product held by a holder — a site, a user's custody, or a container — to a specific number, recording the difference as an adjustment transaction. Name the holder with exactly one of assets_site_id, user_id, or container_item_id; several answer 422 at each named key, and none answers 422. The holder must already hold the product. Bulk products only.
|
|
16786
16818
|
*/
|
|
16787
16819
|
export type AssetsAdjustmentParameters = {
|
|
16788
16820
|
/**
|
|
16789
16821
|
* ID of the site whose on-hand count is being set. A site the API key cannot see answers 404.
|
|
16790
16822
|
*/
|
|
16791
|
-
assets_site_id
|
|
16823
|
+
assets_site_id?: string;
|
|
16824
|
+
/**
|
|
16825
|
+
* ID of the user whose held count is being set. A user outside the company, or one whose employment has ended, answers 404.
|
|
16826
|
+
*/
|
|
16827
|
+
user_id?: string;
|
|
16828
|
+
/**
|
|
16829
|
+
* ID of the container item whose held count is being set. A container the API key cannot see answers 404.
|
|
16830
|
+
*/
|
|
16831
|
+
container_item_id?: string;
|
|
16792
16832
|
/**
|
|
16793
|
-
* Optional. The site's storage location whose count is being set; one that is not the
|
|
16833
|
+
* Optional. The site's or container's storage location whose count is being set; one that is not the holder's answers 404, and one named with user_id answers 422 at its pointer. Omit or send null to set the holder's unbinned count.
|
|
16794
16834
|
*/
|
|
16795
16835
|
assets_sub_location_id?: string | null;
|
|
16796
16836
|
/**
|
|
16797
|
-
* The corrected
|
|
16837
|
+
* The corrected count for the holder, as an integer of 0 or more; any other value answers 422. The difference from the current count is recorded as the adjustment.
|
|
16798
16838
|
*/
|
|
16799
16839
|
new_quantity: number;
|
|
16800
16840
|
/**
|
package/dist/gen/zod.gen.d.ts
CHANGED
|
@@ -1264,8 +1264,10 @@ export declare const zPeopleEmploymentResponseObject: z.ZodObject<{
|
|
|
1264
1264
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
1265
1265
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
1266
1266
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
1267
|
+
salary_weekly_minutes: z.ZodInt;
|
|
1267
1268
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1268
1269
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1270
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1269
1271
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1270
1272
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1271
1273
|
currency: z.ZodString;
|
|
@@ -1302,6 +1304,8 @@ export declare const zPeopleEmploymentCreateParameters: z.ZodObject<{
|
|
|
1302
1304
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1303
1305
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1304
1306
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1307
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1308
|
+
salary_weekly_minutes: z.ZodOptional<z.ZodInt>;
|
|
1305
1309
|
}, z.core.$strip>;
|
|
1306
1310
|
/**
|
|
1307
1311
|
* Request body for creating one employment boundary. effective_date is required and is interpreted at midnight in the credential company's time zone. Today and past dates must fall inside the family's latest version, before its termination; future dates retain scheduling behavior. Send at least one value to change; omitted values carry forward from the version immediately before the new boundary.
|
|
@@ -1322,6 +1326,8 @@ export declare const zPeopleEmploymentScheduledChangeCreateParameters: z.ZodObje
|
|
|
1322
1326
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1323
1327
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1324
1328
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1329
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1330
|
+
salary_weekly_minutes: z.ZodOptional<z.ZodInt>;
|
|
1325
1331
|
companies_department_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1326
1332
|
}, z.core.$strip>;
|
|
1327
1333
|
/**
|
|
@@ -1342,6 +1348,8 @@ export declare const zPeopleEmploymentScheduledChangeUpdateParameters: z.ZodObje
|
|
|
1342
1348
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1343
1349
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1344
1350
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1351
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1352
|
+
salary_weekly_minutes: z.ZodOptional<z.ZodInt>;
|
|
1345
1353
|
companies_department_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1346
1354
|
}, z.core.$strip>;
|
|
1347
1355
|
/**
|
|
@@ -1403,8 +1411,10 @@ export declare const zPeopleEmploymentHistoryCorrectionObject: z.ZodObject<{
|
|
|
1403
1411
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
1404
1412
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
1405
1413
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
1414
|
+
salary_weekly_minutes: z.ZodInt;
|
|
1406
1415
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1407
1416
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1417
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1408
1418
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1409
1419
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1410
1420
|
currency: z.ZodString;
|
|
@@ -1438,8 +1448,10 @@ export declare const zPeopleEmploymentHistoryVersionObject: z.ZodObject<{
|
|
|
1438
1448
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
1439
1449
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
1440
1450
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
1451
|
+
salary_weekly_minutes: z.ZodInt;
|
|
1441
1452
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1442
1453
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1454
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1443
1455
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1444
1456
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1445
1457
|
currency: z.ZodString;
|
|
@@ -1477,8 +1489,10 @@ export declare const zPeopleEmploymentHistoryVersionObject: z.ZodObject<{
|
|
|
1477
1489
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
1478
1490
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
1479
1491
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
1492
|
+
salary_weekly_minutes: z.ZodInt;
|
|
1480
1493
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1481
1494
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1495
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1482
1496
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1483
1497
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1484
1498
|
currency: z.ZodString;
|
|
@@ -6372,16 +6386,14 @@ export declare const zPositionParameters: z.ZodObject<{
|
|
|
6372
6386
|
export declare const zProductionJobScopePriceParameters: z.ZodObject<{
|
|
6373
6387
|
scope_kind: z.ZodString;
|
|
6374
6388
|
unit_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6375
|
-
contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
6376
6389
|
unit_of_measure: z.ZodOptional<z.ZodString>;
|
|
6377
6390
|
}, z.core.$strip>;
|
|
6378
6391
|
/**
|
|
6379
|
-
* Parameters for updating a per-unit scope price on a job. Every field is optional; omit a field to preserve its current value. Send null for `unit_price_cents` to clear the known price
|
|
6392
|
+
* Parameters for updating a per-unit scope price on a job. Every field is optional; omit a field to preserve its current value. Send null for `unit_price_cents` to clear the known price. A null value for any other field, or a wrong-typed value, answers 422. The resulting price must retain a scope kind; supplied nonnull prices must be nonnegative decimal strings.
|
|
6380
6393
|
*/
|
|
6381
6394
|
export declare const zProductionJobScopePriceUpdateParameters: z.ZodObject<{
|
|
6382
6395
|
scope_kind: z.ZodOptional<z.ZodString>;
|
|
6383
6396
|
unit_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6384
|
-
contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
6385
6397
|
unit_of_measure: z.ZodOptional<z.ZodString>;
|
|
6386
6398
|
}, z.core.$strip>;
|
|
6387
6399
|
/**
|
|
@@ -6393,7 +6405,6 @@ export declare const zProductionJobScopePriceResponseObject: z.ZodObject<{
|
|
|
6393
6405
|
scope_kind: z.ZodString;
|
|
6394
6406
|
unit_of_measure: z.ZodString;
|
|
6395
6407
|
unit_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6396
|
-
contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
6397
6408
|
created_at: z.ZodISODateTime;
|
|
6398
6409
|
updated_at: z.ZodISODateTime;
|
|
6399
6410
|
}, z.core.$strip>;
|
|
@@ -11508,19 +11519,23 @@ export declare const zAssetsTransferParameters: z.ZodObject<{
|
|
|
11508
11519
|
}, z.core.$strip>>;
|
|
11509
11520
|
}, z.core.$strip>;
|
|
11510
11521
|
/**
|
|
11511
|
-
* Add stock of a bulk product
|
|
11522
|
+
* Add stock of a bulk product to a holder — a site, a user's custody, or a container — recording a receive transaction. Name the holder with exactly one of assets_site_id, user_id, or container_item_id; several answer 422 at each named key, and none answers 422. Bulk products only.
|
|
11512
11523
|
*/
|
|
11513
11524
|
export declare const zAssetsRestockParameters: z.ZodObject<{
|
|
11514
|
-
assets_site_id: z.ZodString
|
|
11525
|
+
assets_site_id: z.ZodOptional<z.ZodString>;
|
|
11526
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
11527
|
+
container_item_id: z.ZodOptional<z.ZodString>;
|
|
11515
11528
|
assets_sub_location_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11516
11529
|
quantity: z.ZodInt;
|
|
11517
11530
|
performed_by_user_id: z.ZodString;
|
|
11518
11531
|
}, z.core.$strip>;
|
|
11519
11532
|
/**
|
|
11520
|
-
* Set the
|
|
11533
|
+
* Set the count of a bulk product held by a holder — a site, a user's custody, or a container — to a specific number, recording the difference as an adjustment transaction. Name the holder with exactly one of assets_site_id, user_id, or container_item_id; several answer 422 at each named key, and none answers 422. The holder must already hold the product. Bulk products only.
|
|
11521
11534
|
*/
|
|
11522
11535
|
export declare const zAssetsAdjustmentParameters: z.ZodObject<{
|
|
11523
|
-
assets_site_id: z.ZodString
|
|
11536
|
+
assets_site_id: z.ZodOptional<z.ZodString>;
|
|
11537
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
11538
|
+
container_item_id: z.ZodOptional<z.ZodString>;
|
|
11524
11539
|
assets_sub_location_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11525
11540
|
new_quantity: z.ZodInt;
|
|
11526
11541
|
performed_by_user_id: z.ZodString;
|
|
@@ -15296,7 +15311,9 @@ export declare const zArchiveProductResponse: z.ZodObject<{
|
|
|
15296
15311
|
updated_at: z.ZodISODateTime;
|
|
15297
15312
|
}, z.core.$strip>;
|
|
15298
15313
|
export declare const zAdjustProductInventoryBody: z.ZodObject<{
|
|
15299
|
-
assets_site_id: z.ZodString
|
|
15314
|
+
assets_site_id: z.ZodOptional<z.ZodString>;
|
|
15315
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
15316
|
+
container_item_id: z.ZodOptional<z.ZodString>;
|
|
15300
15317
|
assets_sub_location_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15301
15318
|
new_quantity: z.ZodInt;
|
|
15302
15319
|
performed_by_user_id: z.ZodString;
|
|
@@ -15346,7 +15363,9 @@ export declare const zAdjustProductInventoryResponse: z.ZodObject<{
|
|
|
15346
15363
|
updated_at: z.ZodISODateTime;
|
|
15347
15364
|
}, z.core.$strip>;
|
|
15348
15365
|
export declare const zRestockProductBody: z.ZodObject<{
|
|
15349
|
-
assets_site_id: z.ZodString
|
|
15366
|
+
assets_site_id: z.ZodOptional<z.ZodString>;
|
|
15367
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
15368
|
+
container_item_id: z.ZodOptional<z.ZodString>;
|
|
15350
15369
|
assets_sub_location_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15351
15370
|
quantity: z.ZodInt;
|
|
15352
15371
|
performed_by_user_id: z.ZodString;
|
|
@@ -20351,7 +20370,6 @@ export declare const zListJobScopePricesResponse: z.ZodObject<{
|
|
|
20351
20370
|
scope_kind: z.ZodString;
|
|
20352
20371
|
unit_of_measure: z.ZodString;
|
|
20353
20372
|
unit_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20354
|
-
contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
20355
20373
|
created_at: z.ZodISODateTime;
|
|
20356
20374
|
updated_at: z.ZodISODateTime;
|
|
20357
20375
|
}, z.core.$strip>>;
|
|
@@ -20359,7 +20377,6 @@ export declare const zListJobScopePricesResponse: z.ZodObject<{
|
|
|
20359
20377
|
export declare const zCreateJobScopePriceBody: z.ZodObject<{
|
|
20360
20378
|
scope_kind: z.ZodString;
|
|
20361
20379
|
unit_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20362
|
-
contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
20363
20380
|
unit_of_measure: z.ZodOptional<z.ZodString>;
|
|
20364
20381
|
}, z.core.$strip>;
|
|
20365
20382
|
export declare const zCreateJobScopePricePath: z.ZodObject<{
|
|
@@ -20374,7 +20391,6 @@ export declare const zCreateJobScopePriceResponse: z.ZodObject<{
|
|
|
20374
20391
|
scope_kind: z.ZodString;
|
|
20375
20392
|
unit_of_measure: z.ZodString;
|
|
20376
20393
|
unit_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20377
|
-
contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
20378
20394
|
created_at: z.ZodISODateTime;
|
|
20379
20395
|
updated_at: z.ZodISODateTime;
|
|
20380
20396
|
}, z.core.$strip>;
|
|
@@ -20391,7 +20407,6 @@ export declare const zDeleteJobScopePriceResponse: z.ZodObject<{
|
|
|
20391
20407
|
scope_kind: z.ZodString;
|
|
20392
20408
|
unit_of_measure: z.ZodString;
|
|
20393
20409
|
unit_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20394
|
-
contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
20395
20410
|
created_at: z.ZodISODateTime;
|
|
20396
20411
|
updated_at: z.ZodISODateTime;
|
|
20397
20412
|
}, z.core.$strip>;
|
|
@@ -20408,14 +20423,12 @@ export declare const zGetJobScopePriceResponse: z.ZodObject<{
|
|
|
20408
20423
|
scope_kind: z.ZodString;
|
|
20409
20424
|
unit_of_measure: z.ZodString;
|
|
20410
20425
|
unit_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20411
|
-
contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
20412
20426
|
created_at: z.ZodISODateTime;
|
|
20413
20427
|
updated_at: z.ZodISODateTime;
|
|
20414
20428
|
}, z.core.$strip>;
|
|
20415
20429
|
export declare const zUpdateJobScopePriceBody: z.ZodObject<{
|
|
20416
20430
|
scope_kind: z.ZodOptional<z.ZodString>;
|
|
20417
20431
|
unit_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20418
|
-
contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
20419
20432
|
unit_of_measure: z.ZodOptional<z.ZodString>;
|
|
20420
20433
|
}, z.core.$strip>;
|
|
20421
20434
|
export declare const zUpdateJobScopePricePath: z.ZodObject<{
|
|
@@ -20431,7 +20444,6 @@ export declare const zUpdateJobScopePriceResponse: z.ZodObject<{
|
|
|
20431
20444
|
scope_kind: z.ZodString;
|
|
20432
20445
|
unit_of_measure: z.ZodString;
|
|
20433
20446
|
unit_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20434
|
-
contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
20435
20447
|
created_at: z.ZodISODateTime;
|
|
20436
20448
|
updated_at: z.ZodISODateTime;
|
|
20437
20449
|
}, z.core.$strip>;
|
|
@@ -27573,8 +27585,10 @@ export declare const zUpdateGenesisResponse: z.ZodObject<{
|
|
|
27573
27585
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27574
27586
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27575
27587
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27588
|
+
salary_weekly_minutes: z.ZodInt;
|
|
27576
27589
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27577
27590
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27591
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27578
27592
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27579
27593
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27580
27594
|
currency: z.ZodString;
|
|
@@ -27633,8 +27647,10 @@ export declare const zListEmploymentHistoryResponse: z.ZodObject<{
|
|
|
27633
27647
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27634
27648
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27635
27649
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27650
|
+
salary_weekly_minutes: z.ZodInt;
|
|
27636
27651
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27637
27652
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27653
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27638
27654
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27639
27655
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27640
27656
|
currency: z.ZodString;
|
|
@@ -27672,8 +27688,10 @@ export declare const zListEmploymentHistoryResponse: z.ZodObject<{
|
|
|
27672
27688
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27673
27689
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27674
27690
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27691
|
+
salary_weekly_minutes: z.ZodInt;
|
|
27675
27692
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27676
27693
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27694
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27677
27695
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27678
27696
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27679
27697
|
currency: z.ZodString;
|
|
@@ -27734,8 +27752,10 @@ export declare const zListEmploymentsHistoryResponse: z.ZodObject<{
|
|
|
27734
27752
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27735
27753
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27736
27754
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27755
|
+
salary_weekly_minutes: z.ZodInt;
|
|
27737
27756
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27738
27757
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27758
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27739
27759
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27740
27760
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27741
27761
|
currency: z.ZodString;
|
|
@@ -27773,8 +27793,10 @@ export declare const zListEmploymentsHistoryResponse: z.ZodObject<{
|
|
|
27773
27793
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27774
27794
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27775
27795
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27796
|
+
salary_weekly_minutes: z.ZodInt;
|
|
27776
27797
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27777
27798
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27799
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27778
27800
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27779
27801
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27780
27802
|
currency: z.ZodString;
|
|
@@ -27801,6 +27823,8 @@ export declare const zCreateEmploymentScheduledChangeBody: z.ZodObject<{
|
|
|
27801
27823
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27802
27824
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27803
27825
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27826
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27827
|
+
salary_weekly_minutes: z.ZodOptional<z.ZodInt>;
|
|
27804
27828
|
companies_department_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27805
27829
|
}, z.core.$strip>;
|
|
27806
27830
|
export declare const zCreateEmploymentScheduledChangeHeaders: z.ZodObject<{
|
|
@@ -27837,8 +27861,10 @@ export declare const zCreateEmploymentScheduledChangeResponse: z.ZodObject<{
|
|
|
27837
27861
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27838
27862
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27839
27863
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27864
|
+
salary_weekly_minutes: z.ZodInt;
|
|
27840
27865
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27841
27866
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27867
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27842
27868
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27843
27869
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27844
27870
|
currency: z.ZodString;
|
|
@@ -27873,6 +27899,8 @@ export declare const zUpdateEmploymentScheduledChangeBody: z.ZodObject<{
|
|
|
27873
27899
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27874
27900
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27875
27901
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27902
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27903
|
+
salary_weekly_minutes: z.ZodOptional<z.ZodInt>;
|
|
27876
27904
|
companies_department_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27877
27905
|
}, z.core.$strip>;
|
|
27878
27906
|
export declare const zUpdateEmploymentScheduledChangeHeaders: z.ZodObject<{
|
|
@@ -27910,8 +27938,10 @@ export declare const zUpdateEmploymentScheduledChangeResponse: z.ZodObject<{
|
|
|
27910
27938
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27911
27939
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27912
27940
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27941
|
+
salary_weekly_minutes: z.ZodInt;
|
|
27913
27942
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27914
27943
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27944
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27915
27945
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27916
27946
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27917
27947
|
currency: z.ZodString;
|
|
@@ -27954,8 +27984,10 @@ export declare const zDeleteScheduledTerminationResponse: z.ZodObject<{
|
|
|
27954
27984
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27955
27985
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27956
27986
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
27987
|
+
salary_weekly_minutes: z.ZodInt;
|
|
27957
27988
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27958
27989
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27990
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27959
27991
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27960
27992
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27961
27993
|
currency: z.ZodString;
|
|
@@ -28001,8 +28033,10 @@ export declare const zCreateEmploymentScheduledTerminationResponse: z.ZodObject<
|
|
|
28001
28033
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28002
28034
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28003
28035
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28036
|
+
salary_weekly_minutes: z.ZodInt;
|
|
28004
28037
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28005
28038
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28039
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28006
28040
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28007
28041
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28008
28042
|
currency: z.ZodString;
|
|
@@ -28065,8 +28099,10 @@ export declare const zListEmploymentsResponse: z.ZodObject<{
|
|
|
28065
28099
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28066
28100
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28067
28101
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28102
|
+
salary_weekly_minutes: z.ZodInt;
|
|
28068
28103
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28069
28104
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28105
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28070
28106
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28071
28107
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28072
28108
|
currency: z.ZodString;
|
|
@@ -28101,6 +28137,8 @@ export declare const zCreateEmploymentBody: z.ZodObject<{
|
|
|
28101
28137
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28102
28138
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28103
28139
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28140
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28141
|
+
salary_weekly_minutes: z.ZodOptional<z.ZodInt>;
|
|
28104
28142
|
}, z.core.$strip>;
|
|
28105
28143
|
/**
|
|
28106
28144
|
* Created
|
|
@@ -28130,8 +28168,10 @@ export declare const zCreateEmploymentResponse: z.ZodObject<{
|
|
|
28130
28168
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28131
28169
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28132
28170
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28171
|
+
salary_weekly_minutes: z.ZodInt;
|
|
28133
28172
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28134
28173
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28174
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28135
28175
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28136
28176
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28137
28177
|
currency: z.ZodString;
|
|
@@ -28174,8 +28214,10 @@ export declare const zDeleteEmploymentResponse: z.ZodObject<{
|
|
|
28174
28214
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28175
28215
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28176
28216
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28217
|
+
salary_weekly_minutes: z.ZodInt;
|
|
28177
28218
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28178
28219
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28220
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28179
28221
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28180
28222
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28181
28223
|
currency: z.ZodString;
|
|
@@ -28218,8 +28260,10 @@ export declare const zGetEmploymentResponse: z.ZodObject<{
|
|
|
28218
28260
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28219
28261
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28220
28262
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28263
|
+
salary_weekly_minutes: z.ZodInt;
|
|
28221
28264
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28222
28265
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28266
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28223
28267
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28224
28268
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28225
28269
|
currency: z.ZodString;
|
|
@@ -28272,8 +28316,10 @@ export declare const zUpdateEmploymentResponse: z.ZodObject<{
|
|
|
28272
28316
|
pto_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28273
28317
|
holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28274
28318
|
training_annual_minutes: z.ZodNullable<z.ZodInt>;
|
|
28319
|
+
salary_weekly_minutes: z.ZodInt;
|
|
28275
28320
|
hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28276
28321
|
training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28322
|
+
salary_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28277
28323
|
employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28278
28324
|
employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28279
28325
|
currency: z.ZodString;
|
package/dist/gen/zod.gen.js
CHANGED
|
@@ -1235,8 +1235,10 @@ export const zPeopleEmploymentResponseObject = z.object({
|
|
|
1235
1235
|
pto_annual_minutes: z.int().nullable(),
|
|
1236
1236
|
holiday_annual_minutes: z.int().nullable(),
|
|
1237
1237
|
training_annual_minutes: z.int().nullable(),
|
|
1238
|
+
salary_weekly_minutes: z.int(),
|
|
1238
1239
|
hourly_rate_cents: z.string().nullish(),
|
|
1239
1240
|
training_annual_amount_cents: z.string().nullish(),
|
|
1241
|
+
salary_annual_amount_cents: z.string().nullish(),
|
|
1240
1242
|
employer_combined_health_amount_cents: z.string().nullish(),
|
|
1241
1243
|
employer_combined_savings_cents: z.string().nullish(),
|
|
1242
1244
|
currency: z.string(),
|
|
@@ -1266,7 +1268,9 @@ export const zPeopleEmploymentCreateParameters = z.object({
|
|
|
1266
1268
|
training_annual_minutes: z.int().nullish(),
|
|
1267
1269
|
training_annual_amount_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
1268
1270
|
employer_combined_health_amount_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
1269
|
-
employer_combined_savings_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish()
|
|
1271
|
+
employer_combined_savings_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
1272
|
+
salary_annual_amount_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
1273
|
+
salary_weekly_minutes: z.int().gte(1).lte(10080).optional()
|
|
1270
1274
|
});
|
|
1271
1275
|
/**
|
|
1272
1276
|
* Request body for creating one employment boundary. effective_date is required and is interpreted at midnight in the credential company's time zone. Today and past dates must fall inside the family's latest version, before its termination; future dates retain scheduling behavior. Send at least one value to change; omitted values carry forward from the version immediately before the new boundary.
|
|
@@ -1284,6 +1288,8 @@ export const zPeopleEmploymentScheduledChangeCreateParameters = z.object({
|
|
|
1284
1288
|
training_annual_amount_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
1285
1289
|
employer_combined_health_amount_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
1286
1290
|
employer_combined_savings_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
1291
|
+
salary_annual_amount_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
1292
|
+
salary_weekly_minutes: z.int().gte(1).lte(10080).optional(),
|
|
1287
1293
|
companies_department_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish()
|
|
1288
1294
|
});
|
|
1289
1295
|
/**
|
|
@@ -1301,6 +1307,8 @@ export const zPeopleEmploymentScheduledChangeUpdateParameters = z.object({
|
|
|
1301
1307
|
training_annual_amount_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
1302
1308
|
employer_combined_health_amount_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
1303
1309
|
employer_combined_savings_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
1310
|
+
salary_annual_amount_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
1311
|
+
salary_weekly_minutes: z.int().gte(1).lte(10080).optional(),
|
|
1304
1312
|
companies_department_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish()
|
|
1305
1313
|
});
|
|
1306
1314
|
/**
|
|
@@ -1353,8 +1361,10 @@ export const zPeopleEmploymentHistoryCorrectionObject = z.object({
|
|
|
1353
1361
|
pto_annual_minutes: z.int().nullable(),
|
|
1354
1362
|
holiday_annual_minutes: z.int().nullable(),
|
|
1355
1363
|
training_annual_minutes: z.int().nullable(),
|
|
1364
|
+
salary_weekly_minutes: z.int(),
|
|
1356
1365
|
hourly_rate_cents: z.string().nullish(),
|
|
1357
1366
|
training_annual_amount_cents: z.string().nullish(),
|
|
1367
|
+
salary_annual_amount_cents: z.string().nullish(),
|
|
1358
1368
|
employer_combined_health_amount_cents: z.string().nullish(),
|
|
1359
1369
|
employer_combined_savings_cents: z.string().nullish(),
|
|
1360
1370
|
currency: z.string(),
|
|
@@ -1382,8 +1392,10 @@ export const zPeopleEmploymentHistoryVersionObject = z.object({
|
|
|
1382
1392
|
pto_annual_minutes: z.int().nullable(),
|
|
1383
1393
|
holiday_annual_minutes: z.int().nullable(),
|
|
1384
1394
|
training_annual_minutes: z.int().nullable(),
|
|
1395
|
+
salary_weekly_minutes: z.int(),
|
|
1385
1396
|
hourly_rate_cents: z.string().nullish(),
|
|
1386
1397
|
training_annual_amount_cents: z.string().nullish(),
|
|
1398
|
+
salary_annual_amount_cents: z.string().nullish(),
|
|
1387
1399
|
employer_combined_health_amount_cents: z.string().nullish(),
|
|
1388
1400
|
employer_combined_savings_cents: z.string().nullish(),
|
|
1389
1401
|
currency: z.string(),
|
|
@@ -5886,16 +5898,14 @@ export const zPositionParameters = z.object({
|
|
|
5886
5898
|
export const zProductionJobScopePriceParameters = z.object({
|
|
5887
5899
|
scope_kind: z.string(),
|
|
5888
5900
|
unit_price_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
5889
|
-
contracted_count: z.int().nullish(),
|
|
5890
5901
|
unit_of_measure: z.string().optional()
|
|
5891
5902
|
});
|
|
5892
5903
|
/**
|
|
5893
|
-
* Parameters for updating a per-unit scope price on a job. Every field is optional; omit a field to preserve its current value. Send null for `unit_price_cents` to clear the known price
|
|
5904
|
+
* Parameters for updating a per-unit scope price on a job. Every field is optional; omit a field to preserve its current value. Send null for `unit_price_cents` to clear the known price. A null value for any other field, or a wrong-typed value, answers 422. The resulting price must retain a scope kind; supplied nonnull prices must be nonnegative decimal strings.
|
|
5894
5905
|
*/
|
|
5895
5906
|
export const zProductionJobScopePriceUpdateParameters = z.object({
|
|
5896
5907
|
scope_kind: z.string().optional(),
|
|
5897
5908
|
unit_price_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
5898
|
-
contracted_count: z.int().nullish(),
|
|
5899
5909
|
unit_of_measure: z.string().optional()
|
|
5900
5910
|
});
|
|
5901
5911
|
/**
|
|
@@ -5907,7 +5917,6 @@ export const zProductionJobScopePriceResponseObject = z.object({
|
|
|
5907
5917
|
scope_kind: z.string(),
|
|
5908
5918
|
unit_of_measure: z.string(),
|
|
5909
5919
|
unit_price_cents: z.string().nullish(),
|
|
5910
|
-
contracted_count: z.int().nullish(),
|
|
5911
5920
|
created_at: z.iso.datetime(),
|
|
5912
5921
|
updated_at: z.iso.datetime()
|
|
5913
5922
|
});
|
|
@@ -8723,19 +8732,23 @@ export const zAssetsTransferParameters = z.object({
|
|
|
8723
8732
|
})).min(1)
|
|
8724
8733
|
});
|
|
8725
8734
|
/**
|
|
8726
|
-
* Add stock of a bulk product
|
|
8735
|
+
* Add stock of a bulk product to a holder — a site, a user's custody, or a container — recording a receive transaction. Name the holder with exactly one of assets_site_id, user_id, or container_item_id; several answer 422 at each named key, and none answers 422. Bulk products only.
|
|
8727
8736
|
*/
|
|
8728
8737
|
export const zAssetsRestockParameters = z.object({
|
|
8729
|
-
assets_site_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/),
|
|
8738
|
+
assets_site_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
8739
|
+
user_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
8740
|
+
container_item_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
8730
8741
|
assets_sub_location_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish(),
|
|
8731
8742
|
quantity: z.int().gte(1),
|
|
8732
8743
|
performed_by_user_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)
|
|
8733
8744
|
});
|
|
8734
8745
|
/**
|
|
8735
|
-
* Set the
|
|
8746
|
+
* Set the count of a bulk product held by a holder — a site, a user's custody, or a container — to a specific number, recording the difference as an adjustment transaction. Name the holder with exactly one of assets_site_id, user_id, or container_item_id; several answer 422 at each named key, and none answers 422. The holder must already hold the product. Bulk products only.
|
|
8736
8747
|
*/
|
|
8737
8748
|
export const zAssetsAdjustmentParameters = z.object({
|
|
8738
|
-
assets_site_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/),
|
|
8749
|
+
assets_site_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
8750
|
+
user_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
8751
|
+
container_item_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
8739
8752
|
assets_sub_location_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish(),
|
|
8740
8753
|
new_quantity: z.int().gte(0),
|
|
8741
8754
|
performed_by_user_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)
|