@vitable-inc/vitable-connect 0.1.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.
- package/CHANGELOG.md +52 -0
- package/LICENSE +201 -0
- package/README.md +400 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +225 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +225 -0
- package/client.d.ts.map +1 -0
- package/client.js +509 -0
- package/client.js.map +1 -0
- package/client.mjs +505 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +60 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +60 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -0
- package/index.js +32 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +168 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/auth.d.mts +92 -0
- package/resources/auth.d.mts.map +1 -0
- package/resources/auth.d.ts +92 -0
- package/resources/auth.d.ts.map +1 -0
- package/resources/auth.js +27 -0
- package/resources/auth.js.map +1 -0
- package/resources/auth.mjs +23 -0
- package/resources/auth.mjs.map +1 -0
- package/resources/benefit-eligibility-policies.d.mts +31 -0
- package/resources/benefit-eligibility-policies.d.mts.map +1 -0
- package/resources/benefit-eligibility-policies.d.ts +31 -0
- package/resources/benefit-eligibility-policies.d.ts.map +1 -0
- package/resources/benefit-eligibility-policies.js +19 -0
- package/resources/benefit-eligibility-policies.js.map +1 -0
- package/resources/benefit-eligibility-policies.mjs +15 -0
- package/resources/benefit-eligibility-policies.mjs.map +1 -0
- package/resources/employees.d.mts +184 -0
- package/resources/employees.d.mts.map +1 -0
- package/resources/employees.d.ts +184 -0
- package/resources/employees.d.ts.map +1 -0
- package/resources/employees.js +24 -0
- package/resources/employees.js.map +1 -0
- package/resources/employees.mjs +20 -0
- package/resources/employees.mjs.map +1 -0
- package/resources/employers.d.mts +412 -0
- package/resources/employers.d.mts.map +1 -0
- package/resources/employers.d.ts +412 -0
- package/resources/employers.d.ts.map +1 -0
- package/resources/employers.js +144 -0
- package/resources/employers.js.map +1 -0
- package/resources/employers.mjs +140 -0
- package/resources/employers.mjs.map +1 -0
- package/resources/enrollments.d.mts +128 -0
- package/resources/enrollments.d.mts.map +1 -0
- package/resources/enrollments.d.ts +128 -0
- package/resources/enrollments.d.ts.map +1 -0
- package/resources/enrollments.js +19 -0
- package/resources/enrollments.js.map +1 -0
- package/resources/enrollments.mjs +15 -0
- package/resources/enrollments.mjs.map +1 -0
- package/resources/index.d.mts +7 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +7 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +17 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +8 -0
- package/resources/index.mjs.map +1 -0
- package/resources/webhook-events.d.mts +132 -0
- package/resources/webhook-events.d.mts.map +1 -0
- package/resources/webhook-events.d.ts +132 -0
- package/resources/webhook-events.d.ts.map +1 -0
- package/resources/webhook-events.js +33 -0
- package/resources/webhook-events.js.map +1 -0
- package/resources/webhook-events.mjs +29 -0
- package/resources/webhook-events.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +893 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +166 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +23 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +9 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/auth.ts +115 -0
- package/src/resources/benefit-eligibility-policies.ts +48 -0
- package/src/resources/employees.ts +247 -0
- package/src/resources/employers.ts +581 -0
- package/src/resources/enrollments.ts +173 -0
- package/src/resources/index.ts +44 -0
- package/src/resources/webhook-events.ts +187 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as EnrollmentsAPI from "./enrollments.mjs";
|
|
3
|
+
import { EnrollmentsPageNumberPage } from "./enrollments.mjs";
|
|
4
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
|
+
import { PageNumberPage, type PageNumberPageParams, PagePromise } from "../core/pagination.mjs";
|
|
6
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
7
|
+
export declare class Employees extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves detailed information for a specific employee by ID. Returns employee
|
|
10
|
+
* details including personal information and employment status.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(employeeID: string, options?: RequestOptions): APIPromise<EmployeeRetrieveResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves a paginated list of benefit enrollments for an employee.
|
|
15
|
+
*/
|
|
16
|
+
listEnrollments(employeeID: string, query?: EmployeeListEnrollmentsParams | null | undefined, options?: RequestOptions): PagePromise<EnrollmentsPageNumberPage, EnrollmentsAPI.Enrollment>;
|
|
17
|
+
}
|
|
18
|
+
export type EmployeesPageNumberPage = PageNumberPage<Employee>;
|
|
19
|
+
export interface Employee {
|
|
20
|
+
/**
|
|
21
|
+
* Unique employee identifier with 'empl\_' prefix
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Timestamp when the employee was created
|
|
26
|
+
*/
|
|
27
|
+
created_at: string;
|
|
28
|
+
/**
|
|
29
|
+
* Date of birth (YYYY-MM-DD)
|
|
30
|
+
*/
|
|
31
|
+
date_of_birth: string;
|
|
32
|
+
/**
|
|
33
|
+
* Email address
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
* Benefit enrollments for this employee
|
|
38
|
+
*/
|
|
39
|
+
enrollments: Array<Employee.Enrollment>;
|
|
40
|
+
/**
|
|
41
|
+
* Employee's legal first name
|
|
42
|
+
*/
|
|
43
|
+
first_name: string;
|
|
44
|
+
/**
|
|
45
|
+
* Employee's legal last name
|
|
46
|
+
*/
|
|
47
|
+
last_name: string;
|
|
48
|
+
/**
|
|
49
|
+
* Unique member identifier with 'mbr\_' prefix
|
|
50
|
+
*/
|
|
51
|
+
member_id: string;
|
|
52
|
+
/**
|
|
53
|
+
* Employee status (active or terminated)
|
|
54
|
+
*/
|
|
55
|
+
status: string;
|
|
56
|
+
/**
|
|
57
|
+
* Timestamp when the employee was last updated
|
|
58
|
+
*/
|
|
59
|
+
updated_at: string;
|
|
60
|
+
/**
|
|
61
|
+
* Employee's residential address
|
|
62
|
+
*/
|
|
63
|
+
address?: Employee.Address | null;
|
|
64
|
+
/**
|
|
65
|
+
* - `Full Time` - Full Time
|
|
66
|
+
* - `Part Time` - Part Time
|
|
67
|
+
* - `Temporary` - Temporary
|
|
68
|
+
* - `Intern` - Intern
|
|
69
|
+
* - `Seasonal` - Seasonal
|
|
70
|
+
* - `Individual Contractor` - Individual Contractor
|
|
71
|
+
*/
|
|
72
|
+
employee_class?: EmployeeClass | null;
|
|
73
|
+
/**
|
|
74
|
+
* Gender identity, if provided
|
|
75
|
+
*/
|
|
76
|
+
gender?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* Employee's hire date with the employer
|
|
79
|
+
*/
|
|
80
|
+
hire_date?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* Phone number (10-digit US domestic string)
|
|
83
|
+
*/
|
|
84
|
+
phone?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Partner-assigned reference ID for the employee
|
|
87
|
+
*/
|
|
88
|
+
reference_id?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* Name suffix (e.g., Jr., Sr., III)
|
|
91
|
+
*/
|
|
92
|
+
suffix?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* Employee's termination date, if terminated
|
|
95
|
+
*/
|
|
96
|
+
termination_date?: string | null;
|
|
97
|
+
}
|
|
98
|
+
export declare namespace Employee {
|
|
99
|
+
interface Enrollment {
|
|
100
|
+
/**
|
|
101
|
+
* Unique enrollment identifier with 'enrl\_' prefix
|
|
102
|
+
*/
|
|
103
|
+
id: string;
|
|
104
|
+
/**
|
|
105
|
+
* - `pending` - Pending
|
|
106
|
+
* - `enrolled` - Enrolled
|
|
107
|
+
* - `waived` - Waived
|
|
108
|
+
* - `inactive` - Inactive
|
|
109
|
+
*/
|
|
110
|
+
status: EnrollmentsAPI.EnrollmentStatus;
|
|
111
|
+
/**
|
|
112
|
+
* Timestamp when the enrollment decision was made
|
|
113
|
+
*/
|
|
114
|
+
answered_at?: string | null;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Employee's residential address
|
|
118
|
+
*/
|
|
119
|
+
interface Address {
|
|
120
|
+
/**
|
|
121
|
+
* Primary street address
|
|
122
|
+
*/
|
|
123
|
+
address_line_1: string;
|
|
124
|
+
/**
|
|
125
|
+
* City name
|
|
126
|
+
*/
|
|
127
|
+
city: string;
|
|
128
|
+
/**
|
|
129
|
+
* Two-letter state code (e.g., CA, NY)
|
|
130
|
+
*/
|
|
131
|
+
state: string;
|
|
132
|
+
/**
|
|
133
|
+
* ZIP code (5 or 9 digit)
|
|
134
|
+
*/
|
|
135
|
+
zipcode: string;
|
|
136
|
+
/**
|
|
137
|
+
* Secondary street address (apt, suite, etc.)
|
|
138
|
+
*/
|
|
139
|
+
address_line_2?: string | null;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* - `Full Time` - Full Time
|
|
144
|
+
* - `Part Time` - Part Time
|
|
145
|
+
* - `Temporary` - Temporary
|
|
146
|
+
* - `Intern` - Intern
|
|
147
|
+
* - `Seasonal` - Seasonal
|
|
148
|
+
* - `Individual Contractor` - Individual Contractor
|
|
149
|
+
*/
|
|
150
|
+
export type EmployeeClass = 'Full Time' | 'Part Time' | 'Temporary' | 'Intern' | 'Seasonal' | 'Individual Contractor';
|
|
151
|
+
/**
|
|
152
|
+
* Pagination metadata for list responses.
|
|
153
|
+
*/
|
|
154
|
+
export interface Pagination {
|
|
155
|
+
/**
|
|
156
|
+
* Items per page
|
|
157
|
+
*/
|
|
158
|
+
limit: number;
|
|
159
|
+
/**
|
|
160
|
+
* Current page number
|
|
161
|
+
*/
|
|
162
|
+
page: number;
|
|
163
|
+
/**
|
|
164
|
+
* Total number of items
|
|
165
|
+
*/
|
|
166
|
+
total: number;
|
|
167
|
+
/**
|
|
168
|
+
* Total number of pages
|
|
169
|
+
*/
|
|
170
|
+
total_pages: number;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Response containing a single employee resource.
|
|
174
|
+
*/
|
|
175
|
+
export interface EmployeeRetrieveResponse {
|
|
176
|
+
data: Employee;
|
|
177
|
+
}
|
|
178
|
+
export interface EmployeeListEnrollmentsParams extends PageNumberPageParams {
|
|
179
|
+
}
|
|
180
|
+
export declare namespace Employees {
|
|
181
|
+
export { type Employee as Employee, type EmployeeClass as EmployeeClass, type Pagination as Pagination, type EmployeeRetrieveResponse as EmployeeRetrieveResponse, type EmployeeListEnrollmentsParams as EmployeeListEnrollmentsParams, };
|
|
182
|
+
}
|
|
183
|
+
export { type EnrollmentsPageNumberPage };
|
|
184
|
+
//# sourceMappingURL=employees.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employees.d.mts","sourceRoot":"","sources":["../src/resources/employees.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as EnrollmentsAPI from "./enrollments.js";
|
|
3
|
+
import { EnrollmentsPageNumberPage } from "./enrollments.js";
|
|
4
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
5
|
+
import { PageNumberPage, type PageNumberPageParams, PagePromise } from "../core/pagination.js";
|
|
6
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
7
|
+
export declare class Employees extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves detailed information for a specific employee by ID. Returns employee
|
|
10
|
+
* details including personal information and employment status.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(employeeID: string, options?: RequestOptions): APIPromise<EmployeeRetrieveResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves a paginated list of benefit enrollments for an employee.
|
|
15
|
+
*/
|
|
16
|
+
listEnrollments(employeeID: string, query?: EmployeeListEnrollmentsParams | null | undefined, options?: RequestOptions): PagePromise<EnrollmentsPageNumberPage, EnrollmentsAPI.Enrollment>;
|
|
17
|
+
}
|
|
18
|
+
export type EmployeesPageNumberPage = PageNumberPage<Employee>;
|
|
19
|
+
export interface Employee {
|
|
20
|
+
/**
|
|
21
|
+
* Unique employee identifier with 'empl\_' prefix
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Timestamp when the employee was created
|
|
26
|
+
*/
|
|
27
|
+
created_at: string;
|
|
28
|
+
/**
|
|
29
|
+
* Date of birth (YYYY-MM-DD)
|
|
30
|
+
*/
|
|
31
|
+
date_of_birth: string;
|
|
32
|
+
/**
|
|
33
|
+
* Email address
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
* Benefit enrollments for this employee
|
|
38
|
+
*/
|
|
39
|
+
enrollments: Array<Employee.Enrollment>;
|
|
40
|
+
/**
|
|
41
|
+
* Employee's legal first name
|
|
42
|
+
*/
|
|
43
|
+
first_name: string;
|
|
44
|
+
/**
|
|
45
|
+
* Employee's legal last name
|
|
46
|
+
*/
|
|
47
|
+
last_name: string;
|
|
48
|
+
/**
|
|
49
|
+
* Unique member identifier with 'mbr\_' prefix
|
|
50
|
+
*/
|
|
51
|
+
member_id: string;
|
|
52
|
+
/**
|
|
53
|
+
* Employee status (active or terminated)
|
|
54
|
+
*/
|
|
55
|
+
status: string;
|
|
56
|
+
/**
|
|
57
|
+
* Timestamp when the employee was last updated
|
|
58
|
+
*/
|
|
59
|
+
updated_at: string;
|
|
60
|
+
/**
|
|
61
|
+
* Employee's residential address
|
|
62
|
+
*/
|
|
63
|
+
address?: Employee.Address | null;
|
|
64
|
+
/**
|
|
65
|
+
* - `Full Time` - Full Time
|
|
66
|
+
* - `Part Time` - Part Time
|
|
67
|
+
* - `Temporary` - Temporary
|
|
68
|
+
* - `Intern` - Intern
|
|
69
|
+
* - `Seasonal` - Seasonal
|
|
70
|
+
* - `Individual Contractor` - Individual Contractor
|
|
71
|
+
*/
|
|
72
|
+
employee_class?: EmployeeClass | null;
|
|
73
|
+
/**
|
|
74
|
+
* Gender identity, if provided
|
|
75
|
+
*/
|
|
76
|
+
gender?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* Employee's hire date with the employer
|
|
79
|
+
*/
|
|
80
|
+
hire_date?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* Phone number (10-digit US domestic string)
|
|
83
|
+
*/
|
|
84
|
+
phone?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Partner-assigned reference ID for the employee
|
|
87
|
+
*/
|
|
88
|
+
reference_id?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* Name suffix (e.g., Jr., Sr., III)
|
|
91
|
+
*/
|
|
92
|
+
suffix?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* Employee's termination date, if terminated
|
|
95
|
+
*/
|
|
96
|
+
termination_date?: string | null;
|
|
97
|
+
}
|
|
98
|
+
export declare namespace Employee {
|
|
99
|
+
interface Enrollment {
|
|
100
|
+
/**
|
|
101
|
+
* Unique enrollment identifier with 'enrl\_' prefix
|
|
102
|
+
*/
|
|
103
|
+
id: string;
|
|
104
|
+
/**
|
|
105
|
+
* - `pending` - Pending
|
|
106
|
+
* - `enrolled` - Enrolled
|
|
107
|
+
* - `waived` - Waived
|
|
108
|
+
* - `inactive` - Inactive
|
|
109
|
+
*/
|
|
110
|
+
status: EnrollmentsAPI.EnrollmentStatus;
|
|
111
|
+
/**
|
|
112
|
+
* Timestamp when the enrollment decision was made
|
|
113
|
+
*/
|
|
114
|
+
answered_at?: string | null;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Employee's residential address
|
|
118
|
+
*/
|
|
119
|
+
interface Address {
|
|
120
|
+
/**
|
|
121
|
+
* Primary street address
|
|
122
|
+
*/
|
|
123
|
+
address_line_1: string;
|
|
124
|
+
/**
|
|
125
|
+
* City name
|
|
126
|
+
*/
|
|
127
|
+
city: string;
|
|
128
|
+
/**
|
|
129
|
+
* Two-letter state code (e.g., CA, NY)
|
|
130
|
+
*/
|
|
131
|
+
state: string;
|
|
132
|
+
/**
|
|
133
|
+
* ZIP code (5 or 9 digit)
|
|
134
|
+
*/
|
|
135
|
+
zipcode: string;
|
|
136
|
+
/**
|
|
137
|
+
* Secondary street address (apt, suite, etc.)
|
|
138
|
+
*/
|
|
139
|
+
address_line_2?: string | null;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* - `Full Time` - Full Time
|
|
144
|
+
* - `Part Time` - Part Time
|
|
145
|
+
* - `Temporary` - Temporary
|
|
146
|
+
* - `Intern` - Intern
|
|
147
|
+
* - `Seasonal` - Seasonal
|
|
148
|
+
* - `Individual Contractor` - Individual Contractor
|
|
149
|
+
*/
|
|
150
|
+
export type EmployeeClass = 'Full Time' | 'Part Time' | 'Temporary' | 'Intern' | 'Seasonal' | 'Individual Contractor';
|
|
151
|
+
/**
|
|
152
|
+
* Pagination metadata for list responses.
|
|
153
|
+
*/
|
|
154
|
+
export interface Pagination {
|
|
155
|
+
/**
|
|
156
|
+
* Items per page
|
|
157
|
+
*/
|
|
158
|
+
limit: number;
|
|
159
|
+
/**
|
|
160
|
+
* Current page number
|
|
161
|
+
*/
|
|
162
|
+
page: number;
|
|
163
|
+
/**
|
|
164
|
+
* Total number of items
|
|
165
|
+
*/
|
|
166
|
+
total: number;
|
|
167
|
+
/**
|
|
168
|
+
* Total number of pages
|
|
169
|
+
*/
|
|
170
|
+
total_pages: number;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Response containing a single employee resource.
|
|
174
|
+
*/
|
|
175
|
+
export interface EmployeeRetrieveResponse {
|
|
176
|
+
data: Employee;
|
|
177
|
+
}
|
|
178
|
+
export interface EmployeeListEnrollmentsParams extends PageNumberPageParams {
|
|
179
|
+
}
|
|
180
|
+
export declare namespace Employees {
|
|
181
|
+
export { type Employee as Employee, type EmployeeClass as EmployeeClass, type Pagination as Pagination, type EmployeeRetrieveResponse as EmployeeRetrieveResponse, type EmployeeListEnrollmentsParams as EmployeeListEnrollmentsParams, };
|
|
182
|
+
}
|
|
183
|
+
export { type EnrollmentsPageNumberPage };
|
|
184
|
+
//# sourceMappingURL=employees.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employees.d.ts","sourceRoot":"","sources":["../src/resources/employees.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Employees = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
class Employees extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves detailed information for a specific employee by ID. Returns employee
|
|
11
|
+
* details including personal information and employment status.
|
|
12
|
+
*/
|
|
13
|
+
retrieve(employeeID, options) {
|
|
14
|
+
return this._client.get((0, path_1.path) `/v1/employees/${employeeID}`, options);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves a paginated list of benefit enrollments for an employee.
|
|
18
|
+
*/
|
|
19
|
+
listEnrollments(employeeID, query = {}, options) {
|
|
20
|
+
return this._client.getAPIList((0, path_1.path) `/v1/employees/${employeeID}/enrollments`, (pagination_1.PageNumberPage), { query, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.Employees = Employees;
|
|
24
|
+
//# sourceMappingURL=employees.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employees.js","sourceRoot":"","sources":["../src/resources/employees.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAA4F;AAE5F,oDAA8C;AAE9C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;OAGG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,eAAe,CACb,UAAkB,EAClB,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,iBAAiB,UAAU,cAAc,EAC7C,CAAA,2BAAyC,CAAA,EACzC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAvBD,8BAuBC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { PageNumberPage } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
export class Employees extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves detailed information for a specific employee by ID. Returns employee
|
|
8
|
+
* details including personal information and employment status.
|
|
9
|
+
*/
|
|
10
|
+
retrieve(employeeID, options) {
|
|
11
|
+
return this._client.get(path `/v1/employees/${employeeID}`, options);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves a paginated list of benefit enrollments for an employee.
|
|
15
|
+
*/
|
|
16
|
+
listEnrollments(employeeID, query = {}, options) {
|
|
17
|
+
return this._client.getAPIList(path `/v1/employees/${employeeID}/enrollments`, (PageNumberPage), { query, ...options });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=employees.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employees.mjs","sourceRoot":"","sources":["../src/resources/employees.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,cAAc,EAA0C;OAE1D,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,eAAe,CACb,UAAkB,EAClB,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,iBAAiB,UAAU,cAAc,EAC7C,CAAA,cAAyC,CAAA,EACzC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
|