@thera-hr/api-sdk 0.0.1-prerelease2686-production → 0.0.1-prerelease2686-dev-2

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 (117) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  3. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  4. package/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  5. package/api/resources/api/resources/thera/client/Client.js +17 -12
  6. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +32 -32
  8. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  9. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  10. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  11. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  12. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  13. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  14. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  15. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  16. package/api/resources/api/resources/thera/resources/eor/client/Client.d.ts +22 -0
  17. package/api/resources/api/resources/thera/resources/eor/client/Client.js +17 -0
  18. package/api/resources/api/resources/thera/resources/eor/client/index.d.ts +1 -0
  19. package/api/resources/api/resources/thera/resources/eor/client/index.js +2 -0
  20. package/api/resources/api/resources/thera/resources/eor/index.d.ts +2 -0
  21. package/api/resources/api/resources/thera/resources/eor/index.js +18 -0
  22. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +31 -0
  23. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +117 -0
  24. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/index.d.ts +1 -0
  25. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/index.js +2 -0
  26. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.d.ts +2 -0
  27. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.js +18 -0
  28. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/EorEmployeeTracking.d.ts +13 -0
  29. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/EorEmployeeTracking.js +5 -0
  30. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.d.ts +7 -0
  31. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.js +5 -0
  32. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +2 -0
  33. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +18 -0
  34. package/api/resources/api/resources/thera/resources/eor/resources/index.d.ts +2 -0
  35. package/api/resources/api/resources/thera/resources/eor/resources/index.js +31 -0
  36. package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  37. package/api/resources/api/resources/thera/resources/index.js +2 -1
  38. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  39. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  40. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  41. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  42. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  43. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  44. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  45. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  46. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  47. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  48. package/dist/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  49. package/dist/api/resources/api/resources/thera/client/Client.js +17 -12
  50. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  51. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +32 -32
  52. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  53. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  54. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  55. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  56. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  57. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  58. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  59. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  60. package/dist/api/resources/api/resources/thera/resources/eor/client/Client.d.ts +22 -0
  61. package/dist/api/resources/api/resources/thera/resources/eor/client/Client.js +17 -0
  62. package/dist/api/resources/api/resources/thera/resources/eor/client/index.d.ts +1 -0
  63. package/dist/api/resources/api/resources/thera/resources/eor/client/index.js +2 -0
  64. package/dist/api/resources/api/resources/thera/resources/eor/index.d.ts +2 -0
  65. package/dist/api/resources/api/resources/thera/resources/eor/index.js +18 -0
  66. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +31 -0
  67. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +117 -0
  68. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/index.d.ts +1 -0
  69. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/index.js +2 -0
  70. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.d.ts +2 -0
  71. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.js +18 -0
  72. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/EorEmployeeTracking.d.ts +13 -0
  73. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/EorEmployeeTracking.js +5 -0
  74. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.d.ts +7 -0
  75. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.js +5 -0
  76. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +2 -0
  77. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +18 -0
  78. package/dist/api/resources/api/resources/thera/resources/eor/resources/index.d.ts +2 -0
  79. package/dist/api/resources/api/resources/thera/resources/eor/resources/index.js +31 -0
  80. package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  81. package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
  82. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  83. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  84. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  85. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  86. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  87. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  88. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  89. package/dist/serialization/resources/api/resources/thera/resources/eor/index.d.ts +1 -0
  90. package/dist/serialization/resources/api/resources/thera/resources/eor/index.js +17 -0
  91. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.d.ts +1 -0
  92. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.js +17 -0
  93. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/EorEmployeeTracking.d.ts +19 -0
  94. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/EorEmployeeTracking.js +40 -0
  95. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.d.ts +13 -0
  96. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.js +34 -0
  97. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +2 -0
  98. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +18 -0
  99. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/index.d.ts +2 -0
  100. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/index.js +31 -0
  101. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  102. package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -1
  103. package/package.json +1 -1
  104. package/serialization/resources/api/resources/thera/resources/eor/index.d.ts +1 -0
  105. package/serialization/resources/api/resources/thera/resources/eor/index.js +17 -0
  106. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.d.ts +1 -0
  107. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.js +17 -0
  108. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/EorEmployeeTracking.d.ts +19 -0
  109. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/EorEmployeeTracking.js +40 -0
  110. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.d.ts +13 -0
  111. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.js +34 -0
  112. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +2 -0
  113. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +18 -0
  114. package/serialization/resources/api/resources/thera/resources/eor/resources/index.d.ts +2 -0
  115. package/serialization/resources/api/resources/thera/resources/eor/resources/index.js +31 -0
  116. package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  117. package/serialization/resources/api/resources/thera/resources/index.js +2 -1
