@thera-hr/api-sdk 0.0.1-prerelease3538-dev-2 → 0.0.1-prerelease3538-production
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 +37 -37
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
- 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.d.ts +12 -0
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +57 -8
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.d.ts +12 -0
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +1 -0
- 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 +15 -1
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +26 -12
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +15 -1
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/CompanyBeneficiary.d.ts +13 -2
- 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 +37 -37
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
- 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.d.ts +12 -0
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +57 -8
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.d.ts +12 -0
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +1 -0
- 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 +15 -1
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +26 -12
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +15 -1
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/CompanyBeneficiary.d.ts +13 -2
- package/dist/serialization/resources/db/resources/company/types/CompanyBeneficiary.d.ts +5 -1
- package/dist/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +5 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +80 -1
- package/serialization/resources/db/resources/company/types/CompanyBeneficiary.d.ts +5 -1
- package/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +5 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
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": "0.0.1-prerelease3538-
|
|
81
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3538-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3538-production", "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": "0.0.1-prerelease3538-
|
|
142
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3538-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3538-production", "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": "0.0.1-prerelease3538-
|
|
200
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3538-production", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3538-production", "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",
|
|
@@ -13,8 +13,19 @@ export interface CompanyBeneficiary {
|
|
|
13
13
|
/** Only required if different from physical address */
|
|
14
14
|
mailingAddress?: TheraApi.api.thera.common.RequestAddress;
|
|
15
15
|
physicalAddress: TheraApi.api.thera.common.RequestAddress;
|
|
16
|
-
/**
|
|
17
|
-
|
|
16
|
+
/** Two-letter ISO country code for person's nationality/citizenship (e.g., "US", "CA", "MX"). Optional, only required if Non-US person. */
|
|
17
|
+
citizenship?: string;
|
|
18
|
+
/** U.S. Social Security or IRS tax ID number of the person (optional for non-US persons, use identificationNumber instead). */
|
|
19
|
+
tin?: string;
|
|
20
|
+
/** International identification number for non-US persons (tax ID, passport number, etc.). Max 30 chars. */
|
|
21
|
+
identificationNumber?: string;
|
|
22
|
+
/** Type of international identification number (e.g., "passport", "tax_id", "national_id"). Max 30 chars. */
|
|
23
|
+
identificationNumberType?: string;
|
|
24
|
+
/**
|
|
25
|
+
* S3 key for foreign identity document (passport or national ID) for non-US owners.
|
|
26
|
+
* Required for beneficiaries with non-US addresses.
|
|
27
|
+
*/
|
|
28
|
+
foreignIdDocumentS3Key?: string;
|
|
18
29
|
ownershipPercentage: number;
|
|
19
30
|
title: string;
|
|
20
31
|
makeOrgAdmin?: boolean;
|
|
@@ -16,7 +16,11 @@ export declare namespace CompanyBeneficiary {
|
|
|
16
16
|
phoneNumber: string;
|
|
17
17
|
mailingAddress?: RequestAddress.Raw | null;
|
|
18
18
|
physicalAddress: RequestAddress.Raw;
|
|
19
|
-
|
|
19
|
+
citizenship?: string | null;
|
|
20
|
+
tin?: string | null;
|
|
21
|
+
identificationNumber?: string | null;
|
|
22
|
+
identificationNumberType?: string | null;
|
|
23
|
+
foreignIdDocumentS3Key?: string | null;
|
|
20
24
|
ownershipPercentage: number;
|
|
21
25
|
title: string;
|
|
22
26
|
makeOrgAdmin?: boolean | null;
|
|
@@ -48,7 +48,11 @@ exports.CompanyBeneficiary = core.serialization.object({
|
|
|
48
48
|
phoneNumber: core.serialization.string(),
|
|
49
49
|
mailingAddress: RequestAddress_1.RequestAddress.optional(),
|
|
50
50
|
physicalAddress: RequestAddress_1.RequestAddress,
|
|
51
|
-
|
|
51
|
+
citizenship: core.serialization.string().optional(),
|
|
52
|
+
tin: core.serialization.string().optional(),
|
|
53
|
+
identificationNumber: core.serialization.string().optional(),
|
|
54
|
+
identificationNumberType: core.serialization.string().optional(),
|
|
55
|
+
foreignIdDocumentS3Key: core.serialization.string().optional(),
|
|
52
56
|
ownershipPercentage: core.serialization.number(),
|
|
53
57
|
title: core.serialization.string(),
|
|
54
58
|
makeOrgAdmin: core.serialization.boolean().optional(),
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.1-prerelease3538-
|
|
1
|
+
export declare const SDK_VERSION = "0.0.1-prerelease3538-production";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -8823,6 +8823,71 @@ await client.api.thera.misc.misc.autoPayCron({
|
|
|
8823
8823
|
</dl>
|
|
8824
8824
|
</details>
|
|
8825
8825
|
|
|
8826
|
+
<details><summary><code>client.api.thera.misc.misc.<a href="/src/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.ts">distributeTpPayrollAccountCron</a>({ ...params }) -> void</code></summary>
|
|
8827
|
+
<dl>
|
|
8828
|
+
<dd>
|
|
8829
|
+
|
|
8830
|
+
#### 📝 Description
|
|
8831
|
+
|
|
8832
|
+
<dl>
|
|
8833
|
+
<dd>
|
|
8834
|
+
|
|
8835
|
+
<dl>
|
|
8836
|
+
<dd>
|
|
8837
|
+
|
|
8838
|
+
Calling this API will trigger automatic distribution of Tp payroll amount to omnibus.
|
|
8839
|
+
|
|
8840
|
+
</dd>
|
|
8841
|
+
</dl>
|
|
8842
|
+
</dd>
|
|
8843
|
+
</dl>
|
|
8844
|
+
|
|
8845
|
+
#### 🔌 Usage
|
|
8846
|
+
|
|
8847
|
+
<dl>
|
|
8848
|
+
<dd>
|
|
8849
|
+
|
|
8850
|
+
<dl>
|
|
8851
|
+
<dd>
|
|
8852
|
+
|
|
8853
|
+
```typescript
|
|
8854
|
+
await client.api.thera.misc.misc.distributeTpPayrollAccountCron({
|
|
8855
|
+
theraWebhookSignatureHeader: "string",
|
|
8856
|
+
});
|
|
8857
|
+
```
|
|
8858
|
+
|
|
8859
|
+
</dd>
|
|
8860
|
+
</dl>
|
|
8861
|
+
</dd>
|
|
8862
|
+
</dl>
|
|
8863
|
+
|
|
8864
|
+
#### ⚙️ Parameters
|
|
8865
|
+
|
|
8866
|
+
<dl>
|
|
8867
|
+
<dd>
|
|
8868
|
+
|
|
8869
|
+
<dl>
|
|
8870
|
+
<dd>
|
|
8871
|
+
|
|
8872
|
+
**request:** `TheraApi.api.thera.misc.DistributeTpPayrollAccountCronRequest`
|
|
8873
|
+
|
|
8874
|
+
</dd>
|
|
8875
|
+
</dl>
|
|
8876
|
+
|
|
8877
|
+
<dl>
|
|
8878
|
+
<dd>
|
|
8879
|
+
|
|
8880
|
+
**requestOptions:** `Misc.RequestOptions`
|
|
8881
|
+
|
|
8882
|
+
</dd>
|
|
8883
|
+
</dl>
|
|
8884
|
+
</dd>
|
|
8885
|
+
</dl>
|
|
8886
|
+
|
|
8887
|
+
</dd>
|
|
8888
|
+
</dl>
|
|
8889
|
+
</details>
|
|
8890
|
+
|
|
8826
8891
|
<details><summary><code>client.api.thera.misc.misc.<a href="/src/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.ts">autoPayEmailNotificationCron</a>({ ...params }) -> void</code></summary>
|
|
8827
8892
|
<dl>
|
|
8828
8893
|
<dd>
|
|
@@ -12844,7 +12909,21 @@ await client.api.thera.tp.tpApi.addCompanyBankingDetails("string", {
|
|
|
12844
12909
|
postalCode: "string",
|
|
12845
12910
|
state: "string",
|
|
12846
12911
|
},
|
|
12847
|
-
|
|
12912
|
+
citizenship: {
|
|
12913
|
+
key: "value",
|
|
12914
|
+
},
|
|
12915
|
+
tin: {
|
|
12916
|
+
key: "value",
|
|
12917
|
+
},
|
|
12918
|
+
identificationNumber: {
|
|
12919
|
+
key: "value",
|
|
12920
|
+
},
|
|
12921
|
+
identificationNumberType: {
|
|
12922
|
+
key: "value",
|
|
12923
|
+
},
|
|
12924
|
+
foreignIdDocumentS3Key: {
|
|
12925
|
+
key: "value",
|
|
12926
|
+
},
|
|
12848
12927
|
ownershipPercentage: 1,
|
|
12849
12928
|
title: "string",
|
|
12850
12929
|
makeOrgAdmin: {
|
|
@@ -16,7 +16,11 @@ export declare namespace CompanyBeneficiary {
|
|
|
16
16
|
phoneNumber: string;
|
|
17
17
|
mailingAddress?: RequestAddress.Raw | null;
|
|
18
18
|
physicalAddress: RequestAddress.Raw;
|
|
19
|
-
|
|
19
|
+
citizenship?: string | null;
|
|
20
|
+
tin?: string | null;
|
|
21
|
+
identificationNumber?: string | null;
|
|
22
|
+
identificationNumberType?: string | null;
|
|
23
|
+
foreignIdDocumentS3Key?: string | null;
|
|
20
24
|
ownershipPercentage: number;
|
|
21
25
|
title: string;
|
|
22
26
|
makeOrgAdmin?: boolean | null;
|
|
@@ -48,7 +48,11 @@ exports.CompanyBeneficiary = core.serialization.object({
|
|
|
48
48
|
phoneNumber: core.serialization.string(),
|
|
49
49
|
mailingAddress: RequestAddress_1.RequestAddress.optional(),
|
|
50
50
|
physicalAddress: RequestAddress_1.RequestAddress,
|
|
51
|
-
|
|
51
|
+
citizenship: core.serialization.string().optional(),
|
|
52
|
+
tin: core.serialization.string().optional(),
|
|
53
|
+
identificationNumber: core.serialization.string().optional(),
|
|
54
|
+
identificationNumberType: core.serialization.string().optional(),
|
|
55
|
+
foreignIdDocumentS3Key: core.serialization.string().optional(),
|
|
52
56
|
ownershipPercentage: core.serialization.number(),
|
|
53
57
|
title: core.serialization.string(),
|
|
54
58
|
makeOrgAdmin: core.serialization.boolean().optional(),
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.1-prerelease3538-
|
|
1
|
+
export declare const SDK_VERSION = "0.0.1-prerelease3538-production";
|
package/version.js
CHANGED