@dsptch-work/api-client 0.32.0 → 0.34.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 +233 -0
- package/dist/gen/index.d.ts +2 -2
- package/dist/gen/index.js +1 -1
- package/dist/gen/sdk.gen.d.ts +404 -1
- package/dist/gen/sdk.gen.js +686 -0
- package/dist/gen/types.gen.d.ts +1823 -305
- package/dist/gen/zod.gen.d.ts +1397 -221
- package/dist/gen/zod.gen.js +678 -76
- package/package.json +1 -1
package/dist/gen/sdk.gen.js
CHANGED
|
@@ -2689,6 +2689,414 @@ export class CompetenciesEvidenceItems {
|
|
|
2689
2689
|
});
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
2692
|
+
export class CompetenciesAssessorAuthorizations {
|
|
2693
|
+
/**
|
|
2694
|
+
* List assessor authorizations
|
|
2695
|
+
*
|
|
2696
|
+
* **Required scope:**
|
|
2697
|
+
*
|
|
2698
|
+
* `competencies.assessor_authorizations:read`
|
|
2699
|
+
*
|
|
2700
|
+
*/
|
|
2701
|
+
static listAssessorAuthorizations(options) {
|
|
2702
|
+
return (options?.client ?? client).get({
|
|
2703
|
+
querySerializer: { parameters: { 'filter[kind]': { array: { explode: false } } } },
|
|
2704
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2705
|
+
url: '/api/v1/competencies/assessor_authorizations',
|
|
2706
|
+
...options
|
|
2707
|
+
});
|
|
2708
|
+
}
|
|
2709
|
+
/**
|
|
2710
|
+
* Create assessor authorization
|
|
2711
|
+
*
|
|
2712
|
+
* Grants an assessor role for one standard. A user key grants as its user. A company key
|
|
2713
|
+
* names an admin or safety manager in granted_by_user_id.
|
|
2714
|
+
*
|
|
2715
|
+
*
|
|
2716
|
+
* **Required scope:**
|
|
2717
|
+
*
|
|
2718
|
+
* `competencies.assessor_authorizations:create`
|
|
2719
|
+
*
|
|
2720
|
+
*/
|
|
2721
|
+
static createAssessorAuthorization(options) {
|
|
2722
|
+
return (options.client ?? client).post({
|
|
2723
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2724
|
+
url: '/api/v1/competencies/assessor_authorizations',
|
|
2725
|
+
...options,
|
|
2726
|
+
headers: {
|
|
2727
|
+
'Content-Type': 'application/json',
|
|
2728
|
+
...options.headers
|
|
2729
|
+
}
|
|
2730
|
+
});
|
|
2731
|
+
}
|
|
2732
|
+
/**
|
|
2733
|
+
* Show assessor authorization
|
|
2734
|
+
*
|
|
2735
|
+
* **Required scope:**
|
|
2736
|
+
*
|
|
2737
|
+
* `competencies.assessor_authorizations:read`
|
|
2738
|
+
*
|
|
2739
|
+
*/
|
|
2740
|
+
static getAssessorAuthorization(options) {
|
|
2741
|
+
return (options.client ?? client).get({
|
|
2742
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2743
|
+
url: '/api/v1/competencies/assessor_authorizations/{id}',
|
|
2744
|
+
...options
|
|
2745
|
+
});
|
|
2746
|
+
}
|
|
2747
|
+
/**
|
|
2748
|
+
* Update assessor authorization
|
|
2749
|
+
*
|
|
2750
|
+
* **Required scope:**
|
|
2751
|
+
*
|
|
2752
|
+
* `competencies.assessor_authorizations:update`
|
|
2753
|
+
*
|
|
2754
|
+
*/
|
|
2755
|
+
static updateAssessorAuthorization(options) {
|
|
2756
|
+
return (options.client ?? client).patch({
|
|
2757
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2758
|
+
url: '/api/v1/competencies/assessor_authorizations/{id}',
|
|
2759
|
+
...options,
|
|
2760
|
+
headers: {
|
|
2761
|
+
'Content-Type': 'application/json',
|
|
2762
|
+
...options.headers
|
|
2763
|
+
}
|
|
2764
|
+
});
|
|
2765
|
+
}
|
|
2766
|
+
/**
|
|
2767
|
+
* Revoke assessor authorization
|
|
2768
|
+
*
|
|
2769
|
+
* **Required scope:**
|
|
2770
|
+
*
|
|
2771
|
+
* `competencies.assessor_authorizations.revocations:create`
|
|
2772
|
+
*
|
|
2773
|
+
*/
|
|
2774
|
+
static revokeAssessorAuthorization(options) {
|
|
2775
|
+
return (options.client ?? client).post({
|
|
2776
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2777
|
+
url: '/api/v1/competencies/assessor_authorizations/{assessor_authorization_id}/revocation',
|
|
2778
|
+
...options,
|
|
2779
|
+
headers: {
|
|
2780
|
+
'Content-Type': 'application/json',
|
|
2781
|
+
...options.headers
|
|
2782
|
+
}
|
|
2783
|
+
});
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
export class CompetenciesLevels {
|
|
2787
|
+
/**
|
|
2788
|
+
* List competence levels
|
|
2789
|
+
*
|
|
2790
|
+
* **Required scope:**
|
|
2791
|
+
*
|
|
2792
|
+
* `competencies.standards.versions.levels:read`
|
|
2793
|
+
*
|
|
2794
|
+
*/
|
|
2795
|
+
static listLevels(options) {
|
|
2796
|
+
return (options.client ?? client).get({
|
|
2797
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2798
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels',
|
|
2799
|
+
...options
|
|
2800
|
+
});
|
|
2801
|
+
}
|
|
2802
|
+
/**
|
|
2803
|
+
* Create competence level
|
|
2804
|
+
*
|
|
2805
|
+
* Appends a level to a draft revision. sort_order is server-assigned, starting at 0.
|
|
2806
|
+
*
|
|
2807
|
+
* **Required scope:**
|
|
2808
|
+
*
|
|
2809
|
+
* `competencies.standards.versions.levels:create`
|
|
2810
|
+
*
|
|
2811
|
+
*/
|
|
2812
|
+
static createLevel(options) {
|
|
2813
|
+
return (options.client ?? client).post({
|
|
2814
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2815
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels',
|
|
2816
|
+
...options,
|
|
2817
|
+
headers: {
|
|
2818
|
+
'Content-Type': 'application/json',
|
|
2819
|
+
...options.headers
|
|
2820
|
+
}
|
|
2821
|
+
});
|
|
2822
|
+
}
|
|
2823
|
+
/**
|
|
2824
|
+
* Delete competence level
|
|
2825
|
+
*
|
|
2826
|
+
* **Required scope:**
|
|
2827
|
+
*
|
|
2828
|
+
* `competencies.standards.versions.levels:delete`
|
|
2829
|
+
*
|
|
2830
|
+
*/
|
|
2831
|
+
static deleteLevel(options) {
|
|
2832
|
+
return (options.client ?? client).delete({
|
|
2833
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2834
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{id}',
|
|
2835
|
+
...options
|
|
2836
|
+
});
|
|
2837
|
+
}
|
|
2838
|
+
/**
|
|
2839
|
+
* Show competence level
|
|
2840
|
+
*
|
|
2841
|
+
* **Required scope:**
|
|
2842
|
+
*
|
|
2843
|
+
* `competencies.standards.versions.levels:read`
|
|
2844
|
+
*
|
|
2845
|
+
*/
|
|
2846
|
+
static getLevel(options) {
|
|
2847
|
+
return (options.client ?? client).get({
|
|
2848
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2849
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{id}',
|
|
2850
|
+
...options
|
|
2851
|
+
});
|
|
2852
|
+
}
|
|
2853
|
+
/**
|
|
2854
|
+
* Update competence level
|
|
2855
|
+
*
|
|
2856
|
+
* **Required scope:**
|
|
2857
|
+
*
|
|
2858
|
+
* `competencies.standards.versions.levels:update`
|
|
2859
|
+
*
|
|
2860
|
+
*/
|
|
2861
|
+
static updateLevel(options) {
|
|
2862
|
+
return (options.client ?? client).patch({
|
|
2863
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2864
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{id}',
|
|
2865
|
+
...options,
|
|
2866
|
+
headers: {
|
|
2867
|
+
'Content-Type': 'application/json',
|
|
2868
|
+
...options.headers
|
|
2869
|
+
}
|
|
2870
|
+
});
|
|
2871
|
+
}
|
|
2872
|
+
/**
|
|
2873
|
+
* Move competence level
|
|
2874
|
+
*
|
|
2875
|
+
* **Required scope:**
|
|
2876
|
+
*
|
|
2877
|
+
* `competencies.standards.versions.levels.moves:create`
|
|
2878
|
+
*
|
|
2879
|
+
*/
|
|
2880
|
+
static moveCompetencyLevel(options) {
|
|
2881
|
+
return (options.client ?? client).post({
|
|
2882
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2883
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{level_id}/move',
|
|
2884
|
+
...options,
|
|
2885
|
+
headers: {
|
|
2886
|
+
'Content-Type': 'application/json',
|
|
2887
|
+
...options.headers
|
|
2888
|
+
}
|
|
2889
|
+
});
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
export class CompetenciesKeyActivities {
|
|
2893
|
+
/**
|
|
2894
|
+
* List competence key activities
|
|
2895
|
+
*
|
|
2896
|
+
* **Required scope:**
|
|
2897
|
+
*
|
|
2898
|
+
* `competencies.standards.versions.levels.key_activities:read`
|
|
2899
|
+
*
|
|
2900
|
+
*/
|
|
2901
|
+
static listKeyActivities(options) {
|
|
2902
|
+
return (options.client ?? client).get({
|
|
2903
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2904
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{level_id}/key_activities',
|
|
2905
|
+
...options
|
|
2906
|
+
});
|
|
2907
|
+
}
|
|
2908
|
+
/**
|
|
2909
|
+
* Create competence key activity
|
|
2910
|
+
*
|
|
2911
|
+
* **Required scope:**
|
|
2912
|
+
*
|
|
2913
|
+
* `competencies.standards.versions.levels.key_activities:create`
|
|
2914
|
+
*
|
|
2915
|
+
*/
|
|
2916
|
+
static createKeyActivity(options) {
|
|
2917
|
+
return (options.client ?? client).post({
|
|
2918
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2919
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{level_id}/key_activities',
|
|
2920
|
+
...options,
|
|
2921
|
+
headers: {
|
|
2922
|
+
'Content-Type': 'application/json',
|
|
2923
|
+
...options.headers
|
|
2924
|
+
}
|
|
2925
|
+
});
|
|
2926
|
+
}
|
|
2927
|
+
/**
|
|
2928
|
+
* Delete competence key activity
|
|
2929
|
+
*
|
|
2930
|
+
* **Required scope:**
|
|
2931
|
+
*
|
|
2932
|
+
* `competencies.standards.versions.levels.key_activities:delete`
|
|
2933
|
+
*
|
|
2934
|
+
*/
|
|
2935
|
+
static deleteKeyActivity(options) {
|
|
2936
|
+
return (options.client ?? client).delete({
|
|
2937
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2938
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{level_id}/key_activities/{id}',
|
|
2939
|
+
...options
|
|
2940
|
+
});
|
|
2941
|
+
}
|
|
2942
|
+
/**
|
|
2943
|
+
* Show competence key activity
|
|
2944
|
+
*
|
|
2945
|
+
* **Required scope:**
|
|
2946
|
+
*
|
|
2947
|
+
* `competencies.standards.versions.levels.key_activities:read`
|
|
2948
|
+
*
|
|
2949
|
+
*/
|
|
2950
|
+
static getKeyActivity(options) {
|
|
2951
|
+
return (options.client ?? client).get({
|
|
2952
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2953
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{level_id}/key_activities/{id}',
|
|
2954
|
+
...options
|
|
2955
|
+
});
|
|
2956
|
+
}
|
|
2957
|
+
/**
|
|
2958
|
+
* Update competence key activity
|
|
2959
|
+
*
|
|
2960
|
+
* **Required scope:**
|
|
2961
|
+
*
|
|
2962
|
+
* `competencies.standards.versions.levels.key_activities:update`
|
|
2963
|
+
*
|
|
2964
|
+
*/
|
|
2965
|
+
static updateKeyActivity(options) {
|
|
2966
|
+
return (options.client ?? client).patch({
|
|
2967
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2968
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{level_id}/key_activities/{id}',
|
|
2969
|
+
...options,
|
|
2970
|
+
headers: {
|
|
2971
|
+
'Content-Type': 'application/json',
|
|
2972
|
+
...options.headers
|
|
2973
|
+
}
|
|
2974
|
+
});
|
|
2975
|
+
}
|
|
2976
|
+
/**
|
|
2977
|
+
* Move competence key activity
|
|
2978
|
+
*
|
|
2979
|
+
* **Required scope:**
|
|
2980
|
+
*
|
|
2981
|
+
* `competencies.standards.versions.levels.key_activities.moves:create`
|
|
2982
|
+
*
|
|
2983
|
+
*/
|
|
2984
|
+
static moveCompetencyKeyActivity(options) {
|
|
2985
|
+
return (options.client ?? client).post({
|
|
2986
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2987
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{level_id}/key_activities/{key_activity_id}/move',
|
|
2988
|
+
...options,
|
|
2989
|
+
headers: {
|
|
2990
|
+
'Content-Type': 'application/json',
|
|
2991
|
+
...options.headers
|
|
2992
|
+
}
|
|
2993
|
+
});
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
export class CompetenciesCriteria {
|
|
2997
|
+
/**
|
|
2998
|
+
* List competence criteria
|
|
2999
|
+
*
|
|
3000
|
+
* **Required scope:**
|
|
3001
|
+
*
|
|
3002
|
+
* `competencies.standards.versions.levels.key_activities.criteria:read`
|
|
3003
|
+
*
|
|
3004
|
+
*/
|
|
3005
|
+
static listCriteria(options) {
|
|
3006
|
+
return (options.client ?? client).get({
|
|
3007
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3008
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{level_id}/key_activities/{key_activity_id}/criteria',
|
|
3009
|
+
...options
|
|
3010
|
+
});
|
|
3011
|
+
}
|
|
3012
|
+
/**
|
|
3013
|
+
* Create competence criterion
|
|
3014
|
+
*
|
|
3015
|
+
* **Required scope:**
|
|
3016
|
+
*
|
|
3017
|
+
* `competencies.standards.versions.levels.key_activities.criteria:create`
|
|
3018
|
+
*
|
|
3019
|
+
*/
|
|
3020
|
+
static createCriterion(options) {
|
|
3021
|
+
return (options.client ?? client).post({
|
|
3022
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3023
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{level_id}/key_activities/{key_activity_id}/criteria',
|
|
3024
|
+
...options,
|
|
3025
|
+
headers: {
|
|
3026
|
+
'Content-Type': 'application/json',
|
|
3027
|
+
...options.headers
|
|
3028
|
+
}
|
|
3029
|
+
});
|
|
3030
|
+
}
|
|
3031
|
+
/**
|
|
3032
|
+
* Delete competence criterion
|
|
3033
|
+
*
|
|
3034
|
+
* **Required scope:**
|
|
3035
|
+
*
|
|
3036
|
+
* `competencies.standards.versions.levels.key_activities.criteria:delete`
|
|
3037
|
+
*
|
|
3038
|
+
*/
|
|
3039
|
+
static deleteCriterion(options) {
|
|
3040
|
+
return (options.client ?? client).delete({
|
|
3041
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3042
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{level_id}/key_activities/{key_activity_id}/criteria/{id}',
|
|
3043
|
+
...options
|
|
3044
|
+
});
|
|
3045
|
+
}
|
|
3046
|
+
/**
|
|
3047
|
+
* Show competence criterion
|
|
3048
|
+
*
|
|
3049
|
+
* **Required scope:**
|
|
3050
|
+
*
|
|
3051
|
+
* `competencies.standards.versions.levels.key_activities.criteria:read`
|
|
3052
|
+
*
|
|
3053
|
+
*/
|
|
3054
|
+
static getCriterion(options) {
|
|
3055
|
+
return (options.client ?? client).get({
|
|
3056
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3057
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{level_id}/key_activities/{key_activity_id}/criteria/{id}',
|
|
3058
|
+
...options
|
|
3059
|
+
});
|
|
3060
|
+
}
|
|
3061
|
+
/**
|
|
3062
|
+
* Update competence criterion
|
|
3063
|
+
*
|
|
3064
|
+
* **Required scope:**
|
|
3065
|
+
*
|
|
3066
|
+
* `competencies.standards.versions.levels.key_activities.criteria:update`
|
|
3067
|
+
*
|
|
3068
|
+
*/
|
|
3069
|
+
static updateCriterion(options) {
|
|
3070
|
+
return (options.client ?? client).patch({
|
|
3071
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3072
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{level_id}/key_activities/{key_activity_id}/criteria/{id}',
|
|
3073
|
+
...options,
|
|
3074
|
+
headers: {
|
|
3075
|
+
'Content-Type': 'application/json',
|
|
3076
|
+
...options.headers
|
|
3077
|
+
}
|
|
3078
|
+
});
|
|
3079
|
+
}
|
|
3080
|
+
/**
|
|
3081
|
+
* Move competence criterion
|
|
3082
|
+
*
|
|
3083
|
+
* **Required scope:**
|
|
3084
|
+
*
|
|
3085
|
+
* `competencies.standards.versions.levels.key_activities.criteria.moves:create`
|
|
3086
|
+
*
|
|
3087
|
+
*/
|
|
3088
|
+
static moveCompetencyCriterion(options) {
|
|
3089
|
+
return (options.client ?? client).post({
|
|
3090
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3091
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/levels/{level_id}/key_activities/{key_activity_id}/criteria/{criterion_id}/move',
|
|
3092
|
+
...options,
|
|
3093
|
+
headers: {
|
|
3094
|
+
'Content-Type': 'application/json',
|
|
3095
|
+
...options.headers
|
|
3096
|
+
}
|
|
3097
|
+
});
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
2692
3100
|
export class CompetenciesQualifications {
|
|
2693
3101
|
/**
|
|
2694
3102
|
* List competence qualifications
|
|
@@ -2726,6 +3134,244 @@ export class CompetenciesQualifications {
|
|
|
2726
3134
|
});
|
|
2727
3135
|
}
|
|
2728
3136
|
}
|
|
3137
|
+
export class CompetenciesStandards {
|
|
3138
|
+
/**
|
|
3139
|
+
* List competence standards
|
|
3140
|
+
*
|
|
3141
|
+
* Lists competence standards for the key's company, including drafts and
|
|
3142
|
+
* archived standards. current_version_id and draft_version_id point at named
|
|
3143
|
+
* revisions, not a valid-time slice.
|
|
3144
|
+
*
|
|
3145
|
+
*
|
|
3146
|
+
* **Required scope:**
|
|
3147
|
+
*
|
|
3148
|
+
* `competencies.standards:read`
|
|
3149
|
+
*
|
|
3150
|
+
*/
|
|
3151
|
+
static listStandards(options) {
|
|
3152
|
+
return (options?.client ?? client).get({
|
|
3153
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3154
|
+
url: '/api/v1/competencies/standards',
|
|
3155
|
+
...options
|
|
3156
|
+
});
|
|
3157
|
+
}
|
|
3158
|
+
/**
|
|
3159
|
+
* Create competence standard
|
|
3160
|
+
*
|
|
3161
|
+
* Creates a standard and opens revision 1 as a draft. The revision number
|
|
3162
|
+
* is server-assigned.
|
|
3163
|
+
*
|
|
3164
|
+
*
|
|
3165
|
+
* **Required scope:**
|
|
3166
|
+
*
|
|
3167
|
+
* `competencies.standards:create`
|
|
3168
|
+
*
|
|
3169
|
+
*/
|
|
3170
|
+
static createStandard(options) {
|
|
3171
|
+
return (options?.client ?? client).post({
|
|
3172
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3173
|
+
url: '/api/v1/competencies/standards',
|
|
3174
|
+
...options,
|
|
3175
|
+
headers: {
|
|
3176
|
+
'Content-Type': 'application/json',
|
|
3177
|
+
...options?.headers
|
|
3178
|
+
}
|
|
3179
|
+
});
|
|
3180
|
+
}
|
|
3181
|
+
/**
|
|
3182
|
+
* Show competence standard
|
|
3183
|
+
*
|
|
3184
|
+
* **Required scope:**
|
|
3185
|
+
*
|
|
3186
|
+
* `competencies.standards:read`
|
|
3187
|
+
*
|
|
3188
|
+
*/
|
|
3189
|
+
static getStandard(options) {
|
|
3190
|
+
return (options.client ?? client).get({
|
|
3191
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3192
|
+
url: '/api/v1/competencies/standards/{id}',
|
|
3193
|
+
...options
|
|
3194
|
+
});
|
|
3195
|
+
}
|
|
3196
|
+
/**
|
|
3197
|
+
* Update competence standard
|
|
3198
|
+
*
|
|
3199
|
+
* **Required scope:**
|
|
3200
|
+
*
|
|
3201
|
+
* `competencies.standards:update`
|
|
3202
|
+
*
|
|
3203
|
+
*/
|
|
3204
|
+
static updateStandard(options) {
|
|
3205
|
+
return (options.client ?? client).patch({
|
|
3206
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3207
|
+
url: '/api/v1/competencies/standards/{id}',
|
|
3208
|
+
...options,
|
|
3209
|
+
headers: {
|
|
3210
|
+
'Content-Type': 'application/json',
|
|
3211
|
+
...options.headers
|
|
3212
|
+
}
|
|
3213
|
+
});
|
|
3214
|
+
}
|
|
3215
|
+
/**
|
|
3216
|
+
* Unarchive competence standard
|
|
3217
|
+
*
|
|
3218
|
+
* **Required scope:**
|
|
3219
|
+
*
|
|
3220
|
+
* `competencies.standards.archives:delete`
|
|
3221
|
+
*
|
|
3222
|
+
*/
|
|
3223
|
+
static unarchiveCompetencyStandard(options) {
|
|
3224
|
+
return (options.client ?? client).delete({
|
|
3225
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3226
|
+
url: '/api/v1/competencies/standards/{standard_id}/archive',
|
|
3227
|
+
...options
|
|
3228
|
+
});
|
|
3229
|
+
}
|
|
3230
|
+
/**
|
|
3231
|
+
* Archive competence standard
|
|
3232
|
+
*
|
|
3233
|
+
* **Required scope:**
|
|
3234
|
+
*
|
|
3235
|
+
* `competencies.standards.archives:create`
|
|
3236
|
+
*
|
|
3237
|
+
*/
|
|
3238
|
+
static archiveCompetencyStandard(options) {
|
|
3239
|
+
return (options.client ?? client).post({
|
|
3240
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3241
|
+
url: '/api/v1/competencies/standards/{standard_id}/archive',
|
|
3242
|
+
...options,
|
|
3243
|
+
headers: {
|
|
3244
|
+
'Content-Type': 'application/json',
|
|
3245
|
+
...options.headers
|
|
3246
|
+
}
|
|
3247
|
+
});
|
|
3248
|
+
}
|
|
3249
|
+
}
|
|
3250
|
+
export class CompetenciesStandardVersions {
|
|
3251
|
+
/**
|
|
3252
|
+
* List competence standard revisions
|
|
3253
|
+
*
|
|
3254
|
+
* Lists named revisions of one standard, newest revision first. These rows
|
|
3255
|
+
* are Competencies::StandardVersion records. They are not a temporal history,
|
|
3256
|
+
* and this path does not accept as_of.
|
|
3257
|
+
*
|
|
3258
|
+
*
|
|
3259
|
+
* **Required scope:**
|
|
3260
|
+
*
|
|
3261
|
+
* `competencies.standards.versions:read`
|
|
3262
|
+
*
|
|
3263
|
+
*/
|
|
3264
|
+
static listCompetencyStandardVersions(options) {
|
|
3265
|
+
return (options.client ?? client).get({
|
|
3266
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3267
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions',
|
|
3268
|
+
...options
|
|
3269
|
+
});
|
|
3270
|
+
}
|
|
3271
|
+
/**
|
|
3272
|
+
* Cut competence standard revision
|
|
3273
|
+
*
|
|
3274
|
+
* Copies the active revision's level, key-activity, and criterion tree into
|
|
3275
|
+
* the next draft. The controlled PDF is not copied.
|
|
3276
|
+
*
|
|
3277
|
+
*
|
|
3278
|
+
* **Required scope:**
|
|
3279
|
+
*
|
|
3280
|
+
* `competencies.standards.versions:create`
|
|
3281
|
+
*
|
|
3282
|
+
*/
|
|
3283
|
+
static createCompetencyStandardVersion(options) {
|
|
3284
|
+
return (options.client ?? client).post({
|
|
3285
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3286
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions',
|
|
3287
|
+
...options,
|
|
3288
|
+
headers: {
|
|
3289
|
+
'Content-Type': 'application/json',
|
|
3290
|
+
...options.headers
|
|
3291
|
+
}
|
|
3292
|
+
});
|
|
3293
|
+
}
|
|
3294
|
+
/**
|
|
3295
|
+
* Delete competence standard revision
|
|
3296
|
+
*
|
|
3297
|
+
* Deletes a draft revision. Deleting the standard's only revision deletes
|
|
3298
|
+
* the standard. Published revisions are refused.
|
|
3299
|
+
*
|
|
3300
|
+
*
|
|
3301
|
+
* **Required scope:**
|
|
3302
|
+
*
|
|
3303
|
+
* `competencies.standards.versions:delete`
|
|
3304
|
+
*
|
|
3305
|
+
*/
|
|
3306
|
+
static deleteCompetencyStandardVersion(options) {
|
|
3307
|
+
return (options.client ?? client).delete({
|
|
3308
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3309
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{id}',
|
|
3310
|
+
...options
|
|
3311
|
+
});
|
|
3312
|
+
}
|
|
3313
|
+
/**
|
|
3314
|
+
* Show competence standard revision
|
|
3315
|
+
*
|
|
3316
|
+
* **Required scope:**
|
|
3317
|
+
*
|
|
3318
|
+
* `competencies.standards.versions:read`
|
|
3319
|
+
*
|
|
3320
|
+
*/
|
|
3321
|
+
static getCompetencyStandardVersion(options) {
|
|
3322
|
+
return (options.client ?? client).get({
|
|
3323
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3324
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{id}',
|
|
3325
|
+
...options
|
|
3326
|
+
});
|
|
3327
|
+
}
|
|
3328
|
+
/**
|
|
3329
|
+
* Update competence standard revision
|
|
3330
|
+
*
|
|
3331
|
+
* Updates change notes on a draft revision. Published revisions are refused.
|
|
3332
|
+
*
|
|
3333
|
+
* **Required scope:**
|
|
3334
|
+
*
|
|
3335
|
+
* `competencies.standards.versions:update`
|
|
3336
|
+
*
|
|
3337
|
+
*/
|
|
3338
|
+
static updateCompetencyStandardVersion(options) {
|
|
3339
|
+
return (options.client ?? client).patch({
|
|
3340
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3341
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{id}',
|
|
3342
|
+
...options,
|
|
3343
|
+
headers: {
|
|
3344
|
+
'Content-Type': 'application/json',
|
|
3345
|
+
...options.headers
|
|
3346
|
+
}
|
|
3347
|
+
});
|
|
3348
|
+
}
|
|
3349
|
+
/**
|
|
3350
|
+
* Promote competence standard revision
|
|
3351
|
+
*
|
|
3352
|
+
* Publishes a draft revision, stamps the approver, and supersedes the previous active
|
|
3353
|
+
* revision. A user key promotes as its user. A company key names an admin or safety
|
|
3354
|
+
* manager in approved_by_user_id. Promoting the active revision returns it with its
|
|
3355
|
+
* approval unchanged. A superseded revision cannot be promoted.
|
|
3356
|
+
*
|
|
3357
|
+
*
|
|
3358
|
+
* **Required scope:**
|
|
3359
|
+
*
|
|
3360
|
+
* `competencies.standards.versions.promotions:create`
|
|
3361
|
+
*
|
|
3362
|
+
*/
|
|
3363
|
+
static promoteCompetencyStandardVersion(options) {
|
|
3364
|
+
return (options.client ?? client).post({
|
|
3365
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3366
|
+
url: '/api/v1/competencies/standards/{standard_id}/versions/{version_id}/promotion',
|
|
3367
|
+
...options,
|
|
3368
|
+
headers: {
|
|
3369
|
+
'Content-Type': 'application/json',
|
|
3370
|
+
...options.headers
|
|
3371
|
+
}
|
|
3372
|
+
});
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
2729
3375
|
export class ComplianceChecks {
|
|
2730
3376
|
/**
|
|
2731
3377
|
* List compliance checks
|
|
@@ -3927,6 +4573,11 @@ export class JobWageDeterminationRateRules {
|
|
|
3927
4573
|
/**
|
|
3928
4574
|
* List rate rules
|
|
3929
4575
|
*
|
|
4576
|
+
* The determination family remains addressable before its start
|
|
4577
|
+
* and after its end. The rule temporal lens still controls
|
|
4578
|
+
* returned versions.
|
|
4579
|
+
*
|
|
4580
|
+
*
|
|
3930
4581
|
* **Required scope:**
|
|
3931
4582
|
*
|
|
3932
4583
|
* `jobs.pwa.wage_determinations.rate_rules:read`
|
|
@@ -3942,6 +4593,14 @@ export class JobWageDeterminationRateRules {
|
|
|
3942
4593
|
/**
|
|
3943
4594
|
* Create rate rule
|
|
3944
4595
|
*
|
|
4596
|
+
* Requires a user-scoped API key; company keys without a user
|
|
4597
|
+
* receive 403 user_scoped_key_required.
|
|
4598
|
+
*
|
|
4599
|
+
* Unknown fields return 400. Malformed conditions or nonnumeric
|
|
4600
|
+
* cents return 422. Concurrent writes to the determination
|
|
4601
|
+
* family can return retryable 503 without creating a rule or package.
|
|
4602
|
+
*
|
|
4603
|
+
*
|
|
3945
4604
|
* **Required scope:**
|
|
3946
4605
|
*
|
|
3947
4606
|
* `jobs.pwa.wage_determinations.rate_rules:create`
|
|
@@ -3978,6 +4637,9 @@ export class JobWageDeterminations {
|
|
|
3978
4637
|
/**
|
|
3979
4638
|
* Shift job wage determination genesis
|
|
3980
4639
|
*
|
|
4640
|
+
* Requires a user-scoped API key; company keys without a user
|
|
4641
|
+
* receive 403 user_scoped_key_required.
|
|
4642
|
+
*
|
|
3981
4643
|
* Move when a determination's timeline begins. Shifting it earlier extends
|
|
3982
4644
|
* the first version back; shifting it later drops the coverage before it,
|
|
3983
4645
|
* and what that removes stops being readable through `as_of[valid]` and
|
|
@@ -4042,6 +4704,10 @@ export class JobWageDeterminations {
|
|
|
4042
4704
|
/**
|
|
4043
4705
|
* Cancel scheduled changes on job wage determination
|
|
4044
4706
|
*
|
|
4707
|
+
* Requires a user-scoped API key; company keys without a user
|
|
4708
|
+
* receive 403 user_scoped_key_required.
|
|
4709
|
+
*
|
|
4710
|
+
*
|
|
4045
4711
|
* **Required scope:**
|
|
4046
4712
|
*
|
|
4047
4713
|
* `jobs.wage_determinations.scheduled_changes:delete`
|
|
@@ -4072,6 +4738,10 @@ export class JobWageDeterminations {
|
|
|
4072
4738
|
/**
|
|
4073
4739
|
* Schedule effective-dated change on job wage determination
|
|
4074
4740
|
*
|
|
4741
|
+
* Requires a user-scoped API key; company keys without a user
|
|
4742
|
+
* receive 403 user_scoped_key_required.
|
|
4743
|
+
*
|
|
4744
|
+
*
|
|
4075
4745
|
* **Required scope:**
|
|
4076
4746
|
*
|
|
4077
4747
|
* `jobs.wage_determinations.scheduled_changes:create`
|
|
@@ -4151,6 +4821,10 @@ export class JobWageDeterminations {
|
|
|
4151
4821
|
/**
|
|
4152
4822
|
* Create job wage determination
|
|
4153
4823
|
*
|
|
4824
|
+
* Requires a user-scoped API key; company keys without a user
|
|
4825
|
+
* receive 403 user_scoped_key_required.
|
|
4826
|
+
*
|
|
4827
|
+
*
|
|
4154
4828
|
* **Required scope:**
|
|
4155
4829
|
*
|
|
4156
4830
|
* `jobs.wage_determinations:create`
|
|
@@ -4170,6 +4844,10 @@ export class JobWageDeterminations {
|
|
|
4170
4844
|
/**
|
|
4171
4845
|
* Delete job wage determination
|
|
4172
4846
|
*
|
|
4847
|
+
* Requires a user-scoped API key; company keys without a user
|
|
4848
|
+
* receive 403 user_scoped_key_required.
|
|
4849
|
+
*
|
|
4850
|
+
*
|
|
4173
4851
|
* **Required scope:**
|
|
4174
4852
|
*
|
|
4175
4853
|
* `jobs.wage_determinations:delete`
|
|
@@ -4200,6 +4878,9 @@ export class JobWageDeterminations {
|
|
|
4200
4878
|
/**
|
|
4201
4879
|
* Update job wage determination
|
|
4202
4880
|
*
|
|
4881
|
+
* Requires a user-scoped API key; company keys without a user
|
|
4882
|
+
* receive 403 user_scoped_key_required.
|
|
4883
|
+
*
|
|
4203
4884
|
* Edit a determination's values from `effective_from` forward: every version
|
|
4204
4885
|
* starting at or after that instant takes the new values, and earlier
|
|
4205
4886
|
* versions are untouched. Where an edit starts inside a version and changes
|
|
@@ -6874,6 +7555,11 @@ export class ProjectWageDeterminations {
|
|
|
6874
7555
|
* being valid from that point on. Earlier versions are untouched and stay
|
|
6875
7556
|
* readable through `as_of[valid]` and `/history`.
|
|
6876
7557
|
*
|
|
7558
|
+
* Copies on jobs starting on or after the end are removed. A copy still in
|
|
7559
|
+
* use (assigned positions, apprenticeship determinations or referenced
|
|
7560
|
+
* work) refuses the end with a 422 `validation_failed` problem carrying the
|
|
7561
|
+
* copy's own reason, and both timelines stay unchanged.
|
|
7562
|
+
*
|
|
6877
7563
|
* Moving an end is cancel-then-schedule: cancel the standing termination,
|
|
6878
7564
|
* then schedule the one you want.
|
|
6879
7565
|
*
|