@dsptch-work/api-client 0.2.0 → 0.3.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.
@@ -1615,7 +1615,7 @@ export class AtlasFeatures {
1615
1615
  /**
1616
1616
  * List features
1617
1617
  *
1618
- * For company- and user-authenticated keys, Atlas API access must be enabled for the key's company.
1618
+ * Company- and user-authenticated keys require the paid Atlas entitlement for the key's company.
1619
1619
  *
1620
1620
  * **Required scope:**
1621
1621
  *
@@ -1632,7 +1632,7 @@ export class AtlasFeatures {
1632
1632
  /**
1633
1633
  * Show feature
1634
1634
  *
1635
- * For company- and user-authenticated keys, Atlas API access must be enabled for the key's company.
1635
+ * Company- and user-authenticated keys require the paid Atlas entitlement for the key's company.
1636
1636
  *
1637
1637
  * **Required scope:**
1638
1638
  *
@@ -1651,7 +1651,7 @@ export class AtlasSites {
1651
1651
  /**
1652
1652
  * List sites
1653
1653
  *
1654
- * For company- and user-authenticated keys, Atlas API access must be enabled for the key's company.
1654
+ * Company- and user-authenticated keys require the paid Atlas entitlement for the key's company.
1655
1655
  *
1656
1656
  * **Required scope:**
1657
1657
  *
@@ -1668,7 +1668,7 @@ export class AtlasSites {
1668
1668
  /**
1669
1669
  * Show site
1670
1670
  *
1671
- * For company- and user-authenticated keys, Atlas API access must be enabled for the key's company.
1671
+ * Company- and user-authenticated keys require the paid Atlas entitlement for the key's company.
1672
1672
  *
1673
1673
  * **Required scope:**
1674
1674
  *
@@ -2041,6 +2041,25 @@ export class Companies {
2041
2041
  ...options
2042
2042
  });
2043
2043
  }
2044
+ /**
2045
+ * Update Company
2046
+ *
2047
+ * **Required scope:**
2048
+ *
2049
+ * `companies:update`
2050
+ *
2051
+ */
2052
+ static updateCompanyProfile(options) {
2053
+ return (options.client ?? client).patch({
2054
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
2055
+ url: '/api/v1/companies/{id}',
2056
+ ...options,
2057
+ headers: {
2058
+ 'Content-Type': 'application/json',
2059
+ ...options.headers
2060
+ }
2061
+ });
2062
+ }
2044
2063
  }
2045
2064
  export class ComplianceChecks {
2046
2065
  /**
@@ -2843,6 +2862,38 @@ export class Jobs {
2843
2862
  });
2844
2863
  }
2845
2864
  }
2865
+ export class OversiteSiteCheckIns {
2866
+ /**
2867
+ * List Site Check-ins
2868
+ *
2869
+ * **Required scope:**
2870
+ *
2871
+ * `oversite.sites.check_ins:read`
2872
+ *
2873
+ */
2874
+ static listSiteCheckIns(options) {
2875
+ return (options.client ?? client).get({
2876
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
2877
+ url: '/api/v1/oversite/sites/{site_id}/check_ins',
2878
+ ...options
2879
+ });
2880
+ }
2881
+ /**
2882
+ * Show Site Check-in
2883
+ *
2884
+ * **Required scope:**
2885
+ *
2886
+ * `oversite.sites.check_ins:read`
2887
+ *
2888
+ */
2889
+ static getSiteCheckIn(options) {
2890
+ return (options.client ?? client).get({
2891
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
2892
+ url: '/api/v1/oversite/sites/{site_id}/check_ins/{id}',
2893
+ ...options
2894
+ });
2895
+ }
2896
+ }
2846
2897
  export class PayPeriods {
2847
2898
  /**
2848
2899
  * List pay periods
@@ -2903,8 +2954,11 @@ export class ExternalMaps {
2903
2954
  * each itself a full external map as previously recorded, so a client
2904
2955
  * that wants a field-level diff compares two of them. Pass
2905
2956
  * `as_of[transaction]` to read the timeline as it was recorded at a past
2906
- * moment; `as_of[valid]` is rejected, since pinning a point on the valid
2907
- * axis would collapse the sequence this endpoint returns.
2957
+ * moment nested corrections stop at the same point and each
2958
+ * version reports the `transaction_to` it had then, while
2959
+ * `version_status` stays relative to now; `as_of[valid]` is rejected,
2960
+ * since pinning a point on the valid axis would collapse the sequence
2961
+ * this endpoint returns.
2908
2962
  *
2909
2963
  *
2910
2964
  * **Required scope:**
@@ -3339,7 +3393,7 @@ export class PerDiems {
3339
3393
  *
3340
3394
  * Permanently remove a per diem, for undoing one created in error. The removed
3341
3395
  * rate is returned. A per diem already applied to a time card cannot be removed
3342
- * (`422`); deactivate it instead with `PATCH is_active: false`, which retires it
3396
+ * (`422`); deactivate it instead with `PATCH active: false`, which retires it
3343
3397
  * while time-card history keeps its reference.
3344
3398
  *
3345
3399
  *
@@ -4295,8 +4349,11 @@ export class Timecodes {
4295
4349
  * each itself a full timecode as previously recorded, so a client that
4296
4350
  * wants a field-level diff compares two of them. Pass
4297
4351
  * `as_of[transaction]` to read the timeline as it was recorded at a past
4298
- * moment; `as_of[valid]` is rejected, since pinning a point on the valid
4299
- * axis would collapse the sequence this endpoint returns.
4352
+ * moment nested corrections stop at the same point and each
4353
+ * version reports the `transaction_to` it had then, while
4354
+ * `version_status` stays relative to now; `as_of[valid]` is rejected,
4355
+ * since pinning a point on the valid axis would collapse the sequence
4356
+ * this endpoint returns.
4300
4357
  *
4301
4358
  *
4302
4359
  * **Required scope:**