@thera-hr/api-sdk 1.1.1-prerelease2746-dev-2 → 1.1.1-prerelease2763-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 (130) 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.d.ts +1 -0
  9. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +19 -18
  10. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.d.ts +2 -0
  11. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  12. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  13. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.d.ts +12 -0
  14. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.js +5 -0
  15. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.d.ts +10 -0
  16. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.js +5 -0
  17. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +2 -0
  18. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +2 -0
  19. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  20. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  21. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  22. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  23. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  24. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  25. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  26. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  27. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  28. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  29. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  30. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  31. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  32. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  33. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +15 -15
  34. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  35. package/api/resources/db/resources/contractorPro/index.d.ts +1 -0
  36. package/api/resources/db/resources/contractorPro/index.js +17 -0
  37. package/api/resources/db/resources/contractorPro/types/ContractorPro.d.ts +37 -0
  38. package/api/resources/db/resources/contractorPro/types/ContractorPro.js +5 -0
  39. package/api/resources/db/resources/contractorPro/types/ContractorProStatus.d.ts +14 -0
  40. package/api/resources/db/resources/contractorPro/types/ContractorProStatus.js +10 -0
  41. package/api/resources/db/resources/contractorPro/types/index.d.ts +2 -0
  42. package/api/resources/db/resources/contractorPro/types/index.js +18 -0
  43. package/api/resources/db/resources/index.d.ts +2 -0
  44. package/api/resources/db/resources/index.js +3 -1
  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/external/resources/externalApi/client/Client.js +1 -1
  48. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  49. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  50. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +39 -39
  51. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  52. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +1 -0
  53. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +19 -18
  54. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.d.ts +2 -0
  55. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  56. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  57. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.d.ts +12 -0
  58. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.js +5 -0
  59. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.d.ts +10 -0
  60. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.js +5 -0
  61. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +2 -0
  62. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +2 -0
  63. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  64. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  65. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  66. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  67. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  68. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  69. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  70. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  71. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  72. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  73. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  74. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  75. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  76. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  77. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +15 -15
  78. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  79. package/dist/api/resources/db/resources/contractorPro/index.d.ts +1 -0
  80. package/dist/api/resources/db/resources/contractorPro/index.js +17 -0
  81. package/dist/api/resources/db/resources/contractorPro/types/ContractorPro.d.ts +37 -0
  82. package/dist/api/resources/db/resources/contractorPro/types/ContractorPro.js +5 -0
  83. package/dist/api/resources/db/resources/contractorPro/types/ContractorProStatus.d.ts +14 -0
  84. package/dist/api/resources/db/resources/contractorPro/types/ContractorProStatus.js +10 -0
  85. package/dist/api/resources/db/resources/contractorPro/types/index.d.ts +2 -0
  86. package/dist/api/resources/db/resources/contractorPro/types/index.js +18 -0
  87. package/dist/api/resources/db/resources/index.d.ts +2 -0
  88. package/dist/api/resources/db/resources/index.js +3 -1
  89. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.d.ts +1 -0
  90. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js +1 -0
  91. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.d.ts +15 -0
  92. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.js +46 -0
  93. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.d.ts +14 -0
  94. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.js +45 -0
  95. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +2 -0
  96. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +2 -0
  97. package/dist/serialization/resources/db/resources/contractorPro/index.d.ts +1 -0
  98. package/dist/serialization/resources/db/resources/contractorPro/index.js +17 -0
  99. package/dist/serialization/resources/db/resources/contractorPro/types/ContractorPro.d.ts +21 -0
  100. package/dist/serialization/resources/db/resources/contractorPro/types/ContractorPro.js +52 -0
  101. package/dist/serialization/resources/db/resources/contractorPro/types/ContractorProStatus.d.ts +10 -0
  102. package/dist/serialization/resources/db/resources/contractorPro/types/ContractorProStatus.js +41 -0
  103. package/dist/serialization/resources/db/resources/contractorPro/types/index.d.ts +2 -0
  104. package/dist/serialization/resources/db/resources/contractorPro/types/index.js +18 -0
  105. package/dist/serialization/resources/db/resources/index.d.ts +2 -0
  106. package/dist/serialization/resources/db/resources/index.js +3 -1
  107. package/dist/version.d.ts +1 -1
  108. package/dist/version.js +1 -1
  109. package/package.json +1 -1
  110. package/reference.md +1 -0
  111. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.d.ts +1 -0
  112. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js +1 -0
  113. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.d.ts +15 -0
  114. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.js +46 -0
  115. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.d.ts +14 -0
  116. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.js +45 -0
  117. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +2 -0
  118. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +2 -0
  119. package/serialization/resources/db/resources/contractorPro/index.d.ts +1 -0
  120. package/serialization/resources/db/resources/contractorPro/index.js +17 -0
  121. package/serialization/resources/db/resources/contractorPro/types/ContractorPro.d.ts +21 -0
  122. package/serialization/resources/db/resources/contractorPro/types/ContractorPro.js +52 -0
  123. package/serialization/resources/db/resources/contractorPro/types/ContractorProStatus.d.ts +10 -0
  124. package/serialization/resources/db/resources/contractorPro/types/ContractorProStatus.js +41 -0
  125. package/serialization/resources/db/resources/contractorPro/types/index.d.ts +2 -0
  126. package/serialization/resources/db/resources/contractorPro/types/index.js +18 -0
  127. package/serialization/resources/db/resources/index.d.ts +2 -0
  128. package/serialization/resources/db/resources/index.js +3 -1
  129. package/version.d.ts +1 -1
  130. package/version.js +1 -1
