@dsptch-work/api-client 0.9.0 → 0.11.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 +82 -1
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/sdk.gen.d.ts +21 -24
- package/dist/gen/sdk.gen.js +27 -46
- package/dist/gen/types.gen.d.ts +783 -628
- package/dist/gen/zod.gen.d.ts +2757 -2658
- package/dist/gen/zod.gen.js +640 -491
- package/package.json +1 -1
package/dist/gen/sdk.gen.js
CHANGED
|
@@ -779,40 +779,6 @@ export class AssetsItems {
|
|
|
779
779
|
}
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
|
-
/**
|
|
783
|
-
* Unretire item
|
|
784
|
-
*
|
|
785
|
-
* **Required scope:**
|
|
786
|
-
*
|
|
787
|
-
* `assets.items.retirements:delete`
|
|
788
|
-
*
|
|
789
|
-
*/
|
|
790
|
-
static unretireItem(options) {
|
|
791
|
-
return (options.client ?? client).delete({
|
|
792
|
-
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
793
|
-
url: '/api/v1/assets/items/{item_id}/retirement',
|
|
794
|
-
...options
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
/**
|
|
798
|
-
* Retire item
|
|
799
|
-
*
|
|
800
|
-
* **Required scope:**
|
|
801
|
-
*
|
|
802
|
-
* `assets.items.retirements:create`
|
|
803
|
-
*
|
|
804
|
-
*/
|
|
805
|
-
static retireItem(options) {
|
|
806
|
-
return (options.client ?? client).post({
|
|
807
|
-
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
808
|
-
url: '/api/v1/assets/items/{item_id}/retirement',
|
|
809
|
-
...options,
|
|
810
|
-
headers: {
|
|
811
|
-
'Content-Type': 'application/json',
|
|
812
|
-
...options.headers
|
|
813
|
-
}
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
782
|
/**
|
|
817
783
|
* List service schedules
|
|
818
784
|
*
|
|
@@ -2615,7 +2581,10 @@ export class JobWageDeterminationRateRules {
|
|
|
2615
2581
|
*
|
|
2616
2582
|
* A rule's whole valid-time sequence, newest window first and cursor-paginated.
|
|
2617
2583
|
* Each entry is a full rate rule carrying its own `valid_from` / `valid_to`
|
|
2618
|
-
* window and a `version_status` of `scheduled`, `current` or `historical`.
|
|
2584
|
+
* window and a `version_status` of `scheduled`, `current` or `historical`. An
|
|
2585
|
+
* entry carries the family key as `pay_rates_rule_id` and no `id` or `uid` of
|
|
2586
|
+
* its own — every version shares the family key, so versions are told apart by
|
|
2587
|
+
* their window coordinates.
|
|
2619
2588
|
*
|
|
2620
2589
|
* `corrections` is always empty here: a rule keeps no audit layer, so what a
|
|
2621
2590
|
* version replaced was not recorded. The field is still returned, because the
|
|
@@ -2633,7 +2602,7 @@ export class JobWageDeterminationRateRules {
|
|
|
2633
2602
|
static listRateRuleHistory(options) {
|
|
2634
2603
|
return (options.client ?? client).get({
|
|
2635
2604
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2636
|
-
url: '/api/v1/jobs/{job_id}/wage_determinations/{
|
|
2605
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/rate_rules/{rate_rule_id}/history',
|
|
2637
2606
|
...options
|
|
2638
2607
|
});
|
|
2639
2608
|
}
|
|
@@ -2648,7 +2617,7 @@ export class JobWageDeterminationRateRules {
|
|
|
2648
2617
|
static listRateRules(options) {
|
|
2649
2618
|
return (options.client ?? client).get({
|
|
2650
2619
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2651
|
-
url: '/api/v1/jobs/{job_id}/wage_determinations/{
|
|
2620
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/rate_rules',
|
|
2652
2621
|
...options
|
|
2653
2622
|
});
|
|
2654
2623
|
}
|
|
@@ -2663,7 +2632,7 @@ export class JobWageDeterminationRateRules {
|
|
|
2663
2632
|
static createRateRule(options) {
|
|
2664
2633
|
return (options.client ?? client).post({
|
|
2665
2634
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2666
|
-
url: '/api/v1/jobs/{job_id}/wage_determinations/{
|
|
2635
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/rate_rules',
|
|
2667
2636
|
...options,
|
|
2668
2637
|
headers: {
|
|
2669
2638
|
'Content-Type': 'application/json',
|
|
@@ -2682,7 +2651,7 @@ export class JobWageDeterminationRateRules {
|
|
|
2682
2651
|
static getRateRule(options) {
|
|
2683
2652
|
return (options.client ?? client).get({
|
|
2684
2653
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2685
|
-
url: '/api/v1/jobs/{job_id}/wage_determinations/{
|
|
2654
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/rate_rules/{id}',
|
|
2686
2655
|
...options
|
|
2687
2656
|
});
|
|
2688
2657
|
}
|
|
@@ -2696,7 +2665,10 @@ export class JobWageDeterminations {
|
|
|
2696
2665
|
* `valid_from` / `valid_to` window, a `version_status` of `scheduled`,
|
|
2697
2666
|
* `current` or `historical`, and the `corrections` that version replaced —
|
|
2698
2667
|
* each itself a full determination as previously recorded, so a client
|
|
2699
|
-
* that wants a field-level diff compares two of them.
|
|
2668
|
+
* that wants a field-level diff compares two of them. An entry carries
|
|
2669
|
+
* the family key as `job_wage_determination_id` and no `id` or `uid` of
|
|
2670
|
+
* its own — every version shares the family key, so versions are told
|
|
2671
|
+
* apart by their window coordinates. `as_of[valid]` is
|
|
2700
2672
|
* rejected, since pinning a point on the valid axis would collapse the
|
|
2701
2673
|
* sequence this endpoint returns, and a determination records no
|
|
2702
2674
|
* transaction axis to read `as_of[transaction]` against.
|
|
@@ -2710,7 +2682,7 @@ export class JobWageDeterminations {
|
|
|
2710
2682
|
static listJobWageDeterminationHistory(options) {
|
|
2711
2683
|
return (options.client ?? client).get({
|
|
2712
2684
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2713
|
-
url: '/api/v1/jobs/{job_id}/wage_determinations/{
|
|
2685
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/history',
|
|
2714
2686
|
...options
|
|
2715
2687
|
});
|
|
2716
2688
|
}
|
|
@@ -2759,7 +2731,7 @@ export class JobWageDeterminations {
|
|
|
2759
2731
|
static deleteWageDetermination(options) {
|
|
2760
2732
|
return (options.client ?? client).delete({
|
|
2761
2733
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2762
|
-
url: '/api/v1/jobs/{job_id}/wage_determinations/{
|
|
2734
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{id}',
|
|
2763
2735
|
...options
|
|
2764
2736
|
});
|
|
2765
2737
|
}
|
|
@@ -2774,7 +2746,7 @@ export class JobWageDeterminations {
|
|
|
2774
2746
|
static getJobWageDetermination(options) {
|
|
2775
2747
|
return (options.client ?? client).get({
|
|
2776
2748
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2777
|
-
url: '/api/v1/jobs/{job_id}/wage_determinations/{
|
|
2749
|
+
url: '/api/v1/jobs/{job_id}/wage_determinations/{id}',
|
|
2778
2750
|
...options
|
|
2779
2751
|
});
|
|
2780
2752
|
}
|
|
@@ -3007,7 +2979,10 @@ export class ExternalMaps {
|
|
|
3007
2979
|
* `valid_from` / `valid_to` window, a `version_status` of `scheduled`,
|
|
3008
2980
|
* `current` or `historical`, and the `corrections` that window replaced —
|
|
3009
2981
|
* each itself a full external map as previously recorded, so a client
|
|
3010
|
-
* that wants a field-level diff compares two of them.
|
|
2982
|
+
* that wants a field-level diff compares two of them. An entry carries
|
|
2983
|
+
* the family key as `payrolls_external_map_id` and no `id` or
|
|
2984
|
+
* `bitemporal_id` of its own — every version shares the family key, so
|
|
2985
|
+
* versions are told apart by their window coordinates. Pass
|
|
3011
2986
|
* `as_of[transaction]` to read the timeline as it was recorded at a past
|
|
3012
2987
|
* moment — nested corrections stop at the same point and each
|
|
3013
2988
|
* version reports the `transaction_to` it had then, while
|
|
@@ -4479,7 +4454,10 @@ export class Timecodes {
|
|
|
4479
4454
|
* `valid_from` / `valid_to` window, a `version_status` of `scheduled`,
|
|
4480
4455
|
* `current` or `historical`, and the `corrections` that window replaced —
|
|
4481
4456
|
* each itself a full timecode as previously recorded, so a client that
|
|
4482
|
-
* wants a field-level diff compares two of them.
|
|
4457
|
+
* wants a field-level diff compares two of them. An entry carries the
|
|
4458
|
+
* family key as `timekeeping_timecode_id` and no `id` of its own —
|
|
4459
|
+
* every version shares the family key, so versions are told apart by
|
|
4460
|
+
* their window coordinates. Pass
|
|
4483
4461
|
* `as_of[transaction]` to read the timeline as it was recorded at a past
|
|
4484
4462
|
* moment — nested corrections stop at the same point and each
|
|
4485
4463
|
* version reports the `transaction_to` it had then, while
|
|
@@ -4816,7 +4794,10 @@ export class PaySchedules {
|
|
|
4816
4794
|
* `valid_from` / `valid_to` window, a `version_status` of `scheduled`,
|
|
4817
4795
|
* `current` or `historical`, and the `corrections` that version replaced —
|
|
4818
4796
|
* each itself a full pay schedule as previously recorded, so a client that
|
|
4819
|
-
* wants a field-level diff compares two of them.
|
|
4797
|
+
* wants a field-level diff compares two of them. An entry carries the
|
|
4798
|
+
* family key as `timekeeping_pay_period_config_id` and no identifier of
|
|
4799
|
+
* its own — every version shares the family key, so versions are told
|
|
4800
|
+
* apart by their window coordinates. `as_of[valid]` is
|
|
4820
4801
|
* rejected, since pinning a point on the valid axis would collapse the
|
|
4821
4802
|
* sequence this endpoint returns, and a pay schedule records no
|
|
4822
4803
|
* transaction axis to read `as_of[transaction]` against.
|