@thera-hr/api-sdk 0.0.1613 → 0.0.1627
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/services/resources/file/client/Client.js +4 -4
- package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +7 -2
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/AutoCreateInvoicePayCycleResponse.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/AutoCreateInvoicePayCycleResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.js +1 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
- package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +7 -2
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/AutoCreateInvoicePayCycleResponse.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/AutoCreateInvoicePayCycleResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.js +1 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/AutoCreateInvoicePayCycleResponse.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/AutoCreateInvoicePayCycleResponse.js +33 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.js +0 -1
- package/package.json +1 -1
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/AutoCreateInvoicePayCycleResponse.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/AutoCreateInvoicePayCycleResponse.js +33 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/index.js +1 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.js +1 -1
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.js +1 -1
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.js +0 -1
|
@@ -56,7 +56,7 @@ class File_ {
|
|
|
56
56
|
Authorization: yield this._getAuthorizationHeader(),
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
59
|
-
"X-Fern-SDK-Version": "0.0.
|
|
59
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
60
60
|
},
|
|
61
61
|
contentType: "application/json",
|
|
62
62
|
body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -97,7 +97,7 @@ class File_ {
|
|
|
97
97
|
Authorization: yield this._getAuthorizationHeader(),
|
|
98
98
|
"X-Fern-Language": "JavaScript",
|
|
99
99
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
100
|
-
"X-Fern-SDK-Version": "0.0.
|
|
100
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
101
101
|
},
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -138,7 +138,7 @@ class File_ {
|
|
|
138
138
|
Authorization: yield this._getAuthorizationHeader(),
|
|
139
139
|
"X-Fern-Language": "JavaScript",
|
|
140
140
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
141
|
-
"X-Fern-SDK-Version": "0.0.
|
|
141
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
142
142
|
},
|
|
143
143
|
contentType: "application/json",
|
|
144
144
|
timeoutMs: 60000,
|
|
@@ -181,7 +181,7 @@ class File_ {
|
|
|
181
181
|
Authorization: yield this._getAuthorizationHeader(),
|
|
182
182
|
"X-Fern-Language": "JavaScript",
|
|
183
183
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
184
|
-
"X-Fern-SDK-Version": "0.0.
|
|
184
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
185
185
|
},
|
|
186
186
|
contentType: "application/json",
|
|
187
187
|
timeoutMs: 60000,
|
|
@@ -56,7 +56,7 @@ class Invoices {
|
|
|
56
56
|
Authorization: yield this._getAuthorizationHeader(),
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
59
|
-
"X-Fern-SDK-Version": "0.0.
|
|
59
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
60
60
|
},
|
|
61
61
|
contentType: "application/json",
|
|
62
62
|
body: yield serializers.api.test.VoidInvoiceRequest.jsonOrThrow(request, {
|
|
@@ -65,7 +65,7 @@ class BankApi {
|
|
|
65
65
|
Authorization: yield this._getAuthorizationHeader(),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
68
|
-
"X-Fern-SDK-Version": "0.0.
|
|
68
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
queryParameters: _queryParams,
|
|
@@ -112,7 +112,7 @@ class BankApi {
|
|
|
112
112
|
Authorization: yield this._getAuthorizationHeader(),
|
|
113
113
|
"X-Fern-Language": "JavaScript",
|
|
114
114
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
115
|
-
"X-Fern-SDK-Version": "0.0.
|
|
115
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
116
116
|
},
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
body: yield serializers.api.thera.bank.VerifyAccountSignupRequest.jsonOrThrow(request, {
|
|
@@ -156,7 +156,7 @@ class BankApi {
|
|
|
156
156
|
Authorization: yield this._getAuthorizationHeader(),
|
|
157
157
|
"X-Fern-Language": "JavaScript",
|
|
158
158
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
159
|
-
"X-Fern-SDK-Version": "0.0.
|
|
159
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
160
160
|
},
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
timeoutMs: 60000,
|
|
@@ -197,7 +197,7 @@ class BankApi {
|
|
|
197
197
|
Authorization: yield this._getAuthorizationHeader(),
|
|
198
198
|
"X-Fern-Language": "JavaScript",
|
|
199
199
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
200
|
-
"X-Fern-SDK-Version": "0.0.
|
|
200
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
201
201
|
},
|
|
202
202
|
contentType: "application/json",
|
|
203
203
|
body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
|
package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js
CHANGED
|
@@ -65,7 +65,7 @@ class CompanyApi {
|
|
|
65
65
|
Authorization: yield this._getAuthorizationHeader(),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
68
|
-
"X-Fern-SDK-Version": "0.0.
|
|
68
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
queryParameters: _queryParams,
|
|
@@ -59,7 +59,7 @@ class CompanyW2PayrollApi {
|
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
|
60
60
|
"X-Fern-Language": "JavaScript",
|
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
body: yield serializers.api.thera.company.OnboardW2PayrollRequest.jsonOrThrow(request, {
|
|
@@ -59,7 +59,7 @@ class DisbursementApi {
|
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
|
60
60
|
"X-Fern-Language": "JavaScript",
|
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
body: yield serializers.api.thera.disbursement.CreateDisbursementRequest.jsonOrThrow(request, {
|
|
@@ -103,7 +103,7 @@ class DisbursementApi {
|
|
|
103
103
|
Authorization: yield this._getAuthorizationHeader(),
|
|
104
104
|
"X-Fern-Language": "JavaScript",
|
|
105
105
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
106
|
-
"X-Fern-SDK-Version": "0.0.
|
|
106
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
107
107
|
},
|
|
108
108
|
contentType: "application/json",
|
|
109
109
|
timeoutMs: 60000,
|
|
@@ -15,6 +15,6 @@ export declare class DisbursementWebhookApi {
|
|
|
15
15
|
/**
|
|
16
16
|
* Calling this API will trigger automatic creation of invoices that need to be created
|
|
17
17
|
*/
|
|
18
|
-
invoiceWebhook(request: TheraApi.api.thera.disbursement.InvoiceWebhookRequest): Promise<
|
|
18
|
+
invoiceWebhook(request: TheraApi.api.thera.disbursement.InvoiceWebhookRequest): Promise<TheraApi.api.thera.disbursement.AutoCreateInvoicePayCycleResponse>;
|
|
19
19
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
20
20
|
}
|
|
@@ -60,7 +60,7 @@ class DisbursementWebhookApi {
|
|
|
60
60
|
Authorization: yield this._getAuthorizationHeader(),
|
|
61
61
|
"X-Fern-Language": "JavaScript",
|
|
62
62
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
63
|
-
"X-Fern-SDK-Version": "0.0.
|
|
63
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
64
64
|
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
|
65
65
|
},
|
|
66
66
|
contentType: "application/json",
|
|
@@ -70,7 +70,12 @@ class DisbursementWebhookApi {
|
|
|
70
70
|
timeoutMs: 60000,
|
|
71
71
|
});
|
|
72
72
|
if (_response.ok) {
|
|
73
|
-
return
|
|
73
|
+
return yield serializers.api.thera.disbursement.AutoCreateInvoicePayCycleResponse.parseOrThrow(_response.body, {
|
|
74
|
+
unrecognizedObjectKeys: "passthrough",
|
|
75
|
+
allowUnrecognizedUnionMembers: true,
|
|
76
|
+
allowUnrecognizedEnumValues: true,
|
|
77
|
+
breadcrumbsPrefix: ["response"],
|
|
78
|
+
});
|
|
74
79
|
}
|
|
75
80
|
if (_response.error.reason === "status-code") {
|
|
76
81
|
throw new errors.TheraApiError({
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./InvoiceWebhookEvent"), exports);
|
|
18
18
|
__exportStar(require("./CreateScheduledInvoiceEvent"), exports);
|
|
19
|
+
__exportStar(require("./AutoCreateInvoicePayCycleResponse"), exports);
|
|
@@ -59,7 +59,7 @@ class EmploymentApi {
|
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
|
60
60
|
"X-Fern-Language": "JavaScript",
|
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
body: yield serializers.api.thera.employment.CreateContractEstimateRequest.jsonOrThrow(request, {
|
|
@@ -108,7 +108,7 @@ class EmploymentApi {
|
|
|
108
108
|
Authorization: yield this._getAuthorizationHeader(),
|
|
109
109
|
"X-Fern-Language": "JavaScript",
|
|
110
110
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
111
|
-
"X-Fern-SDK-Version": "0.0.
|
|
111
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
112
112
|
},
|
|
113
113
|
contentType: "application/json",
|
|
114
114
|
timeoutMs: 60000,
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
import * as TheraApi from "../../../../../../../../..";
|
|
5
5
|
export interface CreateContractEstimateRequest {
|
|
6
6
|
contractEstimateRequest: TheraApi.api.thera.employment.ContractEstimateRequest;
|
|
7
|
-
|
|
7
|
+
firstPayCycle: TheraApi.api.thera.employment.PayCycleEstimateRequest;
|
|
8
8
|
}
|
|
@@ -6,5 +6,5 @@ export interface CreateContractEstimateResponse {
|
|
|
6
6
|
/** Sorted ascendingly by the start date */
|
|
7
7
|
paymentCycles: TheraApi.api.thera.employment.PayCycleEstimate[];
|
|
8
8
|
/** Only available for Fixed Rate contract */
|
|
9
|
-
|
|
9
|
+
firstPayCycleProRata?: TheraApi.api.thera.employment.ProRata;
|
|
10
10
|
}
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as TheraApi from "../../../../../../../../..";
|
|
5
5
|
export interface PayCycleEstimateRequest {
|
|
6
|
-
/** This field is currently not used. Adheres to Timezone DB version tzdata2022g. */
|
|
7
|
-
timezone: string;
|
|
8
6
|
cycleStartDate: string;
|
|
9
7
|
cycleEnd: TheraApi.model.thera.PayCycleEnd;
|
|
10
8
|
paymentDueDays: number;
|
package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js
CHANGED
|
@@ -59,7 +59,7 @@ class OncycleApi {
|
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
|
60
60
|
"X-Fern-Language": "JavaScript",
|
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
timeoutMs: 60000,
|
|
@@ -56,7 +56,7 @@ class File_ {
|
|
|
56
56
|
Authorization: yield this._getAuthorizationHeader(),
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
59
|
-
"X-Fern-SDK-Version": "0.0.
|
|
59
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
60
60
|
},
|
|
61
61
|
contentType: "application/json",
|
|
62
62
|
body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -97,7 +97,7 @@ class File_ {
|
|
|
97
97
|
Authorization: yield this._getAuthorizationHeader(),
|
|
98
98
|
"X-Fern-Language": "JavaScript",
|
|
99
99
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
100
|
-
"X-Fern-SDK-Version": "0.0.
|
|
100
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
101
101
|
},
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -138,7 +138,7 @@ class File_ {
|
|
|
138
138
|
Authorization: yield this._getAuthorizationHeader(),
|
|
139
139
|
"X-Fern-Language": "JavaScript",
|
|
140
140
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
141
|
-
"X-Fern-SDK-Version": "0.0.
|
|
141
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
142
142
|
},
|
|
143
143
|
contentType: "application/json",
|
|
144
144
|
timeoutMs: 60000,
|
|
@@ -181,7 +181,7 @@ class File_ {
|
|
|
181
181
|
Authorization: yield this._getAuthorizationHeader(),
|
|
182
182
|
"X-Fern-Language": "JavaScript",
|
|
183
183
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
184
|
-
"X-Fern-SDK-Version": "0.0.
|
|
184
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
185
185
|
},
|
|
186
186
|
contentType: "application/json",
|
|
187
187
|
timeoutMs: 60000,
|
|
@@ -56,7 +56,7 @@ class Invoices {
|
|
|
56
56
|
Authorization: yield this._getAuthorizationHeader(),
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
59
|
-
"X-Fern-SDK-Version": "0.0.
|
|
59
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
60
60
|
},
|
|
61
61
|
contentType: "application/json",
|
|
62
62
|
body: yield serializers.api.test.VoidInvoiceRequest.jsonOrThrow(request, {
|
package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js
CHANGED
|
@@ -65,7 +65,7 @@ class BankApi {
|
|
|
65
65
|
Authorization: yield this._getAuthorizationHeader(),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
68
|
-
"X-Fern-SDK-Version": "0.0.
|
|
68
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
queryParameters: _queryParams,
|
|
@@ -112,7 +112,7 @@ class BankApi {
|
|
|
112
112
|
Authorization: yield this._getAuthorizationHeader(),
|
|
113
113
|
"X-Fern-Language": "JavaScript",
|
|
114
114
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
115
|
-
"X-Fern-SDK-Version": "0.0.
|
|
115
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
116
116
|
},
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
body: yield serializers.api.thera.bank.VerifyAccountSignupRequest.jsonOrThrow(request, {
|
|
@@ -156,7 +156,7 @@ class BankApi {
|
|
|
156
156
|
Authorization: yield this._getAuthorizationHeader(),
|
|
157
157
|
"X-Fern-Language": "JavaScript",
|
|
158
158
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
159
|
-
"X-Fern-SDK-Version": "0.0.
|
|
159
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
160
160
|
},
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
timeoutMs: 60000,
|
|
@@ -197,7 +197,7 @@ class BankApi {
|
|
|
197
197
|
Authorization: yield this._getAuthorizationHeader(),
|
|
198
198
|
"X-Fern-Language": "JavaScript",
|
|
199
199
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
200
|
-
"X-Fern-SDK-Version": "0.0.
|
|
200
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
201
201
|
},
|
|
202
202
|
contentType: "application/json",
|
|
203
203
|
body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
|
|
@@ -65,7 +65,7 @@ class CompanyApi {
|
|
|
65
65
|
Authorization: yield this._getAuthorizationHeader(),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
68
|
-
"X-Fern-SDK-Version": "0.0.
|
|
68
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
queryParameters: _queryParams,
|
|
@@ -59,7 +59,7 @@ class CompanyW2PayrollApi {
|
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
|
60
60
|
"X-Fern-Language": "JavaScript",
|
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
body: yield serializers.api.thera.company.OnboardW2PayrollRequest.jsonOrThrow(request, {
|
|
@@ -59,7 +59,7 @@ class DisbursementApi {
|
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
|
60
60
|
"X-Fern-Language": "JavaScript",
|
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
body: yield serializers.api.thera.disbursement.CreateDisbursementRequest.jsonOrThrow(request, {
|
|
@@ -103,7 +103,7 @@ class DisbursementApi {
|
|
|
103
103
|
Authorization: yield this._getAuthorizationHeader(),
|
|
104
104
|
"X-Fern-Language": "JavaScript",
|
|
105
105
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
106
|
-
"X-Fern-SDK-Version": "0.0.
|
|
106
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
107
107
|
},
|
|
108
108
|
contentType: "application/json",
|
|
109
109
|
timeoutMs: 60000,
|
|
@@ -15,6 +15,6 @@ export declare class DisbursementWebhookApi {
|
|
|
15
15
|
/**
|
|
16
16
|
* Calling this API will trigger automatic creation of invoices that need to be created
|
|
17
17
|
*/
|
|
18
|
-
invoiceWebhook(request: TheraApi.api.thera.disbursement.InvoiceWebhookRequest): Promise<
|
|
18
|
+
invoiceWebhook(request: TheraApi.api.thera.disbursement.InvoiceWebhookRequest): Promise<TheraApi.api.thera.disbursement.AutoCreateInvoicePayCycleResponse>;
|
|
19
19
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
20
20
|
}
|
|
@@ -60,7 +60,7 @@ class DisbursementWebhookApi {
|
|
|
60
60
|
Authorization: yield this._getAuthorizationHeader(),
|
|
61
61
|
"X-Fern-Language": "JavaScript",
|
|
62
62
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
63
|
-
"X-Fern-SDK-Version": "0.0.
|
|
63
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
64
64
|
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
|
65
65
|
},
|
|
66
66
|
contentType: "application/json",
|
|
@@ -70,7 +70,12 @@ class DisbursementWebhookApi {
|
|
|
70
70
|
timeoutMs: 60000,
|
|
71
71
|
});
|
|
72
72
|
if (_response.ok) {
|
|
73
|
-
return
|
|
73
|
+
return yield serializers.api.thera.disbursement.AutoCreateInvoicePayCycleResponse.parseOrThrow(_response.body, {
|
|
74
|
+
unrecognizedObjectKeys: "passthrough",
|
|
75
|
+
allowUnrecognizedUnionMembers: true,
|
|
76
|
+
allowUnrecognizedEnumValues: true,
|
|
77
|
+
breadcrumbsPrefix: ["response"],
|
|
78
|
+
});
|
|
74
79
|
}
|
|
75
80
|
if (_response.error.reason === "status-code") {
|
|
76
81
|
throw new errors.TheraApiError({
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./InvoiceWebhookEvent"), exports);
|
|
18
18
|
__exportStar(require("./CreateScheduledInvoiceEvent"), exports);
|
|
19
|
+
__exportStar(require("./AutoCreateInvoicePayCycleResponse"), exports);
|
|
@@ -59,7 +59,7 @@ class EmploymentApi {
|
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
|
60
60
|
"X-Fern-Language": "JavaScript",
|
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
body: yield serializers.api.thera.employment.CreateContractEstimateRequest.jsonOrThrow(request, {
|
|
@@ -108,7 +108,7 @@ class EmploymentApi {
|
|
|
108
108
|
Authorization: yield this._getAuthorizationHeader(),
|
|
109
109
|
"X-Fern-Language": "JavaScript",
|
|
110
110
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
111
|
-
"X-Fern-SDK-Version": "0.0.
|
|
111
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
112
112
|
},
|
|
113
113
|
contentType: "application/json",
|
|
114
114
|
timeoutMs: 60000,
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
import * as TheraApi from "../../../../../../../../..";
|
|
5
5
|
export interface CreateContractEstimateRequest {
|
|
6
6
|
contractEstimateRequest: TheraApi.api.thera.employment.ContractEstimateRequest;
|
|
7
|
-
|
|
7
|
+
firstPayCycle: TheraApi.api.thera.employment.PayCycleEstimateRequest;
|
|
8
8
|
}
|
|
@@ -6,5 +6,5 @@ export interface CreateContractEstimateResponse {
|
|
|
6
6
|
/** Sorted ascendingly by the start date */
|
|
7
7
|
paymentCycles: TheraApi.api.thera.employment.PayCycleEstimate[];
|
|
8
8
|
/** Only available for Fixed Rate contract */
|
|
9
|
-
|
|
9
|
+
firstPayCycleProRata?: TheraApi.api.thera.employment.ProRata;
|
|
10
10
|
}
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as TheraApi from "../../../../../../../../..";
|
|
5
5
|
export interface PayCycleEstimateRequest {
|
|
6
|
-
/** This field is currently not used. Adheres to Timezone DB version tzdata2022g. */
|
|
7
|
-
timezone: string;
|
|
8
6
|
cycleStartDate: string;
|
|
9
7
|
cycleEnd: TheraApi.model.thera.PayCycleEnd;
|
|
10
8
|
paymentDueDays: number;
|
|
@@ -59,7 +59,7 @@ class OncycleApi {
|
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
|
60
60
|
"X-Fern-Language": "JavaScript",
|
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.1627",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
timeoutMs: 60000,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../..";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const AutoCreateInvoicePayCycleResponse: core.serialization.ObjectSchema<serializers.api.thera.disbursement.AutoCreateInvoicePayCycleResponse.Raw, TheraApi.api.thera.disbursement.AutoCreateInvoicePayCycleResponse>;
|
|
8
|
+
export declare namespace AutoCreateInvoicePayCycleResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
createdInvoiceCount: number;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AutoCreateInvoicePayCycleResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
31
|
+
exports.AutoCreateInvoicePayCycleResponse = core.serialization.object({
|
|
32
|
+
createdInvoiceCount: core.serialization.number(),
|
|
33
|
+
});
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./InvoiceWebhookEvent"), exports);
|
|
18
18
|
__exportStar(require("./CreateScheduledInvoiceEvent"), exports);
|
|
19
|
+
__exportStar(require("./AutoCreateInvoicePayCycleResponse"), exports);
|
|
@@ -8,6 +8,6 @@ export declare const CreateContractEstimateRequest: core.serialization.ObjectSch
|
|
|
8
8
|
export declare namespace CreateContractEstimateRequest {
|
|
9
9
|
interface Raw {
|
|
10
10
|
contractEstimateRequest: serializers.api.thera.employment.ContractEstimateRequest.Raw;
|
|
11
|
-
|
|
11
|
+
firstPayCycle: serializers.api.thera.employment.PayCycleEstimateRequest.Raw;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -39,5 +39,5 @@ exports.CreateContractEstimateRequest = void 0;
|
|
|
39
39
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
40
|
exports.CreateContractEstimateRequest = core.serialization.object({
|
|
41
41
|
contractEstimateRequest: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.employment.ContractEstimateRequest; })),
|
|
42
|
-
|
|
42
|
+
firstPayCycle: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.employment.PayCycleEstimateRequest; })),
|
|
43
43
|
});
|
|
@@ -8,6 +8,6 @@ export declare const CreateContractEstimateResponse: core.serialization.ObjectSc
|
|
|
8
8
|
export declare namespace CreateContractEstimateResponse {
|
|
9
9
|
interface Raw {
|
|
10
10
|
paymentCycles: serializers.api.thera.employment.PayCycleEstimate.Raw[];
|
|
11
|
-
|
|
11
|
+
firstPayCycleProRata?: serializers.api.thera.employment.ProRata.Raw | null;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -39,7 +39,7 @@ exports.CreateContractEstimateResponse = void 0;
|
|
|
39
39
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
40
|
exports.CreateContractEstimateResponse = core.serialization.object({
|
|
41
41
|
paymentCycles: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.employment.PayCycleEstimate; }))),
|
|
42
|
-
|
|
42
|
+
firstPayCycleProRata: core.serialization
|
|
43
43
|
.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.employment.ProRata; }))
|
|
44
44
|
.optional(),
|
|
45
45
|
});
|
|
@@ -7,7 +7,6 @@ import * as core from "../../../../../../../../../../core";
|
|
|
7
7
|
export declare const PayCycleEstimateRequest: core.serialization.ObjectSchema<serializers.api.thera.employment.PayCycleEstimateRequest.Raw, TheraApi.api.thera.employment.PayCycleEstimateRequest>;
|
|
8
8
|
export declare namespace PayCycleEstimateRequest {
|
|
9
9
|
interface Raw {
|
|
10
|
-
timezone: string;
|
|
11
10
|
cycleStartDate: string;
|
|
12
11
|
cycleEnd: serializers.model.thera.PayCycleEnd.Raw;
|
|
13
12
|
paymentDueDays: number;
|
|
@@ -38,7 +38,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.PayCycleEstimateRequest = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
40
|
exports.PayCycleEstimateRequest = core.serialization.object({
|
|
41
|
-
timezone: core.serialization.string(),
|
|
42
41
|
cycleStartDate: core.serialization.string(),
|
|
43
42
|
cycleEnd: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).model.thera.PayCycleEnd; })),
|
|
44
43
|
paymentDueDays: core.serialization.number(),
|
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../..";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const AutoCreateInvoicePayCycleResponse: core.serialization.ObjectSchema<serializers.api.thera.disbursement.AutoCreateInvoicePayCycleResponse.Raw, TheraApi.api.thera.disbursement.AutoCreateInvoicePayCycleResponse>;
|
|
8
|
+
export declare namespace AutoCreateInvoicePayCycleResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
createdInvoiceCount: number;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AutoCreateInvoicePayCycleResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
31
|
+
exports.AutoCreateInvoicePayCycleResponse = core.serialization.object({
|
|
32
|
+
createdInvoiceCount: core.serialization.number(),
|
|
33
|
+
});
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./InvoiceWebhookEvent"), exports);
|
|
18
18
|
__exportStar(require("./CreateScheduledInvoiceEvent"), exports);
|
|
19
|
+
__exportStar(require("./AutoCreateInvoicePayCycleResponse"), exports);
|
|
@@ -8,6 +8,6 @@ export declare const CreateContractEstimateRequest: core.serialization.ObjectSch
|
|
|
8
8
|
export declare namespace CreateContractEstimateRequest {
|
|
9
9
|
interface Raw {
|
|
10
10
|
contractEstimateRequest: serializers.api.thera.employment.ContractEstimateRequest.Raw;
|
|
11
|
-
|
|
11
|
+
firstPayCycle: serializers.api.thera.employment.PayCycleEstimateRequest.Raw;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -39,5 +39,5 @@ exports.CreateContractEstimateRequest = void 0;
|
|
|
39
39
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
40
|
exports.CreateContractEstimateRequest = core.serialization.object({
|
|
41
41
|
contractEstimateRequest: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.employment.ContractEstimateRequest; })),
|
|
42
|
-
|
|
42
|
+
firstPayCycle: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.employment.PayCycleEstimateRequest; })),
|
|
43
43
|
});
|
|
@@ -8,6 +8,6 @@ export declare const CreateContractEstimateResponse: core.serialization.ObjectSc
|
|
|
8
8
|
export declare namespace CreateContractEstimateResponse {
|
|
9
9
|
interface Raw {
|
|
10
10
|
paymentCycles: serializers.api.thera.employment.PayCycleEstimate.Raw[];
|
|
11
|
-
|
|
11
|
+
firstPayCycleProRata?: serializers.api.thera.employment.ProRata.Raw | null;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -39,7 +39,7 @@ exports.CreateContractEstimateResponse = void 0;
|
|
|
39
39
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
40
|
exports.CreateContractEstimateResponse = core.serialization.object({
|
|
41
41
|
paymentCycles: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.employment.PayCycleEstimate; }))),
|
|
42
|
-
|
|
42
|
+
firstPayCycleProRata: core.serialization
|
|
43
43
|
.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.employment.ProRata; }))
|
|
44
44
|
.optional(),
|
|
45
45
|
});
|
|
@@ -7,7 +7,6 @@ import * as core from "../../../../../../../../../../core";
|
|
|
7
7
|
export declare const PayCycleEstimateRequest: core.serialization.ObjectSchema<serializers.api.thera.employment.PayCycleEstimateRequest.Raw, TheraApi.api.thera.employment.PayCycleEstimateRequest>;
|
|
8
8
|
export declare namespace PayCycleEstimateRequest {
|
|
9
9
|
interface Raw {
|
|
10
|
-
timezone: string;
|
|
11
10
|
cycleStartDate: string;
|
|
12
11
|
cycleEnd: serializers.model.thera.PayCycleEnd.Raw;
|
|
13
12
|
paymentDueDays: number;
|
|
@@ -38,7 +38,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.PayCycleEstimateRequest = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
40
|
exports.PayCycleEstimateRequest = core.serialization.object({
|
|
41
|
-
timezone: core.serialization.string(),
|
|
42
41
|
cycleStartDate: core.serialization.string(),
|
|
43
42
|
cycleEnd: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).model.thera.PayCycleEnd; })),
|
|
44
43
|
paymentDueDays: core.serialization.number(),
|