@dsptch-work/api-client 0.38.0 → 0.40.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.
@@ -3660,6 +3660,32 @@ export class Forms {
3660
3660
  ...options
3661
3661
  });
3662
3662
  }
3663
+ /**
3664
+ * Create form submission
3665
+ *
3666
+ * Read GET /api/v1/form_definitions/{id} and format json using
3667
+ * its submission_shape. Requires a user-scoped key submitting
3668
+ * as that user. Validates structure and types without running
3669
+ * SurveyJS required-answer rules, visibility, defaults, or expressions.
3670
+ * Returns the same representation as show.
3671
+ *
3672
+ *
3673
+ * **Required scope:**
3674
+ *
3675
+ * `form_submissions:create`
3676
+ *
3677
+ */
3678
+ static createFormSubmission(options) {
3679
+ return (options.client ?? client).post({
3680
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
3681
+ url: '/api/v1/form_submissions',
3682
+ ...options,
3683
+ headers: {
3684
+ 'Content-Type': 'application/json',
3685
+ ...options.headers
3686
+ }
3687
+ });
3688
+ }
3663
3689
  /**
3664
3690
  * Show form submission
3665
3691
  *
@@ -4653,6 +4679,31 @@ export class PwaTrades {
4653
4679
  }
4654
4680
  }
4655
4681
  export class JobWageDeterminationRateRules {
4682
+ /**
4683
+ * Shift job wage determination rule genesis
4684
+ *
4685
+ * Move the valid-time family's lower bound to the required effective_date, a calendar
4686
+ * day in the package timezone. An earlier bound extends its first version; a later
4687
+ * bound can remove earlier versions. The new bound must precede any standing ending.
4688
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
4689
+ *
4690
+ *
4691
+ * **Required scope:**
4692
+ *
4693
+ * `jobs.pwa.wage_determinations.rate_rules.genesis:update`
4694
+ *
4695
+ */
4696
+ static shiftJobWageDeterminationRateRuleGenesis(options) {
4697
+ return (options.client ?? client).patch({
4698
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
4699
+ url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/rate_rules/{rate_rule_id}/genesis',
4700
+ ...options,
4701
+ headers: {
4702
+ 'Content-Type': 'application/json',
4703
+ ...options.headers
4704
+ }
4705
+ });
4706
+ }
4656
4707
  /**
4657
4708
  * List rate rule version history
4658
4709
  *
@@ -4683,6 +4734,118 @@ export class JobWageDeterminationRateRules {
4683
4734
  ...options
4684
4735
  });
4685
4736
  }
4737
+ /**
4738
+ * Cancel job wage determination rule scheduled changes
4739
+ *
4740
+ * Cancel every version after the baseline selected now, preserving and extending
4741
+ * that baseline through the removed coverage. A wholly future family's first version
4742
+ * remains its baseline. Returns nothing_to_cancel when there is no later version.
4743
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
4744
+ *
4745
+ *
4746
+ * **Required scope:**
4747
+ *
4748
+ * `jobs.pwa.wage_determinations.rate_rules.scheduled_changes:delete`
4749
+ *
4750
+ */
4751
+ static cancelJobWageDeterminationRateRuleScheduledChanges(options) {
4752
+ return (options.client ?? client).delete({
4753
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
4754
+ url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/rate_rules/{rate_rule_id}/scheduled_changes',
4755
+ ...options
4756
+ });
4757
+ }
4758
+ /**
4759
+ * List job wage determination rule scheduled changes
4760
+ *
4761
+ * List every version after the baseline selected now, oldest boundary first. This
4762
+ * paginated timeline is the exact cancellation set. A wholly future family's first
4763
+ * version remains its baseline. Entries carry pay_rates_rule_id and empty corrections.
4764
+ * The operation rejects as_of coordinates because it ranges over the valid-time axis.
4765
+ *
4766
+ *
4767
+ * **Required scope:**
4768
+ *
4769
+ * `jobs.pwa.wage_determinations.rate_rules.scheduled_changes:read`
4770
+ *
4771
+ */
4772
+ static listJobWageDeterminationRateRuleScheduledChanges(options) {
4773
+ return (options.client ?? client).get({
4774
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
4775
+ url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/rate_rules/{rate_rule_id}/scheduled_changes',
4776
+ ...options
4777
+ });
4778
+ }
4779
+ /**
4780
+ * Schedule job wage determination rule change
4781
+ *
4782
+ * Apply a recipe from the required effective_date forward, at midnight in the
4783
+ * package timezone. Each omitted recipe half carries from the version containing that
4784
+ * date. Returns 201 for a newly added segment or 200 when editing an existing segment.
4785
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
4786
+ *
4787
+ *
4788
+ * **Required scope:**
4789
+ *
4790
+ * `jobs.pwa.wage_determinations.rate_rules.scheduled_changes:create`
4791
+ *
4792
+ */
4793
+ static scheduleJobWageDeterminationRateRuleChange(options) {
4794
+ return (options.client ?? client).post({
4795
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
4796
+ url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/rate_rules/{rate_rule_id}/scheduled_changes',
4797
+ ...options,
4798
+ headers: {
4799
+ 'Content-Type': 'application/json',
4800
+ ...options.headers
4801
+ }
4802
+ });
4803
+ }
4804
+ /**
4805
+ * Cancel job wage determination rule termination
4806
+ *
4807
+ * Remove the family's standing finite upper bound and restore open-ended coverage.
4808
+ * Returns nothing_to_cancel when the family has no ending.
4809
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
4810
+ *
4811
+ *
4812
+ * **Required scope:**
4813
+ *
4814
+ * `jobs.pwa.wage_determinations.rate_rules.scheduled_terminations:delete`
4815
+ *
4816
+ */
4817
+ static cancelJobWageDeterminationRateRuleScheduledTermination(options) {
4818
+ return (options.client ?? client).delete({
4819
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
4820
+ url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/rate_rules/{rate_rule_id}/scheduled_termination',
4821
+ ...options
4822
+ });
4823
+ }
4824
+ /**
4825
+ * Schedule job wage determination rule termination
4826
+ *
4827
+ * End the family's valid-time coverage at the required effective_date, a calendar
4828
+ * day in the package timezone. The date must follow genesis; an existing ending must
4829
+ * be canceled first. Earlier versions remain in history.
4830
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
4831
+ *
4832
+ *
4833
+ * **Required scope:**
4834
+ *
4835
+ * `jobs.pwa.wage_determinations.rate_rules.scheduled_terminations:create`
4836
+ *
4837
+ */
4838
+ static scheduleJobWageDeterminationRateRuleTermination(options) {
4839
+ return (options.client ?? client).post({
4840
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
4841
+ url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/rate_rules/{rate_rule_id}/scheduled_termination',
4842
+ ...options,
4843
+ headers: {
4844
+ 'Content-Type': 'application/json',
4845
+ ...options.headers
4846
+ }
4847
+ });
4848
+ }
4686
4849
  /**
4687
4850
  * List rate rules
4688
4851
  *
@@ -4706,8 +4869,11 @@ export class JobWageDeterminationRateRules {
4706
4869
  /**
4707
4870
  * Create rate rule
4708
4871
  *
4709
- * Requires a user-scoped API key; company keys without a user
4710
- * receive 403 user_scoped_key_required.
4872
+ * User keys follow the determination's editing permissions;
4873
+ * managers may author its own hidden rate rules. Company keys
4874
+ * act for their company without requiring a human user.
4875
+ * A job determination synced from a project is read-only here;
4876
+ * manage its rules on the source project instead (422).
4711
4877
  *
4712
4878
  * Unknown top-level fields and missing recipe fields return 400.
4713
4879
  * Malformed recipe values or keys and nonnumeric cents return
@@ -4731,6 +4897,27 @@ export class JobWageDeterminationRateRules {
4731
4897
  }
4732
4898
  });
4733
4899
  }
4900
+ /**
4901
+ * Delete job wage determination rate rule family
4902
+ *
4903
+ * Erase the rule's entire valid-time family, including historical and scheduled
4904
+ * versions. Use a scheduled termination to end coverage while preserving history.
4905
+ * This response has no family validator because the family no longer exists.
4906
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
4907
+ *
4908
+ *
4909
+ * **Required scope:**
4910
+ *
4911
+ * `jobs.pwa.wage_determinations.rate_rules:delete`
4912
+ *
4913
+ */
4914
+ static deleteJobWageDeterminationRateRule(options) {
4915
+ return (options.client ?? client).delete({
4916
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
4917
+ url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/rate_rules/{id}',
4918
+ ...options
4919
+ });
4920
+ }
4734
4921
  /**
4735
4922
  * Show rate rule
4736
4923
  *
@@ -4746,6 +4933,31 @@ export class JobWageDeterminationRateRules {
4746
4933
  ...options
4747
4934
  });
4748
4935
  }
4936
+ /**
4937
+ * Update job wage determination rate rule
4938
+ *
4939
+ * Update the recipe from effective_from forward, defaulting to the selected
4940
+ * version's start. Omitted halves carry from the version containing that date.
4941
+ * A beginless version requires effective_from. Dates use the package timezone.
4942
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
4943
+ *
4944
+ *
4945
+ * **Required scope:**
4946
+ *
4947
+ * `jobs.pwa.wage_determinations.rate_rules:update`
4948
+ *
4949
+ */
4950
+ static updateJobWageDeterminationRateRule(options) {
4951
+ return (options.client ?? client).patch({
4952
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
4953
+ url: '/api/v1/jobs/{job_id}/wage_determinations/{wage_determination_id}/rate_rules/{id}',
4954
+ ...options,
4955
+ headers: {
4956
+ 'Content-Type': 'application/json',
4957
+ ...options.headers
4958
+ }
4959
+ });
4960
+ }
4749
4961
  }