@@ -0,0 +1,41 @@
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.ContractorProStatus = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.ContractorProStatus = core.serialization.enum_(["ACTIVE", "CANCELLED"]);
@@ -0,0 +1,2 @@
1
+ export * from "./ContractorProStatus";
2
+ export * from "./ContractorPro";
@@ -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("./ContractorProStatus"), exports);
18
+ __exportStar(require("./ContractorPro"), exports);
@@ -2,6 +2,8 @@ export * as company from "./company";
2
2
  export * from "./company/types";
3
3
  export * as contract from "./contract";
4
4
  export * from "./contract/types";
5
+ export * as contractorPro from "./contractorPro";
6
+ export * from "./contractorPro/types";
5
7
  export * as document from "./document";
6
8
  export * from "./document/types";
7
9
  export * as employment from "./employment";
@@ -36,11 +36,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.user = exports.payoutQueue = exports.paymentMethod = exports.migrations = exports.invoice = exports.generic = exports.expense = exports.employment = exports.document = exports.contract = exports.company = void 0;
39
+ exports.user = exports.payoutQueue = exports.paymentMethod = exports.migrations = exports.invoice = exports.generic = exports.expense = exports.employment = exports.document = exports.contractorPro = exports.contract = exports.company = void 0;
40
40
  exports.company = __importStar(require("./company"));
41
41
  __exportStar(require("./company/types"), exports);
42
42
  exports.contract = __importStar(require("./contract"));
43
43
  __exportStar(require("./contract/types"), exports);
44
+ exports.contractorPro = __importStar(require("./contractorPro"));
45
+ __exportStar(require("./contractorPro/types"), exports);
44
46
  exports.document = __importStar(require("./document"));
45
47
  __exportStar(require("./document/types"), exports);
