@thera-hr/api-sdk 0.0.4054 → 0.0.4084

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 (105) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  3. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +19 -19
  4. package/api/resources/api/resources/thera/resources/common/resources/common/types/Address.d.ts +1 -1
  5. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +13 -13
  6. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +1 -1
  7. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +2 -2
  8. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  9. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
  10. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  11. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +4 -4
  12. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  13. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  14. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  15. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  16. package/api/resources/db/resources/contract/types/ContractApiResponse.d.ts +32 -0
  17. package/api/resources/db/resources/contract/types/ContractApiResponse.js +5 -0
  18. package/api/resources/db/resources/contract/types/Milestone.d.ts +1 -1
  19. package/api/resources/db/resources/contract/types/index.d.ts +1 -0
  20. package/api/resources/db/resources/contract/types/index.js +1 -0
  21. package/api/resources/db/resources/generic/types/GenericType.d.ts +4 -0
  22. package/api/resources/db/resources/user/types/BankAddress.d.ts +11 -0
  23. package/api/resources/db/resources/user/types/BankAddress.js +5 -0
  24. package/api/resources/db/resources/user/types/BankTransfer.d.ts +1 -1
  25. package/api/resources/db/resources/user/types/EmployeeInformationResponse.d.ts +22 -0
  26. package/api/resources/db/resources/user/types/EmployeeInformationResponse.js +5 -0
  27. package/api/resources/db/resources/user/types/UserApiResponse.d.ts +13 -0
  28. package/api/resources/db/resources/user/types/UserApiResponse.js +5 -0
  29. package/api/resources/db/resources/user/types/index.d.ts +3 -0
  30. package/api/resources/db/resources/user/types/index.js +3 -0
  31. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  32. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  33. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +19 -19
  34. package/dist/api/resources/api/resources/thera/resources/common/resources/common/types/Address.d.ts +1 -1
  35. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +13 -13
  36. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +1 -1
  37. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +2 -2
  38. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  39. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
  40. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  41. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +4 -4
  42. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  43. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  44. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  45. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  46. package/dist/api/resources/db/resources/contract/types/ContractApiResponse.d.ts +32 -0
  47. package/dist/api/resources/db/resources/contract/types/ContractApiResponse.js +5 -0
  48. package/dist/api/resources/db/resources/contract/types/Milestone.d.ts +1 -1
  49. package/dist/api/resources/db/resources/contract/types/index.d.ts +1 -0
  50. package/dist/api/resources/db/resources/contract/types/index.js +1 -0
  51. package/dist/api/resources/db/resources/generic/types/GenericType.d.ts +4 -0
  52. package/dist/api/resources/db/resources/user/types/BankAddress.d.ts +11 -0
  53. package/dist/api/resources/db/resources/user/types/BankAddress.js +5 -0
  54. package/dist/api/resources/db/resources/user/types/BankTransfer.d.ts +1 -1
  55. package/dist/api/resources/db/resources/user/types/EmployeeInformationResponse.d.ts +22 -0
  56. package/dist/api/resources/db/resources/user/types/EmployeeInformationResponse.js +5 -0
  57. package/dist/api/resources/db/resources/user/types/UserApiResponse.d.ts +13 -0
  58. package/dist/api/resources/db/resources/user/types/UserApiResponse.js +5 -0
  59. package/dist/api/resources/db/resources/user/types/index.d.ts +3 -0
  60. package/dist/api/resources/db/resources/user/types/index.js +3 -0
  61. package/dist/serialization/resources/api/resources/thera/resources/common/resources/common/types/Address.d.ts +1 -1
  62. package/dist/serialization/resources/api/resources/thera/resources/common/resources/common/types/Address.js +1 -1
  63. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +1 -1
  64. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js +1 -1
  65. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +2 -2
  66. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js +2 -2
  67. package/dist/serialization/resources/db/resources/contract/types/ContractApiResponse.d.ts +37 -0
  68. package/dist/serialization/resources/db/resources/contract/types/ContractApiResponse.js +73 -0
  69. package/dist/serialization/resources/db/resources/contract/types/Milestone.d.ts +1 -1
  70. package/dist/serialization/resources/db/resources/contract/types/Milestone.js +1 -1
  71. package/dist/serialization/resources/db/resources/contract/types/index.d.ts +1 -0
  72. package/dist/serialization/resources/db/resources/contract/types/index.js +1 -0
  73. package/dist/serialization/resources/db/resources/user/types/BankAddress.d.ts +17 -0
  74. package/dist/serialization/resources/db/resources/user/types/BankAddress.js +38 -0
  75. package/dist/serialization/resources/db/resources/user/types/BankTransfer.d.ts +1 -1
  76. package/dist/serialization/resources/db/resources/user/types/BankTransfer.js +1 -1
  77. package/dist/serialization/resources/db/resources/user/types/EmployeeInformationResponse.d.ts +24 -0
  78. package/dist/serialization/resources/db/resources/user/types/EmployeeInformationResponse.js +58 -0
  79. package/dist/serialization/resources/db/resources/user/types/UserApiResponse.d.ts +18 -0
  80. package/dist/serialization/resources/db/resources/user/types/UserApiResponse.js +48 -0
  81. package/dist/serialization/resources/db/resources/user/types/index.d.ts +3 -0
  82. package/dist/serialization/resources/db/resources/user/types/index.js +3 -0
  83. package/package.json +1 -1
  84. package/serialization/resources/api/resources/thera/resources/common/resources/common/types/Address.d.ts +1 -1
  85. package/serialization/resources/api/resources/thera/resources/common/resources/common/types/Address.js +1 -1
  86. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +1 -1
  87. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js +1 -1
  88. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +2 -2
  89. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js +2 -2
  90. package/serialization/resources/db/resources/contract/types/ContractApiResponse.d.ts +37 -0
  91. package/serialization/resources/db/resources/contract/types/ContractApiResponse.js +73 -0
  92. package/serialization/resources/db/resources/contract/types/Milestone.d.ts +1 -1
  93. package/serialization/resources/db/resources/contract/types/Milestone.js +1 -1
  94. package/serialization/resources/db/resources/contract/types/index.d.ts +1 -0
  95. package/serialization/resources/db/resources/contract/types/index.js +1 -0
  96. package/serialization/resources/db/resources/user/types/BankAddress.d.ts +17 -0
  97. package/serialization/resources/db/resources/user/types/BankAddress.js +38 -0
  98. package/serialization/resources/db/resources/user/types/BankTransfer.d.ts +1 -1
  99. package/serialization/resources/db/resources/user/types/BankTransfer.js +1 -1
  100. package/serialization/resources/db/resources/user/types/EmployeeInformationResponse.d.ts +24 -0
  101. package/serialization/resources/db/resources/user/types/EmployeeInformationResponse.js +58 -0
  102. package/serialization/resources/db/resources/user/types/UserApiResponse.d.ts +18 -0
  103. package/serialization/resources/db/resources/user/types/UserApiResponse.js +48 -0
  104. package/serialization/resources/db/resources/user/types/index.d.ts +3 -0
  105. package/serialization/resources/db/resources/user/types/index.js +3 -0
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as TheraApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const ContractApiResponse: core.serialization.ObjectSchema<serializers.db.ContractApiResponse.Raw, TheraApi.db.ContractApiResponse>;
8
+ export declare namespace ContractApiResponse {
9
+ interface Raw {
10
+ companyID: string;
11
+ employeeUserID: string;
12
+ id: string;
13
+ name?: string | null;
14
+ jobTitle: string;
15
+ employmentStatus: serializers.db.EmploymentStatus.Raw;
16
+ startDate: string;
17
+ wageType: serializers.model.thera.WageType.Raw;
18
+ rate?: number | null;
19
+ contractCurrency: string;
20
+ milestoneDetails: serializers.db.MilestoneDetails.Raw;
21
+ contractFileID: string;
22
+ lastPayDate?: string | null;
23
+ scopeOfWork: string;
24
+ type: serializers.model.thera.EmploymentType.Raw;
25
+ contractDocumentType: serializers.model.thera.ContractDocumentType.Raw;
26
+ contractDocumentID?: string | null;
27
+ w2Payroll?: serializers.db.EmploymentW2PayrollDetails.Raw | null;
28
+ eor?: serializers.db.EorDetails.Raw | null;
29
+ companySigningAuthorityUserId: string;
30
+ documents?: serializers.db.EmploymentDocuments.Raw | null;
31
+ payCycle?: serializers.model.thera.PayCycle.Raw | null;
32
+ contractType: serializers.model.thera.ContractType.Raw;
33
+ workerCanSubmitWork?: boolean | null;
34
+ clientCanSubmitWork?: boolean | null;
35
+ teamId?: string | null;
36
+ }
37
+ }
@@ -0,0 +1,73 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.ContractApiResponse = void 0;
39
+ const core = __importStar(require("../../../../../../core"));
40
+ exports.ContractApiResponse = core.serialization.object({
41
+ companyId: core.serialization.property("companyID", core.serialization.string()),
42
+ employeeUserId: core.serialization.property("employeeUserID", core.serialization.string()),
43
+ id: core.serialization.string(),
44
+ name: core.serialization.string().optional(),
45
+ jobTitle: core.serialization.string(),
46
+ employmentStatus: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.EmploymentStatus; })),
47
+ startDate: core.serialization.string(),
48
+ wageType: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).model.thera.WageType; })),
49
+ rate: core.serialization.number().optional(),
50
+ contractCurrency: core.serialization.string(),
51
+ milestoneDetails: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.MilestoneDetails; })),
52
+ contractFileId: core.serialization.property("contractFileID", core.serialization.string()),
53
+ lastPayDate: core.serialization.string().optional(),
54
+ scopeOfWork: core.serialization.string(),
55
+ type: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).model.thera.EmploymentType; })),
56
+ contractDocumentType: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).model.thera.ContractDocumentType; })),
57
+ contractDocumentId: core.serialization.property("contractDocumentID", core.serialization.string().optional()),
58
+ w2Payroll: core.serialization
59
+ .lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.EmploymentW2PayrollDetails; }))
60
+ .optional(),
61
+ eor: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.EorDetails; })).optional(),
62
+ companySigningAuthorityUserId: core.serialization.string(),
63
+ documents: core.serialization
64
+ .lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.EmploymentDocuments; }))
65
+ .optional(),
66
+ payCycle: core.serialization
67
+ .lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).model.thera.PayCycle; }))
68
+ .optional(),
69
+ contractType: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).model.thera.ContractType; })),
70
+ workerCanSubmitWork: core.serialization.boolean().optional(),
71
+ clientCanSubmitWork: core.serialization.boolean().optional(),
72
+ teamId: core.serialization.string().optional(),
73
+ });
@@ -10,7 +10,7 @@ export declare namespace Milestone {
10
10
  name: string;
11
11
  description: string;
12
12
  amount: number;
13
- fileID: string;
13
+ fileID?: string | null;
14
14
  status: serializers.db.MilestoneStatus.Raw;
15
15
  }