4750
4962
  export class JobWageDeterminations {
4751
4963
  /**
@@ -7482,6 +7694,31 @@ export class ProjectDocuments {
7482
7694
  }
7483
7695
  }
7484
7696
  export class ProjectWageDeterminationRateRules {
7697
+ /**
7698
+ * Shift project wage determination rule genesis
7699
+ *
7700
+ * Move the valid-time family's lower bound to the required effective_date, a calendar
7701
+ * day in the package timezone. An earlier bound extends its first version; a later
7702
+ * bound can remove earlier versions. The new bound must precede any standing ending.
7703
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
7704
+ *
7705
+ *
7706
+ * **Required scope:**
7707
+ *
7708
+ * `projects.pwa.wage_determinations.rate_rules.genesis:update`
7709
+ *
7710
+ */
7711
+ static shiftProjectWageDeterminationRateRuleGenesis(options) {
7712
+ return (options.client ?? client).patch({
7713
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
7714
+ url: '/api/v1/projects/{project_id}/wage_determinations/{wage_determination_id}/rate_rules/{rate_rule_id}/genesis',
7715
+ ...options,
7716
+ headers: {
7717
+ 'Content-Type': 'application/json',
7718
+ ...options.headers
7719
+ }
7720
+ });
7721
+ }
7485
7722
  /**
7486
7723
  * List project wage determination rate rule history
7487
7724
  *
@@ -7512,6 +7749,118 @@ export class ProjectWageDeterminationRateRules {
7512
7749
  ...options
7513
7750
  });
7514
7751
  }
7752
+ /**
7753
+ * Cancel project wage determination rule scheduled changes
7754
+ *
7755
+ * Cancel every version after the baseline selected now, preserving and extending
7756
+ * that baseline through the removed coverage. A wholly future family's first version
7757
+ * remains its baseline. Returns nothing_to_cancel when there is no later version.
7758
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
7759
+ *
7760
+ *
7761
+ * **Required scope:**
7762
+ *
7763
+ * `projects.pwa.wage_determinations.rate_rules.scheduled_changes:delete`
7764
+ *
7765
+ */
7766
+ static cancelProjectWageDeterminationRateRuleScheduledChanges(options) {
7767
+ return (options.client ?? client).delete({
7768
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
7769
+ url: '/api/v1/projects/{project_id}/wage_determinations/{wage_determination_id}/rate_rules/{rate_rule_id}/scheduled_changes',
7770
+ ...options
7771
+ });
7772
+ }
7773
+ /**
7774
+ * List project wage determination rule scheduled changes
7775
+ *
7776
+ * List every version after the baseline selected now, oldest boundary first. This
7777
+ * paginated timeline is the exact cancellation set. A wholly future family's first
7778
+ * version remains its baseline. Entries carry pay_rates_rule_id and empty corrections.
7779
+ * The operation rejects as_of coordinates because it ranges over the valid-time axis.
7780
+ *
7781
+ *
7782
+ * **Required scope:**
7783
+ *
7784
+ * `projects.pwa.wage_determinations.rate_rules.scheduled_changes:read`
7785
+ *
7786
+ */
7787
+ static listProjectWageDeterminationRateRuleScheduledChanges(options) {
7788
+ return (options.client ?? client).get({
7789
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
7790
+ url: '/api/v1/projects/{project_id}/wage_determinations/{wage_determination_id}/rate_rules/{rate_rule_id}/scheduled_changes',
7791
+ ...options
7792
+ });
7793
+ }
7794
+ /**
7795
+ * Schedule project wage determination rule change
7796
+ *
7797
+ * Apply a recipe from the required effective_date forward, at midnight in the
7798
+ * package timezone. Each omitted recipe half carries from the version containing that
7799
+ * date. Returns 201 for a newly added segment or 200 when editing an existing segment.
7800
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
7801
+ *
7802
+ *
7803
+ * **Required scope:**
7804
+ *
7805
+ * `projects.pwa.wage_determinations.rate_rules.scheduled_changes:create`
7806
+ *
7807
+ */
7808
+ static scheduleProjectWageDeterminationRateRuleChange(options) {
7809
+ return (options.client ?? client).post({
7810
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
7811
+ url: '/api/v1/projects/{project_id}/wage_determinations/{wage_determination_id}/rate_rules/{rate_rule_id}/scheduled_changes',
7812
+ ...options,
7813
+ headers: {
7814
+ 'Content-Type': 'application/json',
7815
+ ...options.headers
7816
+ }
7817
+ });
7818
+ }
7819
+ /**
7820
+ * Cancel project wage determination rule termination
7821
+ *
7822
+ * Remove the family's standing finite upper bound and restore open-ended coverage.
7823
+ * Returns nothing_to_cancel when the family has no ending.
7824
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
7825
+ *
7826
+ *
7827
+ * **Required scope:**
7828
+ *
7829
+ * `projects.pwa.wage_determinations.rate_rules.scheduled_terminations:delete`
7830
+ *
7831
+ */
7832
+ static cancelProjectWageDeterminationRateRuleScheduledTermination(options) {
7833
+ return (options.client ?? client).delete({
7834
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
7835
+ url: '/api/v1/projects/{project_id}/wage_determinations/{wage_determination_id}/rate_rules/{rate_rule_id}/scheduled_termination',
7836
+ ...options
7837
+ });
7838
+ }
7839
+ /**
7840
+ * Schedule project wage determination rule termination
7841
+ *
7842
+ * End the family's valid-time coverage at the required effective_date, a calendar
7843
+ * day in the package timezone. The date must follow genesis; an existing ending must
7844
+ * be canceled first. Earlier versions remain in history.
7845
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
7846
+ *
7847
+ *
7848
+ * **Required scope:**
7849
+ *
7850
+ * `projects.pwa.wage_determinations.rate_rules.scheduled_terminations:create`
7851
+ *
7852
+ */
7853
+ static scheduleProjectWageDeterminationRateRuleTermination(options) {
7854
+ return (options.client ?? client).post({
7855
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
7856
+ url: '/api/v1/projects/{project_id}/wage_determinations/{wage_determination_id}/rate_rules/{rate_rule_id}/scheduled_termination',
7857
+ ...options,
7858
+ headers: {
7859
+ 'Content-Type': 'application/json',
7860
+ ...options.headers
7861
+ }
7862
+ });
7863
+ }
7515
7864
  /**
7516
7865
  * List project wage determination rate rules
7517
7866
  *
@@ -7530,6 +7879,13 @@ export class ProjectWageDeterminationRateRules {
7530
7879
  /**
7531
7880
  * Create project wage determination rate rule
7532
7881
  *
7882
+ * User keys follow the determination's editing permissions;
7883
+ * managers may author its own hidden rate rules. Company keys
7884
+ * act for their company without requiring a human user.
7885
+ * The first rule creates and attaches a hidden package atomically;
7886
+ * invalid rules leave no package or attachment behind.
7887
+ *
7888
+ *
7533
7889
  * **Required scope:**
7534
7890
  *
7535
7891
  * `projects.pwa.wage_determinations.rate_rules:create`
@@ -7546,6 +7902,27 @@ export class ProjectWageDeterminationRateRules {
7546
7902
  }
7547
7903
  });
7548
7904
  }
7905
+ /**
7906
+ * Delete project wage determination rate rule family
7907
+ *
7908
+ * Erase the rule's entire valid-time family, including historical and scheduled
7909
+ * versions. Use a scheduled termination to end coverage while preserving history.
7910
+ * This response has no family validator because the family no longer exists.
7911
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
7912
+ *
7913
+ *
7914
+ * **Required scope:**
7915
+ *
7916
+ * `projects.pwa.wage_determinations.rate_rules:delete`
7917
+ *
7918
+ */
7919
+ static deleteProjectWageDeterminationRateRule(options) {
7920
+ return (options.client ?? client).delete({
7921
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
7922
+ url: '/api/v1/projects/{project_id}/wage_determinations/{wage_determination_id}/rate_rules/{id}',
7923
+ ...options
7924
+ });
7925
+ }
7549
7926
  /**
7550
7927
  * Show project wage determination rate rule
7551
7928
  *
@@ -7561,6 +7938,31 @@ export class ProjectWageDeterminationRateRules {
7561
7938
  ...options
7562
7939
  });
7563
7940
  }
7941
+ /**
7942
+ * Update project wage determination rate rule
7943
+ *
7944
+ * Update the recipe from effective_from forward, defaulting to the selected
7945
+ * version's start. Omitted halves carry from the version containing that date.
7946
+ * A beginless version requires effective_from. Dates use the package timezone.
7947
+ * Conditional: send the rule family's ETag as If-Match. Changes affect PWA obligations.
7948
+ *
7949
+ *
7950
+ * **Required scope:**
7951
+ *
7952
+ * `projects.pwa.wage_determinations.rate_rules:update`
7953
+ *
7954
+ */
7955
+ static updateProjectWageDeterminationRateRule(options) {
7956
+ return (options.client ?? client).patch({
7957
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
7958
+ url: '/api/v1/projects/{project_id}/wage_determinations/{wage_determination_id}/rate_rules/{id}',
7959
+ ...options,
7960
+ headers: {
7961
+ 'Content-Type': 'application/json',
7962
+ ...options.headers
7963
+ }
7964
+ });
7965
+ }
7564
7966
  }
