@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
package/package.json
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vitable-inc/vitable-connect",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "The official TypeScript library for the Vitable Connect API",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"vitable-health"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://github.com/Vitable-Inc/vitable-connect-typescript#readme",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/Vitable-Inc/vitable-connect-typescript/issues"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/Vitable-Inc/vitable-connect-typescript.git"
|
|
16
|
+
},
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"author": "Vitable Connect <dev@vitablehealth.com>",
|
|
19
|
+
"type": "commonjs",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"require": {
|
|
23
|
+
"types": "./index.d.ts",
|
|
24
|
+
"default": "./index.js"
|
|
25
|
+
},
|
|
26
|
+
"types": "./index.d.mts",
|
|
27
|
+
"default": "./index.mjs"
|
|
28
|
+
},
|
|
29
|
+
"./api-promise": {
|
|
30
|
+
"import": "./api-promise.mjs",
|
|
31
|
+
"require": "./api-promise.js"
|
|
32
|
+
},
|
|
33
|
+
"./api-promise.js": {
|
|
34
|
+
"default": "./api-promise.js"
|
|
35
|
+
},
|
|
36
|
+
"./api-promise.mjs": {
|
|
37
|
+
"default": "./api-promise.mjs"
|
|
38
|
+
},
|
|
39
|
+
"./client": {
|
|
40
|
+
"import": "./client.mjs",
|
|
41
|
+
"require": "./client.js"
|
|
42
|
+
},
|
|
43
|
+
"./client.js": {
|
|
44
|
+
"default": "./client.js"
|
|
45
|
+
},
|
|
46
|
+
"./client.mjs": {
|
|
47
|
+
"default": "./client.mjs"
|
|
48
|
+
},
|
|
49
|
+
"./core/*.mjs": {
|
|
50
|
+
"default": "./core/*.mjs"
|
|
51
|
+
},
|
|
52
|
+
"./core/*.js": {
|
|
53
|
+
"default": "./core/*.js"
|
|
54
|
+
},
|
|
55
|
+
"./core/*": {
|
|
56
|
+
"import": "./core/*.mjs",
|
|
57
|
+
"require": "./core/*.js"
|
|
58
|
+
},
|
|
59
|
+
"./error": {
|
|
60
|
+
"import": "./error.mjs",
|
|
61
|
+
"require": "./error.js"
|
|
62
|
+
},
|
|
63
|
+
"./error.js": {
|
|
64
|
+
"default": "./error.js"
|
|
65
|
+
},
|
|
66
|
+
"./error.mjs": {
|
|
67
|
+
"default": "./error.mjs"
|
|
68
|
+
},
|
|
69
|
+
"./index": {
|
|
70
|
+
"import": "./index.mjs",
|
|
71
|
+
"require": "./index.js"
|
|
72
|
+
},
|
|
73
|
+
"./index.js": {
|
|
74
|
+
"default": "./index.js"
|
|
75
|
+
},
|
|
76
|
+
"./index.mjs": {
|
|
77
|
+
"default": "./index.mjs"
|
|
78
|
+
},
|
|
79
|
+
"./pagination": {
|
|
80
|
+
"import": "./pagination.mjs",
|
|
81
|
+
"require": "./pagination.js"
|
|
82
|
+
},
|
|
83
|
+
"./pagination.js": {
|
|
84
|
+
"default": "./pagination.js"
|
|
85
|
+
},
|
|
86
|
+
"./pagination.mjs": {
|
|
87
|
+
"default": "./pagination.mjs"
|
|
88
|
+
},
|
|
89
|
+
"./resource": {
|
|
90
|
+
"import": "./resource.mjs",
|
|
91
|
+
"require": "./resource.js"
|
|
92
|
+
},
|
|
93
|
+
"./resource.js": {
|
|
94
|
+
"default": "./resource.js"
|
|
95
|
+
},
|
|
96
|
+
"./resource.mjs": {
|
|
97
|
+
"default": "./resource.mjs"
|
|
98
|
+
},
|
|
99
|
+
"./resources/*.mjs": {
|
|
100
|
+
"default": "./resources/*.mjs"
|
|
101
|
+
},
|
|
102
|
+
"./resources/*.js": {
|
|
103
|
+
"default": "./resources/*.js"
|
|
104
|
+
},
|
|
105
|
+
"./resources/*": {
|
|
106
|
+
"import": "./resources/*.mjs",
|
|
107
|
+
"require": "./resources/*.js"
|
|
108
|
+
},
|
|
109
|
+
"./resources": {
|
|
110
|
+
"import": "./resources.mjs",
|
|
111
|
+
"require": "./resources.js"
|
|
112
|
+
},
|
|
113
|
+
"./resources.js": {
|
|
114
|
+
"default": "./resources.js"
|
|
115
|
+
},
|
|
116
|
+
"./resources.mjs": {
|
|
117
|
+
"default": "./resources.mjs"
|
|
118
|
+
},
|
|
119
|
+
"./uploads": {
|
|
120
|
+
"import": "./uploads.mjs",
|
|
121
|
+
"require": "./uploads.js"
|
|
122
|
+
},
|
|
123
|
+
"./uploads.js": {
|
|
124
|
+
"default": "./uploads.js"
|
|
125
|
+
},
|
|
126
|
+
"./uploads.mjs": {
|
|
127
|
+
"default": "./uploads.mjs"
|
|
128
|
+
},
|
|
129
|
+
"./version": {
|
|
130
|
+
"import": "./version.mjs",
|
|
131
|
+
"require": "./version.js"
|
|
132
|
+
},
|
|
133
|
+
"./version.js": {
|
|
134
|
+
"default": "./version.js"
|
|
135
|
+
},
|
|
136
|
+
"./version.mjs": {
|
|
137
|
+
"default": "./version.mjs"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"main": "./index.js",
|
|
141
|
+
"types": "./index.d.ts",
|
|
142
|
+
"files": [
|
|
143
|
+
"**/*"
|
|
144
|
+
],
|
|
145
|
+
"scripts": {
|
|
146
|
+
"test": "./scripts/test",
|
|
147
|
+
"build": "./scripts/build",
|
|
148
|
+
"format": "./scripts/format",
|
|
149
|
+
"tsn": "ts-node -r tsconfig-paths/register",
|
|
150
|
+
"lint": "./scripts/lint",
|
|
151
|
+
"fix": "./scripts/format"
|
|
152
|
+
},
|
|
153
|
+
"publishConfig": {
|
|
154
|
+
"access": "public"
|
|
155
|
+
},
|
|
156
|
+
"overrides": {
|
|
157
|
+
"minimatch": "^9.0.5"
|
|
158
|
+
},
|
|
159
|
+
"packageManager": "pnpm@10.32.1+sha512.a706938f0e89ac1456b6563eab4edf1d1faf3368d1191fc5c59790e96dc918e4456ab2e67d613de1043d2e8c81f87303e6b40d4ffeca9df15ef1ad567348f2be",
|
|
160
|
+
"pnpm": {
|
|
161
|
+
"overrides": {
|
|
162
|
+
"minimatch": "^9.0.5"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"resolutions": {
|
|
166
|
+
"minimatch": "^9.0.5"
|
|
167
|
+
}
|
|
168
|
+
}
|
package/pagination.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.mts","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":""}
|
package/pagination.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":""}
|
package/pagination.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/pagination instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/pagination.js"), exports);
|
|
6
|
+
//# sourceMappingURL=pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,+DAAkC"}
|
package/pagination.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.mjs","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":""}
|
package/resource.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.d.mts","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":""}
|
package/resource.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":""}
|
package/resource.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/resource instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/resource.js"), exports);
|
|
6
|
+
//# sourceMappingURL=resource.js.map
|
package/resource.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.js","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,6DAAgC"}
|
package/resource.mjs
ADDED
package/resource.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.mjs","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as AuthAPI from "./auth.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Issue short-lived access tokens for scoped API access
|
|
7
|
+
*/
|
|
8
|
+
export declare class Auth extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Issues a short-lived access token from the authenticated API key. Access tokens
|
|
11
|
+
* can optionally be bound to a specific employer or employee for scoped access.
|
|
12
|
+
* Tokens expire after 15 minutes.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response = await client.auth.issueAccessToken({
|
|
17
|
+
* grant_type: 'client_credentials',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
issueAccessToken(body: AuthIssueAccessTokenParams, options?: RequestOptions): APIPromise<AuthIssueAccessTokenResponse>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* - `employer` - employer
|
|
25
|
+
* - `employee` - employee
|
|
26
|
+
*/
|
|
27
|
+
export type Type = 'employer' | 'employee';
|
|
28
|
+
export interface AuthIssueAccessTokenResponse {
|
|
29
|
+
/**
|
|
30
|
+
* The issued access token (vit*at*\*)
|
|
31
|
+
*/
|
|
32
|
+
access_token: string;
|
|
33
|
+
/**
|
|
34
|
+
* Token lifetime in seconds
|
|
35
|
+
*/
|
|
36
|
+
expires_in: number;
|
|
37
|
+
/**
|
|
38
|
+
* Token type, always 'Bearer'
|
|
39
|
+
*/
|
|
40
|
+
token_type: string;
|
|
41
|
+
/**
|
|
42
|
+
* Entity the token is bound to, if any
|
|
43
|
+
*/
|
|
44
|
+
bound_entity?: AuthIssueAccessTokenResponse.BoundEntity | null;
|
|
45
|
+
}
|
|
46
|
+
export declare namespace AuthIssueAccessTokenResponse {
|
|
47
|
+
/**
|
|
48
|
+
* Entity the token is bound to, if any
|
|
49
|
+
*/
|
|
50
|
+
interface BoundEntity {
|
|
51
|
+
/**
|
|
52
|
+
* Prefixed entity ID the token is bound to (empr*\* or empl*\*)
|
|
53
|
+
*/
|
|
54
|
+
id: string;
|
|
55
|
+
/**
|
|
56
|
+
* - `employer` - employer
|
|
57
|
+
* - `employee` - employee
|
|
58
|
+
*/
|
|
59
|
+
type: AuthAPI.Type;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export interface AuthIssueAccessTokenParams {
|
|
63
|
+
/**
|
|
64
|
+
* - `client_credentials` - client_credentials
|
|
65
|
+
*/
|
|
66
|
+
grant_type: 'client_credentials';
|
|
67
|
+
/**
|
|
68
|
+
* Optional entity to bind the token to for scoped access
|
|
69
|
+
*/
|
|
70
|
+
bound_entity?: AuthIssueAccessTokenParams.BoundEntity | null;
|
|
71
|
+
}
|
|
72
|
+
export declare namespace AuthIssueAccessTokenParams {
|
|
73
|
+
/**
|
|
74
|
+
* Optional entity to bind the token to for scoped access
|
|
75
|
+
*/
|
|
76
|
+
interface BoundEntity {
|
|
77
|
+
/**
|
|
78
|
+
* Prefixed entity ID to bind the token to (empr*\* for employer, empl*\* for
|
|
79
|
+
* employee)
|
|
80
|
+
*/
|
|
81
|
+
id: string;
|
|
82
|
+
/**
|
|
83
|
+
* - `employer` - employer
|
|
84
|
+
* - `employee` - employee
|
|
85
|
+
*/
|
|
86
|
+
type: AuthAPI.Type;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export declare namespace Auth {
|
|
90
|
+
export { type Type as Type, type AuthIssueAccessTokenResponse as AuthIssueAccessTokenResponse, type AuthIssueAccessTokenParams as AuthIssueAccessTokenParams, };
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=auth.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../src/resources/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,gBAAgB,CACd,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC;AAE3C,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,4BAA4B,CAAC,WAAW,GAAG,IAAI,CAAC;CAChE;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,WAAW;QAC1B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;;WAGG;QACH,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC;KACpB;CACF;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,UAAU,EAAE,oBAAoB,CAAC;IAEjC;;OAEG;IACH,YAAY,CAAC,EAAE,0BAA0B,CAAC,WAAW,GAAG,IAAI,CAAC;CAC9D;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;OAEG;IACH,UAAiB,WAAW;QAC1B;;;WAGG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;;WAGG;QACH,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC;KACpB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as AuthAPI from "./auth.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Issue short-lived access tokens for scoped API access
|
|
7
|
+
*/
|
|
8
|
+
export declare class Auth extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Issues a short-lived access token from the authenticated API key. Access tokens
|
|
11
|
+
* can optionally be bound to a specific employer or employee for scoped access.
|
|
12
|
+
* Tokens expire after 15 minutes.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response = await client.auth.issueAccessToken({
|
|
17
|
+
* grant_type: 'client_credentials',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
issueAccessToken(body: AuthIssueAccessTokenParams, options?: RequestOptions): APIPromise<AuthIssueAccessTokenResponse>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* - `employer` - employer
|
|
25
|
+
* - `employee` - employee
|
|
26
|
+
*/
|
|
27
|
+
export type Type = 'employer' | 'employee';
|
|
28
|
+
export interface AuthIssueAccessTokenResponse {
|
|
29
|
+
/**
|
|
30
|
+
* The issued access token (vit*at*\*)
|
|
31
|
+
*/
|
|
32
|
+
access_token: string;
|
|
33
|
+
/**
|
|
34
|
+
* Token lifetime in seconds
|
|
35
|
+
*/
|
|
36
|
+
expires_in: number;
|
|
37
|
+
/**
|
|
38
|
+
* Token type, always 'Bearer'
|
|
39
|
+
*/
|
|
40
|
+
token_type: string;
|
|
41
|
+
/**
|
|
42
|
+
* Entity the token is bound to, if any
|
|
43
|
+
*/
|
|
44
|
+
bound_entity?: AuthIssueAccessTokenResponse.BoundEntity | null;
|
|
45
|
+
}
|
|
46
|
+
export declare namespace AuthIssueAccessTokenResponse {
|
|
47
|
+
/**
|
|
48
|
+
* Entity the token is bound to, if any
|
|
49
|
+
*/
|
|
50
|
+
interface BoundEntity {
|
|
51
|
+
/**
|
|
52
|
+
* Prefixed entity ID the token is bound to (empr*\* or empl*\*)
|
|
53
|
+
*/
|
|
54
|
+
id: string;
|
|
55
|
+
/**
|
|
56
|
+
* - `employer` - employer
|
|
57
|
+
* - `employee` - employee
|
|
58
|
+
*/
|
|
59
|
+
type: AuthAPI.Type;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export interface AuthIssueAccessTokenParams {
|
|
63
|
+
/**
|
|
64
|
+
* - `client_credentials` - client_credentials
|
|
65
|
+
*/
|
|
66
|
+
grant_type: 'client_credentials';
|
|
67
|
+
/**
|
|
68
|
+
* Optional entity to bind the token to for scoped access
|
|
69
|
+
*/
|
|
70
|
+
bound_entity?: AuthIssueAccessTokenParams.BoundEntity | null;
|
|
71
|
+
}
|
|
72
|
+
export declare namespace AuthIssueAccessTokenParams {
|
|
73
|
+
/**
|
|
74
|
+
* Optional entity to bind the token to for scoped access
|
|
75
|
+
*/
|
|
76
|
+
interface BoundEntity {
|
|
77
|
+
/**
|
|
78
|
+
* Prefixed entity ID to bind the token to (empr*\* for employer, empl*\* for
|
|
79
|
+
* employee)
|
|
80
|
+
*/
|
|
81
|
+
id: string;
|
|
82
|
+
/**
|
|
83
|
+
* - `employer` - employer
|
|
84
|
+
* - `employee` - employee
|
|
85
|
+
*/
|
|
86
|
+
type: AuthAPI.Type;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export declare namespace Auth {
|
|
90
|
+
export { type Type as Type, type AuthIssueAccessTokenResponse as AuthIssueAccessTokenResponse, type AuthIssueAccessTokenParams as AuthIssueAccessTokenParams, };
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/resources/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,gBAAgB,CACd,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC;AAE3C,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,4BAA4B,CAAC,WAAW,GAAG,IAAI,CAAC;CAChE;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,WAAW;QAC1B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;;WAGG;QACH,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC;KACpB;CACF;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,UAAU,EAAE,oBAAoB,CAAC;IAEjC;;OAEG;IACH,YAAY,CAAC,EAAE,0BAA0B,CAAC,WAAW,GAAG,IAAI,CAAC;CAC9D;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;OAEG;IACH,UAAiB,WAAW;QAC1B;;;WAGG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;;WAGG;QACH,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC;KACpB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.Auth = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* Issue short-lived access tokens for scoped API access
|
|
8
|
+
*/
|
|
9
|
+
class Auth extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Issues a short-lived access token from the authenticated API key. Access tokens
|
|
12
|
+
* can optionally be bound to a specific employer or employee for scoped access.
|
|
13
|
+
* Tokens expire after 15 minutes.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const response = await client.auth.issueAccessToken({
|
|
18
|
+
* grant_type: 'client_credentials',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
issueAccessToken(body, options) {
|
|
23
|
+
return this._client.post('/v1/auth/access-tokens', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.Auth = Auth;
|
|
27
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/resources/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;;OAWG;IACH,gBAAgB,CACd,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF;AAnBD,oBAmBC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Issue short-lived access tokens for scoped API access
|
|
5
|
+
*/
|
|
6
|
+
export class Auth extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Issues a short-lived access token from the authenticated API key. Access tokens
|
|
9
|
+
* can optionally be bound to a specific employer or employee for scoped access.
|
|
10
|
+
* Tokens expire after 15 minutes.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const response = await client.auth.issueAccessToken({
|
|
15
|
+
* grant_type: 'client_credentials',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
issueAccessToken(body, options) {
|
|
20
|
+
return this._client.post('/v1/auth/access-tokens', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=auth.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../src/resources/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,gBAAgB,CACd,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Define rules that determine which employees qualify for benefits
|
|
6
|
+
*/
|
|
7
|
+
export declare class BenefitEligibilityPolicies extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a benefit eligibility policy by ID.
|
|
10
|
+
*/
|
|
11
|
+
retrieve(policyID: string, options?: RequestOptions): APIPromise<BenefitEligibilityPolicyResponse>;
|
|
12
|
+
}
|
|
13
|
+
export interface BenefitEligibilityPolicy {
|
|
14
|
+
id: string;
|
|
15
|
+
active: boolean;
|
|
16
|
+
classification: string;
|
|
17
|
+
created_at: string;
|
|
18
|
+
employer_id: string;
|
|
19
|
+
updated_at: string;
|
|
20
|
+
waiting_period: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Response containing a single benefit eligibility policy resource.
|
|
24
|
+
*/
|
|
25
|
+
export interface BenefitEligibilityPolicyResponse {
|
|
26
|
+
data: BenefitEligibilityPolicy;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace BenefitEligibilityPolicies {
|
|
29
|
+
export { type BenefitEligibilityPolicy as BenefitEligibilityPolicy, type BenefitEligibilityPolicyResponse as BenefitEligibilityPolicyResponse, };
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=benefit-eligibility-policies.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"benefit-eligibility-policies.d.mts","sourceRoot":"","sources":["../src/resources/benefit-eligibility-policies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,WAAW;IACzD;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gCAAgC,CAAC;CAGnG;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IAEX,MAAM,EAAE,OAAO,CAAC;IAEhB,cAAc,EAAE,MAAM,CAAC;IAEvB,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;IAEnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,wBAAwB,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,0BAA0B,CAAC;IAClD,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Define rules that determine which employees qualify for benefits
|
|
6
|
+
*/
|
|
7
|
+
export declare class BenefitEligibilityPolicies extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a benefit eligibility policy by ID.
|
|
10
|
+
*/
|
|
11
|
+
retrieve(policyID: string, options?: RequestOptions): APIPromise<BenefitEligibilityPolicyResponse>;
|
|
12
|
+
}
|
|
13
|
+
export interface BenefitEligibilityPolicy {
|
|
14
|
+
id: string;
|
|
15
|
+
active: boolean;
|
|
16
|
+
classification: string;
|
|
17
|
+
created_at: string;
|
|
18
|
+
employer_id: string;
|
|
19
|
+
updated_at: string;
|
|
20
|
+
waiting_period: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Response containing a single benefit eligibility policy resource.
|
|
24
|
+
*/
|
|
25
|
+
export interface BenefitEligibilityPolicyResponse {
|
|
26
|
+
data: BenefitEligibilityPolicy;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace BenefitEligibilityPolicies {
|
|
29
|
+
export { type BenefitEligibilityPolicy as BenefitEligibilityPolicy, type BenefitEligibilityPolicyResponse as BenefitEligibilityPolicyResponse, };
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=benefit-eligibility-policies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"benefit-eligibility-policies.d.ts","sourceRoot":"","sources":["../src/resources/benefit-eligibility-policies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,WAAW;IACzD;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gCAAgC,CAAC;CAGnG;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IAEX,MAAM,EAAE,OAAO,CAAC;IAEhB,cAAc,EAAE,MAAM,CAAC;IAEvB,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;IAEnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,wBAAwB,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,0BAA0B,CAAC;IAClD,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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.BenefitEligibilityPolicies = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Define rules that determine which employees qualify for benefits
|
|
9
|
+
*/
|
|
10
|
+
class BenefitEligibilityPolicies extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves a benefit eligibility policy by ID.
|
|
13
|
+
*/
|
|
14
|
+
retrieve(policyID, options) {
|
|
15
|
+
return this._client.get((0, path_1.path) `/v1/benefit-eligibility-policies/${policyID}`, options);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.BenefitEligibilityPolicies = BenefitEligibilityPolicies;
|
|
19
|
+
//# sourceMappingURL=benefit-eligibility-policies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"benefit-eligibility-policies.js","sourceRoot":"","sources":["../src/resources/benefit-eligibility-policies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;GAEG;AACH,MAAa,0BAA2B,SAAQ,sBAAW;IACzD;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oCAAoC,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;CACF;AAPD,gEAOC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Define rules that determine which employees qualify for benefits
|
|
6
|
+
*/
|
|
7
|
+
export class BenefitEligibilityPolicies extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a benefit eligibility policy by ID.
|
|
10
|
+
*/
|
|
11
|
+
retrieve(policyID, options) {
|
|
12
|
+
return this._client.get(path `/v1/benefit-eligibility-policies/${policyID}`, options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=benefit-eligibility-policies.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"benefit-eligibility-policies.mjs","sourceRoot":"","sources":["../src/resources/benefit-eligibility-policies.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,0BAA2B,SAAQ,WAAW;IACzD;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;CACF"}
|