16
16
  }
@@ -41,6 +41,6 @@ exports.Milestone = core.serialization.object({
41
41
  name: core.serialization.string(),
42
42
  description: core.serialization.string(),
43
43
  amount: core.serialization.number(),
44
- fileId: core.serialization.property("fileID", core.serialization.string()),
44
+ fileId: core.serialization.property("fileID", core.serialization.string().optional()),
45
45
  status: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.MilestoneStatus; })),
46
46
  });
@@ -11,6 +11,7 @@ export * from "./Milestone";
11
11
  export * from "./MilestoneDetails";
12
12
  export * from "./EmploymentStatus";
13
13
  export * from "./Contract";
14
+ export * from "./ContractApiResponse";
14
15
  export * from "./EorDetails";
15
16
  export * from "./EorPayslip";
16
17
  export * from "./EmploymentDocuments";
@@ -27,6 +27,7 @@ __exportStar(require("./Milestone"), exports);
27
27
  __exportStar(require("./MilestoneDetails"), exports);
28
28
  __exportStar(require("./EmploymentStatus"), exports);
29
29
  __exportStar(require("./Contract"), exports);
30
+ __exportStar(require("./ContractApiResponse"), exports);
30
31
  __exportStar(require("./EorDetails"), exports);
31
32
  __exportStar(require("./EorPayslip"), exports);