7565
7967
  export class ProjectSites {
7566
7968
  /**
@@ -8070,12 +8472,14 @@ export class Projects {
8070
8472
  * prevailing-wage lock-in / beginning-of-construction / placed-in-service dates)
8071
8473
  * and `asset_owner` apply only while `federal_pwa_mode` is not `none`, so sending
8072
8474
  * one of them on a project that tracks no federal PWA — even as null — returns
8073
- * 422. `parent_id` may name a project visible to the API key's policy, and
8074
- * `participating_company_ids` is the complete set of participating companies.
8075
- * Remove a participant's jobs before removing it from this set. Returns 201
8076
- * with the project; unknown or inaccessible parent or
8077
- * company IDs return 404, and invalid attributes or relationships return 422.
8078
- * Undeclared body keys return 400 before any project or relationship is saved.
8475
+ * 422. `parent_id` may name a project visible to the API key's policy,
8476
+ * `participating_company_ids` is the complete set of participating companies,
8477
+ * and `manager_user_ids` is the complete set of project managers (each a
8478
+ * manager of the owning company). Remove a participant's jobs before removing
8479
+ * it from this set. Returns 201 with the project; unknown or inaccessible
8480
+ * parent, company, or manager user IDs return 404, and invalid attributes or
8481
+ * relationships return 422. Undeclared body keys return 400 before any project
8482
+ * or relationship is saved.
8079
8483
  *
8080
8484
  *
8081
8485
  * **Required scope:**
@@ -8127,7 +8531,9 @@ export class Projects {
8127
8531
  * returns 422. `budget_currency` defaults to USD when blank. `parent_id` moves
8128
8532
  * or detaches the project; a project whose parent no longer lists its owner
8129
8533
  * still accepts updates that keep that parent. `participating_company_ids`
8130
- * replaces the complete set of participating companies. Remove a participant's
8534
+ * replaces the complete set of participating companies. `manager_user_ids`
8535
+ * replaces the complete set of project managers; omit the key to keep the
8536
+ * stored set, or send an empty array to clear it. Remove a participant's
8131
8537
  * jobs before removing it from this set. Only the owning company may update the
8132
8538
  * project. Undeclared body keys return 400 before any project or relationship changes.
8133
8539
  *
@@ -8149,6 +8555,113 @@ export class Projects {
8149
8555
  });
8150
8556
  }
8151
8557
  }
8558
+ export class PwaCompanyDetails {
8559
+ /**
8560
+ * List PWA company details
8561
+ *
8562
+ * Lists PWA contractor details for the key's company. A company has at most
8563
+ * one row; an empty list means none exists yet, not that the company is
8564
+ * missing. Ordered by `created_at`, `id` and keyset-paginated.
8565
+ *
8566
+ *
8567
+ * **Required scope:**
8568
+ *
8569
+ * `pwa.company_details:read`
8570
+ *
8571
+ */
8572
+ static listCompanyDetails(options) {
8573
+ return (options?.client ?? client).get({
8574
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
8575
+ url: '/api/v1/pwa/company_details',
8576
+ ...options
8577
+ });
8578
+ }
8579
+ /**
8580
+ * Create PWA company details
8581
+ *
8582
+ * Creates PWA contractor details for the key's company. The company is
8583
+ * taken from the API key; `company_id` in the body is refused. A second
8584
+ * create for the same company is `422` `taken`.
8585
+ *
8586
+ *
8587
+ * **Required scope:**
8588
+ *
8589
+ * `pwa.company_details:create`
8590
+ *
8591
+ */
8592
+ static createCompanyDetail(options) {
8593
+ return (options.client ?? client).post({
8594
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
8595
+ url: '/api/v1/pwa/company_details',
8596
+ ...options,
8597
+ headers: {
8598
+ 'Content-Type': 'application/json',
8599
+ ...options.headers
8600
+ }
8601
+ });
8602
+ }
8603
+ /**
8604
+ * Delete PWA company details
8605
+ *
8606
+ * Deletes the PWA contractor-details row. A missing or out-of-scope id
8607
+ * reads as not found. Delete removes the row; it does not archive.
8608
+ *
8609
+ *
8610
+ * **Required scope:**
8611
+ *
8612
+ * `pwa.company_details:delete`
8613
+ *
8614
+ */
8615
+ static deleteCompanyDetail(options) {
8616
+ return (options.client ?? client).delete({
8617
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
8618
+ url: '/api/v1/pwa/company_details/{id}',
8619
+ ...options
8620
+ });
8621
+ }
8622
+ /**
8623
+ * Get PWA company details
8624
+ *
8625
+ * Returns one PWA contractor-details row owned by the key's company. A
8626
+ * missing or out-of-scope id reads as not found.
8627
+ *
8628
+ *
8629
+ * **Required scope:**
8630
+ *
8631
+ * `pwa.company_details:read`
8632
+ *
8633
+ */
8634
+ static getCompanyDetail(options) {
8635
+ return (options.client ?? client).get({
8636
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
8637
+ url: '/api/v1/pwa/company_details/{id}',
8638
+ ...options
8639
+ });
8640
+ }
8641
+ /**
8642
+ * Update PWA company details
8643
+ *
8644
+ * Updates PWA contractor details owned by the key's company. `company_id`
8645
+ * is create-only and refused on PATCH.
8646
+ *
8647
+ *
8648
+ * **Required scope:**
8649
+ *
8650
+ * `pwa.company_details:update`
8651
+ *
8652
+ */
8653
+ static updateCompanyDetail(options) {
8654
+ return (options.client ?? client).patch({
8655
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
8656
+ url: '/api/v1/pwa/company_details/{id}',
8657
+ ...options,
8658
+ headers: {
8659
+ 'Content-Type': 'application/json',
8660
+ ...options.headers
8661
+ }
8662
+ });
8663
+ }
8664
+ }
8152
8665
  export class Users {
8153
8666
  /**
8154
8667
  * Create PWA company user details
@@ -9460,7 +9973,7 @@ export class AttestationConfigs {
9460
9973
  /**
9461
9974
  * Delete attestation config
9462
9975
  *
9463
- * Retires a question on the addressed pay schedule at its current pay period end. Repeated retirement preserves the earliest cutoff. A question from another pay schedule returns 404.
9976
+ * Retires a question on the addressed pay schedule at its current pay period end, or immediately when no pay period is in progress. Repeated retirement preserves the earliest cutoff. A question from another pay schedule returns 404.
9464
9977
  *
9465
9978
  * **Required scope:**
9466
9979
  *