@thera-hr/api-sdk 1.2.0-prerelease2729-dev-2 → 1.2.0-prerelease2759-staging

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 (81) 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/external/resources/externalApi/client/Client.js +1 -1
  4. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  5. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +39 -39
  7. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  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 +6 -6
  10. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  11. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.d.ts +12 -0
  12. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.js +5 -0
  13. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.d.ts +10 -0
  14. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.js +5 -0
  15. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +2 -0
  16. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +2 -0
  17. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  18. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  19. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  20. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  21. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  22. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  23. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  24. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  25. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  26. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  27. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  28. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  29. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  30. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  31. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +15 -15
  32. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  33. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  34. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  35. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  36. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  37. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  38. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +39 -39
  39. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  40. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  41. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  42. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  43. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.d.ts +12 -0
  44. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.js +5 -0
  45. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.d.ts +10 -0
  46. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.js +5 -0
  47. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +2 -0
  48. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +2 -0
  49. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  50. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  51. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  52. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  53. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  54. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  55. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  56. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  57. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  58. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  59. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  60. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  61. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  62. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  63. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +15 -15
  64. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  65. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.d.ts +15 -0
  66. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.js +46 -0
  67. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.d.ts +14 -0
  68. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.js +45 -0
  69. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +2 -0
  70. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +2 -0
  71. package/dist/version.d.ts +1 -1
  72. package/dist/version.js +1 -1
  73. package/package.json +1 -1
  74. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.d.ts +15 -0
  75. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.js +46 -0
  76. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.d.ts +14 -0
  77. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.js +45 -0
  78. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +2 -0
  79. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +2 -0
  80. package/version.d.ts +1 -1
  81. package/version.js +1 -1
@@ -78,7 +78,7 @@ class UserApi {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `company/${encodeURIComponent(companyId)}/user/${encodeURIComponent(userId)}`),
80
80
  method: "POST",