32
33
  __exportStar(require("./EmploymentDocuments"), exports);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as TheraApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const BankAddress: core.serialization.ObjectSchema<serializers.db.BankAddress.Raw, TheraApi.db.BankAddress>;
8
+ export declare namespace BankAddress {
9
+ interface Raw {
10
+ city: string;
11
+ country: string;
12
+ line1: string;
13
+ line2?: string | null;
14
+ postalCode?: string | null;
15
+ state?: string | null;
16
+ }
17
+ }
@@ -0,0 +1,38 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.BankAddress = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.BankAddress = core.serialization.object({
32
+ city: core.serialization.string(),
33
+ country: core.serialization.string(),
34
+ line1: core.serialization.string(),
35
+ line2: core.serialization.string().optional(),
36
+ postalCode: core.serialization.string().optional(),
37
+ state: core.serialization.string().optional(),
38
+ });
@@ -8,7 +8,7 @@ export declare const BankTransfer: core.serialization.ObjectSchema<serializers.d
8
8
  export declare namespace BankTransfer {
9
9
  interface Raw {
10
10
  title: string;
11
- recipientAddress: serializers.api.thera.common.Address.Raw;
11
+ recipientAddress: serializers.db.BankAddress.Raw;
12
12
  currency: string;
13
13
  methodType: string;
14
14
  accountHolderName: string;
@@ -39,7 +39,7 @@ exports.BankTransfer = void 0;
39
39
  const core = __importStar(require("../../../../../../core"));
40
40
  exports.BankTransfer = core.serialization.object({
41
41
  title: core.serialization.string(),
42
- recipientAddress: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).api.thera.common.Address; })),
42
+ recipientAddress: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.BankAddress; })),
43
43
  currency: core.serialization.string(),
44
44
  methodType: core.serialization.string(),
