@rippling/rippling-sdk 0.2.0-alpha.105 → 0.2.0-alpha.106

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.
Files changed (175) hide show
  1. package/client.d.mts +6 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +6 -0
  4. package/client.d.ts.map +1 -1
  5. package/client.js +6 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +6 -0
  8. package/client.mjs.map +1 -1
  9. package/lib/charts/builders.d.mts +43 -0
  10. package/lib/charts/builders.d.mts.map +1 -0
  11. package/lib/charts/builders.d.ts +43 -0
  12. package/lib/charts/builders.d.ts.map +1 -0
  13. package/lib/charts/builders.js +77 -0
  14. package/lib/charts/builders.js.map +1 -0
  15. package/lib/charts/builders.mjs +70 -0
  16. package/lib/charts/builders.mjs.map +1 -0
  17. package/lib/charts/describe.d.mts +12 -0
  18. package/lib/charts/describe.d.mts.map +1 -0
  19. package/lib/charts/describe.d.ts +12 -0
  20. package/lib/charts/describe.d.ts.map +1 -0
  21. package/lib/charts/describe.js +64 -0
  22. package/lib/charts/describe.js.map +1 -0
  23. package/lib/charts/describe.mjs +61 -0
  24. package/lib/charts/describe.mjs.map +1 -0
  25. package/lib/charts/errors.d.mts +35 -0
  26. package/lib/charts/errors.d.mts.map +1 -0
  27. package/lib/charts/errors.d.ts +35 -0
  28. package/lib/charts/errors.d.ts.map +1 -0
  29. package/lib/charts/errors.js +55 -0
  30. package/lib/charts/errors.js.map +1 -0
  31. package/lib/charts/errors.mjs +47 -0
  32. package/lib/charts/errors.mjs.map +1 -0
  33. package/lib/charts/evaluate.d.mts +16 -0
  34. package/lib/charts/evaluate.d.mts.map +1 -0
  35. package/lib/charts/evaluate.d.ts +16 -0
  36. package/lib/charts/evaluate.d.ts.map +1 -0
  37. package/lib/charts/evaluate.js +99 -0
  38. package/lib/charts/evaluate.js.map +1 -0
  39. package/lib/charts/evaluate.mjs +96 -0
  40. package/lib/charts/evaluate.mjs.map +1 -0
  41. package/lib/charts/guards.d.mts +15 -0
  42. package/lib/charts/guards.d.mts.map +1 -0
  43. package/lib/charts/guards.d.ts +15 -0
  44. package/lib/charts/guards.d.ts.map +1 -0
  45. package/lib/charts/guards.js +38 -0
  46. package/lib/charts/guards.js.map +1 -0
  47. package/lib/charts/guards.mjs +34 -0
  48. package/lib/charts/guards.mjs.map +1 -0
  49. package/lib/charts/schema.d.mts +101 -0
  50. package/lib/charts/schema.d.mts.map +1 -0
  51. package/lib/charts/schema.d.ts +101 -0
  52. package/lib/charts/schema.d.ts.map +1 -0
  53. package/lib/charts/schema.js +74 -0
  54. package/lib/charts/schema.js.map +1 -0
  55. package/lib/charts/schema.mjs +71 -0
  56. package/lib/charts/schema.mjs.map +1 -0
  57. package/lib/charts/types.d.mts +79 -0
  58. package/lib/charts/types.d.mts.map +1 -0
  59. package/lib/charts/types.d.ts +79 -0
  60. package/lib/charts/types.d.ts.map +1 -0
  61. package/lib/charts/types.js +25 -0
  62. package/lib/charts/types.js.map +1 -0
  63. package/lib/charts/types.mjs +22 -0
  64. package/lib/charts/types.mjs.map +1 -0
  65. package/lib/charts.d.mts +7 -0
  66. package/lib/charts.d.mts.map +1 -0
  67. package/lib/charts.d.ts +7 -0
  68. package/lib/charts.d.ts.map +1 -0
  69. package/lib/charts.js +32 -0
  70. package/lib/charts.js.map +1 -0
  71. package/lib/charts.mjs +7 -0
  72. package/lib/charts.mjs.map +1 -0
  73. package/package.json +1 -1
  74. package/resources/hire-requirements.d.mts +8 -74
  75. package/resources/hire-requirements.d.mts.map +1 -1
  76. package/resources/hire-requirements.d.ts +8 -74
  77. package/resources/hire-requirements.d.ts.map +1 -1
  78. package/resources/hire-requirements.js +3 -19
  79. package/resources/hire-requirements.js.map +1 -1
  80. package/resources/hire-requirements.mjs +3 -19
  81. package/resources/hire-requirements.mjs.map +1 -1
  82. package/resources/hires.d.mts +677 -142
  83. package/resources/hires.d.mts.map +1 -1
  84. package/resources/hires.d.ts +677 -142
  85. package/resources/hires.d.ts.map +1 -1
  86. package/resources/hires.js +3 -4
  87. package/resources/hires.js.map +1 -1
  88. package/resources/hires.mjs +3 -4
  89. package/resources/hires.mjs.map +1 -1
  90. package/resources/index.d.mts +1 -0
  91. package/resources/index.d.mts.map +1 -1
  92. package/resources/index.d.ts +1 -0
  93. package/resources/index.d.ts.map +1 -1
  94. package/resources/index.js +4 -2
  95. package/resources/index.js.map +1 -1
  96. package/resources/index.mjs +1 -0
  97. package/resources/index.mjs.map +1 -1
  98. package/resources/payroll-payment-mode-changes.d.mts +102 -0
  99. package/resources/payroll-payment-mode-changes.d.mts.map +1 -0
  100. package/resources/payroll-payment-mode-changes.d.ts +102 -0
  101. package/resources/payroll-payment-mode-changes.d.ts.map +1 -0
  102. package/resources/payroll-payment-mode-changes.js +54 -0
  103. package/resources/payroll-payment-mode-changes.js.map +1 -0
  104. package/resources/payroll-payment-mode-changes.mjs +50 -0
  105. package/resources/payroll-payment-mode-changes.mjs.map +1 -0
  106. package/resources/payroll-runs/index.d.mts +1 -0
  107. package/resources/payroll-runs/index.d.mts.map +1 -1
  108. package/resources/payroll-runs/index.d.ts +1 -0
  109. package/resources/payroll-runs/index.d.ts.map +1 -1
  110. package/resources/payroll-runs/index.js +3 -1
  111. package/resources/payroll-runs/index.js.map +1 -1
  112. package/resources/payroll-runs/index.mjs +1 -0
  113. package/resources/payroll-runs/index.mjs.map +1 -1
  114. package/resources/payroll-runs/off-cycle.d.mts +322 -0
  115. package/resources/payroll-runs/off-cycle.d.mts.map +1 -0
  116. package/resources/payroll-runs/off-cycle.d.ts +322 -0
  117. package/resources/payroll-runs/off-cycle.d.ts.map +1 -0
  118. package/resources/payroll-runs/off-cycle.js +112 -0
  119. package/resources/payroll-runs/off-cycle.js.map +1 -0
  120. package/resources/payroll-runs/off-cycle.mjs +108 -0
  121. package/resources/payroll-runs/off-cycle.mjs.map +1 -0
  122. package/resources/payroll-runs/payroll-runs.d.mts +4 -0
  123. package/resources/payroll-runs/payroll-runs.d.mts.map +1 -1
  124. package/resources/payroll-runs/payroll-runs.d.ts +4 -0
  125. package/resources/payroll-runs/payroll-runs.d.ts.map +1 -1
  126. package/resources/payroll-runs/payroll-runs.js +4 -0
  127. package/resources/payroll-runs/payroll-runs.js.map +1 -1
  128. package/resources/payroll-runs/payroll-runs.mjs +4 -0
  129. package/resources/payroll-runs/payroll-runs.mjs.map +1 -1
  130. package/resources/sandboxes.d.mts +17 -11
  131. package/resources/sandboxes.d.mts.map +1 -1
  132. package/resources/sandboxes.d.ts +17 -11
  133. package/resources/sandboxes.d.ts.map +1 -1
  134. package/resources/sandboxes.js +1 -3
  135. package/resources/sandboxes.js.map +1 -1
  136. package/resources/sandboxes.mjs +1 -3
  137. package/resources/sandboxes.mjs.map +1 -1
  138. package/resources/variable-compensation-payout-labels.d.mts +1 -1
  139. package/resources/variable-compensation-payout-labels.d.ts +1 -1
  140. package/resources/variable-compensation-payout-labels.js +1 -1
  141. package/resources/variable-compensation-payout-labels.mjs +1 -1
  142. package/resources/variable-compensation-payout-types.d.mts +1 -1
  143. package/resources/variable-compensation-payout-types.d.ts +1 -1
  144. package/resources/variable-compensation-payout-types.js +1 -1
  145. package/resources/variable-compensation-payout-types.mjs +1 -1
  146. package/resources/variable-compensation-payouts.d.mts +1 -1
  147. package/resources/variable-compensation-payouts.d.ts +1 -1
  148. package/resources/variable-compensation-payouts.js +1 -1
  149. package/resources/variable-compensation-payouts.mjs +1 -1
  150. package/src/client.ts +16 -0
  151. package/src/lib/charts/README.md +114 -0
  152. package/src/lib/charts/builders.ts +90 -0
  153. package/src/lib/charts/describe.ts +67 -0
  154. package/src/lib/charts/errors.ts +48 -0
  155. package/src/lib/charts/evaluate.ts +114 -0
  156. package/src/lib/charts/guards.ts +42 -0
  157. package/src/lib/charts/schema.ts +72 -0
  158. package/src/lib/charts/types.ts +113 -0
  159. package/src/lib/charts.ts +43 -0
  160. package/src/resources/hire-requirements.ts +8 -85
  161. package/src/resources/hires.ts +866 -213
  162. package/src/resources/index.ts +5 -0
  163. package/src/resources/payroll-payment-mode-changes.ts +121 -0
  164. package/src/resources/payroll-runs/index.ts +1 -0
  165. package/src/resources/payroll-runs/off-cycle.ts +372 -0
  166. package/src/resources/payroll-runs/payroll-runs.ts +10 -0
  167. package/src/resources/sandboxes.ts +17 -11
  168. package/src/resources/variable-compensation-payout-labels.ts +1 -1
  169. package/src/resources/variable-compensation-payout-types.ts +1 -1
  170. package/src/resources/variable-compensation-payouts.ts +1 -1
  171. package/src/version.ts +1 -1
  172. package/version.d.mts +1 -1
  173. package/version.d.ts +1 -1
  174. package/version.js +1 -1
  175. package/version.mjs +1 -1