@@ -67,7 +67,7 @@ class EmploymentApi {
67
67
  Authorization: yield this._getAuthorizationHeader(),
68
68
  "X-Fern-Language": "JavaScript",
69
69
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
70
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
70
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
71
71
  "X-Fern-Runtime": core.RUNTIME.type,
72
72
  "X-Fern-Runtime-Version": core.RUNTIME.version,
73
73
  },
@@ -136,7 +136,7 @@ class EmploymentApi {
136
136
  Authorization: yield this._getAuthorizationHeader(),
137
137
  "X-Fern-Language": "JavaScript",
138
138
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
139
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
139
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
140
140
  "X-Fern-Runtime": core.RUNTIME.type,
141
141
  "X-Fern-Runtime-Version": core.RUNTIME.version,
142
142
  },
@@ -196,7 +196,7 @@ class EmploymentApi {
196
196
  Authorization: yield this._getAuthorizationHeader(),
197
197
  "X-Fern-Language": "JavaScript",
198
198
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
199
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
199
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
200
200
  "X-Fern-Runtime": core.RUNTIME.type,
201
201
  "X-Fern-Runtime-Version": core.RUNTIME.version,
202
202
  },
@@ -250,7 +250,7 @@ class EmploymentApi {
250
250
  Authorization: yield this._getAuthorizationHeader(),
251
251
  "X-Fern-Language": "JavaScript",
252
252
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
253
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
253
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
254
254
  "X-Fern-Runtime": core.RUNTIME.type,
255
255
  "X-Fern-Runtime-Version": core.RUNTIME.version,
256
256
  },
