@dsptch-work/api-client 0.11.0 → 0.13.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 +71 -0
- package/dist/gen/index.d.ts +2 -2
- package/dist/gen/index.js +1 -1
- package/dist/gen/sdk.gen.d.ts +264 -1
- package/dist/gen/sdk.gen.js +433 -0
- package/dist/gen/types.gen.d.ts +1429 -109
- package/dist/gen/zod.gen.d.ts +1432 -97
- package/dist/gen/zod.gen.js +496 -7
- package/package.json +1 -1
package/dist/gen/sdk.gen.js
CHANGED
|
@@ -779,6 +779,44 @@ export class AssetsItems {
|
|
|
779
779
|
}
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
|
+
/**
|
|
783
|
+
* Unarchive an Item
|
|
784
|
+
*
|
|
785
|
+
* **Required scope:**
|
|
786
|
+
*
|
|
787
|
+
* `assets.items.archives:delete`
|
|
788
|
+
*
|
|
789
|
+
*/
|
|
790
|
+
static unarchiveItem(options) {
|
|
791
|
+
return (options.client ?? client).delete({
|
|
792
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
793
|
+
url: '/api/v1/assets/items/{item_id}/archive',
|
|
794
|
+
...options,
|
|
795
|
+
headers: {
|
|
796
|
+
'Content-Type': 'application/json',
|
|
797
|
+
...options.headers
|
|
798
|
+
}
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* Archive an Item
|
|
803
|
+
*
|
|
804
|
+
* **Required scope:**
|
|
805
|
+
*
|
|
806
|
+
* `assets.items.archives:create`
|
|
807
|
+
*
|
|
808
|
+
*/
|
|
809
|
+
static archiveItem(options) {
|
|
810
|
+
return (options.client ?? client).post({
|
|
811
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
812
|
+
url: '/api/v1/assets/items/{item_id}/archive',
|
|
813
|
+
...options,
|
|
814
|
+
headers: {
|
|
815
|
+
'Content-Type': 'application/json',
|
|
816
|
+
...options.headers
|
|
817
|
+
}
|
|
818
|
+
});
|
|
819
|
+
}
|
|
782
820
|
/**
|
|
783
821
|
* List service schedules
|
|
784
822
|
*
|
|
@@ -1196,6 +1234,44 @@ export class AssetsProducts {
|
|
|
1196
1234
|
}
|
|
1197
1235
|
});
|
|
1198
1236
|
}
|
|
1237
|
+
/**
|
|
1238
|
+
* Unarchive a Product
|
|
1239
|
+
*
|
|
1240
|
+
* **Required scope:**
|
|
1241
|
+
*
|
|
1242
|
+
* `assets.products.archives:delete`
|
|
1243
|
+
*
|
|
1244
|
+
*/
|
|
1245
|
+
static unarchiveProduct(options) {
|
|
1246
|
+
return (options.client ?? client).delete({
|
|
1247
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
1248
|
+
url: '/api/v1/assets/products/{product_id}/archive',
|
|
1249
|
+
...options,
|
|
1250
|
+
headers: {
|
|
1251
|
+
'Content-Type': 'application/json',
|
|
1252
|
+
...options.headers
|
|
1253
|
+
}
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Archive a Product
|
|
1258
|
+
*
|
|
1259
|
+
* **Required scope:**
|
|
1260
|
+
*
|
|
1261
|
+
* `assets.products.archives:create`
|
|
1262
|
+
*
|
|
1263
|
+
*/
|
|
1264
|
+
static archiveProduct(options) {
|
|
1265
|
+
return (options.client ?? client).post({
|
|
1266
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
1267
|
+
url: '/api/v1/assets/products/{product_id}/archive',
|
|
1268
|
+
...options,
|
|
1269
|
+
headers: {
|
|
1270
|
+
'Content-Type': 'application/json',
|
|
1271
|
+
...options.headers
|
|
1272
|
+
}
|
|
1273
|
+
});
|
|
1274
|
+
}
|
|
1199
1275
|
/**
|
|
1200
1276
|
* Adjust inventory on-hand count
|
|
1201
1277
|
*
|
|
@@ -1441,6 +1517,91 @@ export class AssetsSites {
|
|
|
1441
1517
|
});
|
|
1442
1518
|
}
|
|
1443
1519
|
}
|
|
1520
|
+
export class AssetsSubLocations {
|
|
1521
|
+
/**
|
|
1522
|
+
* List Sub Locations
|
|
1523
|
+
*
|
|
1524
|
+
* **Required scope:**
|
|
1525
|
+
*
|
|
1526
|
+
* `assets.sub_locations:read`
|
|
1527
|
+
*
|
|
1528
|
+
*/
|
|
1529
|
+
static listSubLocations(options) {
|
|
1530
|
+
return (options?.client ?? client).get({
|
|
1531
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
1532
|
+
url: '/api/v1/assets/sub_locations',
|
|
1533
|
+
...options
|
|
1534
|
+
});
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* Create Sub Location
|
|
1538
|
+
*
|
|
1539
|
+
* **Required scope:**
|
|
1540
|
+
*
|
|
1541
|
+
* `assets.sub_locations:create`
|
|
1542
|
+
*
|
|
1543
|
+
*/
|
|
1544
|
+
static createSubLocation(options) {
|
|
1545
|
+
return (options?.client ?? client).post({
|
|
1546
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
1547
|
+
url: '/api/v1/assets/sub_locations',
|
|
1548
|
+
...options,
|
|
1549
|
+
headers: {
|
|
1550
|
+
'Content-Type': 'application/json',
|
|
1551
|
+
...options?.headers
|
|
1552
|
+
}
|
|
1553
|
+
});
|
|
1554
|
+
}
|
|
1555
|
+
/**
|
|
1556
|
+
* Delete Sub Location
|
|
1557
|
+
*
|
|
1558
|
+
* **Required scope:**
|
|
1559
|
+
*
|
|
1560
|
+
* `assets.sub_locations:delete`
|
|
1561
|
+
*
|
|
1562
|
+
*/
|
|
1563
|
+
static deleteSubLocation(options) {
|
|
1564
|
+
return (options.client ?? client).delete({
|
|
1565
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
1566
|
+
url: '/api/v1/assets/sub_locations/{id}',
|
|
1567
|
+
...options
|
|
1568
|
+
});
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* Get Sub Location
|
|
1572
|
+
*
|
|
1573
|
+
* **Required scope:**
|
|
1574
|
+
*
|
|
1575
|
+
* `assets.sub_locations:read`
|
|
1576
|
+
*
|
|
1577
|
+
*/
|
|
1578
|
+
static getSubLocation(options) {
|
|
1579
|
+
return (options.client ?? client).get({
|
|
1580
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
1581
|
+
url: '/api/v1/assets/sub_locations/{id}',
|
|
1582
|
+
...options
|
|
1583
|
+
});
|
|
1584
|
+
}
|
|
1585
|
+
/**
|
|
1586
|
+
* Update Sub Location
|
|
1587
|
+
*
|
|
1588
|
+
* **Required scope:**
|
|
1589
|
+
*
|
|
1590
|
+
* `assets.sub_locations:update`
|
|
1591
|
+
*
|
|
1592
|
+
*/
|
|
1593
|
+
static updateSubLocation(options) {
|
|
1594
|
+
return (options.client ?? client).patch({
|
|
1595
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
1596
|
+
url: '/api/v1/assets/sub_locations/{id}',
|
|
1597
|
+
...options,
|
|
1598
|
+
headers: {
|
|
1599
|
+
'Content-Type': 'application/json',
|
|
1600
|
+
...options.headers
|
|
1601
|
+
}
|
|
1602
|
+
});
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1444
1605
|
export class AssetsTransfers {
|
|
1445
1606
|
/**
|
|
1446
1607
|
* List transfers
|
|
@@ -2078,6 +2239,32 @@ export class ComplianceChecks {
|
|
|
2078
2239
|
});
|
|
2079
2240
|
}
|
|
2080
2241
|
}
|
|
2242
|
+
export class ComplianceRequirements {
|
|
2243
|
+
/**
|
|
2244
|
+
* List Compliance Requirements
|
|
2245
|
+
*
|
|
2246
|
+
* List the compliance requirement catalog: everything a company can be checked against, and
|
|
2247
|
+
* what each requirement asks for. Requirements ship with the application, so the catalog reads
|
|
2248
|
+
* the same for every company.
|
|
2249
|
+
*
|
|
2250
|
+
* To find one requirement by name, use `filter[search]`, which matches the title. Address a
|
|
2251
|
+
* requirement you already know by its `type` rather than its `id` — `type` is the same value in
|
|
2252
|
+
* every environment.
|
|
2253
|
+
*
|
|
2254
|
+
*
|
|
2255
|
+
* **Required scope:**
|
|
2256
|
+
*
|
|
2257
|
+
* `compliance.requirements:read`
|
|
2258
|
+
*
|
|
2259
|
+
*/
|
|
2260
|
+
static listRequirements(options) {
|
|
2261
|
+
return (options?.client ?? client).get({
|
|
2262
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2263
|
+
url: '/api/v1/compliance/requirements',
|
|
2264
|
+
...options
|
|
2265
|
+
});
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2081
2268
|
export class CustomFieldConfigurations {
|
|
2082
2269
|
/**
|
|
2083
2270
|
* List custom field configurations
|
|
@@ -2657,6 +2844,41 @@ export class JobWageDeterminationRateRules {
|
|
|
2657
2844
|
}
|
|
2658
2845
|
}
|
|
2659
2846
|
export class JobWageDeterminations {
|
|
2847
|
+
/**
|
|
2848
|
+
* Shift job wage determination genesis
|
|
2849
|
+
*
|
|
2850
|
+
* Move when a determination's timeline begins. Shifting it earlier extends
|
|
2851
|
+
* the first version back; shifting it later drops the coverage before it,
|
|
2852
|
+
* and what that removes stops being readable through `as_of[valid]` and
|
|
2853
|
+
* `/history`.
|
|
2854
|
+
*
|
|
2855
|
+
* This changes *when* the determination existed rather than what it said —
|
|
2856
|
+
* no version's attributes are rewritten. Moving the other end of the timeline
|
|
2857
|
+
* is `scheduled_termination`, and changing a version's values is the
|
|
2858
|
+
* determination update.
|
|
2859
|
+
*
|
|
2860
|
+
* A shift to or past a scheduled termination is refused with `422`, since it
|
|
2861
|
+
* would leave no coverage at all.
|
|
2862
|
+
*
|
|
2863
|
+
* Conditional: send the determination's `ETag` as `If-Match`.
|
|
2864
|
+
*
|
|
2865
|
+
*
|
|
2866
|
+
* **Required scope:**
|
|
2867
|
+
*
|
|
2868
|
+
* `jobs.wage_determinations.genesis:update`
|
|
2869
|
+
*
|
|
2870
|
+
*/
|
|
2871
|
+
static shiftJobWageDeterminationGenesis(options) {
|
|
2872
|
+
return (options.client ?? client).patch({
|
|
2873
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2874
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/genesis',
|
|
2875
|
+
...options,
|
|
2876
|
+
headers: {
|
|
2877
|
+
'Content-Type': 'application/json',
|
|
2878
|
+
...options.headers
|
|
2879
|
+
}
|
|
2880
|
+
});
|
|
2881
|
+
}
|
|
2660
2882
|
/**
|
|
2661
2883
|
* List job wage determination version history
|
|
2662
2884
|
*
|
|
@@ -2686,6 +2908,100 @@ export class JobWageDeterminations {
|
|
|
2686
2908
|
...options
|
|
2687
2909
|
});
|
|
2688
2910
|
}
|
|
2911
|
+
/**
|
|
2912
|
+
* Cancel scheduled changes on job wage determination
|
|
2913
|
+
*
|
|
2914
|
+
* **Required scope:**
|
|
2915
|
+
*
|
|
2916
|
+
* `jobs.wage_determinations.scheduled_changes:delete`
|
|
2917
|
+
*
|
|
2918
|
+
*/
|
|
2919
|
+
static cancelJobWageDeterminationScheduledChanges(options) {
|
|
2920
|
+
return (options.client ?? client).delete({
|
|
2921
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2922
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/scheduled_changes',
|
|
2923
|
+
...options
|
|
2924
|
+
});
|
|
2925
|
+
}
|
|
2926
|
+
/**
|
|
2927
|
+
* List scheduled changes for job wage determination
|
|
2928
|
+
*
|
|
2929
|
+
* **Required scope:**
|
|
2930
|
+
*
|
|
2931
|
+
* `jobs.wage_determinations.scheduled_changes:read`
|
|
2932
|
+
*
|
|
2933
|
+
*/
|
|
2934
|
+
static listJobWageDeterminationScheduledChanges(options) {
|
|
2935
|
+
return (options.client ?? client).get({
|
|
2936
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2937
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/scheduled_changes',
|
|
2938
|
+
...options
|
|
2939
|
+
});
|
|
2940
|
+
}
|
|
2941
|
+
/**
|
|
2942
|
+
* Schedule effective-dated change on job wage determination
|
|
2943
|
+
*
|
|
2944
|
+
* **Required scope:**
|
|
2945
|
+
*
|
|
2946
|
+
* `jobs.wage_determinations.scheduled_changes:create`
|
|
2947
|
+
*
|
|
2948
|
+
*/
|
|
2949
|
+
static scheduleJobWageDeterminationChange(options) {
|
|
2950
|
+
return (options.client ?? client).post({
|
|
2951
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2952
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/scheduled_changes',
|
|
2953
|
+
...options,
|
|
2954
|
+
headers: {
|
|
2955
|
+
'Content-Type': 'application/json',
|
|
2956
|
+
...options.headers
|
|
2957
|
+
}
|
|
2958
|
+
});
|
|
2959
|
+
}
|
|
2960
|
+
/**
|
|
2961
|
+
* Cancel scheduled termination on job wage determination
|
|
2962
|
+
*
|
|
2963
|
+
* **Required scope:**
|
|
2964
|
+
*
|
|
2965
|
+
* `jobs.wage_determinations.scheduled_terminations:delete`
|
|
2966
|
+
*
|
|
2967
|
+
*/
|
|
2968
|
+
static cancelJobWageDeterminationScheduledTermination(options) {
|
|
2969
|
+
return (options.client ?? client).delete({
|
|
2970
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2971
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/scheduled_termination',
|
|
2972
|
+
...options
|
|
2973
|
+
});
|
|
2974
|
+
}
|
|
2975
|
+
/**
|
|
2976
|
+
* Schedule termination on job wage determination
|
|
2977
|
+
*
|
|
2978
|
+
* End a determination's valid coverage at `effective_date`: segments beyond
|
|
2979
|
+
* it are dropped and one spanning it is truncated, so the determination stops
|
|
2980
|
+
* being valid from that point on. Earlier versions are untouched and stay
|
|
2981
|
+
* readable through `as_of[valid]` and `/history`.
|
|
2982
|
+
*
|
|
2983
|
+
* Moving an end is cancel-then-schedule: cancel the standing termination,
|
|
2984
|
+
* then schedule the one you want.
|
|
2985
|
+
*
|
|
2986
|
+
* Conditional: send the determination's `ETag` as `If-Match`.
|
|
2987
|
+
*
|
|
2988
|
+
*
|
|
2989
|
+
* **Required scope:**
|
|
2990
|
+
*
|
|
2991
|
+
* `jobs.wage_determinations.scheduled_terminations:create`
|
|
2992
|
+
*
|
|
2993
|
+
*/
|
|
2994
|
+
static scheduleJobWageDeterminationTermination(options) {
|
|
2995
|
+
return (options.client ?? client).post({
|
|
2996
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2997
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/scheduled_termination',
|
|
2998
|
+
...options,
|
|
2999
|
+
headers: {
|
|
3000
|
+
'Content-Type': 'application/json',
|
|
3001
|
+
...options.headers
|
|
3002
|
+
}
|
|
3003
|
+
});
|
|
3004
|
+
}
|
|
2689
3005
|
/**
|
|
2690
3006
|
* List job wage determinations
|
|
2691
3007
|
*
|
|
@@ -2750,6 +3066,37 @@ export class JobWageDeterminations {
|
|
|
2750
3066
|
...options
|
|
2751
3067
|
});
|
|
2752
3068
|
}
|
|
3069
|
+
/**
|
|
3070
|
+
* Update job wage determination
|
|
3071
|
+
*
|
|
3072
|
+
* Edit a determination's values from `effective_from` forward: every version
|
|
3073
|
+
* starting at or after that instant takes the new values, and earlier
|
|
3074
|
+
* versions are untouched. Where an edit starts inside a version and changes
|
|
3075
|
+
* its values, a boundary is created at `effective_from` so the change applies
|
|
3076
|
+
* only from there.
|
|
3077
|
+
*
|
|
3078
|
+
* This rewrites what the determination said, not when it existed — moving
|
|
3079
|
+
* either end of the timeline is `genesis` or `scheduled_termination`.
|
|
3080
|
+
*
|
|
3081
|
+
* Conditional: send the determination's `ETag` as `If-Match`.
|
|
3082
|
+
*
|
|
3083
|
+
*
|
|
3084
|
+
* **Required scope:**
|
|
3085
|
+
*
|
|
3086
|
+
* `jobs.wage_determinations:update`
|
|
3087
|
+
*
|
|
3088
|
+
*/
|
|
3089
|
+
static updateJobWageDetermination(options) {
|
|
3090
|
+
return (options.client ?? client).patch({
|
|
3091
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3092
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{id}',
|
|
3093
|
+
...options,
|
|
3094
|
+
headers: {
|
|
3095
|
+
'Content-Type': 'application/json',
|
|
3096
|
+
...options.headers
|
|
3097
|
+
}
|
|
3098
|
+
});
|
|
3099
|
+
}
|
|
2753
3100
|
}
|
|
2754
3101
|
export class Jobs {
|
|
2755
3102
|
/**
|
|
@@ -2893,6 +3240,12 @@ export class OversiteSiteCheckIns {
|
|
|
2893
3240
|
/**
|
|
2894
3241
|
* List Site Check-ins
|
|
2895
3242
|
*
|
|
3243
|
+
* Returns only the check-ins visible to the API key's company: those made by its
|
|
3244
|
+
* currently-employed members, plus all of the site's check-ins when the company
|
|
3245
|
+
* holds a claim on it with check-in features enabled. Other check-ins are
|
|
3246
|
+
* omitted, so a visible site can return an empty list.
|
|
3247
|
+
*
|
|
3248
|
+
*
|
|
2896
3249
|
* **Required scope:**
|
|
2897
3250
|
*
|
|
2898
3251
|
* `oversite.sites.check_ins:read`
|
|
@@ -2908,6 +3261,12 @@ export class OversiteSiteCheckIns {
|
|
|
2908
3261
|
/**
|
|
2909
3262
|
* Show Site Check-in
|
|
2910
3263
|
*
|
|
3264
|
+
* A check-in is visible to the API key's company when its author is a
|
|
3265
|
+
* currently-employed member, or when the company holds a claim on the site
|
|
3266
|
+
* with check-in features enabled; requesting one outside that visibility
|
|
3267
|
+
* returns `404`.
|
|
3268
|
+
*
|
|
3269
|
+
*
|
|
2911
3270
|
* **Required scope:**
|
|
2912
3271
|
*
|
|
2913
3272
|
* `oversite.sites.check_ins:read`
|
|
@@ -4035,6 +4394,23 @@ export class Tasks {
|
|
|
4035
4394
|
});
|
|
4036
4395
|
}
|
|
4037
4396
|
}
|
|
4397
|
+
export class AdjustableLineItems {
|
|
4398
|
+
/**
|
|
4399
|
+
* List adjustable line items
|
|
4400
|
+
*
|
|
4401
|
+
* **Required scope:**
|
|
4402
|
+
*
|
|
4403
|
+
* `time_cards.adjustable_line_items:read`
|
|
4404
|
+
*
|
|
4405
|
+
*/
|
|
4406
|
+
static listAdjustableLineItems(options) {
|
|
4407
|
+
return (options.client ?? client).get({
|
|
4408
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
4409
|
+
url: '/api/v1/time_cards/{time_card_id}/adjustable_line_items',
|
|
4410
|
+
...options
|
|
4411
|
+
});
|
|
4412
|
+
}
|
|
4413
|
+
}
|
|
4038
4414
|
export class TimeCards {
|
|
4039
4415
|
/**
|
|
4040
4416
|
* Lock or unlock time card
|
|
@@ -4208,6 +4584,46 @@ export class PriorPeriodAdjustments {
|
|
|
4208
4584
|
...options
|
|
4209
4585
|
});
|
|
4210
4586
|
}
|
|
4587
|
+
/**
|
|
4588
|
+
* Create Prior Period Adjustment
|
|
4589
|
+
*
|
|
4590
|
+
* **Required scope:**
|
|
4591
|
+
*
|
|
4592
|
+
* `time_cards.prior_period_adjustments:create`
|
|
4593
|
+
*
|
|
4594
|
+
*/
|
|
4595
|
+
static createPriorPeriodAdjustment(options) {
|
|
4596
|
+
return (options.client ?? client).post({
|
|
4597
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
4598
|
+
url: '/api/v1/time_cards/{time_card_id}/prior_period_adjustments',
|
|
4599
|
+
...options,
|
|
4600
|
+
headers: {
|
|
4601
|
+
'Content-Type': 'application/json',
|
|
4602
|
+
...options.headers
|
|
4603
|
+
}
|
|
4604
|
+
});
|
|
4605
|
+
}
|
|
4606
|
+
/**
|
|
4607
|
+
* Delete prior period adjustment
|
|
4608
|
+
*
|
|
4609
|
+
* Permanently remove an adjustment, for undoing one recorded in error. The removed
|
|
4610
|
+
* adjustment is returned. Its allocation is freed back to the funding line item and
|
|
4611
|
+
* the time card's actuals rebuild, so the job's balance due rises by this amount.
|
|
4612
|
+
* Adjustments cannot be edited — delete and re-create to change one.
|
|
4613
|
+
*
|
|
4614
|
+
*
|
|
4615
|
+
* **Required scope:**
|
|
4616
|
+
*
|
|
4617
|
+
* `time_cards.prior_period_adjustments:delete`
|
|
4618
|
+
*
|
|
4619
|
+
*/
|
|
4620
|
+
static deletePriorPeriodAdjustment(options) {
|
|
4621
|
+
return (options.client ?? client).delete({
|
|
4622
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
4623
|
+
url: '/api/v1/time_cards/{time_card_id}/prior_period_adjustments/{id}',
|
|
4624
|
+
...options
|
|
4625
|
+
});
|
|
4626
|
+
}
|
|
4211
4627
|
/**
|
|
4212
4628
|
* Show prior period adjustment
|
|
4213
4629
|
*
|
|
@@ -4224,6 +4640,23 @@ export class PriorPeriodAdjustments {
|
|
|
4224
4640
|
});
|
|
4225
4641
|
}
|
|
4226
4642
|
}
|
|
4643
|
+
export class TimeCardPwaCompliance {
|
|
4644
|
+
/**
|
|
4645
|
+
* List time card PWA compliance
|
|
4646
|
+
*
|
|
4647
|
+
* **Required scope:**
|
|
4648
|
+
*
|
|
4649
|
+
* `time_cards.pwa_compliances:read`
|
|
4650
|
+
*
|
|
4651
|
+
*/
|
|
4652
|
+
static listPwaCompliances(options) {
|
|
4653
|
+
return (options.client ?? client).get({
|
|
4654
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
4655
|
+
url: '/api/v1/time_cards/{time_card_id}/pwa_compliances',
|
|
4656
|
+
...options
|
|
4657
|
+
});
|
|
4658
|
+
}
|
|
4659
|
+
}
|
|
4227
4660
|
export class TimeEntries {
|
|
4228
4661
|
/**
|
|
4229
4662
|
* List time entry versions
|