45
45
  accountHolderName: core.serialization.string(),
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as TheraApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const EmployeeInformationResponse: core.serialization.ObjectSchema<serializers.db.EmployeeInformationResponse.Raw, TheraApi.db.EmployeeInformationResponse>;
8
+ export declare namespace EmployeeInformationResponse {
9
+ interface Raw {
10
+ stripeID?: string | null;
11
+ onboardingStatus: serializers.db.EmployeeOnboardingStatus.Raw;
12
+ employeeOnboardingStatus: serializers.db.EmployeeOnboardingStatus.Raw;
13
+ country: string;
14
+ address?: serializers.api.thera.common.Address.Raw | null;
15
+ complianceInformation?: serializers.db.ComplianceInformation.Raw | null;
16
+ w8BenFileS3Key?: string | null;
17
+ withdrawalMethods: Record<string, serializers.db.WithdrawalMethod.Raw>;
18
+ preferredWithdrawalMethod?: string | null;
19
+ paymentsVersion: number;
20
+ settingsByCompanyId: Record<string, serializers.db.UserCompanySettings.Raw>;
21
+ kycInformation: serializers.db.KycDocument.Raw[];
22
+ indiaGst?: string | null;
23
+ }
24
+ }
@@ -0,0 +1,58 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.EmployeeInformationResponse = void 0;
39
+ const core = __importStar(require("../../../../../../core"));
40
+ exports.EmployeeInformationResponse = core.serialization.object({
41
+ stripeId: core.serialization.property("stripeID", core.serialization.string().optional()),
42
+ onboardingStatus: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.EmployeeOnboardingStatus; })),
43
+ employeeOnboardingStatus: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.EmployeeOnboardingStatus; })),
44
+ country: core.serialization.string(),
45
+ address: core.serialization
46
+ .lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).api.thera.common.Address; }))
47
+ .optional(),
48
+ complianceInformation: core.serialization
49
+ .lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.ComplianceInformation; }))
50
+ .optional(),
51
+ w8BenFileS3Key: core.serialization.string().optional(),
52
+ withdrawalMethods: core.serialization.record(core.serialization.string(), core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.WithdrawalMethod; }))),
53
+ preferredWithdrawalMethod: core.serialization.string().optional(),
54
+ paymentsVersion: core.serialization.number(),
55
+ settingsByCompanyId: core.serialization.record(core.serialization.string(), core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.UserCompanySettings; }))),
56
+ kycInformation: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.KycDocument; }))),
57
+ indiaGst: core.serialization.string().optional(),
58
+ });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as TheraApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const UserApiResponse: core.serialization.ObjectSchema<serializers.db.UserApiResponse.Raw, TheraApi.db.UserApiResponse>;
8
+ export declare namespace UserApiResponse {
9
+ interface Raw {
10
+ userID: string;
11
+ companyID?: string | null;
12
+ email: string;
13
+ firstName: string;
14
+ lastName: string;
15
+ employeeInformation: serializers.db.EmployeeInformationResponse.Raw;
16
+ lastPosthogEventDate?: string | null;
17
+ }
18
+ }
@@ -0,0 +1,48 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.UserApiResponse = void 0;
39
+ const core = __importStar(require("../../../../../../core"));
40
+ exports.UserApiResponse = core.serialization.object({
41
+ userId: core.serialization.property("userID", core.serialization.string()),
42
+ companyId: core.serialization.property("companyID", core.serialization.string().optional()),
43
+ email: core.serialization.string(),
44
+ firstName: core.serialization.string(),
45
+ lastName: core.serialization.string(),
46
+ employeeInformation: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.EmployeeInformationResponse; })),
47
+ lastPosthogEventDate: core.serialization.string().optional(),
48
+ });
@@ -11,5 +11,8 @@ export * from "./AiPriseVerificationStatus";
11
11
  export * from "./UserCompanySettings";
12
12
  export * from "./WithdrawalMethod";
13
13
  export * from "./BankTransfer";
14
+ export * from "./BankAddress";
14
15
  export * from "./WithdrawalMethodAccountType";
15
16
  export * from "./User";
17
+ export * from "./UserApiResponse";
18
+ export * from "./EmployeeInformationResponse";
@@ -27,5 +27,8 @@ __exportStar(require("./AiPriseVerificationStatus"), exports);
27
27
  __exportStar(require("./UserCompanySettings"), exports);
28
28
  __exportStar(require("./WithdrawalMethod"), exports);
29
29
  __exportStar(require("./BankTransfer"), exports);
30
+ __exportStar(require("./BankAddress"), exports);
30
31
  __exportStar(require("./WithdrawalMethodAccountType"), exports);
31
32
  __exportStar(require("./User"), exports);
33
+ __exportStar(require("./UserApiResponse"), exports);
34
+ __exportStar(require("./EmployeeInformationResponse"), exports);