@rippling/rippling-sdk 0.2.0-alpha.77 → 0.2.0-alpha.78

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.
@@ -0,0 +1,88 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+
7
+ /**
8
+ * Leave program evaluations produced by the leave rules engine
9
+ */
10
+ export class LeaveProgramEvaluations extends APIResource {
11
+ /**
12
+ * Evaluate leave programs for an employee leave request.
13
+ */
14
+ create(
15
+ body: LeaveProgramEvaluationCreateParams,
16
+ options?: RequestOptions,
17
+ ): APIPromise<LeaveProgramEvaluationCreateResponse> {
18
+ return this._client.post('/leave-program-evaluations/', { body, ...options });
19
+ }
20
+ }
21
+
22
+ export interface LeaveProgramEvaluationCreateResponse {
23
+ /**
24
+ * Combined leave plan derived from all non-ineligible program results.
25
+ */
26
+ leave_plan: unknown;
27
+
28
+ /**
29
+ * Distinct evidence gaps reported by evaluated eligibility rules.
30
+ */
31
+ missing_evidence: Array<string>;
32
+
33
+ /**
34
+ * Per-program rule outputs in evaluation order.
35
+ */
36
+ program_results: Array<unknown>;
37
+ }
38
+
39
+ export interface LeaveProgramEvaluationCreateParams {
40
+ /**
41
+ * Requested leave start date.
42
+ */
43
+ claim_start_date: string;
44
+
45
+ /**
46
+ * Normalized leave reason to evaluate against statutory and custom leave programs.
47
+ */
48
+ leave_reason:
49
+ | 'BONDING'
50
+ | 'PREGNANCY_DISABILITY'
51
+ | 'PREGNANCY_ACCOMMODATION'
52
+ | 'MEDICAL'
53
+ | 'VACATION'
54
+ | 'OTHER';
55
+
56
+ /**
57
+ * Role ID for the employee whose leave request should be evaluated.
58
+ */
59
+ role_id: string;
60
+
61
+ /**
62
+ * Optional date the child entered the family for bonding leave programs.
63
+ */
64
+ child_entered_family_date?: string;
65
+
66
+ /**
67
+ * Optional parental leave relationship type for parental leave programs.
68
+ */
69
+ parental_leave_type?:
70
+ | 'birthing_parent'
71
+ | 'non_birthing_parent'
72
+ | 'adoption_parent'
73
+ | 'supporting_person'
74
+ | 'foster_parent';
75
+
76
+ /**
77
+ * Optional leave program codes to evaluate. When omitted, every registered leave
78
+ * program runs in dependency order.
79
+ */
80
+ program_codes?: Array<string>;
81
+ }
82
+
83
+ export declare namespace LeaveProgramEvaluations {
84
+ export {
85
+ type LeaveProgramEvaluationCreateResponse as LeaveProgramEvaluationCreateResponse,
86
+ type LeaveProgramEvaluationCreateParams as LeaveProgramEvaluationCreateParams,
87
+ };
88
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.0-alpha.77'; // x-release-please-version
1
+ export const VERSION = '0.2.0-alpha.78'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0-alpha.77";
1
+ export declare const VERSION = "0.2.0-alpha.78";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0-alpha.77";
1
+ export declare const VERSION = "0.2.0-alpha.78";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.2.0-alpha.77'; // x-release-please-version
4
+ exports.VERSION = '0.2.0-alpha.78'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.2.0-alpha.77'; // x-release-please-version
1
+ export const VERSION = '0.2.0-alpha.78'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map