@dsptch-work/api-client 0.14.0 → 0.15.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.
@@ -2731,6 +2731,40 @@ export class PwaTrades {
2731
2731
  }
2732
2732
  });
2733
2733
  }
2734
+ /**
2735
+ * Merge Trade
2736
+ *
2737
+ * Folds the craft named in the path into another in the same pool. Every wage
2738
+ * determination grouped under it re-points onto the target, its apprentice-scope
2739
+ * decisions carry over where the target holds none of its own, and the emptied
2740
+ * craft is deleted — all in one transaction.
2741
+ *
2742
+ * Use this rather than `DELETE` when the craft still groups determinations:
2743
+ * deleting one is refused precisely because it would orphan them, and merging
2744
+ * moves them first.
2745
+ *
2746
+ * Nothing about the determinations' rates changes; only which craft they pool
2747
+ * into. The response is the surviving craft. Regrouping re-prices the charged
2748
+ * hours and recomputes federal apprenticeship ratio statuses in the background,
2749
+ * so compliance figures may move after this returns.
2750
+ *
2751
+ *
2752
+ * **Required scope:**
2753
+ *
2754
+ * `pwa.trades.merges:create`
2755
+ *
2756
+ */
2757
+ static createMerge(options) {
2758
+ return (options.client ?? client).post({
2759
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
2760
+ url: '/api/v1/pwa/trades/{trade_id}/merges',
2761
+ ...options,
2762
+ headers: {
2763
+ 'Content-Type': 'application/json',
2764
+ ...options.headers
2765
+ }
2766
+ });
2767
+ }
2734
2768
  /**
2735
2769
  * List trades
2736
2770
  *
@@ -3128,8 +3162,8 @@ export class JobWageDeterminations {
3128
3162
  *
3129
3163
  * `pwa_trade_id` is the exception: a trade regroups the whole determination
3130
3164
  * at once, so it moves every version rather than applying from
3131
- * `effective_from`. A determination synced from a project follows its
3132
- * project wage determination's trade and cannot be re-pointed here.
3165
+ * `effective_from`. A determination cascaded from a project mirrors that
3166
+ * project's determination and cannot be edited here — change it on the project.
3133
3167
  *
3134
3168
  * Conditional: send the determination's `ETag` as `If-Match`.
3135
3169
  *
@@ -3619,6 +3653,108 @@ export class OvertimeRules {
3619
3653
  });
3620
3654
  }
3621
3655
  }
3656
+ export class AggregateTimeImports {
3657
+ /**
3658
+ * List Aggregate Time Imports
3659
+ *
3660
+ * **Required scope:**
3661
+ *
3662
+ * `pay_periods.imports.aggregate_times:read`
3663
+ *
3664
+ */
3665
+ static listAggregateTimeImports(options) {
3666
+ return (options.client ?? client).get({
3667
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
3668
+ url: '/api/v1/pay_periods/{pay_period_id}/imports/aggregate_times',
3669
+ ...options
3670
+ });
3671
+ }
3672
+ /**
3673
+ * Create Aggregate Time Import
3674
+ *
3675
+ * **Required scope:**
3676
+ *
3677
+ * `pay_periods.imports.aggregate_times:create`
3678
+ *
3679
+ */
3680
+ static createAggregateTimeImport(options) {
3681
+ return (options.client ?? client).post({
3682
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
3683
+ url: '/api/v1/pay_periods/{pay_period_id}/imports/aggregate_times',
3684
+ ...options,
3685
+ headers: {
3686
+ 'Content-Type': 'application/json',
3687
+ ...options.headers
3688
+ }
3689
+ });
3690
+ }
3691
+ /**
3692
+ * Get Aggregate Time Import
3693
+ *
3694
+ * **Required scope:**
3695
+ *
3696
+ * `pay_periods.imports.aggregate_times:read`
3697
+ *
3698
+ */
3699
+ static getAggregateTimeImport(options) {
3700
+ return (options.client ?? client).get({
3701
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
3702
+ url: '/api/v1/pay_periods/{pay_period_id}/imports/aggregate_times/{id}',
3703
+ ...options
3704
+ });
3705
+ }
3706
+ }
3707
+ export class CprImports {
3708
+ /**
3709
+ * List CPR Imports
3710
+ *
3711
+ * **Required scope:**
3712
+ *
3713
+ * `pay_periods.imports.dsptch_cprs:read`
3714
+ *
3715
+ */
3716
+ static listDsptchCprImports(options) {
3717
+ return (options.client ?? client).get({
3718
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
3719
+ url: '/api/v1/pay_periods/{pay_period_id}/imports/dsptch_cprs',
3720
+ ...options
3721
+ });
3722
+ }
3723
+ /**
3724
+ * Create CPR Import
3725
+ *
3726
+ * **Required scope:**
3727
+ *
3728
+ * `pay_periods.imports.dsptch_cprs:create`
3729
+ *
3730
+ */
3731
+ static createDsptchCprImport(options) {
3732
+ return (options.client ?? client).post({
3733
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
3734
+ url: '/api/v1/pay_periods/{pay_period_id}/imports/dsptch_cprs',
3735
+ ...options,
3736
+ headers: {
3737
+ 'Content-Type': 'application/json',
3738
+ ...options.headers
3739
+ }
3740
+ });
3741
+ }
3742
+ /**
3743
+ * Get CPR Import
3744
+ *
3745
+ * **Required scope:**
3746
+ *
3747
+ * `pay_periods.imports.dsptch_cprs:read`
3748
+ *
3749
+ */
3750
+ static getDsptchCprImport(options) {
3751
+ return (options.client ?? client).get({
3752
+ security: [{ name: 'X-Api-Key', type: 'apiKey' }],
3753
+ url: '/api/v1/pay_periods/{pay_period_id}/imports/dsptch_cprs/{id}',
3754
+ ...options
3755
+ });
3756
+ }
3757
+ }
3622
3758
  export class TimeEntryImports {
3623
3759
  /**
3624
3760
  * List Time Entry Imports