@dsptch-work/api-client 0.49.0 → 0.51.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 +37 -0
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/sdk.gen.d.ts +104 -8
- package/dist/gen/sdk.gen.js +169 -7
- package/dist/gen/types.gen.d.ts +432 -10
- package/dist/gen/zod.gen.d.ts +398 -6
- package/dist/gen/zod.gen.js +136 -6
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -3955,6 +3955,9 @@ export type PayPeriodConfigHistoryCorrectionObject = {
|
|
|
3955
3955
|
start_day_of_week: number;
|
|
3956
3956
|
tz_name: string;
|
|
3957
3957
|
currency: string;
|
|
3958
|
+
/**
|
|
3959
|
+
* New schedules return pending while pay periods are generated. Synced means pay periods were generated for the requested versions and time card synchronization was successfully requested; asynchronous time card jobs may still be queued. Poll until synced or failed. Failed means generation or the synchronization request failed.
|
|
3960
|
+
*/
|
|
3958
3961
|
status: 'synced' | 'pending' | 'failed';
|
|
3959
3962
|
payroll_mode: 'none' | 'base' | 'aggregate' | null;
|
|
3960
3963
|
time_mode: 'none' | 'base' | 'aggregate';
|
|
@@ -3981,6 +3984,9 @@ export type PayPeriodConfigHistoryVersionObject = {
|
|
|
3981
3984
|
start_day_of_week: number;
|
|
3982
3985
|
tz_name: string;
|
|
3983
3986
|
currency: string;
|
|
3987
|
+
/**
|
|
3988
|
+
* New schedules return pending while pay periods are generated. Synced means pay periods were generated for the requested versions and time card synchronization was successfully requested; asynchronous time card jobs may still be queued. Poll until synced or failed. Failed means generation or the synchronization request failed.
|
|
3989
|
+
*/
|
|
3984
3990
|
status: 'synced' | 'pending' | 'failed';
|
|
3985
3991
|
payroll_mode: 'none' | 'base' | 'aggregate' | null;
|
|
3986
3992
|
time_mode: 'none' | 'base' | 'aggregate';
|
|
@@ -8872,6 +8878,15 @@ export type ProjectResponseObject = {
|
|
|
8872
8878
|
*/
|
|
8873
8879
|
name: string;
|
|
8874
8880
|
}>;
|
|
8881
|
+
/**
|
|
8882
|
+
* The project's structured address; null when unset.
|
|
8883
|
+
*/
|
|
8884
|
+
project_address: {
|
|
8885
|
+
/**
|
|
8886
|
+
* Human-readable one-line address label.
|
|
8887
|
+
*/
|
|
8888
|
+
label: string;
|
|
8889
|
+
} | null;
|
|
8875
8890
|
/**
|
|
8876
8891
|
* Federal PWA tracking mode: `all` (prevailing wage + apprenticeship), `pw_only` (prevailing wage), `ap_only` (apprenticeship), or `none`.
|
|
8877
8892
|
*/
|
|
@@ -9040,6 +9055,59 @@ export type ProjectParameters = {
|
|
|
9040
9055
|
* 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
9056
|
*/
|
|
9042
9057
|
manager_user_ids?: Array<string>;
|
|
9058
|
+
/**
|
|
9059
|
+
* 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.
|
|
9060
|
+
*/
|
|
9061
|
+
project_address_attributes?: {
|
|
9062
|
+
/**
|
|
9063
|
+
* ID of an existing address to update; null to create a new address.
|
|
9064
|
+
*/
|
|
9065
|
+
id?: string | null;
|
|
9066
|
+
/**
|
|
9067
|
+
* Secondary address designator such as an apartment or suite number; null when unset.
|
|
9068
|
+
*/
|
|
9069
|
+
sub_address_number?: string | null;
|
|
9070
|
+
/**
|
|
9071
|
+
* Street number of the address; null when unset.
|
|
9072
|
+
*/
|
|
9073
|
+
address_number?: string | null;
|
|
9074
|
+
/**
|
|
9075
|
+
* Neighborhood of the address; null when unset.
|
|
9076
|
+
*/
|
|
9077
|
+
neighborhood?: string | null;
|
|
9078
|
+
/**
|
|
9079
|
+
* City or municipality of the address; null when unset.
|
|
9080
|
+
*/
|
|
9081
|
+
municipality?: string | null;
|
|
9082
|
+
/**
|
|
9083
|
+
* County or other sub-region of the address; null when unset.
|
|
9084
|
+
*/
|
|
9085
|
+
sub_region?: string | null;
|
|
9086
|
+
/**
|
|
9087
|
+
* State or region of the address; null when unset.
|
|
9088
|
+
*/
|
|
9089
|
+
region?: string | null;
|
|
9090
|
+
/**
|
|
9091
|
+
* Postal or ZIP code of the address; null when unset.
|
|
9092
|
+
*/
|
|
9093
|
+
postal_code?: string | null;
|
|
9094
|
+
/**
|
|
9095
|
+
* Country of the address; null when unset.
|
|
9096
|
+
*/
|
|
9097
|
+
country?: string | null;
|
|
9098
|
+
/**
|
|
9099
|
+
* Time zone of the address (e.g. US/Central); null when unset. A blank or unlisted name answers 422.
|
|
9100
|
+
*/
|
|
9101
|
+
timezone?: string | null;
|
|
9102
|
+
/**
|
|
9103
|
+
* Whether the address has been verified. A boolean; null or any other type returns 422.
|
|
9104
|
+
*/
|
|
9105
|
+
verified?: boolean;
|
|
9106
|
+
/**
|
|
9107
|
+
* Human-readable one-line address label; null derives it from the other fields.
|
|
9108
|
+
*/
|
|
9109
|
+
label?: string | null;
|
|
9110
|
+
} | null;
|
|
9043
9111
|
/**
|
|
9044
9112
|
* 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
9113
|
*/
|
|
@@ -9049,9 +9117,9 @@ export type ProjectParameters = {
|
|
|
9049
9117
|
*/
|
|
9050
9118
|
end_date?: string | null;
|
|
9051
9119
|
/**
|
|
9052
|
-
* IANA time zone name,
|
|
9120
|
+
* IANA time zone name, never null. A blank or unlisted name answers 422.
|
|
9053
9121
|
*/
|
|
9054
|
-
tz_name?: string
|
|
9122
|
+
tz_name?: string;
|
|
9055
9123
|
/**
|
|
9056
9124
|
* 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
9125
|
*/
|
|
@@ -9149,6 +9217,59 @@ export type ProjectUpdateParameters = {
|
|
|
9149
9217
|
* 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
9218
|
*/
|
|
9151
9219
|
manager_user_ids?: Array<string>;
|
|
9220
|
+
/**
|
|
9221
|
+
* 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.
|
|
9222
|
+
*/
|
|
9223
|
+
project_address_attributes?: {
|
|
9224
|
+
/**
|
|
9225
|
+
* ID of an existing address to update; null to create a new address.
|
|
9226
|
+
*/
|
|
9227
|
+
id?: string | null;
|
|
9228
|
+
/**
|
|
9229
|
+
* Secondary address designator such as an apartment or suite number; null when unset.
|
|
9230
|
+
*/
|
|
9231
|
+
sub_address_number?: string | null;
|
|
9232
|
+
/**
|
|
9233
|
+
* Street number of the address; null when unset.
|
|
9234
|
+
*/
|
|
9235
|
+
address_number?: string | null;
|
|
9236
|
+
/**
|
|
9237
|
+
* Neighborhood of the address; null when unset.
|
|
9238
|
+
*/
|
|
9239
|
+
neighborhood?: string | null;
|
|
9240
|
+
/**
|
|
9241
|
+
* City or municipality of the address; null when unset.
|
|
9242
|
+
*/
|
|
9243
|
+
municipality?: string | null;
|
|
9244
|
+
/**
|
|
9245
|
+
* County or other sub-region of the address; null when unset.
|
|
9246
|
+
*/
|
|
9247
|
+
sub_region?: string | null;
|
|
9248
|
+
/**
|
|
9249
|
+
* State or region of the address; null when unset.
|
|
9250
|
+
*/
|
|
9251
|
+
region?: string | null;
|
|
9252
|
+
/**
|
|
9253
|
+
* Postal or ZIP code of the address; null when unset.
|
|
9254
|
+
*/
|
|
9255
|
+
postal_code?: string | null;
|
|
9256
|
+
/**
|
|
9257
|
+
* Country of the address; null when unset.
|
|
9258
|
+
*/
|
|
9259
|
+
country?: string | null;
|
|
9260
|
+
/**
|
|
9261
|
+
* Time zone of the address (e.g. US/Central); null when unset. A blank or unlisted name answers 422.
|
|
9262
|
+
*/
|
|
9263
|
+
timezone?: string | null;
|
|
9264
|
+
/**
|
|
9265
|
+
* Whether the address has been verified. A boolean; null or any other type returns 422.
|
|
9266
|
+
*/
|
|
9267
|
+
verified?: boolean;
|
|
9268
|
+
/**
|
|
9269
|
+
* Human-readable one-line address label; null derives it from the other fields.
|
|
9270
|
+
*/
|
|
9271
|
+
label?: string | null;
|
|
9272
|
+
} | null;
|
|
9152
9273
|
/**
|
|
9153
9274
|
* 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
9275
|
*/
|
|
@@ -9158,9 +9279,9 @@ export type ProjectUpdateParameters = {
|
|
|
9158
9279
|
*/
|
|
9159
9280
|
end_date?: string | null;
|
|
9160
9281
|
/**
|
|
9161
|
-
* IANA time zone name,
|
|
9282
|
+
* IANA time zone name, never null. A blank or unlisted name answers 422.
|
|
9162
9283
|
*/
|
|
9163
|
-
tz_name?: string
|
|
9284
|
+
tz_name?: string;
|
|
9164
9285
|
/**
|
|
9165
9286
|
* 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
9287
|
*/
|
|
@@ -15654,6 +15775,10 @@ export type AssetsSiteResponseObject = {
|
|
|
15654
15775
|
* 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
15776
|
*/
|
|
15656
15777
|
site_type: string | null;
|
|
15778
|
+
/**
|
|
15779
|
+
* 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.
|
|
15780
|
+
*/
|
|
15781
|
+
responsible_user_ids: Array<string>;
|
|
15657
15782
|
/**
|
|
15658
15783
|
* When the record was created (ISO 8601).
|
|
15659
15784
|
*/
|
|
@@ -15679,6 +15804,10 @@ export type AssetsSiteParameters = {
|
|
|
15679
15804
|
* Display name for the location. Required when no backing site_id is given; otherwise falls back to the backing Atlas site's name.
|
|
15680
15805
|
*/
|
|
15681
15806
|
name?: string | null;
|
|
15807
|
+
/**
|
|
15808
|
+
* 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.
|
|
15809
|
+
*/
|
|
15810
|
+
responsible_user_ids?: Array<string>;
|
|
15682
15811
|
};
|
|
15683
15812
|
/**
|
|
15684
15813
|
* 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 +15825,10 @@ export type AssetsSiteUpdateParameters = {
|
|
|
15696
15825
|
* Display name for the location. `null` clears the direct name when a backing `site_id` supplies the display name.
|
|
15697
15826
|
*/
|
|
15698
15827
|
name?: string | null;
|
|
15828
|
+
/**
|
|
15829
|
+
* 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.
|
|
15830
|
+
*/
|
|
15831
|
+
responsible_user_ids?: Array<string>;
|
|
15699
15832
|
};
|
|
15700
15833
|
/**
|
|
15701
15834
|
* 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.
|
|
@@ -16918,7 +17051,7 @@ export type AssetsSubLocationUpdateParameters = {
|
|
|
16918
17051
|
code?: string;
|
|
16919
17052
|
};
|
|
16920
17053
|
/**
|
|
16921
|
-
* A
|
|
17054
|
+
* A movement of item stock between two holders, each a site, a user, or a container. Each line names one item. A completed transfer has applied paired outbound and inbound transactions and updated on-hand, custody, and containment counts. A pending transfer has not moved stock; it waits to be accepted, declined, or cancelled. One-sided moves (placing or removing an item with only one endpoint) record transactions but no transfer, and so are not represented by this resource.
|
|
16922
17055
|
*/
|
|
16923
17056
|
export type AssetsTransferResponseObject = {
|
|
16924
17057
|
/**
|
|
@@ -16930,9 +17063,9 @@ export type AssetsTransferResponseObject = {
|
|
|
16930
17063
|
*/
|
|
16931
17064
|
company_id: string;
|
|
16932
17065
|
/**
|
|
16933
|
-
* Lifecycle state of the transfer
|
|
17066
|
+
* Lifecycle state of the transfer. The published values are the model's status keys, including declined.
|
|
16934
17067
|
*/
|
|
16935
|
-
status: 'pending' | 'in_transit' | 'completed' | 'cancelled';
|
|
17068
|
+
status: 'pending' | 'in_transit' | 'completed' | 'declined' | 'cancelled';
|
|
16936
17069
|
/**
|
|
16937
17070
|
* ID of the source site; null when the source is a user or container.
|
|
16938
17071
|
*/
|
|
@@ -16966,9 +17099,17 @@ export type AssetsTransferResponseObject = {
|
|
|
16966
17099
|
*/
|
|
16967
17100
|
initiated_by_user_id: string;
|
|
16968
17101
|
/**
|
|
16969
|
-
*
|
|
17102
|
+
* ID of the user who completed, declined, or cancelled the transfer; null while it is unresolved.
|
|
17103
|
+
*/
|
|
17104
|
+
resolved_by_user_id: string | null;
|
|
17105
|
+
/**
|
|
17106
|
+
* When the transfer was applied (ISO 8601); null unless status is completed. Same instant as resolved_at when completed.
|
|
16970
17107
|
*/
|
|
16971
17108
|
completed_at: string | null;
|
|
17109
|
+
/**
|
|
17110
|
+
* When the transfer was completed, declined, or cancelled (ISO 8601); null while it is unresolved.
|
|
17111
|
+
*/
|
|
17112
|
+
resolved_at: string | null;
|
|
16972
17113
|
/**
|
|
16973
17114
|
* The item movements in this transfer, one entry per item.
|
|
16974
17115
|
*/
|
|
@@ -17000,7 +17141,7 @@ export type AssetsTransferResponseObject = {
|
|
|
17000
17141
|
updated_at: string;
|
|
17001
17142
|
};
|
|
17002
17143
|
/**
|
|
17003
|
-
* Move item stock. Each endpoint is a site, a user, or a container — give at most one per side; more than one on a side, or no endpoint at all, answers 422. With both a source and a destination this is a two-sided transfer (returns the created transfer, 201). With a single open end it is a one-sided move — placing an unplaced item (destination only) or removing it from its holder (source only) — which records transactions but no transfer and returns 204.
|
|
17144
|
+
* Move item stock. Each endpoint is a site, a user, or a container — give at most one per side; more than one on a side, or no endpoint at all, answers 422. With both a source and a destination this is a two-sided transfer (returns the created transfer, 201). Omit status or send completed to apply it immediately; send pending to persist without moving stock. A pending create requires both endpoints (one endpoint answers 422). With a single open end and completed (or omitted) status it is a one-sided move — placing an unplaced item (destination only) or removing it from its holder (source only) — which records transactions but no transfer and returns 204. A completed create applies immediately, so the source must hold enough of each item.
|
|
17004
17145
|
*/
|
|
17005
17146
|
export type AssetsTransferParameters = {
|
|
17006
17147
|
/**
|
|
@@ -17039,6 +17180,10 @@ export type AssetsTransferParameters = {
|
|
|
17039
17180
|
* ID of the user this move is performed on behalf of, recorded as its initiator. Omission answers 400; supplied null, a blank ID, or a wrong type answers 422. A user outside the company that owns the API key answers 422.
|
|
17040
17181
|
*/
|
|
17041
17182
|
performed_by_user_id: string;
|
|
17183
|
+
/**
|
|
17184
|
+
* Optional. pending persists the transfer without moving stock. completed (the default when omitted) applies the move immediately. A pending create requires both a source and a destination; one endpoint answers 422. Any other value answers 422.
|
|
17185
|
+
*/
|
|
17186
|
+
status?: 'pending' | 'completed';
|
|
17042
17187
|
/**
|
|
17043
17188
|
* The items and quantities to move, as a list of row objects; at least one is required. Omission answers 400, and null, an empty list, or a value that is not a list answers 422. A row missing a field answers 400 naming it, and an unknown or wrongly typed row field answers 422 at that row.
|
|
17044
17189
|
*/
|
|
@@ -17053,6 +17198,83 @@ export type AssetsTransferParameters = {
|
|
|
17053
17198
|
quantity: number;
|
|
17054
17199
|
}>;
|
|
17055
17200
|
};
|
|
17201
|
+
/**
|
|
17202
|
+
* Answer a transfer — decline, cancel, or reopen it. The named filer is recorded on the step. An optional note is the step comment.
|
|
17203
|
+
*/
|
|
17204
|
+
export type AssetsTransferCommandParameters = {
|
|
17205
|
+
/**
|
|
17206
|
+
* ID of the user this answer is performed on behalf of, recorded on the step. Omission answers 400; supplied null, a blank ID, or a wrong type answers 422. A user outside the company that owns the API key answers 422.
|
|
17207
|
+
*/
|
|
17208
|
+
performed_by_user_id: string;
|
|
17209
|
+
/**
|
|
17210
|
+
* Optional comment recorded with the step. Omit to leave the step without a comment.
|
|
17211
|
+
*/
|
|
17212
|
+
note?: string;
|
|
17213
|
+
};
|
|
17214
|
+
/**
|
|
17215
|
+
* Accept a pending transfer and move its stock. The named filer is recorded on the step. An optional note is the step comment. Optional placements put individual lines away at the destination; a line without a placement lands in the destination holder's own bucket.
|
|
17216
|
+
*/
|
|
17217
|
+
export type AssetsTransferAcceptanceParameters = {
|
|
17218
|
+
/**
|
|
17219
|
+
* ID of the user this acceptance is performed on behalf of, recorded on the step. Omission answers 400; supplied null, a blank ID, or a wrong type answers 422. A user outside the company that owns the API key answers 422.
|
|
17220
|
+
*/
|
|
17221
|
+
performed_by_user_id: string;
|
|
17222
|
+
/**
|
|
17223
|
+
* Optional comment recorded with the step. Omit to leave the step without a comment.
|
|
17224
|
+
*/
|
|
17225
|
+
note?: string;
|
|
17226
|
+
/**
|
|
17227
|
+
* Optional list of per-line put-aways at the destination. Omit or send an empty list to land every line in the destination holder's own bucket. A placement that names a line not on the transfer answers 422.
|
|
17228
|
+
*/
|
|
17229
|
+
placements?: Array<{
|
|
17230
|
+
/**
|
|
17231
|
+
* ID of the transfer line to put away. A blank ID or a wrong type answers 422 at its row.
|
|
17232
|
+
*/
|
|
17233
|
+
line_id: string;
|
|
17234
|
+
/**
|
|
17235
|
+
* Optional. ID of a container at the destination to put this line into. Omit or send null for the destination holder's own bucket. A blank ID or a wrong type answers 422 at its row.
|
|
17236
|
+
*/
|
|
17237
|
+
container_id?: string | null;
|
|
17238
|
+
/**
|
|
17239
|
+
* Optional. ID of a storage location at the destination (or inside the named container) to put this line into. Omit or send null for the holder's or container's unbinned bucket. A blank ID or a wrong type answers 422 at its row.
|
|
17240
|
+
*/
|
|
17241
|
+
sub_location_id?: string | null;
|
|
17242
|
+
}>;
|
|
17243
|
+
};
|
|
17244
|
+
/**
|
|
17245
|
+
* Add a line to a pending transfer. The item is identified the same way create's line_items are, under this transfer's source holder. Stock stays with the sender until the transfer is accepted. A resolved transfer answers 422.
|
|
17246
|
+
*/
|
|
17247
|
+
export type AssetsTransferLineParameters = {
|
|
17248
|
+
/**
|
|
17249
|
+
* ID of the asset item to add. A blank ID or a wrong type answers 422, and an item outside the company that owns the API key answers 404. The source holder must currently hold the item, or the matching bucket answers 404.
|
|
17250
|
+
*/
|
|
17251
|
+
assets_item_id: string;
|
|
17252
|
+
/**
|
|
17253
|
+
* Number of units of the item to add, as an integer of 1 or more. Any other value, a fraction or a numeric string included, answers 422.
|
|
17254
|
+
*/
|
|
17255
|
+
quantity: number;
|
|
17256
|
+
/**
|
|
17257
|
+
* Optional. The storage location within the source site or container this line's stock draws from. Omit or send null for the source's unbinned stock. A blank ID or a wrong type answers 422, a storage location outside the company that owns the API key answers 404, and one named against a user source answers 422.
|
|
17258
|
+
*/
|
|
17259
|
+
from_assets_sub_location_id?: string | null;
|
|
17260
|
+
/**
|
|
17261
|
+
* Optional. The storage location within the destination site or container this line will land in when accepted. Omit to leave the line in the destination holder's own bucket. Send null for the same. A blank ID or a wrong type answers 422, and a storage location outside the company that owns the API key answers 404.
|
|
17262
|
+
*/
|
|
17263
|
+
to_assets_sub_location_id?: string | null;
|
|
17264
|
+
};
|
|
17265
|
+
/**
|
|
17266
|
+
* Change a pending transfer line's quantity and/or destination storage location. A resolved transfer answers 422. A line that is not on this transfer answers 404.
|
|
17267
|
+
*/
|
|
17268
|
+
export type AssetsTransferLineUpdateParameters = {
|
|
17269
|
+
/**
|
|
17270
|
+
* Optional. The new quantity, as an integer of 1 or more. Any other value, a fraction or a numeric string included, answers 422.
|
|
17271
|
+
*/
|
|
17272
|
+
quantity?: number;
|
|
17273
|
+
/**
|
|
17274
|
+
* Optional. The storage location within the destination site or container this line will land in when accepted. Send null to land it in the destination holder's own bucket. A blank ID or a wrong type answers 422, and a storage location outside the company that owns the API key answers 404.
|
|
17275
|
+
*/
|
|
17276
|
+
to_assets_sub_location_id?: string | null;
|
|
17277
|
+
};
|
|
17056
17278
|
/**
|
|
17057
17279
|
* 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.
|
|
17058
17280
|
*/
|
|
@@ -21668,6 +21890,206 @@ export type GetTransferResponses = {
|
|
|
21668
21890
|
200: AssetsTransferResponseObject;
|
|
21669
21891
|
};
|
|
21670
21892
|
export type GetTransferResponse = GetTransferResponses[keyof GetTransferResponses];
|
|
21893
|
+
export type AcceptTransferData = {
|
|
21894
|
+
body: AssetsTransferAcceptanceParameters;
|
|
21895
|
+
path: {
|
|
21896
|
+
transfer_id: string;
|
|
21897
|
+
};
|
|
21898
|
+
query?: never;
|
|
21899
|
+
url: '/api/v1/assets/transfers/{transfer_id}/acceptance';
|
|
21900
|
+
};
|
|
21901
|
+
export type AcceptTransferErrors = {
|
|
21902
|
+
/**
|
|
21903
|
+
* Bad Request (missing performed_by_user_id)
|
|
21904
|
+
*/
|
|
21905
|
+
400: Problem;
|
|
21906
|
+
/**
|
|
21907
|
+
* Forbidden
|
|
21908
|
+
*/
|
|
21909
|
+
403: Problem;
|
|
21910
|
+
/**
|
|
21911
|
+
* Not Found
|
|
21912
|
+
*/
|
|
21913
|
+
404: Problem;
|
|
21914
|
+
/**
|
|
21915
|
+
* Unprocessable Content
|
|
21916
|
+
*/
|
|
21917
|
+
422: Problem;
|
|
21918
|
+
};
|
|
21919
|
+
export type AcceptTransferError = AcceptTransferErrors[keyof AcceptTransferErrors];
|
|
21920
|
+
export type AcceptTransferResponses = {
|
|
21921
|
+
/**
|
|
21922
|
+
* Created
|
|
21923
|
+
*/
|
|
21924
|
+
201: AssetsTransferResponseObject;
|
|
21925
|
+
};
|
|
21926
|
+
export type AcceptTransferResponse = AcceptTransferResponses[keyof AcceptTransferResponses];
|
|
21927
|
+
export type DeclineTransferData = {
|
|
21928
|
+
body: AssetsTransferCommandParameters;
|
|
21929
|
+
path: {
|
|
21930
|
+
transfer_id: string;
|
|
21931
|
+
};
|
|
21932
|
+
query?: never;
|
|
21933
|
+
url: '/api/v1/assets/transfers/{transfer_id}/decline';
|
|
21934
|
+
};
|
|
21935
|
+
export type DeclineTransferErrors = {
|
|
21936
|
+
/**
|
|
21937
|
+
* Forbidden
|
|
21938
|
+
*/
|
|
21939
|
+
403: Problem;
|
|
21940
|
+
};
|
|
21941
|
+
export type DeclineTransferError = DeclineTransferErrors[keyof DeclineTransferErrors];
|
|
21942
|
+
export type DeclineTransferResponses = {
|
|
21943
|
+
/**
|
|
21944
|
+
* Created
|
|
21945
|
+
*/
|
|
21946
|
+
201: AssetsTransferResponseObject;
|
|
21947
|
+
};
|
|
21948
|
+
export type DeclineTransferResponse = DeclineTransferResponses[keyof DeclineTransferResponses];
|
|
21949
|
+
export type CancelTransferData = {
|
|
21950
|
+
body: AssetsTransferCommandParameters;
|
|
21951
|
+
path: {
|
|
21952
|
+
transfer_id: string;
|
|
21953
|
+
};
|
|
21954
|
+
query?: never;
|
|
21955
|
+
url: '/api/v1/assets/transfers/{transfer_id}/cancellation';
|
|
21956
|
+
};
|
|
21957
|
+
export type CancelTransferErrors = {
|
|
21958
|
+
/**
|
|
21959
|
+
* Forbidden
|
|
21960
|
+
*/
|
|
21961
|
+
403: Problem;
|
|
21962
|
+
};
|
|
21963
|
+
export type CancelTransferError = CancelTransferErrors[keyof CancelTransferErrors];
|
|
21964
|
+
export type CancelTransferResponses = {
|
|
21965
|
+
/**
|
|
21966
|
+
* Created
|
|
21967
|
+
*/
|
|
21968
|
+
201: AssetsTransferResponseObject;
|
|
21969
|
+
};
|
|
21970
|
+
export type CancelTransferResponse = CancelTransferResponses[keyof CancelTransferResponses];
|
|
21971
|
+
export type ReopenTransferData = {
|
|
21972
|
+
body: AssetsTransferCommandParameters;
|
|
21973
|
+
path: {
|
|
21974
|
+
transfer_id: string;
|
|
21975
|
+
};
|
|
21976
|
+
query?: never;
|
|
21977
|
+
url: '/api/v1/assets/transfers/{transfer_id}/reopening';
|
|
21978
|
+
};
|
|
21979
|
+
export type ReopenTransferErrors = {
|
|
21980
|
+
/**
|
|
21981
|
+
* Forbidden
|
|
21982
|
+
*/
|
|
21983
|
+
403: Problem;
|
|
21984
|
+
/**
|
|
21985
|
+
* Unprocessable Content
|
|
21986
|
+
*/
|
|
21987
|
+
422: Problem;
|
|
21988
|
+
};
|
|
21989
|
+
export type ReopenTransferError = ReopenTransferErrors[keyof ReopenTransferErrors];
|
|
21990
|
+
export type ReopenTransferResponses = {
|
|
21991
|
+
/**
|
|
21992
|
+
* Created
|
|
21993
|
+
*/
|
|
21994
|
+
201: AssetsTransferResponseObject;
|
|
21995
|
+
};
|
|
21996
|
+
export type ReopenTransferResponse = ReopenTransferResponses[keyof ReopenTransferResponses];
|
|
21997
|
+
export type CreateTransferLineData = {
|
|
21998
|
+
body: AssetsTransferLineParameters;
|
|
21999
|
+
path: {
|
|
22000
|
+
transfer_id: string;
|
|
22001
|
+
};
|
|
22002
|
+
query?: never;
|
|
22003
|
+
url: '/api/v1/assets/transfers/{transfer_id}/lines';
|
|
22004
|
+
};
|
|
22005
|
+
export type CreateTransferLineErrors = {
|
|
22006
|
+
/**
|
|
22007
|
+
* Bad Request
|
|
22008
|
+
*/
|
|
22009
|
+
400: Problem;
|
|
22010
|
+
/**
|
|
22011
|
+
* Forbidden
|
|
22012
|
+
*/
|
|
22013
|
+
403: Problem;
|
|
22014
|
+
/**
|
|
22015
|
+
* Not Found
|
|
22016
|
+
*/
|
|
22017
|
+
404: Problem;
|
|
22018
|
+
/**
|
|
22019
|
+
* Unprocessable Content
|
|
22020
|
+
*/
|
|
22021
|
+
422: Problem;
|
|
22022
|
+
};
|
|
22023
|
+
export type CreateTransferLineError = CreateTransferLineErrors[keyof CreateTransferLineErrors];
|
|
22024
|
+
export type CreateTransferLineResponses = {
|
|
22025
|
+
/**
|
|
22026
|
+
* Created
|
|
22027
|
+
*/
|
|
22028
|
+
201: AssetsTransferResponseObject;
|
|
22029
|
+
};
|
|
22030
|
+
export type CreateTransferLineResponse = CreateTransferLineResponses[keyof CreateTransferLineResponses];
|
|
22031
|
+
export type DeleteTransferLineData = {
|
|
22032
|
+
body?: never;
|
|
22033
|
+
path: {
|
|
22034
|
+
transfer_id: string;
|
|
22035
|
+
line_id: string;
|
|
22036
|
+
};
|
|
22037
|
+
query?: never;
|
|
22038
|
+
url: '/api/v1/assets/transfers/{transfer_id}/lines/{line_id}';
|
|
22039
|
+
};
|
|
22040
|
+
export type DeleteTransferLineErrors = {
|
|
22041
|
+
/**
|
|
22042
|
+
* Forbidden
|
|
22043
|
+
*/
|
|
22044
|
+
403: Problem;
|
|
22045
|
+
/**
|
|
22046
|
+
* Unprocessable Content
|
|
22047
|
+
*/
|
|
22048
|
+
422: Problem;
|
|
22049
|
+
};
|
|
22050
|
+
export type DeleteTransferLineError = DeleteTransferLineErrors[keyof DeleteTransferLineErrors];
|
|
22051
|
+
export type DeleteTransferLineResponses = {
|
|
22052
|
+
/**
|
|
22053
|
+
* No Content
|
|
22054
|
+
*/
|
|
22055
|
+
204: void;
|
|
22056
|
+
};
|
|
22057
|
+
export type DeleteTransferLineResponse = DeleteTransferLineResponses[keyof DeleteTransferLineResponses];
|
|
22058
|
+
export type UpdateTransferLineData = {
|
|
22059
|
+
body: AssetsTransferLineUpdateParameters;
|
|
22060
|
+
path: {
|
|
22061
|
+
transfer_id: string;
|
|
22062
|
+
line_id: string;
|
|
22063
|
+
};
|
|
22064
|
+
query?: never;
|
|
22065
|
+
url: '/api/v1/assets/transfers/{transfer_id}/lines/{line_id}';
|
|
22066
|
+
};
|
|
22067
|
+
export type UpdateTransferLineErrors = {
|
|
22068
|
+
/**
|
|
22069
|
+
* Bad Request
|
|
22070
|
+
*/
|
|
22071
|
+
400: Problem;
|
|
22072
|
+
/**
|
|
22073
|
+
* Forbidden
|
|
22074
|
+
*/
|
|
22075
|
+
403: Problem;
|
|
22076
|
+
/**
|
|
22077
|
+
* Not Found
|
|
22078
|
+
*/
|
|
22079
|
+
404: Problem;
|
|
22080
|
+
/**
|
|
22081
|
+
* Unprocessable Content
|
|
22082
|
+
*/
|
|
22083
|
+
422: Problem;
|
|
22084
|
+
};
|
|
22085
|
+
export type UpdateTransferLineError = UpdateTransferLineErrors[keyof UpdateTransferLineErrors];
|
|
22086
|
+
export type UpdateTransferLineResponses = {
|
|
22087
|
+
/**
|
|
22088
|
+
* Success
|
|
22089
|
+
*/
|
|
22090
|
+
200: AssetsTransferResponseObject;
|
|
22091
|
+
};
|
|
22092
|
+
export type UpdateTransferLineResponse = UpdateTransferLineResponses[keyof UpdateTransferLineResponses];
|
|
21671
22093
|
export type ListVendorsData = {
|
|
21672
22094
|
body?: never;
|
|
21673
22095
|
path?: never;
|
|
@@ -34600,7 +35022,7 @@ export type CreateProjectErrors = {
|
|
|
34600
35022
|
*/
|
|
34601
35023
|
404: Problem;
|
|
34602
35024
|
/**
|
|
34603
|
-
* Unprocessable Content (
|
|
35025
|
+
* Unprocessable Content (unknown nested address key)
|
|
34604
35026
|
*/
|
|
34605
35027
|
422: Problem;
|
|
34606
35028
|
};
|