@thera-hr/api-sdk 1.1.1-prerelease2720-dev-2 → 1.1.1-prerelease2737-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.
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +39 -39
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
- package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +29 -4
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +88 -18
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +12 -4
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.d.ts +23 -0
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.d.ts +5 -0
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +1 -0
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/CompanyBankingDetails.d.ts +13 -5
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +39 -39
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +29 -4
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +88 -18
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +12 -4
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.d.ts +23 -0
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.d.ts +5 -0
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +1 -0
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/CompanyBankingDetails.d.ts +13 -5
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.d.ts +16 -0
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.js +47 -0
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.js +3 -1
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.d.ts +11 -0
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.js +41 -0
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +1 -0
- package/dist/serialization/resources/db/resources/company/types/CompanyBankingDetails.d.ts +4 -4
- package/dist/serialization/resources/db/resources/company/types/CompanyBankingDetails.js +4 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +89 -4
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.d.ts +16 -0
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/UpdateCompanyIncorporationInfoRequest.js +47 -0
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.js +3 -1
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.d.ts +11 -0
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/UpdateCompanyIncorporationInfoResponse.js +41 -0
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +1 -0
- package/serialization/resources/db/resources/company/types/CompanyBankingDetails.d.ts +4 -4
- package/serialization/resources/db/resources/company/types/CompanyBankingDetails.js +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js
CHANGED
|
@@ -57,6 +57,68 @@ class TpApi {
|
|
|
57
57
|
constructor(_options) {
|
|
58
58
|
this._options = _options;
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Update company incorporation information (NAICS code, establishment date, incorporation state,
|
|
62
|
+
* and legal structure). This should be called before submitting beneficiary details.
|
|
63
|
+
*
|
|
64
|
+
* @param {string} companyId
|
|
65
|
+
* @param {TheraApi.api.thera.tp.UpdateCompanyIncorporationInfoRequest} request
|
|
66
|
+
* @param {TpApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.api.thera.tp.tpApi.updateCompanyIncorporationInfo("string", {
|
|
70
|
+
* naics: "string",
|
|
71
|
+
* establishedOn: "2023-01-15",
|
|
72
|
+
* incorporationState: "string",
|
|
73
|
+
* legalStructure: "ccorp"
|
|
74
|
+
* })
|
|
75
|
+
*/
|
|
76
|
+
updateCompanyIncorporationInfo(companyId, request, requestOptions) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
var _a;
|
|
79
|
+
const _response = yield core.fetcher({
|
|
80
|
+
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)), `companies/${encodeURIComponent(companyId)}/incorporation-info`),
|
|
81
|
+
method: "POST",
|
|
82
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
83
|
+
contentType: "application/json",
|
|
84
|
+
requestType: "json",
|
|
85
|
+
body: serializers.api.thera.tp.UpdateCompanyIncorporationInfoRequest.jsonOrThrow(request, {
|
|
86
|
+
unrecognizedObjectKeys: "strip",
|
|
87
|
+
}),
|
|
88
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
89
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
90
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
91
|
+
});
|
|
92
|
+
if (_response.ok) {
|
|
93
|
+
return serializers.api.thera.tp.UpdateCompanyIncorporationInfoResponse.parseOrThrow(_response.body, {
|
|
94
|
+
unrecognizedObjectKeys: "passthrough",
|
|
95
|
+
allowUnrecognizedUnionMembers: true,
|
|
96
|
+
allowUnrecognizedEnumValues: true,
|
|
97
|
+
skipValidation: true,
|
|
98
|
+
breadcrumbsPrefix: ["response"],
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
if (_response.error.reason === "status-code") {
|
|
102
|
+
throw new errors.TheraApiError({
|
|
103
|
+
statusCode: _response.error.statusCode,
|
|
104
|
+
body: _response.error.body,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
switch (_response.error.reason) {
|
|
108
|
+
case "non-json":
|
|
109
|
+
throw new errors.TheraApiError({
|
|
110
|
+
statusCode: _response.error.statusCode,
|
|
111
|
+
body: _response.error.rawBody,
|
|
112
|
+
});
|
|
113
|
+
case "timeout":
|
|
114
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /companies/{companyId}/incorporation-info.");
|
|
115
|
+
case "unknown":
|
|
116
|
+
throw new errors.TheraApiError({
|
|
117
|
+
message: _response.error.errorMessage,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
60
122
|
/**
|
|
61
123
|
* Final step of company onboarding, if the company is using Thera banking.
|
|
62
124
|
*
|
|
@@ -67,10 +129,18 @@ class TpApi {
|
|
|
67
129
|
* @example
|
|
68
130
|
* await client.api.thera.tp.tpApi.addCompanyBankingDetails("string", {
|
|
69
131
|
* details: {
|
|
70
|
-
* establishedOn:
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
132
|
+
* establishedOn: {
|
|
133
|
+
* "key": "value"
|
|
134
|
+
* },
|
|
135
|
+
* incorporationState: {
|
|
136
|
+
* "key": "value"
|
|
137
|
+
* },
|
|
138
|
+
* legalStructure: {
|
|
139
|
+
* "key": "value"
|
|
140
|
+
* },
|
|
141
|
+
* naics: {
|
|
142
|
+
* "key": "value"
|
|
143
|
+
* },
|
|
74
144
|
* callerUserBeneficiaryInformation: {
|
|
75
145
|
* dateOfBirth: "2023-01-15",
|
|
76
146
|
* emailAddress: "string",
|
|
@@ -127,7 +197,7 @@ class TpApi {
|
|
|
127
197
|
const _response = yield core.fetcher({
|
|
128
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)), `companies/${encodeURIComponent(companyId)}/banking-details`),
|
|
129
199
|
method: "POST",
|
|
130
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
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.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
131
201
|
contentType: "application/json",
|
|
132
202
|
requestType: "json",
|
|
133
203
|
body: serializers.api.thera.tp.AddCompanyBankingDetailsRequest.jsonOrThrow(request, {
|
|
@@ -181,7 +251,7 @@ class TpApi {
|
|
|
181
251
|
const _response = yield core.fetcher({
|
|
182
252
|
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)), "naics-codes"),
|
|
183
253
|
method: "GET",
|
|
184
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
254
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
185
255
|
contentType: "application/json",
|
|
186
256
|
requestType: "json",
|
|
187
257
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -243,7 +313,7 @@ class TpApi {
|
|
|
243
313
|
const _response = yield core.fetcher({
|
|
244
314
|
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)), `companies/${encodeURIComponent(companyId)}/process-funds`),
|
|
245
315
|
method: "POST",
|
|
246
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
316
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
247
317
|
contentType: "application/json",
|
|
248
318
|
requestType: "json",
|
|
249
319
|
body: serializers.api.thera.tp.ProcessFundsTransfer.jsonOrThrow(request, {
|
|
@@ -295,7 +365,7 @@ class TpApi {
|
|
|
295
365
|
const _response = yield core.fetcher({
|
|
296
366
|
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)), `companies/${encodeURIComponent(companyId)}/create-counterparty`),
|
|
297
367
|
method: "POST",
|
|
298
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
368
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
299
369
|
contentType: "application/json",
|
|
300
370
|
requestType: "json",
|
|
301
371
|
body: serializers.api.thera.tp.CreateCounterPartyForBankingRequest.jsonOrThrow(request, {
|
|
@@ -344,7 +414,7 @@ class TpApi {
|
|
|
344
414
|
const _response = yield core.fetcher({
|
|
345
415
|
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)), `companies/${encodeURIComponent(companyId)}/fetch-accounts`),
|
|
346
416
|
method: "GET",
|
|
347
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
417
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
348
418
|
contentType: "application/json",
|
|
349
419
|
requestType: "json",
|
|
350
420
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -399,7 +469,7 @@ class TpApi {
|
|
|
399
469
|
const _response = yield core.fetcher({
|
|
400
470
|
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)), `companies/${encodeURIComponent(companyId)}/fetch-accounts/${encodeURIComponent(accountId)}`),
|
|
401
471
|
method: "GET",
|
|
402
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
472
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
403
473
|
contentType: "application/json",
|
|
404
474
|
queryParameters: _queryParams,
|
|
405
475
|
requestType: "json",
|
|
@@ -450,7 +520,7 @@ class TpApi {
|
|
|
450
520
|
const _response = yield core.fetcher({
|
|
451
521
|
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)), `companies/${encodeURIComponent(companyId)}/transfer-fbo-omnibus`),
|
|
452
522
|
method: "POST",
|
|
453
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
523
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
454
524
|
contentType: "application/json",
|
|
455
525
|
requestType: "json",
|
|
456
526
|
body: serializers.api.thera.tp.TransferFundsToOmnibusAccount.jsonOrThrow(request, {
|
|
@@ -500,7 +570,7 @@ class TpApi {
|
|
|
500
570
|
const _response = yield core.fetcher({
|
|
501
571
|
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)), `companies/${encodeURIComponent(companyId)}/fetch-transactions/${encodeURIComponent(accountId)}`),
|
|
502
572
|
method: "GET",
|
|
503
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
573
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
504
574
|
contentType: "application/json",
|
|
505
575
|
requestType: "json",
|
|
506
576
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -553,7 +623,7 @@ class TpApi {
|
|
|
553
623
|
const _response = yield core.fetcher({
|
|
554
624
|
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)), `companies/${encodeURIComponent(companyId)}/tp-transaction/${encodeURIComponent(transactionId)}`),
|
|
555
625
|
method: "GET",
|
|
556
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
626
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
557
627
|
contentType: "application/json",
|
|
558
628
|
requestType: "json",
|
|
559
629
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -617,7 +687,7 @@ class TpApi {
|
|
|
617
687
|
const _response = yield core.fetcher({
|
|
618
688
|
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)), "webhook/tp/external-transfer-funds"),
|
|
619
689
|
method: "POST",
|
|
620
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
690
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
621
691
|
contentType: "application/json",
|
|
622
692
|
queryParameters: _queryParams,
|
|
623
693
|
requestType: "json",
|
|
@@ -695,7 +765,7 @@ class TpApi {
|
|
|
695
765
|
const _response = yield core.fetcher({
|
|
696
766
|
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)), `companies/${encodeURIComponent(companyId)}/withdraw-funds`),
|
|
697
767
|
method: "POST",
|
|
698
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
768
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
699
769
|
contentType: "application/json",
|
|
700
770
|
requestType: "json",
|
|
701
771
|
body: serializers.api.thera.tp.WithdrawalTheraCash.jsonOrThrow(request, {
|
|
@@ -760,7 +830,7 @@ class TpApi {
|
|
|
760
830
|
const _response = yield core.fetcher({
|
|
761
831
|
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)), `companies/${encodeURIComponent(companyId)}/ach-transfers`),
|
|
762
832
|
method: "GET",
|
|
763
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
833
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
764
834
|
contentType: "application/json",
|
|
765
835
|
queryParameters: _queryParams,
|
|
766
836
|
requestType: "json",
|
|
@@ -814,7 +884,7 @@ class TpApi {
|
|
|
814
884
|
const _response = yield core.fetcher({
|
|
815
885
|
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)), `companies/${encodeURIComponent(companyId)}/ach-transfers/${encodeURIComponent(achId)}`),
|
|
816
886
|
method: "GET",
|
|
817
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
887
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
818
888
|
contentType: "application/json",
|
|
819
889
|
requestType: "json",
|
|
820
890
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -867,7 +937,7 @@ class TpApi {
|
|
|
867
937
|
const _response = yield core.fetcher({
|
|
868
938
|
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)), `companies/${encodeURIComponent(companyId)}/ach-transfers/${encodeURIComponent(achId)}/retry`),
|
|
869
939
|
method: "POST",
|
|
870
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
940
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
871
941
|
contentType: "application/json",
|
|
872
942
|
requestType: "json",
|
|
873
943
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -6,10 +6,18 @@ import * as TheraApi from "../../../../../../../../../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* details: {
|
|
9
|
-
* establishedOn:
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* establishedOn: {
|
|
10
|
+
* "key": "value"
|
|
11
|
+
* },
|
|
12
|
+
* incorporationState: {
|
|
13
|
+
* "key": "value"
|
|
14
|
+
* },
|
|
15
|
+
* legalStructure: {
|
|
16
|
+
* "key": "value"
|
|
17
|
+
* },
|
|
18
|
+
* naics: {
|
|
19
|
+
* "key": "value"
|
|
20
|
+
* },
|
|
13
21
|
* callerUserBeneficiaryInformation: {
|
|
14
22
|
* dateOfBirth: "2023-01-15",
|
|
15
23
|
* emailAddress: "string",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* naics: "string",
|
|
9
|
+
* establishedOn: "2023-01-15",
|
|
10
|
+
* incorporationState: "string",
|
|
11
|
+
* legalStructure: "ccorp"
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface UpdateCompanyIncorporationInfoRequest {
|
|
15
|
+
/** NAICS sector code that accurately describes the industry the business operates in. */
|
|
16
|
+
naics: string;
|
|
17
|
+
/** Date the company was established. */
|
|
18
|
+
establishedOn: string;
|
|
19
|
+
/** State where the company is incorporated. */
|
|
20
|
+
incorporationState: string;
|
|
21
|
+
/** Legal structure of the company. */
|
|
22
|
+
legalStructure: TheraApi.db.CompanyLegalStructure;
|
|
23
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { type UpdateCompanyIncorporationInfoRequest } from "./UpdateCompanyIncorporationInfoRequest";
|
|
1
2
|
export { type AddCompanyBankingDetailsRequest } from "./AddCompanyBankingDetailsRequest";
|
|
2
3
|
export { type TpAccountRequest } from "./TpAccountRequest";
|
|
3
4
|
export { type ExternalTransferFundRequest } from "./ExternalTransferFundRequest";
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./UpdateCompanyIncorporationInfoResponse"), exports);
|
|
17
18
|
__exportStar(require("./AddCompanyBankingDetailsResponse"), exports);
|
|
18
19
|
__exportStar(require("./GetIndustryCodesResponse"), exports);
|
|
19
20
|
__exportStar(require("./IndustryCodes"), exports);
|
package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js
CHANGED
|
@@ -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.1.1-
|
|
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.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "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.1.1-
|
|
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.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "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.1.1-
|
|
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.1.1-prerelease2737-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2737-dev-2", "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",
|
|
@@ -2,12 +2,20 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as TheraApi from "../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* Banking details for a company. Company incorporation fields (establishedOn, incorporationState,
|
|
7
|
+
* legalStructure, naics) are optional and can be saved separately before beneficiary submission
|
|
8
|
+
* via the updateCompanyIncorporationInfo endpoint.
|
|
9
|
+
*/
|
|
5
10
|
export interface CompanyBankingDetails {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
/** Date the company was established. Optional - can be saved separately. */
|
|
12
|
+
establishedOn?: string;
|
|
13
|
+
/** State where the company is incorporated. Optional - can be saved separately. */
|
|
14
|
+
incorporationState?: string;
|
|
15
|
+
/** Legal structure of the company. Optional - can be saved separately. */
|
|
16
|
+
legalStructure?: TheraApi.db.CompanyLegalStructure;
|
|
17
|
+
/** NAICS sector code that accurately describes the industry the business operates in. Optional - can be saved separately. */
|
|
18
|
+
naics?: string;
|
|
11
19
|
/**
|
|
12
20
|
* Whoever is filling out the onboarding form must fill out beneficiary information even if they don't
|
|
13
21
|
* own 25% or more of the company.
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { CompanyLegalStructure } from "../../../../../../../../../db/resources/company/types/CompanyLegalStructure";
|
|
8
|
+
export declare const UpdateCompanyIncorporationInfoRequest: core.serialization.Schema<serializers.api.thera.tp.UpdateCompanyIncorporationInfoRequest.Raw, TheraApi.api.thera.tp.UpdateCompanyIncorporationInfoRequest>;
|
|
9
|
+
export declare namespace UpdateCompanyIncorporationInfoRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
naics: string;
|
|
12
|
+
establishedOn: string;
|
|
13
|
+
incorporationState: string;
|
|
14
|
+
legalStructure: CompanyLegalStructure.Raw;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.UpdateCompanyIncorporationInfoRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../../../../../core"));
|
|
41
|
+
const CompanyLegalStructure_1 = require("../../../../../../../../../db/resources/company/types/CompanyLegalStructure");
|
|
42
|
+
exports.UpdateCompanyIncorporationInfoRequest = core.serialization.object({
|
|
43
|
+
naics: core.serialization.string(),
|
|
44
|
+
establishedOn: core.serialization.string(),
|
|
45
|
+
incorporationState: core.serialization.string(),
|
|
46
|
+
legalStructure: CompanyLegalStructure_1.CompanyLegalStructure,
|
|
47
|
+
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AddCompanyBankingDetailsRequest = void 0;
|
|
3
|
+
exports.AddCompanyBankingDetailsRequest = exports.UpdateCompanyIncorporationInfoRequest = void 0;
|
|
4
|
+
var UpdateCompanyIncorporationInfoRequest_1 = require("./UpdateCompanyIncorporationInfoRequest");
|
|
5
|
+
Object.defineProperty(exports, "UpdateCompanyIncorporationInfoRequest", { enumerable: true, get: function () { return UpdateCompanyIncorporationInfoRequest_1.UpdateCompanyIncorporationInfoRequest; } });
|
|
4
6
|
var AddCompanyBankingDetailsRequest_1 = require("./AddCompanyBankingDetailsRequest");
|
|
5
7
|
Object.defineProperty(exports, "AddCompanyBankingDetailsRequest", { enumerable: true, get: function () { return AddCompanyBankingDetailsRequest_1.AddCompanyBankingDetailsRequest; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
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 UpdateCompanyIncorporationInfoResponse: core.serialization.ObjectSchema<serializers.api.thera.tp.UpdateCompanyIncorporationInfoResponse.Raw, TheraApi.api.thera.tp.UpdateCompanyIncorporationInfoResponse>;
|
|
8
|
+
export declare namespace UpdateCompanyIncorporationInfoResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -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.UpdateCompanyIncorporationInfoResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
|
+
exports.UpdateCompanyIncorporationInfoResponse = core.serialization.object({});
|
package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./UpdateCompanyIncorporationInfoResponse"), exports);
|
|
17
18
|
__exportStar(require("./AddCompanyBankingDetailsResponse"), exports);
|
|
18
19
|
__exportStar(require("./GetIndustryCodesResponse"), exports);
|
|
19
20
|
__exportStar(require("./IndustryCodes"), exports);
|
|
@@ -10,10 +10,10 @@ import { AddCompanyBeneficiary } from "./AddCompanyBeneficiary";
|
|
|
10
10
|
export declare const CompanyBankingDetails: core.serialization.ObjectSchema<serializers.db.CompanyBankingDetails.Raw, TheraApi.db.CompanyBankingDetails>;
|
|
11
11
|
export declare namespace CompanyBankingDetails {
|
|
12
12
|
interface Raw {
|
|
13
|
-
establishedOn
|
|
14
|
-
incorporationState
|
|
15
|
-
legalStructure
|
|
16
|
-
naics
|
|
13
|
+
establishedOn?: string | null;
|
|
14
|
+
incorporationState?: string | null;
|
|
15
|
+
legalStructure?: CompanyLegalStructure.Raw | null;
|
|
16
|
+
naics?: string | null;
|
|
17
17
|
callerUserBeneficiaryInformation: CompanyBeneficiary.Raw;
|
|
18
18
|
beneficiaries: AddCompanyBeneficiary.Raw[];
|
|
19
19
|
}
|
|
@@ -42,10 +42,10 @@ const CompanyLegalStructure_1 = require("./CompanyLegalStructure");
|
|
|
42
42
|
const CompanyBeneficiary_1 = require("./CompanyBeneficiary");
|
|
43
43
|
const AddCompanyBeneficiary_1 = require("./AddCompanyBeneficiary");
|
|
44
44
|
exports.CompanyBankingDetails = core.serialization.object({
|
|
45
|
-
establishedOn: core.serialization.string(),
|
|
46
|
-
incorporationState: core.serialization.string(),
|
|
47
|
-
legalStructure: CompanyLegalStructure_1.CompanyLegalStructure,
|
|
48
|
-
naics: core.serialization.string(),
|
|
45
|
+
establishedOn: core.serialization.string().optional(),
|
|
46
|
+
incorporationState: core.serialization.string().optional(),
|
|
47
|
+
legalStructure: CompanyLegalStructure_1.CompanyLegalStructure.optional(),
|
|
48
|
+
naics: core.serialization.string().optional(),
|
|
49
49
|
callerUserBeneficiaryInformation: CompanyBeneficiary_1.CompanyBeneficiary,
|
|
50
50
|
beneficiaries: core.serialization.list(AddCompanyBeneficiary_1.AddCompanyBeneficiary),
|
|
51
51
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.1.1-
|
|
1
|
+
export declare const SDK_VERSION = "1.1.1-prerelease2737-dev-2";
|
package/dist/version.js
CHANGED