@thera-hr/api-sdk 0.0.1-prerelease3031-dev-3 → 0.0.1-prerelease3032-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/client/Client.d.ts +0 -3
- package/api/resources/api/resources/thera/client/Client.js +12 -17
- 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.d.ts +27 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +155 -35
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPayInHistoryRequest.d.ts +5 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPaymentByTypeRequest.d.ts +12 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInCountResponse.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- 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 +3 -3
- 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/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/index.js +1 -2
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
- 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 +3 -3
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- 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.js +10 -10
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/Company.d.ts +0 -1
- package/api/resources/db/resources/company/types/index.d.ts +0 -1
- package/api/resources/db/resources/company/types/index.js +0 -1
- 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/client/Client.d.ts +0 -3
- package/dist/api/resources/api/resources/thera/client/Client.js +12 -17
- 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.d.ts +27 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +155 -35
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPayInHistoryRequest.d.ts +5 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPaymentByTypeRequest.d.ts +12 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInCountResponse.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- 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 +3 -3
- 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/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/index.js +1 -2
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
- 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 +3 -3
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- 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.js +10 -10
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/Company.d.ts +0 -1
- package/dist/api/resources/db/resources/company/types/index.d.ts +0 -1
- package/dist/api/resources/db/resources/company/types/index.js +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInCountResponse.d.ts +12 -0
- package/{serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js → dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInCountResponse.js} +3 -6
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/index.js +1 -2
- package/dist/serialization/resources/db/resources/company/types/Company.d.ts +0 -2
- package/dist/serialization/resources/db/resources/company/types/Company.js +0 -2
- package/dist/serialization/resources/db/resources/company/types/index.d.ts +0 -1
- package/dist/serialization/resources/db/resources/company/types/index.js +0 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +146 -81
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInCountResponse.d.ts +12 -0
- package/{dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js → serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInCountResponse.js} +3 -6
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/serialization/resources/api/resources/thera/resources/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/index.js +1 -2
- package/serialization/resources/db/resources/company/types/Company.d.ts +0 -2
- package/serialization/resources/db/resources/company/types/Company.js +0 -2
- package/serialization/resources/db/resources/company/types/index.d.ts +0 -1
- package/serialization/resources/db/resources/company/types/index.js +0 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/api/resources/thera/resources/incorporation/client/Client.d.ts +0 -19
- package/api/resources/api/resources/thera/resources/incorporation/client/Client.js +0 -17
- package/api/resources/api/resources/thera/resources/incorporation/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/incorporation/client/index.js +0 -2
- package/api/resources/api/resources/thera/resources/incorporation/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/incorporation/index.js +0 -18
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.d.ts +0 -54
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +0 -141
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.js +0 -2
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.js +0 -18
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +0 -20
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +0 -9
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +0 -18
- package/api/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/incorporation/resources/index.js +0 -41
- package/api/resources/db/resources/company/types/IncorporationDetails.d.ts +0 -16
- package/dist/api/resources/api/resources/thera/resources/incorporation/client/Client.d.ts +0 -19
- package/dist/api/resources/api/resources/thera/resources/incorporation/client/Client.js +0 -17
- package/dist/api/resources/api/resources/thera/resources/incorporation/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/incorporation/client/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/incorporation/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/incorporation/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.d.ts +0 -54
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +0 -141
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +0 -20
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +0 -9
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/index.js +0 -41
- package/dist/api/resources/db/resources/company/types/IncorporationDetails.d.ts +0 -16
- package/dist/api/resources/db/resources/company/types/IncorporationDetails.js +0 -5
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/index.js +0 -17
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.js +0 -17
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +0 -26
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js +0 -57
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +0 -15
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +0 -18
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/index.js +0 -41
- package/dist/serialization/resources/db/resources/company/types/IncorporationDetails.d.ts +0 -22
- package/dist/serialization/resources/db/resources/company/types/IncorporationDetails.js +0 -53
- package/serialization/resources/api/resources/thera/resources/incorporation/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/incorporation/index.js +0 -17
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.js +0 -17
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +0 -26
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js +0 -57
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +0 -15
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +0 -2
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +0 -18
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +0 -2
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/index.js +0 -41
- package/serialization/resources/db/resources/company/types/IncorporationDetails.d.ts +0 -22
- package/serialization/resources/db/resources/company/types/IncorporationDetails.js +0 -53
- /package/api/resources/api/resources/thera/resources/{incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js → bank/resources/bankApi/client/requests/GetPaymentByTypeRequest.js} +0 -0
- /package/api/resources/api/resources/thera/resources/{incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js → bank/resources/bankApi/types/GetPayInCountResponse.js} +0 -0
- /package/{api/resources/db/resources/company/types/IncorporationDetails.js → dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPaymentByTypeRequest.js} +0 -0
- /package/dist/api/resources/api/resources/thera/resources/{incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js → bank/resources/bankApi/types/GetPayInCountResponse.js} +0 -0
package/reference.md
CHANGED
|
@@ -2499,6 +2499,8 @@ await client.api.thera.bank.bankApi.getWorkerWithdrawalDeliveryEstimate("string"
|
|
|
2499
2499
|
await client.api.thera.bank.bankApi.getPayInHistory("string", {
|
|
2500
2500
|
status: "PENDING",
|
|
2501
2501
|
offPlatformOnly: true,
|
|
2502
|
+
pageSize: 1000000,
|
|
2503
|
+
afterCursor: "string",
|
|
2502
2504
|
});
|
|
2503
2505
|
```
|
|
2504
2506
|
|
|
@@ -2965,6 +2967,150 @@ await client.api.thera.bank.bankApi.setAutoApproveInvoiceForTeams("string", {
|
|
|
2965
2967
|
</dl>
|
|
2966
2968
|
</details>
|
|
2967
2969
|
|
|
2970
|
+
<details><summary><code>client.api.thera.bank.bankApi.<a href="/src/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.ts">getPaymentByTypeAndId</a>(companyId, paymentId, { ...params }) -> TheraApi.HistoricPayment</code></summary>
|
|
2971
|
+
<dl>
|
|
2972
|
+
<dd>
|
|
2973
|
+
|
|
2974
|
+
#### 📝 Description
|
|
2975
|
+
|
|
2976
|
+
<dl>
|
|
2977
|
+
<dd>
|
|
2978
|
+
|
|
2979
|
+
<dl>
|
|
2980
|
+
<dd>
|
|
2981
|
+
|
|
2982
|
+
Get a specific W2 subscription or EOR payment by its ID. This endpoint is optimized for direct retrieval without pagination concerns.
|
|
2983
|
+
|
|
2984
|
+
</dd>
|
|
2985
|
+
</dl>
|
|
2986
|
+
</dd>
|
|
2987
|
+
</dl>
|
|
2988
|
+
|
|
2989
|
+
#### 🔌 Usage
|
|
2990
|
+
|
|
2991
|
+
<dl>
|
|
2992
|
+
<dd>
|
|
2993
|
+
|
|
2994
|
+
<dl>
|
|
2995
|
+
<dd>
|
|
2996
|
+
|
|
2997
|
+
```typescript
|
|
2998
|
+
await client.api.thera.bank.bankApi.getPaymentByTypeAndId("string", "string", {
|
|
2999
|
+
paymentType: "string",
|
|
3000
|
+
});
|
|
3001
|
+
```
|
|
3002
|
+
|
|
3003
|
+
</dd>
|
|
3004
|
+
</dl>
|
|
3005
|
+
</dd>
|
|
3006
|
+
</dl>
|
|
3007
|
+
|
|
3008
|
+
#### ⚙️ Parameters
|
|
3009
|
+
|
|
3010
|
+
<dl>
|
|
3011
|
+
<dd>
|
|
3012
|
+
|
|
3013
|
+
<dl>
|
|
3014
|
+
<dd>
|
|
3015
|
+
|
|
3016
|
+
**companyId:** `string`
|
|
3017
|
+
|
|
3018
|
+
</dd>
|
|
3019
|
+
</dl>
|
|
3020
|
+
|
|
3021
|
+
<dl>
|
|
3022
|
+
<dd>
|
|
3023
|
+
|
|
3024
|
+
**paymentId:** `string`
|
|
3025
|
+
|
|
3026
|
+
</dd>
|
|
3027
|
+
</dl>
|
|
3028
|
+
|
|
3029
|
+
<dl>
|
|
3030
|
+
<dd>
|
|
3031
|
+
|
|
3032
|
+
**request:** `TheraApi.api.thera.bank.GetPaymentByTypeRequest`
|
|
3033
|
+
|
|
3034
|
+
</dd>
|
|
3035
|
+
</dl>
|
|
3036
|
+
|
|
3037
|
+
<dl>
|
|
3038
|
+
<dd>
|
|
3039
|
+
|
|
3040
|
+
**requestOptions:** `BankApi.RequestOptions`
|
|
3041
|
+
|
|
3042
|
+
</dd>
|
|
3043
|
+
</dl>
|
|
3044
|
+
</dd>
|
|
3045
|
+
</dl>
|
|
3046
|
+
|
|
3047
|
+
</dd>
|
|
3048
|
+
</dl>
|
|
3049
|
+
</details>
|
|
3050
|
+
|
|
3051
|
+
<details><summary><code>client.api.thera.bank.bankApi.<a href="/src/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.ts">getPayInCount</a>(companyId) -> TheraApi.GetPayInCountResponse</code></summary>
|
|
3052
|
+
<dl>
|
|
3053
|
+
<dd>
|
|
3054
|
+
|
|
3055
|
+
#### 📝 Description
|
|
3056
|
+
|
|
3057
|
+
<dl>
|
|
3058
|
+
<dd>
|
|
3059
|
+
|
|
3060
|
+
<dl>
|
|
3061
|
+
<dd>
|
|
3062
|
+
|
|
3063
|
+
Get the total count of pay-ins for a company. This endpoint is optimized for counting large datasets efficiently.
|
|
3064
|
+
|
|
3065
|
+
</dd>
|
|
3066
|
+
</dl>
|
|
3067
|
+
</dd>
|
|
3068
|
+
</dl>
|
|
3069
|
+
|
|
3070
|
+
#### 🔌 Usage
|
|
3071
|
+
|
|
3072
|
+
<dl>
|
|
3073
|
+
<dd>
|
|
3074
|
+
|
|
3075
|
+
<dl>
|
|
3076
|
+
<dd>
|
|
3077
|
+
|
|
3078
|
+
```typescript
|
|
3079
|
+
await client.api.thera.bank.bankApi.getPayInCount("string");
|
|
3080
|
+
```
|
|
3081
|
+
|
|
3082
|
+
</dd>
|
|
3083
|
+
</dl>
|
|
3084
|
+
</dd>
|
|
3085
|
+
</dl>
|
|
3086
|
+
|
|
3087
|
+
#### ⚙️ Parameters
|
|
3088
|
+
|
|
3089
|
+
<dl>
|
|
3090
|
+
<dd>
|
|
3091
|
+
|
|
3092
|
+
<dl>
|
|
3093
|
+
<dd>
|
|
3094
|
+
|
|
3095
|
+
**companyId:** `string`
|
|
3096
|
+
|
|
3097
|
+
</dd>
|
|
3098
|
+
</dl>
|
|
3099
|
+
|
|
3100
|
+
<dl>
|
|
3101
|
+
<dd>
|
|
3102
|
+
|
|
3103
|
+
**requestOptions:** `BankApi.RequestOptions`
|
|
3104
|
+
|
|
3105
|
+
</dd>
|
|
3106
|
+
</dl>
|
|
3107
|
+
</dd>
|
|
3108
|
+
</dl>
|
|
3109
|
+
|
|
3110
|
+
</dd>
|
|
3111
|
+
</dl>
|
|
3112
|
+
</details>
|
|
3113
|
+
|
|
2968
3114
|
## Bridge APIs
|
|
2969
3115
|
|
|
2970
3116
|
<details><summary><code>client.api.thera.bridge.bridgeApi.<a href="/src/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.ts">requestTosLink</a>() -> TheraApi.TosLinkResponse</code></summary>
|
|
@@ -7889,87 +8035,6 @@ await client.api.thera.eor.eorTrackerApi.getLatestEorEmployeeEmailByCompanyId("s
|
|
|
7889
8035
|
</dl>
|
|
7890
8036
|
</details>
|
|
7891
8037
|
|
|
7892
|
-
## Incorporation Integration
|
|
7893
|
-
|
|
7894
|
-
<details><summary><code>client.api.thera.incorporation.incorporationApi.<a href="/src/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.ts">incorporationSignup</a>({ ...params }) -> TheraApi.IncorporationSignupResponse</code></summary>
|
|
7895
|
-
<dl>
|
|
7896
|
-
<dd>
|
|
7897
|
-
|
|
7898
|
-
#### 📝 Description
|
|
7899
|
-
|
|
7900
|
-
<dl>
|
|
7901
|
-
<dd>
|
|
7902
|
-
|
|
7903
|
-
<dl>
|
|
7904
|
-
<dd>
|
|
7905
|
-
|
|
7906
|
-
Create a new user account and company for someone who has incorporated
|
|
7907
|
-
|
|
7908
|
-
</dd>
|
|
7909
|
-
</dl>
|
|
7910
|
-
</dd>
|
|
7911
|
-
</dl>
|
|
7912
|
-
|
|
7913
|
-
#### 🔌 Usage
|
|
7914
|
-
|
|
7915
|
-
<dl>
|
|
7916
|
-
<dd>
|
|
7917
|
-
|
|
7918
|
-
<dl>
|
|
7919
|
-
<dd>
|
|
7920
|
-
|
|
7921
|
-
```typescript
|
|
7922
|
-
await client.api.thera.incorporation.incorporationApi.incorporationSignup({
|
|
7923
|
-
businessName: "string",
|
|
7924
|
-
state: "string",
|
|
7925
|
-
firstName: "string",
|
|
7926
|
-
lastName: "string",
|
|
7927
|
-
email: "string",
|
|
7928
|
-
phone: "string",
|
|
7929
|
-
experience: "string",
|
|
7930
|
-
progress: "string",
|
|
7931
|
-
industry: "string",
|
|
7932
|
-
agent: "string",
|
|
7933
|
-
packageType: "string",
|
|
7934
|
-
appointedAgent: true,
|
|
7935
|
-
registrationDate: "string",
|
|
7936
|
-
status: "string",
|
|
7937
|
-
password: "string",
|
|
7938
|
-
});
|
|
7939
|
-
```
|
|
7940
|
-
|
|
7941
|
-
</dd>
|
|
7942
|
-
</dl>
|
|
7943
|
-
</dd>
|
|
7944
|
-
</dl>
|
|
7945
|
-
|
|
7946
|
-
#### ⚙️ Parameters
|
|
7947
|
-
|
|
7948
|
-
<dl>
|
|
7949
|
-
<dd>
|
|
7950
|
-
|
|
7951
|
-
<dl>
|
|
7952
|
-
<dd>
|
|
7953
|
-
|
|
7954
|
-
**request:** `TheraApi.IncorporationSignupRequest`
|
|
7955
|
-
|
|
7956
|
-
</dd>
|
|
7957
|
-
</dl>
|
|
7958
|
-
|
|
7959
|
-
<dl>
|
|
7960
|
-
<dd>
|
|
7961
|
-
|
|
7962
|
-
**requestOptions:** `IncorporationApi.RequestOptions`
|
|
7963
|
-
|
|
7964
|
-
</dd>
|
|
7965
|
-
</dl>
|
|
7966
|
-
</dd>
|
|
7967
|
-
</dl>
|
|
7968
|
-
|
|
7969
|
-
</dd>
|
|
7970
|
-
</dl>
|
|
7971
|
-
</details>
|
|
7972
|
-
|
|
7973
8038
|
## Miscellaneous API
|
|
7974
8039
|
|
|
7975
8040
|
<details><summary><code>client.api.thera.misc.misc.<a href="/src/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.ts">regularCron</a>({ ...params }) -> TheraApi.DailyCronResponse</code></summary>
|
|
@@ -0,0 +1,12 @@
|
|
|
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 GetPayInCountResponse: core.serialization.ObjectSchema<serializers.api.thera.bank.GetPayInCountResponse.Raw, TheraApi.api.thera.bank.GetPayInCountResponse>;
|
|
8
|
+
export declare namespace GetPayInCountResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
totalCount: number;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -36,11 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.GetPayInCountResponse = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
|
-
exports.
|
|
42
|
-
|
|
43
|
-
userId: core.serialization.string().optional(),
|
|
44
|
-
companyId: core.serialization.string().optional(),
|
|
45
|
-
error: core.serialization.string().optional(),
|
|
41
|
+
exports.GetPayInCountResponse = core.serialization.object({
|
|
42
|
+
totalCount: core.serialization.number(),
|
|
46
43
|
});
|
|
@@ -43,4 +43,5 @@ const HistoricPayment_1 = require("./HistoricPayment");
|
|
|
43
43
|
exports.GetPayInHistoryResponse = core.serialization.object({
|
|
44
44
|
history: core.serialization.list(HistoricalPayIn_1.HistoricalPayIn),
|
|
45
45
|
payments: core.serialization.list(HistoricPayment_1.HistoricPayment),
|
|
46
|
+
nextCursor: core.serialization.string().optional(),
|
|
46
47
|
});
|
package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js
CHANGED
|
@@ -83,3 +83,4 @@ __exportStar(require("./GetBankAccountDetailsResponse"), exports);
|
|
|
83
83
|
__exportStar(require("./SetAutoWithdrawalResponse"), exports);
|
|
84
84
|
__exportStar(require("./WorkerTransactionStatus"), exports);
|
|
85
85
|
__exportStar(require("./SetBulkAutoApproveInvoiceForTeamsRequest"), exports);
|
|
86
|
+
__exportStar(require("./GetPayInCountResponse"), exports);
|
|
@@ -9,7 +9,6 @@ export * as document from "./document";
|
|
|
9
9
|
export * as email from "./email";
|
|
10
10
|
export * as employment from "./employment";
|
|
11
11
|
export * as eor from "./eor";
|
|
12
|
-
export * as incorporation from "./incorporation";
|
|
13
12
|
export * as misc from "./misc";
|
|
14
13
|
export * as payroll from "./payroll";
|
|
15
14
|
export * as timeoff from "./timeoff";
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.
|
|
36
|
+
exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.eor = exports.employment = exports.email = exports.document = exports.disbursement = exports.contractor = exports.company = exports.common = exports.bridge = exports.bank = exports.accounting = void 0;
|
|
37
37
|
exports.accounting = __importStar(require("./accounting"));
|
|
38
38
|
exports.bank = __importStar(require("./bank"));
|
|
39
39
|
exports.bridge = __importStar(require("./bridge"));
|
|
@@ -45,7 +45,6 @@ exports.document = __importStar(require("./document"));
|
|
|
45
45
|
exports.email = __importStar(require("./email"));
|
|
46
46
|
exports.employment = __importStar(require("./employment"));
|
|
47
47
|
exports.eor = __importStar(require("./eor"));
|
|
48
|
-
exports.incorporation = __importStar(require("./incorporation"));
|
|
49
48
|
exports.misc = __importStar(require("./misc"));
|
|
50
49
|
exports.payroll = __importStar(require("./payroll"));
|
|
51
50
|
exports.timeoff = __importStar(require("./timeoff"));
|
|
@@ -16,7 +16,6 @@ import { TpCompanyInformation } from "./TpCompanyInformation";
|
|
|
16
16
|
import { MercoaCompanyDetails } from "./MercoaCompanyDetails";
|
|
17
17
|
import { CompanyAccountingInformation } from "./CompanyAccountingInformation";
|
|
18
18
|
import { CompanyBankingDetails } from "./CompanyBankingDetails";
|
|
19
|
-
import { IncorporationDetails } from "./IncorporationDetails";
|
|
20
19
|
export declare const Company: core.serialization.ObjectSchema<serializers.db.Company.Raw, TheraApi.db.Company>;
|
|
21
20
|
export declare namespace Company {
|
|
22
21
|
interface Raw {
|
|
@@ -51,6 +50,5 @@ export declare namespace Company {
|
|
|
51
50
|
mercoaCompanyDetails?: MercoaCompanyDetails.Raw | null;
|
|
52
51
|
companyAccountingInformation?: CompanyAccountingInformation.Raw | null;
|
|
53
52
|
companyBankingDetails?: CompanyBankingDetails.Raw | null;
|
|
54
|
-
incorporationDetails?: IncorporationDetails.Raw | null;
|
|
55
53
|
}
|
|
56
54
|
}
|
|
@@ -50,7 +50,6 @@ const TpCompanyInformation_1 = require("./TpCompanyInformation");
|
|
|
50
50
|
const MercoaCompanyDetails_1 = require("./MercoaCompanyDetails");
|
|
51
51
|
const CompanyAccountingInformation_1 = require("./CompanyAccountingInformation");
|
|
52
52
|
const CompanyBankingDetails_1 = require("./CompanyBankingDetails");
|
|
53
|
-
const IncorporationDetails_1 = require("./IncorporationDetails");
|
|
54
53
|
exports.Company = core.serialization.object({
|
|
55
54
|
companyId: core.serialization.property("companyID", core.serialization.string()),
|
|
56
55
|
companyName: core.serialization.string(),
|
|
@@ -83,5 +82,4 @@ exports.Company = core.serialization.object({
|
|
|
83
82
|
mercoaCompanyDetails: MercoaCompanyDetails_1.MercoaCompanyDetails.optional(),
|
|
84
83
|
companyAccountingInformation: CompanyAccountingInformation_1.CompanyAccountingInformation.optional(),
|
|
85
84
|
companyBankingDetails: CompanyBankingDetails_1.CompanyBankingDetails.optional(),
|
|
86
|
-
incorporationDetails: IncorporationDetails_1.IncorporationDetails.optional(),
|
|
87
85
|
});
|
|
@@ -58,4 +58,3 @@ __exportStar(require("./AddCompanyBeneficiary"), exports);
|
|
|
58
58
|
__exportStar(require("./CompanyBeneficiary"), exports);
|
|
59
59
|
__exportStar(require("./CompanyBankingDetails"), exports);
|
|
60
60
|
__exportStar(require("./CompanyLegalStructure"), exports);
|
|
61
|
-
__exportStar(require("./IncorporationDetails"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.1-
|
|
1
|
+
export declare const SDK_VERSION = "0.0.1-prerelease3032-dev-2";
|
package/version.js
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as core from "../../../../../../../../core";
|
|
5
|
-
import { IncorporationApi } from "../resources/incorporationApi/client/Client";
|
|
6
|
-
export declare namespace Incorporation {
|
|
7
|
-
interface Options {
|
|
8
|
-
environment: core.Supplier<string>;
|
|
9
|
-
/** Specify a custom URL to connect the client to. */
|
|
10
|
-
baseUrl?: core.Supplier<string>;
|
|
11
|
-
token?: core.Supplier<core.BearerToken | undefined>;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export declare class Incorporation {
|
|
15
|
-
protected readonly _options: Incorporation.Options;
|
|
16
|
-
protected _incorporationApi: IncorporationApi | undefined;
|
|
17
|
-
constructor(_options: Incorporation.Options);
|
|
18
|
-
get incorporationApi(): IncorporationApi;
|
|
19
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Incorporation = void 0;
|
|
7
|
-
const Client_1 = require("../resources/incorporationApi/client/Client");
|
|
8
|
-
class Incorporation {
|
|
9
|
-
constructor(_options) {
|
|
10
|
-
this._options = _options;
|
|
11
|
-
}
|
|
12
|
-
get incorporationApi() {
|
|
13
|
-
var _a;
|
|
14
|
-
return ((_a = this._incorporationApi) !== null && _a !== void 0 ? _a : (this._incorporationApi = new Client_1.IncorporationApi(this._options)));
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.Incorporation = Incorporation;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./resources"), exports);
|
|
18
|
-
__exportStar(require("./client"), exports);
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as core from "../../../../../../../../../../core";
|
|
5
|
-
import * as TheraApi from "../../../../../../../../../index";
|
|
6
|
-
export declare namespace IncorporationApi {
|
|
7
|
-
interface Options {
|
|
8
|
-
environment: core.Supplier<string>;
|
|
9
|
-
/** Specify a custom URL to connect the client to. */
|
|
10
|
-
baseUrl?: core.Supplier<string>;
|
|
11
|
-
token?: core.Supplier<core.BearerToken | undefined>;
|
|
12
|
-
}
|
|
13
|
-
interface RequestOptions {
|
|
14
|
-
/** The maximum time to wait for a response in seconds. */
|
|
15
|
-
timeoutInSeconds?: number;
|
|
16
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
17
|
-
maxRetries?: number;
|
|
18
|
-
/** A hook to abort the request. */
|
|
19
|
-
abortSignal?: AbortSignal;
|
|
20
|
-
/** Additional headers to include in the request. */
|
|
21
|
-
headers?: Record<string, string>;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export declare class IncorporationApi {
|
|
25
|
-
protected readonly _options: IncorporationApi.Options;
|
|
26
|
-
constructor(_options: IncorporationApi.Options);
|
|
27
|
-
/**
|
|
28
|
-
* Create a new user account and company for someone who has incorporated
|
|
29
|
-
*
|
|
30
|
-
* @param {TheraApi.api.thera.incorporation.IncorporationSignupRequest} request
|
|
31
|
-
* @param {IncorporationApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* await client.api.thera.incorporation.incorporationApi.incorporationSignup({
|
|
35
|
-
* businessName: "string",
|
|
36
|
-
* state: "string",
|
|
37
|
-
* firstName: "string",
|
|
38
|
-
* lastName: "string",
|
|
39
|
-
* email: "string",
|
|
40
|
-
* phone: "string",
|
|
41
|
-
* experience: "string",
|
|
42
|
-
* progress: "string",
|
|
43
|
-
* industry: "string",
|
|
44
|
-
* agent: "string",
|
|
45
|
-
* packageType: "string",
|
|
46
|
-
* appointedAgent: true,
|
|
47
|
-
* registrationDate: "string",
|
|
48
|
-
* status: "string",
|
|
49
|
-
* password: "string"
|
|
50
|
-
* })
|
|
51
|
-
*/
|
|
52
|
-
incorporationSignup(request: TheraApi.api.thera.incorporation.IncorporationSignupRequest, requestOptions?: IncorporationApi.RequestOptions): Promise<TheraApi.api.thera.incorporation.IncorporationSignupResponse>;
|
|
53
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
54
|
-
}
|
|
@@ -1,141 +0,0 @@
|
|
|
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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
-
exports.IncorporationApi = void 0;
|
|
52
|
-
const core = __importStar(require("../../../../../../../../../../core"));
|
|
53
|
-
const serializers = __importStar(require("../../../../../../../../../../serialization/index"));
|
|
54
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
55
|
-
const errors = __importStar(require("../../../../../../../../../../errors/index"));
|
|
56
|
-
class IncorporationApi {
|
|
57
|
-
constructor(_options) {
|
|
58
|
-
this._options = _options;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Create a new user account and company for someone who has incorporated
|
|
62
|
-
*
|
|
63
|
-
* @param {TheraApi.api.thera.incorporation.IncorporationSignupRequest} request
|
|
64
|
-
* @param {IncorporationApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* await client.api.thera.incorporation.incorporationApi.incorporationSignup({
|
|
68
|
-
* businessName: "string",
|
|
69
|
-
* state: "string",
|
|
70
|
-
* firstName: "string",
|
|
71
|
-
* lastName: "string",
|
|
72
|
-
* email: "string",
|
|
73
|
-
* phone: "string",
|
|
74
|
-
* experience: "string",
|
|
75
|
-
* progress: "string",
|
|
76
|
-
* industry: "string",
|
|
77
|
-
* agent: "string",
|
|
78
|
-
* packageType: "string",
|
|
79
|
-
* appointedAgent: true,
|
|
80
|
-
* registrationDate: "string",
|
|
81
|
-
* status: "string",
|
|
82
|
-
* password: "string"
|
|
83
|
-
* })
|
|
84
|
-
*/
|
|
85
|
-
incorporationSignup(request, requestOptions) {
|
|
86
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
var _a;
|
|
88
|
-
const _response = yield core.fetcher({
|
|
89
|
-
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)), "incorporation/signup"),
|
|
90
|
-
method: "POST",
|
|
91
|
-
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-prerelease3031-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3031-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
|
-
contentType: "application/json",
|
|
93
|
-
requestType: "json",
|
|
94
|
-
body: serializers.api.thera.incorporation.IncorporationSignupRequest.jsonOrThrow(request, {
|
|
95
|
-
unrecognizedObjectKeys: "strip",
|
|
96
|
-
}),
|
|
97
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
98
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
99
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
100
|
-
});
|
|
101
|
-
if (_response.ok) {
|
|
102
|
-
return serializers.api.thera.incorporation.IncorporationSignupResponse.parseOrThrow(_response.body, {
|
|
103
|
-
unrecognizedObjectKeys: "passthrough",
|
|
104
|
-
allowUnrecognizedUnionMembers: true,
|
|
105
|
-
allowUnrecognizedEnumValues: true,
|
|
106
|
-
skipValidation: true,
|
|
107
|
-
breadcrumbsPrefix: ["response"],
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
if (_response.error.reason === "status-code") {
|
|
111
|
-
throw new errors.TheraApiError({
|
|
112
|
-
statusCode: _response.error.statusCode,
|
|
113
|
-
body: _response.error.body,
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
switch (_response.error.reason) {
|
|
117
|
-
case "non-json":
|
|
118
|
-
throw new errors.TheraApiError({
|
|
119
|
-
statusCode: _response.error.statusCode,
|
|
120
|
-
body: _response.error.rawBody,
|
|
121
|
-
});
|
|
122
|
-
case "timeout":
|
|
123
|
-
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /incorporation/signup.");
|
|
124
|
-
case "unknown":
|
|
125
|
-
throw new errors.TheraApiError({
|
|
126
|
-
message: _response.error.errorMessage,
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
_getAuthorizationHeader() {
|
|
132
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
-
const bearer = yield core.Supplier.get(this._options.token);
|
|
134
|
-
if (bearer != null) {
|
|
135
|
-
return `Bearer ${bearer}`;
|
|
136
|
-
}
|
|
137
|
-
return undefined;
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
exports.IncorporationApi = IncorporationApi;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|