@@ -305,7 +305,7 @@ class EmploymentApi {
305
305
  Authorization: yield this._getAuthorizationHeader(),
306
306
  "X-Fern-Language": "JavaScript",
307
307
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
308
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
308
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
309
309
  "X-Fern-Runtime": core.RUNTIME.type,
310
310
  "X-Fern-Runtime-Version": core.RUNTIME.version,
311
311
  },
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../../../../../core";
5
+ import { EorTrackerApi } from "../resources/eorTrackerApi/client/Client";
6
+ export declare namespace Eor {
7
+ interface Options {
8
+ environment: core.Supplier<string>;
9
+ token?: core.Supplier<core.BearerToken | undefined>;
10
+ }
11
+ interface RequestOptions {
12
+ timeoutInSeconds?: number;
13
+ maxRetries?: number;
14
+ abortSignal?: AbortSignal;
15
+ }
16
+ }
17
+ export declare class Eor {
18
+ protected readonly _options: Eor.Options;
19
+ constructor(_options: Eor.Options);
20
+ protected _eorTrackerApi: EorTrackerApi | undefined;
21
+ get eorTrackerApi(): EorTrackerApi;
22
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Eor = void 0;
7
+ const Client_1 = require("../resources/eorTrackerApi/client/Client");
8
+ class Eor {
9
+ constructor(_options) {
10
+ this._options = _options;
11
+ }
12
+ get eorTrackerApi() {
13
+ var _a;
14
+ return ((_a = this._eorTrackerApi) !== null && _a !== void 0 ? _a : (this._eorTrackerApi = new Client_1.EorTrackerApi(this._options)));
15
+ }
16
+ }
17
+ exports.Eor = Eor;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./resources";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./resources"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,31 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../../../../../../../core";
5
+ import * as TheraApi from "../../../../../../../../../index";
6
+ export declare namespace EorTrackerApi {
7
+ interface Options {
8
+ environment: core.Supplier<string>;
9
+ token?: core.Supplier<core.BearerToken | undefined>;
10
+ }
11
+ interface RequestOptions {
12
+ timeoutInSeconds?: number;
13
+ maxRetries?: number;
14
+ abortSignal?: AbortSignal;
15
+ }
16
+ }
17
+ export declare class EorTrackerApi {
18
+ protected readonly _options: EorTrackerApi.Options;
19
+ constructor(_options: EorTrackerApi.Options);
20
+ /**
21
+ * Gets EOR employee data from Airtable for a specific company
22
+ *
23
+ * @param {string} companyId
24
+ * @param {EorTrackerApi.RequestOptions} requestOptions - Request-specific configuration.
25
+ *
26
+ * @example
27
+ * await client.api.thera.eor.eorTrackerApi.getEorTracker("string")
28
+ */
29
+ getEorTracker(companyId: string, requestOptions?: EorTrackerApi.RequestOptions): Promise<TheraApi.api.thera.eor.GetEorTrackerResponse>;
30
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
31
+ }
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.EorTrackerApi = void 0;
42
+ const core = __importStar(require("../../../../../../../../../../core"));
43
+ const url_join_1 = __importDefault(require("url-join"));
44
+ const serializers = __importStar(require("../../../../../../../../../../serialization/index"));
45
+ const errors = __importStar(require("../../../../../../../../../../errors/index"));
46
+ class EorTrackerApi {
47
+ constructor(_options) {
48
+ this._options = _options;
49
+ }
50
+ /**
51
+ * Gets EOR employee data from Airtable for a specific company
52
+ *
53
+ * @param {string} companyId
54
+ * @param {EorTrackerApi.RequestOptions} requestOptions - Request-specific configuration.
55
+ *
56
+ * @example
57
+ * await client.api.thera.eor.eorTrackerApi.getEorTracker("string")
58
+ */
59
+ getEorTracker(companyId, requestOptions) {
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ const _response = yield core.fetcher({
62
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/eor-tracker`),
63
+ method: "GET",
64
+ headers: {
65
+ Authorization: yield this._getAuthorizationHeader(),
66
+ "X-Fern-Language": "JavaScript",
67
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
68
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
69
+ "X-Fern-Runtime": core.RUNTIME.type,
70
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
71
+ },
72
+ contentType: "application/json",
73
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
74
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
75
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
76
+ });
77
+ if (_response.ok) {
78
+ return yield serializers.api.thera.eor.GetEorTrackerResponse.parseOrThrow(_response.body, {
79
+ unrecognizedObjectKeys: "passthrough",
80
+ allowUnrecognizedUnionMembers: true,
81
+ allowUnrecognizedEnumValues: true,
82
+ skipValidation: true,
83
+ breadcrumbsPrefix: ["response"],
84
+ });
85
+ }
86
+ if (_response.error.reason === "status-code") {
87
+ throw new errors.TheraApiError({
88
+ statusCode: _response.error.statusCode,
89
+ body: _response.error.body,
90
+ });
91
+ }
92
+ switch (_response.error.reason) {
93
+ case "non-json":
94
+ throw new errors.TheraApiError({
95
+ statusCode: _response.error.statusCode,
96
+ body: _response.error.rawBody,
97
+ });
98
+ case "timeout":
99
+ throw new errors.TheraApiTimeoutError();
100
+ case "unknown":
101
+ throw new errors.TheraApiError({
102
+ message: _response.error.errorMessage,
103
+ });
104
+ }
105
+ });
106
+ }
107
+ _getAuthorizationHeader() {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ const bearer = yield core.Supplier.get(this._options.token);
110
+ if (bearer != null) {
111
+ return `Bearer ${bearer}`;
112
+ }
113
+ return undefined;
114
+ });
115
+ }
116
+ }
117
+ exports.EorTrackerApi = EorTrackerApi;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface EorEmployeeTracking {
5
+ employeeId: string;
6
+ employeeName: string;
7
+ employeeEmail: string;
8
+ status: string;
9
+ country: string;
10
+ startDate?: string;
11
+ jobTitle?: string;
12
+ additionalDetails?: Record<string, string>;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../index";
5
+ export interface GetEorTrackerResponse {
6
+ employees: TheraApi.api.thera.eor.EorEmployeeTracking[];
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./GetEorTrackerResponse";
2
+ export * from "./EorEmployeeTracking";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./GetEorTrackerResponse"), exports);
18
+ __exportStar(require("./EorEmployeeTracking"), exports);
@@ -0,0 +1,2 @@
1
+ export * as eorTrackerApi from "./eorTrackerApi";
2
+ export * from "./eorTrackerApi/types";
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.eorTrackerApi = void 0;
30
+ exports.eorTrackerApi = __importStar(require("./eorTrackerApi"));
31
+ __exportStar(require("./eorTrackerApi/types"), exports);
@@ -7,6 +7,7 @@ export * as disbursement from "./disbursement";
7
7
  export * as document from "./document";
8
8
  export * as email from "./email";
9
9
  export * as employment from "./employment";
10
+ export * as eor from "./eor";
10
11
  export * as misc from "./misc";
11
12
  export * as payroll from "./payroll";
12
13
  export * as timeoff from "./timeoff";
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.employment = exports.email = exports.document = exports.disbursement = exports.contractor = exports.company = exports.common = exports.bank = exports.accounting = void 0;
26
+ exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.eor = exports.employment = exports.email = exports.document = exports.disbursement = exports.contractor = exports.company = exports.common = exports.bank = exports.accounting = void 0;
27
27
  exports.accounting = __importStar(require("./accounting"));
28
28
  exports.bank = __importStar(require("./bank"));
29
29
  exports.common = __importStar(require("./common"));
@@ -33,6 +33,7 @@ exports.disbursement = __importStar(require("./disbursement"));
33
33
  exports.document = __importStar(require("./document"));
34
34
  exports.email = __importStar(require("./email"));
35
35
  exports.employment = __importStar(require("./employment"));
36
+ exports.eor = __importStar(require("./eor"));
36
37
  exports.misc = __importStar(require("./misc"));
37
38
  exports.payroll = __importStar(require("./payroll"));
38
39
  exports.timeoff = __importStar(require("./timeoff"));
@@ -68,7 +68,7 @@ class Misc {
68
68
  Authorization: yield this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
71
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
71
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
72
72
  "X-Fern-Runtime": core.RUNTIME.type,
73
73
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
74
  "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
@@ -129,7 +129,7 @@ class Misc {
129
129
  Authorization: yield this._getAuthorizationHeader(),
130
130
  "X-Fern-Language": "JavaScript",
131
131
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
132
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
132
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
133
133
  "X-Fern-Runtime": core.RUNTIME.type,
134
134
  "X-Fern-Runtime-Version": core.RUNTIME.version,
135
135
  "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
@@ -190,7 +190,7 @@ class Misc {
190
190
  Authorization: yield this._getAuthorizationHeader(),
191
191
  "X-Fern-Language": "JavaScript",
192
192
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
193
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
193
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
194
194
  "X-Fern-Runtime": core.RUNTIME.type,
195
195
  "X-Fern-Runtime-Version": core.RUNTIME.version,
196
196
  "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
@@ -245,7 +245,7 @@ class Misc {
245
245
  Authorization: yield this._getAuthorizationHeader(),
246
246
  "X-Fern-Language": "JavaScript",
247
247
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
248
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
248
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
249
249
  "X-Fern-Runtime": core.RUNTIME.type,
250
250
  "X-Fern-Runtime-Version": core.RUNTIME.version,
251
251
  "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
@@ -300,7 +300,7 @@ class Misc {
300
300
  Authorization: yield this._getAuthorizationHeader(),
301
301
  "X-Fern-Language": "JavaScript",
302
302
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
303
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
303
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
304
304
  "X-Fern-Runtime": core.RUNTIME.type,
305
305
  "X-Fern-Runtime-Version": core.RUNTIME.version,
306
306
  "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
@@ -361,7 +361,7 @@ class Misc {
361
361
  Authorization: yield this._getAuthorizationHeader(),
362
362
  "X-Fern-Language": "JavaScript",
363
363
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
364
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
364
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
365
365
  "X-Fern-Runtime": core.RUNTIME.type,
366
366
  "X-Fern-Runtime-Version": core.RUNTIME.version,
367
367
  "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
@@ -65,7 +65,7 @@ class OffcycleApi {
65
65
  Authorization: yield this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
68
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
68
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
69
69
  "X-Fern-Runtime": core.RUNTIME.type,
70
70
  "X-Fern-Runtime-Version": core.RUNTIME.version,
71
71
  },
@@ -65,7 +65,7 @@ class OncycleApi {
65
65
  Authorization: yield this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
68
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
68
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
69
69
  "X-Fern-Runtime": core.RUNTIME.type,
70
70
  "X-Fern-Runtime-Version": core.RUNTIME.version,
71
71
  },
@@ -122,7 +122,7 @@ class OncycleApi {
122
122
  Authorization: yield this._getAuthorizationHeader(),
123
123
  "X-Fern-Language": "JavaScript",
124
124
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
125
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
125
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
126
126
  "X-Fern-Runtime": core.RUNTIME.type,
127
127
  "X-Fern-Runtime-Version": core.RUNTIME.version,
128
128
  },
@@ -179,7 +179,7 @@ class OncycleApi {
179
179
  Authorization: yield this._getAuthorizationHeader(),
180
180
  "X-Fern-Language": "JavaScript",
181
181
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
182
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
182
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
183
183
  "X-Fern-Runtime": core.RUNTIME.type,
184
184
  "X-Fern-Runtime-Version": core.RUNTIME.version,
185
185
  },
@@ -73,7 +73,7 @@ class TimeoffApi {
73
73
  Authorization: yield this._getAuthorizationHeader(),
74
74
  "X-Fern-Language": "JavaScript",
75
75
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
76
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
76
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
77
77
  "X-Fern-Runtime": core.RUNTIME.type,
78
78
  "X-Fern-Runtime-Version": core.RUNTIME.version,
79
79
  },
@@ -135,7 +135,7 @@ class TimeoffApi {
135
135
  Authorization: yield this._getAuthorizationHeader(),
136
136
  "X-Fern-Language": "JavaScript",
137
137
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
138
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
138
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
139
139
  "X-Fern-Runtime": core.RUNTIME.type,
140
140
  "X-Fern-Runtime-Version": core.RUNTIME.version,
141
141
  },
@@ -202,7 +202,7 @@ class TimeoffApi {
202
202
  Authorization: yield this._getAuthorizationHeader(),
203
203
  "X-Fern-Language": "JavaScript",
204
204
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
205
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
205
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
206
206
  "X-Fern-Runtime": core.RUNTIME.type,
207
207
  "X-Fern-Runtime-Version": core.RUNTIME.version,
208
208
  },
@@ -274,7 +274,7 @@ class TimeoffApi {
274
274
  Authorization: yield this._getAuthorizationHeader(),
275
275
  "X-Fern-Language": "JavaScript",
276
276
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
277
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
277
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
278
278
  "X-Fern-Runtime": core.RUNTIME.type,
279
279
  "X-Fern-Runtime-Version": core.RUNTIME.version,
280
280
  },
@@ -329,7 +329,7 @@ class TimeoffApi {
329
329
  Authorization: yield this._getAuthorizationHeader(),
330
330
  "X-Fern-Language": "JavaScript",
331
331
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
332
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
332
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
333
333
  "X-Fern-Runtime": core.RUNTIME.type,
334
334
  "X-Fern-Runtime-Version": core.RUNTIME.version,
335
335
  },
@@ -405,7 +405,7 @@ class TimeoffApi {
405
405
  Authorization: yield this._getAuthorizationHeader(),
406
406
  "X-Fern-Language": "JavaScript",
407
407
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
408
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
408
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
409
409
  "X-Fern-Runtime": core.RUNTIME.type,
410
410
  "X-Fern-Runtime-Version": core.RUNTIME.version,
411
411
  },
@@ -460,7 +460,7 @@ class TimeoffApi {
460
460
  Authorization: yield this._getAuthorizationHeader(),
461
461
  "X-Fern-Language": "JavaScript",
462
462
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
463
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
463
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
464
464
  "X-Fern-Runtime": core.RUNTIME.type,
465
465
  "X-Fern-Runtime-Version": core.RUNTIME.version,
466
466
  },
@@ -523,7 +523,7 @@ class TimeoffApi {
523
523
  Authorization: yield this._getAuthorizationHeader(),
524
524
  "X-Fern-Language": "JavaScript",
525
525
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
526
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
526
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
527
527
  "X-Fern-Runtime": core.RUNTIME.type,
528
528
  "X-Fern-Runtime-Version": core.RUNTIME.version,
529
529
  },
@@ -582,7 +582,7 @@ class TimeoffApi {
582
582
  Authorization: yield this._getAuthorizationHeader(),
583
583
  "X-Fern-Language": "JavaScript",
584
584
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
585
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
585
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
586
586
  "X-Fern-Runtime": core.RUNTIME.type,
587
587
  "X-Fern-Runtime-Version": core.RUNTIME.version,
588
588
  },
@@ -648,7 +648,7 @@ class TimeoffApi {
648
648
  Authorization: yield this._getAuthorizationHeader(),
649
649
  "X-Fern-Language": "JavaScript",
650
650
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
651
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
651
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
652
652
  "X-Fern-Runtime": core.RUNTIME.type,
653
653
  "X-Fern-Runtime-Version": core.RUNTIME.version,
654
654
  },
@@ -715,7 +715,7 @@ class TimeoffApi {
715
715
  Authorization: yield this._getAuthorizationHeader(),
716
716
  "X-Fern-Language": "JavaScript",
717
717
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
718
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
718
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
719
719
  "X-Fern-Runtime": core.RUNTIME.type,
720
720
  "X-Fern-Runtime-Version": core.RUNTIME.version,
721
721
  },
@@ -779,7 +779,7 @@ class TimeoffApi {
779
779
  Authorization: yield this._getAuthorizationHeader(),
780
780
  "X-Fern-Language": "JavaScript",
781
781
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
782
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
782
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
783
783
  "X-Fern-Runtime": core.RUNTIME.type,
784
784
  "X-Fern-Runtime-Version": core.RUNTIME.version,
785
785
  },
@@ -844,7 +844,7 @@ class TimeoffApi {
844
844
  Authorization: yield this._getAuthorizationHeader(),
845
845
  "X-Fern-Language": "JavaScript",
846
846
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
847
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
847
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
848
848
  "X-Fern-Runtime": core.RUNTIME.type,
849
849
  "X-Fern-Runtime-Version": core.RUNTIME.version,
850
850
  },
@@ -908,7 +908,7 @@ class TimeoffApi {
908
908
  Authorization: yield this._getAuthorizationHeader(),
909
909
  "X-Fern-Language": "JavaScript",
910
910
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
911
- "X-Fern-SDK-Version": "0.0.1-prerelease2686-production",
911
+ "X-Fern-SDK-Version": "0.0.1-prerelease2686-dev-2",
912
912
  "X-Fern-Runtime": core.RUNTIME.type,
913
913
  "X-Fern-Runtime-Version": core.RUNTIME.version,
914
914
  },