@@ -6,9 +6,9 @@ import { RequestOptions } from "../internal/request-options.mjs";
6
6
  */
7
7
  export declare class Hires extends APIResource {
8
8
  /**
9
- * Create or resume hire records for admin review. Idempotency-Key is required. GET
10
- * /hire-requirements/ is optional discovery. First milestone is US and CA direct
11
- * hire.
9
+ * Create or resume hire records for admin review. Idempotency-Key is required.
10
+ * Direct hire and EOR are supported in AU, CA, CH, CN, DE, ES, FR, GB, HK, IE, IN,
11
+ * NL, NZ, and US. Use POST /draft-hires/ for the legacy draft-hire write path.
12
12
  *
13
13
  * @example HTTP
14
14
  * Representative request and response shapes.
@@ -29,7 +29,6 @@ export declare class Hires extends APIResource {
29
29
  * },
30
30
  * "employment": {
31
31
  * "employment_type_id": "employment_type_id",
32
- * "legal_entity_id": "legal_entity_id",
33
32
  * "start_date": "start_date",
34
33
  * "title": "title"
35
34
  * },
@@ -80,7 +79,8 @@ export interface HireCreateResponse {
80
79
  */
81
80
  ack: boolean;
82
81
  /**
83
- * One result per request hire, in request order.
82
+ * One result per request hire, in request order. HTTP 200 means the envelope was
83
+ * accepted; each item's status is the outcome.
84
84
  */
85
85
  results: Array<HireCreateResponse.Result>;
86
86
  }