81
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2729-dev-2", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2729-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2759-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2759-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: serializers.api.thera.user.SetUserComplianceSettingsRequest.jsonOrThrow(request, {
@@ -139,7 +139,7 @@ class UserApi {
139
139
  const _response = yield core.fetcher({
140
140
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `company/${encodeURIComponent(companyId)}/user`),
141
141
  method: "GET",
142
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2729-dev-2", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2729-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
142
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2759-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2759-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
143
143
  contentType: "application/json",
144
144
  queryParameters: _queryParams,
145
145
  requestType: "json",
@@ -197,7 +197,7 @@ class UserApi {
197
197
  const _response = yield core.fetcher({
198
198
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "user"),
199
199
  method: "GET",
200
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2729-dev-2", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2729-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
200
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2759-staging", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2759-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
201
201
  contentType: "application/json",
202
202
  queryParameters: _queryParams,
203
203
  requestType: "json",
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const ContractSummary: core.serialization.ObjectSchema<serializers.api.thera.contractor.ContractSummary.Raw, TheraApi.api.thera.contractor.ContractSummary>;
8
+ export declare namespace ContractSummary {
9
+ interface Raw {
10
+ contractId: string;
11
+ startDate: string;
12
+ endDate?: string | null;
13
+ status: string;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ContractSummary = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ exports.ContractSummary = core.serialization.object({
42
+ contractId: core.serialization.string(),
43
+ startDate: core.serialization.string(),
44
+ endDate: core.serialization.string().optional(),
45
+ status: core.serialization.string(),
46
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ import { ContractSummary } from "./ContractSummary";
8
+ export declare const GetContractsForContractorResponse: core.serialization.ObjectSchema<serializers.api.thera.contractor.GetContractsForContractorResponse.Raw, TheraApi.api.thera.contractor.GetContractsForContractorResponse>;
9
+ export declare namespace GetContractsForContractorResponse {
10
+ interface Raw {
11
+ userId: string;
12
+ contracts: ContractSummary.Raw[];
13
+ }
14
+ }
@@ -0,0 +1,45 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GetContractsForContractorResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const ContractSummary_1 = require("./ContractSummary");
42
+ exports.GetContractsForContractorResponse = core.serialization.object({
43
+ userId: core.serialization.string(),
44
+ contracts: core.serialization.list(ContractSummary_1.ContractSummary),
45
+ });
@@ -7,3 +7,5 @@ export * from "./InvoiceCycle";
7
7
  export * from "./CreateContractorsCsvRecord";
8
8
  export * from "./WorkSubmitterType";
9
9
  export * from "./ContractorsOnboardCsvUploadContractDocumentType";
10
+ export * from "./GetContractsForContractorResponse";
11
+ export * from "./ContractSummary";
@@ -23,3 +23,5 @@ __exportStar(require("./InvoiceCycle"), exports);
23
23
  __exportStar(require("./CreateContractorsCsvRecord"), exports);
24
24
  __exportStar(require("./WorkSubmitterType"), exports);
25
25
  __exportStar(require("./ContractorsOnboardCsvUploadContractDocumentType"), exports);
26
+ __exportStar(require("./GetContractsForContractorResponse"), exports);
27
+ __exportStar(require("./ContractSummary"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.0-prerelease2729-dev-2";
1
+ export declare const SDK_VERSION = "1.2.0-prerelease2759-staging";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.0-prerelease2729-dev-2";
4
+ exports.SDK_VERSION = "1.2.0-prerelease2759-staging";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "1.2.0-prerelease2729-dev-2",
3
+ "version": "1.2.0-prerelease2759-staging",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const ContractSummary: core.serialization.ObjectSchema<serializers.api.thera.contractor.ContractSummary.Raw, TheraApi.api.thera.contractor.ContractSummary>;
8
+ export declare namespace ContractSummary {
9
+ interface Raw {
10
+ contractId: string;
11
+ startDate: string;
12
+ endDate?: string | null;
13
+ status: string;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ContractSummary = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ exports.ContractSummary = core.serialization.object({
42
+ contractId: core.serialization.string(),
43
+ startDate: core.serialization.string(),
44
+ endDate: core.serialization.string().optional(),
45
+ status: core.serialization.string(),
46
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ import { ContractSummary } from "./ContractSummary";
8
+ export declare const GetContractsForContractorResponse: core.serialization.ObjectSchema<serializers.api.thera.contractor.GetContractsForContractorResponse.Raw, TheraApi.api.thera.contractor.GetContractsForContractorResponse>;
9
+ export declare namespace GetContractsForContractorResponse {
10
+ interface Raw {
11
+ userId: string;
12
+ contracts: ContractSummary.Raw[];
13
+ }
14
+ }
@@ -0,0 +1,45 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GetContractsForContractorResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const ContractSummary_1 = require("./ContractSummary");
42
+ exports.GetContractsForContractorResponse = core.serialization.object({
43
+ userId: core.serialization.string(),
44
+ contracts: core.serialization.list(ContractSummary_1.ContractSummary),
45
+ });
@@ -7,3 +7,5 @@ export * from "./InvoiceCycle";
7
7
  export * from "./CreateContractorsCsvRecord";
8
8
  export * from "./WorkSubmitterType";
9
9
  export * from "./ContractorsOnboardCsvUploadContractDocumentType";
10
+ export * from "./GetContractsForContractorResponse";
11
+ export * from "./ContractSummary";
@@ -23,3 +23,5 @@ __exportStar(require("./InvoiceCycle"), exports);
23
23
  __exportStar(require("./CreateContractorsCsvRecord"), exports);
24
24
  __exportStar(require("./WorkSubmitterType"), exports);
25
25
  __exportStar(require("./ContractorsOnboardCsvUploadContractDocumentType"), exports);
26
+ __exportStar(require("./GetContractsForContractorResponse"), exports);
27
+ __exportStar(require("./ContractSummary"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.0-prerelease2729-dev-2";
1
+ export declare const SDK_VERSION = "1.2.0-prerelease2759-staging";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.0-prerelease2729-dev-2";
4
+ exports.SDK_VERSION = "1.2.0-prerelease2759-staging";