@dsptch-work/api-client 0.36.0 → 0.37.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 +171 -0
- package/dist/gen/index.d.ts +2 -2
- package/dist/gen/index.js +1 -1
- package/dist/gen/sdk.gen.d.ts +107 -22
- package/dist/gen/sdk.gen.js +149 -25
- package/dist/gen/types.gen.d.ts +809 -318
- package/dist/gen/zod.gen.d.ts +1036 -785
- package/dist/gen/zod.gen.js +667 -468
- package/package.json +1 -1
package/dist/gen/sdk.gen.js
CHANGED
|
@@ -1385,6 +1385,10 @@ export class AssetsItems {
|
|
|
1385
1385
|
/**
|
|
1386
1386
|
* Delete document
|
|
1387
1387
|
*
|
|
1388
|
+
* Permanently deletes the document (`destroy!`). Succeeds with 204 and no
|
|
1389
|
+
* body. A document that belongs to another item is 404.
|
|
1390
|
+
*
|
|
1391
|
+
*
|
|
1388
1392
|
* **Required scope:**
|
|
1389
1393
|
*
|
|
1390
1394
|
* `assets.items.documents:delete`
|
|
@@ -2618,39 +2622,39 @@ export class CompetenciesAssessments {
|
|
|
2618
2622
|
});
|
|
2619
2623
|
}
|
|
2620
2624
|
}
|
|
2621
|
-
export class
|
|
2625
|
+
export class CompetenciesAssessmentCriteria {
|
|
2622
2626
|
/**
|
|
2623
|
-
* List assessment
|
|
2627
|
+
* List assessment criteria
|
|
2624
2628
|
*
|
|
2625
|
-
* Lists the
|
|
2629
|
+
* Lists the criterion lines snapshotted onto an assessment. decision and
|
|
2626
2630
|
* qa_feedback are omitted when the caller is the candidate and the
|
|
2627
2631
|
* package is not yet decided.
|
|
2628
2632
|
*
|
|
2629
2633
|
*
|
|
2630
2634
|
* **Required scope:**
|
|
2631
2635
|
*
|
|
2632
|
-
* `competencies.assessments.
|
|
2636
|
+
* `competencies.assessments.criteria:read`
|
|
2633
2637
|
*
|
|
2634
2638
|
*/
|
|
2635
|
-
static
|
|
2639
|
+
static listAssessmentCriteria(options) {
|
|
2636
2640
|
return (options.client ?? client).get({
|
|
2637
2641
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2638
|
-
url: '/api/v1/competencies/assessments/{assessment_id}/
|
|
2642
|
+
url: '/api/v1/competencies/assessments/{assessment_id}/criteria',
|
|
2639
2643
|
...options
|
|
2640
2644
|
});
|
|
2641
2645
|
}
|
|
2642
2646
|
/**
|
|
2643
|
-
* Show assessment
|
|
2647
|
+
* Show assessment criterion
|
|
2644
2648
|
*
|
|
2645
2649
|
* **Required scope:**
|
|
2646
2650
|
*
|
|
2647
|
-
* `competencies.assessments.
|
|
2651
|
+
* `competencies.assessments.criteria:read`
|
|
2648
2652
|
*
|
|
2649
2653
|
*/
|
|
2650
|
-
static
|
|
2654
|
+
static getAssessmentCriterion(options) {
|
|
2651
2655
|
return (options.client ?? client).get({
|
|
2652
2656
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2653
|
-
url: '/api/v1/competencies/assessments/{assessment_id}/
|
|
2657
|
+
url: '/api/v1/competencies/assessments/{assessment_id}/criteria/{id}',
|
|
2654
2658
|
...options
|
|
2655
2659
|
});
|
|
2656
2660
|
}
|
|
@@ -2663,13 +2667,13 @@ export class CompetenciesEvidenceItems {
|
|
|
2663
2667
|
*
|
|
2664
2668
|
* **Required scope:**
|
|
2665
2669
|
*
|
|
2666
|
-
* `competencies.assessments.
|
|
2670
|
+
* `competencies.assessments.criteria.evidence_items:read`
|
|
2667
2671
|
*
|
|
2668
2672
|
*/
|
|
2669
2673
|
static listEvidenceItems(options) {
|
|
2670
2674
|
return (options.client ?? client).get({
|
|
2671
2675
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2672
|
-
url: '/api/v1/competencies/assessments/{assessment_id}/
|
|
2676
|
+
url: '/api/v1/competencies/assessments/{assessment_id}/criteria/{criterion_id}/evidence_items',
|
|
2673
2677
|
...options
|
|
2674
2678
|
});
|
|
2675
2679
|
}
|
|
@@ -2678,13 +2682,13 @@ export class CompetenciesEvidenceItems {
|
|
|
2678
2682
|
*
|
|
2679
2683
|
* **Required scope:**
|
|
2680
2684
|
*
|
|
2681
|
-
* `competencies.assessments.
|
|
2685
|
+
* `competencies.assessments.criteria.evidence_items:read`
|
|
2682
2686
|
*
|
|
2683
2687
|
*/
|
|
2684
2688
|
static getEvidenceItem(options) {
|
|
2685
2689
|
return (options.client ?? client).get({
|
|
2686
2690
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
2687
|
-
url: '/api/v1/competencies/assessments/{assessment_id}/
|
|
2691
|
+
url: '/api/v1/competencies/assessments/{assessment_id}/criteria/{criterion_id}/evidence_items/{id}',
|
|
2688
2692
|
...options
|
|
2689
2693
|
});
|
|
2690
2694
|
}
|
|
@@ -3807,6 +3811,113 @@ export class Groups {
|
|
|
3807
3811
|
}
|
|
3808
3812
|
}
|
|
3809
3813
|
export class Jobs {
|
|
3814
|
+
/**
|
|
3815
|
+
* List documents for job
|
|
3816
|
+
*
|
|
3817
|
+
* Returns documents on the named job, including PWA documentation
|
|
3818
|
+
* the caller may see. `{id}` is the job document. A missing or
|
|
3819
|
+
* out-of-scope job reads as not found. Admin-only documents are
|
|
3820
|
+
* omitted when the key cannot see job financials.
|
|
3821
|
+
*
|
|
3822
|
+
*
|
|
3823
|
+
* **Required scope:**
|
|
3824
|
+
*
|
|
3825
|
+
* `jobs.documents:read`
|
|
3826
|
+
*
|
|
3827
|
+
*/
|
|
3828
|
+
static listJobDocuments(options) {
|
|
3829
|
+
return (options.client ?? client).get({
|
|
3830
|
+
querySerializer: { parameters: { 'filter[type]': { array: { explode: false } } } },
|
|
3831
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3832
|
+
url: '/api/v1/jobs/{job_id}/documents',
|
|
3833
|
+
...options
|
|
3834
|
+
});
|
|
3835
|
+
}
|
|
3836
|
+
/**
|
|
3837
|
+
* Create document for job
|
|
3838
|
+
*
|
|
3839
|
+
* Creates a document on the named job. `job_id` is the path only.
|
|
3840
|
+
* Supply exactly one of `url` or `file`. `PWA_DOCUMENTATION` is
|
|
3841
|
+
* persisted as admin-only.
|
|
3842
|
+
*
|
|
3843
|
+
*
|
|
3844
|
+
* **Required scope:**
|
|
3845
|
+
*
|
|
3846
|
+
* `jobs.documents:create`
|
|
3847
|
+
*
|
|
3848
|
+
*/
|
|
3849
|
+
static createJobDocument(options) {
|
|
3850
|
+
return (options.client ?? client).post({
|
|
3851
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3852
|
+
url: '/api/v1/jobs/{job_id}/documents',
|
|
3853
|
+
...options,
|
|
3854
|
+
headers: {
|
|
3855
|
+
'Content-Type': 'application/json',
|
|
3856
|
+
...options.headers
|
|
3857
|
+
}
|
|
3858
|
+
});
|
|
3859
|
+
}
|
|
3860
|
+
/**
|
|
3861
|
+
* Delete document on job
|
|
3862
|
+
*
|
|
3863
|
+
* Removes the job document. A missing or misnested id reads as
|
|
3864
|
+
* not found.
|
|
3865
|
+
*
|
|
3866
|
+
*
|
|
3867
|
+
* **Required scope:**
|
|
3868
|
+
*
|
|
3869
|
+
* `jobs.documents:delete`
|
|
3870
|
+
*
|
|
3871
|
+
*/
|
|
3872
|
+
static deleteJobDocument(options) {
|
|
3873
|
+
return (options.client ?? client).delete({
|
|
3874
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3875
|
+
url: '/api/v1/jobs/{job_id}/documents/{id}',
|
|
3876
|
+
...options
|
|
3877
|
+
});
|
|
3878
|
+
}
|
|
3879
|
+
/**
|
|
3880
|
+
* Show document on job
|
|
3881
|
+
*
|
|
3882
|
+
* Returns one document on the named job. A missing, misnested, or
|
|
3883
|
+
* unauthorized admin-only id reads as not found.
|
|
3884
|
+
*
|
|
3885
|
+
*
|
|
3886
|
+
* **Required scope:**
|
|
3887
|
+
*
|
|
3888
|
+
* `jobs.documents:read`
|
|
3889
|
+
*
|
|
3890
|
+
*/
|
|
3891
|
+
static getJobDocument(options) {
|
|
3892
|
+
return (options.client ?? client).get({
|
|
3893
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3894
|
+
url: '/api/v1/jobs/{job_id}/documents/{id}',
|
|
3895
|
+
...options
|
|
3896
|
+
});
|
|
3897
|
+
}
|
|
3898
|
+
/**
|
|
3899
|
+
* Update document on job
|
|
3900
|
+
*
|
|
3901
|
+
* Updates a document on the named job. Omit a field to preserve
|
|
3902
|
+
* it. The document must remain exactly one of `url` or `file`.
|
|
3903
|
+
*
|
|
3904
|
+
*
|
|
3905
|
+
* **Required scope:**
|
|
3906
|
+
*
|
|
3907
|
+
* `jobs.documents:update`
|
|
3908
|
+
*
|
|
3909
|
+
*/
|
|
3910
|
+
static updateJobDocument(options) {
|
|
3911
|
+
return (options.client ?? client).patch({
|
|
3912
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
3913
|
+
url: '/api/v1/jobs/{job_id}/documents/{id}',
|
|
3914
|
+
...options,
|
|
3915
|
+
headers: {
|
|
3916
|
+
'Content-Type': 'application/json',
|
|
3917
|
+
...options.headers
|
|
3918
|
+
}
|
|
3919
|
+
});
|
|
3920
|
+
}
|
|
3810
3921
|
/**
|
|
3811
3922
|
* List form assignment tasks for job
|
|
3812
3923
|
*
|
|
@@ -7857,7 +7968,7 @@ export class Projects {
|
|
|
7857
7968
|
* Create a project owned by the API key's company (owned_by_company_id is set
|
|
7858
7969
|
* automatically from the key). Requires `name`, and `created_by_user_id` must
|
|
7859
7970
|
* reference a member of the owning company. `budget_currency` defaults to USD;
|
|
7860
|
-
* the federal-PWA-only fields (administrator name/email/phone,
|
|
7971
|
+
* the federal-PWA-only fields (administrator name/email/phone, `budget_cents`, and the
|
|
7861
7972
|
* prevailing-wage lock-in / beginning-of-construction / placed-in-service dates)
|
|
7862
7973
|
* and `asset_owner` apply only while `federal_pwa_mode` is not `none`, so sending
|
|
7863
7974
|
* one of them on a project that tracks no federal PWA — even as null — returns
|
|
@@ -7911,7 +8022,7 @@ export class Projects {
|
|
|
7911
8022
|
*
|
|
7912
8023
|
* Update a project's attributes. `name` cannot be blanked, and
|
|
7913
8024
|
* `created_by_user_id` is create-only — any update that includes it returns 400,
|
|
7914
|
-
* even when the value is unchanged. Omit it on PATCH. The federal-PWA-only fields (administrator contact,
|
|
8025
|
+
* even when the value is unchanged. Omit it on PATCH. The federal-PWA-only fields (administrator contact, `budget_cents`, IRA
|
|
7915
8026
|
* dates) and `asset_owner` apply only while `federal_pwa_mode` is not `none`:
|
|
7916
8027
|
* switching it to `none` clears the stored values and forces `asset_owner`
|
|
7917
8028
|
* false, and sending one of them while federal tracking is off — even as null —
|
|
@@ -8122,6 +8233,17 @@ export class Users {
|
|
|
8122
8233
|
/**
|
|
8123
8234
|
* Remove employment entirely (retroactive, irreversible)
|
|
8124
8235
|
*
|
|
8236
|
+
* Permanently remove every valid-time version of this person's
|
|
8237
|
+
* employment at the company.
|
|
8238
|
+
*
|
|
8239
|
+
* Conditional: send the employment's `ETag` as `If-Match`. The
|
|
8240
|
+
* person's user record names the employment as `employment_id`; read
|
|
8241
|
+
* its `ETag` from `GET /api/v1/people/employments/{employment_id}/history`,
|
|
8242
|
+
* or from `GET /api/v1/people/employments/{id}` while a version covers now.
|
|
8243
|
+
* A key without the history scope may send `If-Match: *` instead,
|
|
8244
|
+
* which removes whatever state exists.
|
|
8245
|
+
*
|
|
8246
|
+
*
|
|
8125
8247
|
* **Required scope:**
|
|
8126
8248
|
*
|
|
8127
8249
|
* `users.companies:delete`
|
|
@@ -8158,10 +8280,11 @@ export class Users {
|
|
|
8158
8280
|
*
|
|
8159
8281
|
* Workers the credential company sees: people it employs, has
|
|
8160
8282
|
* granted a role, or has invited. Direct monetary employment
|
|
8161
|
-
* fields (`
|
|
8162
|
-
* `
|
|
8163
|
-
* are present for company
|
|
8164
|
-
*
|
|
8283
|
+
* fields (`hourly_rate_cents`, `training_annual_amount_cents`,
|
|
8284
|
+
* `employer_combined_health_amount_cents`,
|
|
8285
|
+
* `employer_combined_savings_cents`) are present for company
|
|
8286
|
+
* keys, company administrators, and the employed person, and
|
|
8287
|
+
* omitted for other user keys.
|
|
8165
8288
|
*
|
|
8166
8289
|
*
|
|
8167
8290
|
* **Required scope:**
|
|
@@ -8199,11 +8322,12 @@ export class Users {
|
|
|
8199
8322
|
/**
|
|
8200
8323
|
* Show user
|
|
8201
8324
|
*
|
|
8202
|
-
* Direct monetary employment fields (`
|
|
8203
|
-
* `
|
|
8204
|
-
* `
|
|
8205
|
-
*
|
|
8206
|
-
*
|
|
8325
|
+
* Direct monetary employment fields (`hourly_rate_cents`,
|
|
8326
|
+
* `training_annual_amount_cents`,
|
|
8327
|
+
* `employer_combined_health_amount_cents`,
|
|
8328
|
+
* `employer_combined_savings_cents`) are present for company
|
|
8329
|
+
* keys, company administrators, and the employed person, and
|
|
8330
|
+
* omitted for other user keys.
|
|
8207
8331
|
*
|
|
8208
8332
|
*
|
|
8209
8333
|
* **Required scope:**
|