@@ -159,13 +159,17 @@ export interface HireCreateParams {
159
159
  'Idempotency-Key': string;
160
160
  }
161
161
  export declare namespace HireCreateParams {
162
+ /**
163
+ * One hire on POST /hires/. Country-specific employment fields come from GET
164
+ * /hire-requirements/.
165
+ */
162
166
  interface Hire {
163
167
  /**
164
- * Compensation intent for the hire.
168
+ * Pay for the hire.
165
169
  */
166
170
  compensation: Hire.Compensation;
167
171
  /**
168
- * Employment information for the hire.
172
+ * The job: title, hours, and country-specific details.
169
173
  */
170
174
  employment: Hire.Employment;
171
175
  /**
@@ -177,29 +181,26 @@ export declare namespace HireCreateParams {
177
181
  */
178
182
  work_location: Hire.WorkLocation;
179
183
  /**
180
- * US additional employment fields such as tips, SOC, and job classification.
181
- */
182
- additional_employment_fields?: Hire.AdditionalEmploymentFields;
183
- /**
184
- * Caller-supplied correlation id echoed in the response.
184
+ * Optional id echoed on that hire's result. Not a hire field.
185
185
  */
186
186
  client_request_id?: string;
187
187
  /**
188
- * CA vacation, probation, and notice terms. Required for CA direct hire.
188
+ * Company-specific hiring fields.
189
189
  */
190
- country_job_fields?: Hire.CountryJobFields;
190
+ custom_fields?: Array<Hire.CustomField>;
191
191
  /**
192
- * Optional hiring custom fields.
192
+ * direct_hire or eor. An omitted value defaults to direct_hire.
193
193
  */
194
- custom_fields?: Array<Hire.CustomField>;
194
+ hire_type?: string;
195
195
  /**
196
- * Optional rehire, headcount, and ATS correlation context.
196
+ * Optional links to an ATS applicant, open seat, prior employee, or hire already
197
+ * in progress.
197
198
  */
198
- hire_context?: Hire.HireContext;
199
+ related_records?: Hire.RelatedRecords;
199
200
  }
200
201
  namespace Hire {
201
202
  /**
202
- * Compensation intent for the hire.
203
+ * Pay for the hire.
203
204
  */
204
205
  interface Compensation {
205
206
  /**
@@ -397,17 +398,13 @@ export declare namespace HireCreateParams {
397
398
  }
398
399
  }
399
400
  /**
400
- * Employment information for the hire.
401
+ * The job: title, hours, and country-specific details.
401
402
  */
402
403
  interface Employment {
403
404
  /**
404
405
  * Employment type id from GET /employment-types/.
405
406
  */
406
407
  employment_type_id: string;
407
- /**
408
- * Legal entity id from GET /legal-entities/. Must be an active entity.
409
- */
410
- legal_entity_id: string;
411
408
  /**
412
409
  * Start date in YYYY-MM-DD format.
413
410
  */
@@ -416,84 +413,701 @@ export declare namespace HireCreateParams {
416
413
  * Job title.
417
414
  */
418
415
  title: string;
416
+ /**
417
+ * Required for FR EOR. Field of work, such as Engineering.
418
+ */
419
+ applicable_fields_of_work?: string;
420
+ /**
421
+ * Required for AU, CA, IN, and GB EOR. True if this person is authorized to work
422
+ * in the country.
423
+ */
424
+ authorized_to_work?: boolean;
425
+ /**
426
+ * Required for ES EOR. Collective agreement area.
427
+ */
428
+ cba_area?: string;
429
+ /**
430
+ * Collective bargaining agreement code.
431
+ */
432
+ cba_code?: string;
433
+ /**
434
+ * Collective bargaining agreement group.
435
+ */
436
+ cba_group?: string;
437
+ /**
438
+ * Collective bargaining agreement level.
439
+ */
440
+ cba_level?: string;
441
+ /**
442
+ * Set to true if this person earns tips.
443
+ */
444
+ collects_tips?: boolean;
445
+ /**
446
+ * Required for EOR outside the US. True if this person is moving from another EOR.
447
+ */
448
+ coming_from_another_eor?: boolean;
449
+ /**
450
+ * Date this person first joined the company, if earlier than start_date.
451
+ */
452
+ company_start_date?: string;
453
+ /**
454
+ * Required for FR EOR. Project description for this hire.
455
+ */
456
+ consultant_project_description?: string;
457
+ /**
458
+ * Ongoing or fixed-term employment contract.
459
+ */
460
+ contract?: Employment.Contract;
461
+ /**
462
+ * Country-specific contract subtype.
463
+ */
464
+ contract_subtype?: string;
465
+ /**
466
+ * Required for CN EOR. City used for social contributions, such as SHANGHAI.
467
+ */
468
+ contributing_city?: string;
469
+ /**
470
+ * Social security contribution group.
471
+ */
472
+ contribution_group?: string;
473
+ /**
474
+ * Required for EOR. Must be true. Confirms the EOR cost-review acknowledgement.
475
+ */
476
+ cost_review_acknowledgement?: boolean;
477
+ /**
478
+ * Country job classification, such as MANAGING_DIRECTOR for Germany.
479
+ */
480
+ country_job_classification?: string;
481
+ /**
482
+ * Set to true when an Australian modern award covers this job.
483
+ */
484
+ covered_by_modern_award?: boolean;
485
+ /**
486
+ * Hours for each weekday. Use null for days off. Keys are monday through sunday.
487
+ */
488
+ custom_working_hours?: Employment.CustomWorkingHours;
489
+ /**
490
+ * France days worked each week, such as 5.
491
+ */
492
+ days_worked_per_week?: number;
493
+ /**
494
+ * France days worked each year. Full-time day tracking is usually 218.
495
+ */
496
+ days_worked_per_year?: number;
419
497
  /**
420
498
  * Department id from GET /departments/.
421
499
  */
422
500
  department_id?: string;
501
+ /**
502
+ * Detailed contract type.
503
+ */
504
+ detailed_contract_type?: string;
423
505
  /**
424
506
  * Job duties.
425
507
  */
426
508
  duties?: string;
427
509
  /**
428
- * Optional job classification for the hire.
510
+ * Employee pension contribution type and value.
511
+ */
512
+ employee_pension_contribution?: Employment.EmployeePensionContribution;
513
+ /**
514
+ * Required for CH EOR. Qualification for this role, such as Engineer.
515
+ */
516
+ employee_qualification?: string;
517
+ /**
518
+ * Employer pension contribution type and value.
519
+ */
520
+ employer_pension_contribution?: Employment.EmployerPensionContribution;
521
+ /**
522
+ * Required for DE and FR EOR. Germany uses AUG. France uses LABOR_PORTAGE.
523
+ */
524
+ employment_model?: string;
525
+ /**
526
+ * Required for EOR. Must be true. Confirms the EOR eligibility acknowledgement.
527
+ */
528
+ eor_eligibility_acknowledgement?: boolean;
529
+ /**
530
+ * Required for HK, CH, and NZ EOR. HK and CH must be false. NZ must be true.
531
+ */
532
+ eor_screenout_answer?: boolean;
533
+ /**
534
+ * Set if this person is an expatriate.
535
+ */
536
+ expat_identifier?: string;
537
+ /**
538
+ * Set to true if this person is on an expatriate assignment.
539
+ */
540
+ expatriate_assignment?: boolean;
541
+ /**
542
+ * Pagos extra. Skip if they are not eligible.
543
+ */
544
+ extra_monthly_payments?: unknown;
545
+ /**
546
+ * Required for FR EOR. True if this hire should be a fixed-term contract.
547
+ */
548
+ fixed_term_contract?: boolean;
549
+ /**
550
+ * Why the contract is fixed-term. Required when contract type is FIXED.
551
+ */
552
+ fixed_term_justification?: string;
553
+ /**
554
+ * Reason for a fixed-term contract. Required when contract type is FIXED.
555
+ */
556
+ fixed_term_reason?: string;
557
+ /**
558
+ * Required for DE EOR. Framework agreement additional benefits.
559
+ */
560
+ framework_additional_benefits?: string;
561
+ /**
562
+ * Required for DE EOR. Framework agreement continued remuneration.
563
+ */
564
+ framework_continued_remuneration?: string;
565
+ /**
566
+ * Required for DE EOR. Framework agreement monthly gross salary.
567
+ */
568
+ framework_monthly_gross_salary?: Employment.FrameworkMonthlyGrossSalary;
569
+ /**
570
+ * Required for DE EOR. Framework agreement other working conditions.
571
+ */
572
+ framework_other_conditions?: string;
573
+ /**
574
+ * Required for DE EOR. Framework agreement overtime pay.
575
+ */
576
+ framework_overtime_pay?: string;
577
+ /**
578
+ * Required for DE EOR. Framework agreement rest periods.
579
+ */
580
+ framework_rest_periods?: string;
581
+ /**
582
+ * Required for DE EOR. Framework agreement shared facilities.
583
+ */
584
+ framework_shared_facilities?: string;
585
+ /**
586
+ * Required for DE EOR. Framework agreement surcharges.
587
+ */
588
+ framework_surcharges?: string;
589
+ /**
590
+ * Required for DE EOR. Framework agreement vacation days.
591
+ */
592
+ framework_vacation_days?: number;
593
+ /**
594
+ * Required for DE EOR. Framework agreement variable compensation.
595
+ */
596
+ framework_variable_compensation?: string;
597
+ /**
598
+ * Required for DE EOR. Framework agreement regular weekly hours.
599
+ */
600
+ framework_weekly_hours?: number;
601
+ /**
602
+ * Required for DE EOR. Framework agreement work wear.
603
+ */
604
+ framework_work_wear?: string;
605
+ /**
606
+ * Required for GB and IE EOR. True if this hire is from a merger or acquisition.
607
+ */
608
+ hired_due_to_merger?: boolean;
609
+ /**
610
+ * Housing allowance amount.
611
+ */
612
+ housing_allowance?: Employment.HousingAllowance;
613
+ /**
614
+ * Required for CN EOR. True if the company works with digital currency.
615
+ */
616
+ involved_in_digital_currency?: boolean;
617
+ /**
618
+ * Set to true if this person is an apprentice.
619
+ */
620
+ is_apprentice?: boolean;
621
+ /**
622
+ * Set to true if this person is a cadre dirigeant.
623
+ */
624
+ is_executive?: boolean;
625
+ /**
626
+ * Set to true if this person works in R&D.
627
+ */
628
+ is_rnd_employee?: boolean;
629
+ /**
630
+ * Set to true when this person is an Australian shift worker.
631
+ */
632
+ is_shift_worker?: boolean;
633
+ /**
634
+ * US EEO-1 job category. Must be a value from GET /hire-requirements/
635
+ * allowed_values for that country.
429
636
  */
430
637
  job_classification?: string;
638
+ /**
639
+ * Set to true when the German job classification is already known.
640
+ */
641
+ job_classification_known?: boolean;
431
642
  /**
432
643
  * Job function id from GET /job-functions/.
433
644
  */
434
- job_family_id?: string;
645
+ job_function_id?: string;
646
+ /**
647
+ * Required for CN EOR when the contributing city is Shanghai or Beijing.
648
+ */
649
+ job_technology_focused?: boolean;
650
+ /**
651
+ * Legal entity id from GET /legal-entities/. Required for direct_hire. Omit for
652
+ * eor.
653
+ */
654
+ legal_entity_id?: string;
435
655
  /**
436
656
  * Level id from GET /levels/.
437
657
  */
438
658
  level_id?: string;
439
659
  /**
440
- * Manager worker id from GET /workers/.
660
+ * Unpaid lunch break length in minutes.
661
+ */
662
+ lunch_break_minutes?: number;
663
+ /**
664
+ * Manager worker id from GET /workers/. Omit or null for no manager.
441
665
  */
442
666
  manager_id?: string;
443
667
  /**
444
- * Overtime classification for US FLSA and CA direct hire. Public values are exempt
445
- * and non-exempt.
668
+ * Required for FR EOR when a minimum contract length applies. Example: MONTHS.
669
+ */
670
+ minimum_contract_length_unit?: string;
671
+ /**
672
+ * Required for FR EOR when a minimum contract length applies.
673
+ */
674
+ minimum_contract_length_value?: number;
675
+ /**
676
+ * Required for FR EOR when a mission applies. Description of the mission or
677
+ * project.
446
678
  */
447
- overtime_exemption?: string;
679
+ mission_description?: string;
680
+ /**
681
+ * Modern award that covers this job, if any.
682
+ */
683
+ modern_award?: string;
684
+ /**
685
+ * Classification under that modern award.
686
+ */
687
+ modern_award_classification?: string;
688
+ /**
689
+ * Sub-level within that modern award classification.
690
+ */
691
+ modern_award_sub_level?: string;
692
+ /**
693
+ * Months of experience at this level before joining.
694
+ */
695
+ months_of_experience_at_level?: number;
696
+ /**
697
+ * Set to true if they work remotely more than two days a week.
698
+ */
699
+ more_than_two_remote_days?: boolean;
700
+ /**
701
+ * Extra employer MPF contribution, if you offer one.
702
+ */
703
+ mpf_voluntary_employer_contribution?: Employment.MpfVoluntaryEmployerContribution;
704
+ /**
705
+ * Required for FR EOR. ISO country code, such as FR.
706
+ */
707
+ nationality?: string;
708
+ /**
709
+ * Required for AU, CA, IN, and GB EOR. True if a non-compete clause applies.
710
+ */
711
+ non_compete?: boolean;
712
+ /**
713
+ * Required for CH EOR. True if this person is not covered by a collective
714
+ * agreement.
715
+ */
716
+ not_cba_employee?: boolean;
717
+ /**
718
+ * Standard notice, or a custom notice period.
719
+ */
720
+ notice?: Employment.Notice;
721
+ /**
722
+ * Spanish occupation code (CNO).
723
+ */
724
+ occupation_code?: string;
725
+ /**
726
+ * EXEMPT or NON_EXEMPT. EXEMPT means the job is not eligible for overtime pay.
727
+ */
728
+ overtime_exemption?: 'EXEMPT' | 'NON_EXEMPT';
729
+ /**
730
+ * Required for NL EOR. True if the company has its own entity in the Netherlands.
731
+ */
732
+ owns_entity_in_country?: boolean;
733
+ /**
734
+ * Required for GB EOR. Company-provided paid sick days.
735
+ */
736
+ paid_sick_days?: number;
737
+ /**
738
+ * France PCS occupation code, such as 100X.
739
+ */
740
+ pcs_code?: string;
741
+ /**
742
+ * Pension scheme name.
743
+ */
744
+ pension_scheme_name?: string;
745
+ /**
746
+ * Standard probation, a shorter period, or no probation.
747
+ */
748
+ probation?: Employment.Probation;
749
+ /**
750
+ * Set to true if prior seniority should count.
751
+ */
752
+ recognize_seniority?: boolean;
753
+ /**
754
+ * Required for remote CH EOR. Currency type and value. Use 0 if none.
755
+ */
756
+ remote_working_allowance?: Employment.RemoteWorkingAllowance;
757
+ /**
758
+ * Rent tax deduction rate, if it applies.
759
+ */
760
+ rent_tax_deduction_rate?: string;
761
+ /**
762
+ * Required for FR EOR. Id of an active file upload owned by this company. Upload
763
+ * with POST /files/ using the documents.read-write scope, PUT the bytes to the
764
+ * returned URL, then POST /files/{id}/confirm-upload/ before sending this id. PDF
765
+ * or Word only. A URL is not accepted.
766
+ */
767
+ resume_file_id?: string;
768
+ /**
769
+ * Required for CH EOR. FIXED_SCHEDULE or ROTATING_SHIFT_SCHEDULE.
770
+ */
771
+ schedule_type?: string;
772
+ /**
773
+ * US occupation code, such as 15-1252.
774
+ */
775
+ soc_code?: string;
776
+ /**
777
+ * Required for FR EOR. True if this is a specific mission completing within 18
778
+ * months.
779
+ */
780
+ specific_mission?: boolean;
781
+ /**
782
+ * Tax bracket.
783
+ */
784
+ tax_bracket?: string;
785
+ /**
786
+ * Tax location.
787
+ */
788
+ tax_location?: string;
789
+ /**
790
+ * Tax status.
791
+ */
792
+ tax_status?: string;
448
793
  /**
449
794
  * Team ids from GET /teams/.
450
795
  */
451
796
  team_ids?: Array<string>;
452
797
  /**
453
- * Expected weekly hours as a decimal string (for example 40 or 37.5). Required
454
- * when Hiring Flow collects exact weekly hours for the country/employment type.
798
+ * Required for CH EOR. Currency type and value for the 13th month bonus.
799
+ */
800
+ thirteenth_month_bonus?: Employment.ThirteenthMonthBonus;
801
+ /**
802
+ * Set to true when Spain requires training for this job.
803
+ */
804
+ training_required?: boolean;
805
+ /**
806
+ * Transportation allowance amount.
807
+ */
808
+ transportation_allowance?: Employment.TransportationAllowance;
809
+ /**
810
+ * Required for NL EOR. True if a collective agreement applies.
811
+ */
812
+ union_activity?: boolean;
813
+ /**
814
+ * Set to true to start tenure on the start date. False keeps a prior tenure date
815
+ * unset.
816
+ */
817
+ use_default_tenure?: boolean;
818
+ /**
819
+ * Statutory vacation, or a custom number of days.
820
+ */
821
+ vacation?: Employment.Vacation;
822
+ /**
823
+ * Vacation entitlement for this job.
824
+ */
825
+ vacation_entitlement?: string;
826
+ /**
827
+ * Required for GB EOR. Vacation days that can roll over.
828
+ */
829
+ vacation_rollover_days?: number;
830
+ /**
831
+ * Required for FR EOR when the hire includes a signing bonus, target bonus, or
832
+ * commission. Same upload sequence as resume_file_id. PDF or Word only. A URL is
833
+ * not accepted.
834
+ */
835
+ variable_compensation_plan_file_id?: string;
836
+ /**
837
+ * Hours this person is expected to work each week, such as 40. Full-time is
838
+ * usually 40.
455
839
  */
456
840
  weekly_hours?: string;
457
841
  /**
458
- * Hiring-owned weekly hours range when a range is collected instead of an exact
459
- * value.
842
+ * Weekly hours range when a range is collected instead of an exact value.
460
843
  */
461
844
  weekly_hours_range?: string;
845
+ /**
846
+ * Work center.
847
+ */
848
+ work_center?: string;
462
849
  /**
463
850
  * Work email for the hire.
464
851
  */
465
852
  work_email?: string;
466
853
  /**
467
- * Optional work pattern template. Use INLINE with working_hours_schedule for a
468
- * custom week.
854
+ * Days worked, such as Monday through Friday.
855
+ */
856
+ working_days?: Array<string>;
857
+ /**
858
+ * Workday end time in HH:MM:SS, such as 17:00:00.
469
859
  */
470
- work_pattern_template?: Employment.WorkPatternTemplate;
860
+ working_hours_end?: string;
471
861
  /**
472
- * Working hours schedule. Required when the hiring flow collects work patterns.
862
+ * Working hours calendar. Omit unless you need day-level hours.
473
863
  */
474
864
  working_hours_schedule?: Employment.WorkingHoursSchedule;
865
+ /**
866
+ * Workday start time in HH:MM:SS, such as 09:00:00.
867
+ */
868
+ working_hours_start?: string;
869
+ /**
870
+ * IANA timezone for the workday, such as Australia/Sydney.
871
+ */
872
+ working_hours_timezone?: string;
873
+ /**
874
+ * Required for CN EOR. STANDARD_WORKING_HOURS or FLEXIBLE_WORKING_HOURS.
875
+ */
876
+ working_hours_type?: string;
877
+ /**
878
+ * Required for DE EOR. True is rejected. A standard hire is false.
879
+ */
880
+ working_in_construction?: boolean;
881
+ /**
882
+ * France working time unit, DAYS or HOURS.
883
+ */
884
+ working_time_tracked_in?: string;
475
885
  }
476
886
  namespace Employment {
477
887
  /**
478
- * Optional work pattern template. Use INLINE with working_hours_schedule for a
479
- * custom week.
888
+ * Ongoing or fixed-term employment contract.
889
+ */
890
+ interface Contract {
891
+ /**
892
+ * Ongoing or fixed-term employment contract: FIXED or INDEFINITE.
893
+ */
894
+ type: string;
895
+ /**
896
+ * Fixed-term duration unit when type is FIXED: DAYS, WEEKS, MONTHS, or YEARS.
897
+ * Required when type is FIXED; omit for INDEFINITE.
898
+ */
899
+ duration_unit?: string;
900
+ /**
901
+ * Fixed-term duration length when type is FIXED. Required when type is FIXED once
902
+ * duration_unit is set; omit for INDEFINITE.
903
+ */
904
+ duration_value?: number;
905
+ }
906
+ /**
907
+ * Hours for each weekday. Use null for days off. Keys are monday through sunday.
908
+ */
909
+ interface CustomWorkingHours {
910
+ /**
911
+ * Hours worked on Friday.
912
+ */
913
+ friday?: string;
914
+ /**
915
+ * Hours worked on Monday.
916
+ */
917
+ monday?: string;
918
+ /**
919
+ * Hours worked on Saturday.
920
+ */
921
+ saturday?: string;
922
+ /**
923
+ * Hours worked on Sunday.
924
+ */
925
+ sunday?: string;
926
+ /**
927
+ * Hours worked on Thursday.
928
+ */
929
+ thursday?: string;
930
+ /**
931
+ * Hours worked on Tuesday.
932
+ */
933
+ tuesday?: string;
934
+ /**
935
+ * Hours worked on Wednesday.
936
+ */
937
+ wednesday?: string;
938
+ }
939
+ /**
940
+ * Employee pension contribution type and value.
941
+ */
942
+ interface EmployeePensionContribution {
943
+ /**
944
+ * Contribution type.
945
+ */
946
+ type?: string;
947
+ /**
948
+ * Contribution value.
949
+ */
950
+ value?: string;
951
+ }
952
+ /**
953
+ * Employer pension contribution type and value.
954
+ */
955
+ interface EmployerPensionContribution {
956
+ /**
957
+ * Contribution type.
958
+ */
959
+ type?: string;
960
+ /**
961
+ * Contribution value.
962
+ */
963
+ value?: string;
964
+ }
965
+ /**
966
+ * Required for DE EOR. Framework agreement monthly gross salary.
967
+ */
968
+ interface FrameworkMonthlyGrossSalary {
969
+ /**
970
+ * The currency type, ex: USD, EUR, etc.
971
+ */
972
+ currency_type?: string;
973
+ /**
974
+ * The decimal amount for the currency.
975
+ */
976
+ value?: number;
977
+ }
978
+ /**
979
+ * Housing allowance amount.
980
+ */
981
+ interface HousingAllowance {
982
+ /**
983
+ * The currency type, ex: USD, EUR, etc.
984
+ */
985
+ currency_type?: string;
986
+ /**
987
+ * The decimal amount for the currency.
988
+ */
989
+ value?: number;
990
+ }
991
+ /**
992
+ * Extra employer MPF contribution, if you offer one.
993
+ */
994
+ interface MpfVoluntaryEmployerContribution {
995
+ /**
996
+ * Fixed contribution amount.
997
+ */
998
+ fixed_amount?: MpfVoluntaryEmployerContribution.FixedAmount;
999
+ /**
1000
+ * Contribution percent.
1001
+ */
1002
+ percent?: string;
1003
+ /**
1004
+ * Contribution type.
1005
+ */
1006
+ type?: string;
1007
+ }
1008
+ namespace MpfVoluntaryEmployerContribution {
1009
+ /**
1010
+ * Fixed contribution amount.
1011
+ */
1012
+ interface FixedAmount {
1013
+ /**
1014
+ * The currency type, ex: USD, EUR, etc.
1015
+ */
1016
+ currency_type?: string;
1017
+ /**
1018
+ * The decimal amount for the currency.
1019
+ */
1020
+ value?: number;
1021
+ }
1022
+ }
1023
+ /**
1024
+ * Standard notice, or a custom notice period.
1025
+ */
1026
+ interface Notice {
1027
+ /**
1028
+ * Standard notice, or a custom notice period.
1029
+ */
1030
+ type: string;
1031
+ /**
1032
+ * Length of the custom notice period.
1033
+ */
1034
+ quantity?: number;
1035
+ /**
1036
+ * Time unit for custom notice, such as WEEKS.
1037
+ */
1038
+ unit?: string;
1039
+ }
1040
+ /**
1041
+ * Standard probation, a shorter period, or no probation.
1042
+ */
1043
+ interface Probation {
1044
+ /**
1045
+ * Standard probation, a shorter period, or no probation.
1046
+ */
1047
+ type: string;
1048
+ /**
1049
+ * Length of a shorter probation.
1050
+ */
1051
+ quantity?: number;
1052
+ /**
1053
+ * Time unit for a shorter probation, such as MONTHS.
1054
+ */
1055
+ unit?: string;
1056
+ }
1057
+ /**
1058
+ * Required for remote CH EOR. Currency type and value. Use 0 if none.
1059
+ */
1060
+ interface RemoteWorkingAllowance {
1061
+ /**
1062
+ * The currency type, ex: USD, EUR, etc.
1063
+ */
1064
+ currency_type?: string;
1065
+ /**
1066
+ * The decimal amount for the currency.
1067
+ */
1068
+ value?: number;
1069
+ }
1070
+ /**
1071
+ * Required for CH EOR. Currency type and value for the 13th month bonus.
480
1072
  */
481
- interface WorkPatternTemplate {
1073
+ interface ThirteenthMonthBonus {
482
1074
  /**
483
- * Work pattern template id, for example US or INLINE.
1075
+ * The currency type, ex: USD, EUR, etc.
484
1076
  */
485
- id: string;
1077
+ currency_type?: string;
486
1078
  /**
487
- * Template client type. GEO_CONFIG, WORK_PATTERN, or INLINE.
1079
+ * The decimal amount for the currency.
488
1080
  */
489
- client_type: string;
1081
+ value?: number;
1082
+ }
1083
+ /**
1084
+ * Transportation allowance amount.
1085
+ */
1086
+ interface TransportationAllowance {
1087
+ /**
1088
+ * The currency type, ex: USD, EUR, etc.
1089
+ */
1090
+ currency_type?: string;
490
1091
  /**
491
- * Optional display name for the template.
1092
+ * The decimal amount for the currency.
492
1093
  */
493
- readable_name?: string;
1094
+ value?: number;
494
1095
  }
495
1096
  /**
496
- * Working hours schedule. Required when the hiring flow collects work patterns.
1097
+ * Statutory vacation, or a custom number of days.
1098
+ */
1099
+ interface Vacation {
1100
+ /**
1101
+ * Statutory vacation, or a custom number of days.
1102
+ */
1103
+ type: string;
1104
+ /**
1105
+ * Vacation days per year. Required when vacation is custom.
1106
+ */
1107
+ days?: number;
1108
+ }
1109
+ /**
1110
+ * Working hours calendar. Omit unless you need day-level hours.
497
1111
  */
498
1112
  interface WorkingHoursSchedule {
499
1113
  /**
@@ -562,11 +1176,12 @@ export declare namespace HireCreateParams {
562
1176
  */
563
1177
  last_name: string;
564
1178
  /**
565
- * Invite email. Required unless invite_phone is provided.
1179
+ * Email used to invite this person. Send an email or a phone number.
566
1180
  */
567
1181
  invite_email?: string;
568
1182
  /**
569
- * Invite phone in E.164. Required unless invite_email is provided.
1183
+ * Mobile number used to invite this person, including country code, such as
1184
+ * +14155550123. Send an email or a phone number.
570
1185
  */
571
1186
  invite_phone?: string;
572
1187
  }
@@ -575,16 +1190,16 @@ export declare namespace HireCreateParams {
575
1190
  */
576
1191
  interface WorkLocation {
577
1192
  /**
578
- * ISO 3166-1 alpha-2 country code. Required for on-site and remote. First
579
- * milestone accepts US and CA.
1193
+ * Country this person works in. Required for office and remote hires.
580
1194
  */
581
1195
  country_code: string;
582
1196
  /**
583
- * When true, location_id is omitted.
1197
+ * Set to true if this person has no office. You still need the country they work
1198
+ * in.
584
1199
  */
585
1200
  is_remote?: boolean;
586
1201
  /**
587
- * Work location id from GET /work-locations/. Required unless is_remote is true.
1202
+ * Office this person will work from. Skip this if they work remotely.
588
1203
  */
589
1204
  location_id?: string;
590
1205
  /**
@@ -592,87 +1207,6 @@ export declare namespace HireCreateParams {
592
1207
  */
593
1208
  state_code?: string;
594
1209
  }
595
- /**
596
- * US additional employment fields such as tips, SOC, and job classification.
597
- */
598
- interface AdditionalEmploymentFields {
599
- /**
600
- * Whether the worker collects tips. US catalog field.
601
- */
602
- does_worker_collect_tips: boolean;
603
- /**
604
- * US EEOC job classification, for example PROFESSIONALS.
605
- */
606
- job_classification: string;
607
- /**
608
- * US SOC occupation code in NN-NNNN form, for example 15-1252.
609
- */
610
- soc_code?: string;
611
- }
612
- /**
613
- * CA vacation, probation, and notice terms. Required for CA direct hire.
614
- */
615
- interface CountryJobFields {
616
- /**
617
- * CA employment contract type and optional fixed-term duration. Not collected for
618
- * US.
619
- */
620
- employment_contract: CountryJobFields.EmploymentContract;
621
- /**
622
- * CA notice type: STANDARD_NOTICE or CUSTOM_NOTICE.
623
- */
624
- notice_type: string;
625
- /**
626
- * CA probation type: STANDARD_PROBATION, SHORTER_PROBATION, or FORGO_PROBATION.
627
- */
628
- probation_type: string;
629
- /**
630
- * CA vacation type: STATUTORY_VACATION or CUSTOM_VACATION.
631
- */
632
- vacation_type: string;
633
- /**
634
- * Required when notice_type is CUSTOM_NOTICE.
635
- */
636
- notice_quantity?: number;
637
- /**
638
- * Required when notice_type is CUSTOM_NOTICE.
639
- */
640
- notice_unit?: string;
641
- /**
642
- * Required when probation_type is SHORTER_PROBATION.
643
- */
644
- probation_quantity?: number;
645
- /**
646
- * Required when probation_type is SHORTER_PROBATION.
647
- */
648
- probation_unit?: string;
649
- /**
650
- * Required when vacation_type is CUSTOM_VACATION.
651
- */
652
- vacation_days?: number;
653
- }
654
- namespace CountryJobFields {
655
- /**
656
- * CA employment contract type and optional fixed-term duration. Not collected for
657
- * US.
658
- */
659
- interface EmploymentContract {
660
- /**
661
- * CA employment contract type: FIXED or INDEFINITE.
662
- */
663
- type: string;
664
- /**
665
- * Fixed-term duration unit when type is FIXED: DAYS, WEEKS, MONTHS, or YEARS.
666
- * Required by Hiring Flow for FIXED contracts; omit for INDEFINITE.
667
- */
668
- duration_unit?: string;
669
- /**
670
- * Fixed-term duration length when type is FIXED. Required by Hiring Flow for FIXED
671
- * contracts once duration_unit is set; omit for INDEFINITE.
672
- */
673
- duration_value?: number;
674
- }
675
- }
676
1210
  interface CustomField {
677
1211
  /**
678
1212
  * Hiring custom field id.
@@ -684,27 +1218,28 @@ export declare namespace HireCreateParams {
684
1218
  value: unknown;
685
1219
  }
686
1220
  /**
687
- * Optional rehire, headcount, and ATS correlation context.
1221
+ * Optional links to an ATS applicant, open seat, prior employee, or hire already
1222
+ * in progress.
688
1223
  */
689
- interface HireContext {
1224
+ interface RelatedRecords {
690
1225
  /**
691
- * Optional ATS applicant id for correlation.
1226
+ * Applicant id from your ATS, if this hire came from recruiting.
692
1227
  */
693
1228
  ats_applicant_id?: string;
694
1229
  /**
695
- * Optional existing in-progress hire role id.
1230
+ * Hire already started in Rippling, if you are continuing it.
696
1231
  */
697
1232
  existing_role_id?: string;
698
1233
  /**
699
- * Optional headcount position id (PID) to hire into.
1234
+ * Open seat this person is filling.
700
1235
  */
701
1236
  headcount_position_id?: string;
702
1237
  /**
703
- * Required with rehire_role_id. REUSE_EMPLOYEE_DETAILS or NEW_EMPLOYEE_DETAILS.
1238
+ * Reuse their existing details, or collect new details. Required when rehiring.
704
1239
  */
705
1240
  rehire_choice?: string;
706
1241
  /**
707
- * Prior terminated role id when initiating a rehire.
1242
+ * Prior employee role to rehire.
708
1243
  */
709
1244
  rehire_role_id?: string;
710
1245
  }