46
48
  exports.employment = __importStar(require("./employment"));
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1.1-prerelease2746-dev-2";
1
+ export declare const SDK_VERSION = "1.1.1-prerelease2763-dev-2";
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.1.1-prerelease2746-dev-2";
4
+ exports.SDK_VERSION = "1.1.1-prerelease2763-dev-2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "1.1.1-prerelease2746-dev-2",
3
+ "version": "1.1.1-prerelease2763-dev-2",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -5582,6 +5582,7 @@ await client.api.thera.company.companyApi.inviteContractor({
5582
5582
  monthlyBonusRate: "string",
5583
5583
  customContractTemplateId: "string",
5584
5584
  },
5585
+ attachContractorPro: true,
5585
5586
  debugSettings: {
5586
5587
  forceSyncAccountingMetrics: true,
5587
5588
  },
@@ -12,6 +12,7 @@ export declare namespace InviteContractorRequest {
12
12
  interface Raw {
13
13
  contractor: CreateContractor.Raw;
14
14
  employment: CreateEmployment.Raw;
15
+ attachContractorPro?: boolean | null;
15
16
  debugSettings?: InviteContractorDebugSettings.Raw | null;
16
17
  }
17
18
  }
@@ -44,5 +44,6 @@ const InviteContractorDebugSettings_1 = require("./InviteContractorDebugSettings
44
44
  exports.InviteContractorRequest = core.serialization.object({
45
45
  contractor: CreateContractor_1.CreateContractor,
46
46
  employment: CreateEmployment_1.CreateEmployment,
47
+ attachContractorPro: core.serialization.boolean().optional(),
47
48
  debugSettings: InviteContractorDebugSettings_1.InviteContractorDebugSettings.optional(),
48
49
  });
@@ -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);
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
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);
@@ -0,0 +1,21 @@
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 { ContractorProStatus } from "./ContractorProStatus";
8
+ export declare const ContractorPro: core.serialization.ObjectSchema<serializers.db.ContractorPro.Raw, TheraApi.db.ContractorPro>;
9
+ export declare namespace ContractorPro {
10
+ interface Raw {
11
+ id: string;
12
+ employeeUserID: string;
13
+ companyID: string;
14
+ status: ContractorProStatus.Raw;
15
+ createdAt: string;
16
+ createdByUserId: string;
17
+ cancelledAt?: string | null;
18
+ cancelledByUserId?: string | null;
19
+ cancellationReason?: string | null;
20
+ }
21
+ }
@@ -0,0 +1,52 @@
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.ContractorPro = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const ContractorProStatus_1 = require("./ContractorProStatus");
42
+ exports.ContractorPro = core.serialization.object({
43
+ id: core.serialization.string(),
44
+ employeeUserId: core.serialization.property("employeeUserID", core.serialization.string()),
45
+ companyId: core.serialization.property("companyID", core.serialization.string()),
46
+ status: ContractorProStatus_1.ContractorProStatus,
47
+ createdAt: core.serialization.date(),
48
+ createdByUserId: core.serialization.string(),
49
+ cancelledAt: core.serialization.date().optional(),
50
+ cancelledByUserId: core.serialization.string().optional(),
51
+ cancellationReason: core.serialization.string().optional(),
52
+ });
@@ -0,0 +1,10 @@
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 ContractorProStatus: core.serialization.Schema<serializers.db.ContractorProStatus.Raw, TheraApi.db.ContractorProStatus>;
8
+ export declare namespace ContractorProStatus {
9
+ type Raw = "ACTIVE" | "CANCELLED";
10
+ }
@@ -0,0 +1,41 @@
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.ContractorProStatus = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.ContractorProStatus = core.serialization.enum_(["ACTIVE", "CANCELLED"]);
@@ -0,0 +1,2 @@
1
+ export * from "./ContractorProStatus";
2
+ export * from "./ContractorPro";
@@ -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("./ContractorProStatus"), exports);
18
+ __exportStar(require("./ContractorPro"), exports);
@@ -2,6 +2,8 @@ export * as company from "./company";
2
2
  export * from "./company/types";
3
3
  export * as contract from "./contract";
4
4
  export * from "./contract/types";
5
+ export * as contractorPro from "./contractorPro";
6
+ export * from "./contractorPro/types";
5
7
  export * as document from "./document";
6
8
  export * from "./document/types";
7
9
  export * as employment from "./employment";
@@ -36,11 +36,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.user = exports.payoutQueue = exports.paymentMethod = exports.migrations = exports.invoice = exports.generic = exports.expense = exports.employment = exports.document = exports.contract = exports.company = void 0;
39
+ exports.user = exports.payoutQueue = exports.paymentMethod = exports.migrations = exports.invoice = exports.generic = exports.expense = exports.employment = exports.document = exports.contractorPro = exports.contract = exports.company = void 0;
40
40
  exports.company = __importStar(require("./company"));
41
41
  __exportStar(require("./company/types"), exports);
42
42
  exports.contract = __importStar(require("./contract"));
43
43
  __exportStar(require("./contract/types"), exports);
44
+ exports.contractorPro = __importStar(require("./contractorPro"));
45
+ __exportStar(require("./contractorPro/types"), exports);
44
46
  exports.document = __importStar(require("./document"));
45
47
  __exportStar(require("./document/types"), exports);
46
48
  exports.employment = __importStar(require("./employment"));
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1.1-prerelease2746-dev-2";
1
+ export declare const SDK_VERSION = "1.1.1-prerelease2763-dev-2";
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.1.1-prerelease2746-dev-2";
4
+ exports.SDK_VERSION = "1.1.1-prerelease2763-dev-2";