@thera-hr/api-sdk 0.0.1574 → 0.0.1585
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/request/resources/thera/resources/index.d.ts +0 -2
- package/api/resources/api/resources/request/resources/thera/resources/index.js +1 -3
- 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.d.ts +6 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +47 -2
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/index.js +1 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +13 -0
- package/api/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/CreateDisbursementRequest.d.ts +1 -1
- package/{dist/api/resources/api/resources/request/resources/thera/resources/disbursement → api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/CreateInvoiceDetail.d.ts +3 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnit.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnitType.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnitType.js +12 -0
- package/{dist/serialization/resources/api/resources/request/resources/thera/resources/disbursement → api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/index.d.ts +2 -0
- package/api/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/index.js +2 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/index.d.ts +2 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/index.js +3 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/request/resources/thera/resources/index.d.ts +0 -2
- package/dist/api/resources/api/resources/request/resources/thera/resources/index.js +1 -3
- 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.d.ts +6 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +47 -2
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/index.js +1 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +13 -0
- package/dist/api/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/CreateDisbursementRequest.d.ts +1 -1
- package/{api/resources/api/resources/request/resources/thera/resources/disbursement → dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/CreateInvoiceDetail.d.ts +3 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceDetail.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnit.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnit.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnitType.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnitType.js +12 -0
- package/{api/resources/api/resources/request/resources/thera/resources/disbursement → dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/index.d.ts +2 -0
- package/dist/{serialization/resources/api/resources/request/resources/thera/resources/disbursement → api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/index.d.ts +2 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/index.js +3 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/index.js +1 -3
- package/{serialization/resources/api/resources/request/resources/thera/resources/disbursement → dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/CreateDisbursementDetail.d.ts +3 -3
- package/{serialization/resources/api/resources/request/resources/thera/resources/disbursement → dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/CreateDisbursementDetail.js +2 -2
- package/{serialization/resources/api/resources/request/resources/thera/resources/disbursement → dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/CreateDisbursementRequest.d.ts +2 -2
- package/{serialization/resources/api/resources/request/resources/thera/resources/disbursement → dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/CreateDisbursementRequest.js +1 -1
- package/{serialization/resources/api/resources/request/resources/thera/resources/disbursement → dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/CreateExpenseDetail.d.ts +1 -1
- package/dist/serialization/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/CreateInvoiceDetail.d.ts +2 -2
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceDetail.js +48 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnit.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnit.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnitType.d.ts +10 -0
- package/{serialization/resources/api/resources/request/resources/thera/resources/disbursement/types/CreateInvoiceDetail.js → dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnitType.js} +2 -8
- package/{serialization/resources/api/resources/request/resources/thera/resources/disbursement → dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/index.d.ts +2 -0
- package/dist/{api/resources/api/resources/request/resources/thera/resources/disbursement → serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/index.js +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/index.js +3 -1
- package/package.json +1 -1
- package/serialization/resources/api/resources/request/resources/thera/resources/index.d.ts +0 -2
- package/serialization/resources/api/resources/request/resources/thera/resources/index.js +1 -3
- package/{dist/serialization/resources/api/resources/request/resources/thera/resources/disbursement → serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/CreateDisbursementDetail.d.ts +3 -3
- package/{dist/serialization/resources/api/resources/request/resources/thera/resources/disbursement → serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/CreateDisbursementDetail.js +2 -2
- package/{dist/serialization/resources/api/resources/request/resources/thera/resources/disbursement → serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/CreateDisbursementRequest.d.ts +2 -2
- package/{dist/serialization/resources/api/resources/request/resources/thera/resources/disbursement → serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/CreateDisbursementRequest.js +1 -1
- package/{dist/serialization/resources/api/resources/request/resources/thera/resources/disbursement → serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/CreateExpenseDetail.d.ts +1 -1
- package/serialization/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/CreateInvoiceDetail.d.ts +2 -2
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceDetail.js +48 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnit.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnit.js +43 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnitType.d.ts +10 -0
- package/{dist/serialization/resources/api/resources/request/resources/thera/resources/disbursement/types/CreateInvoiceDetail.js → serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnitType.js} +2 -8
- package/{dist/api/resources/api/resources/request/resources/thera/resources/disbursement → serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/types/index.d.ts +2 -0
- package/serialization/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/index.js +2 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/index.js +3 -1
- package/api/resources/api/resources/request/resources/thera/resources/disbursement/types/CreateDisbursementDetail.d.ts +0 -13
- package/dist/api/resources/api/resources/request/resources/thera/resources/disbursement/types/CreateDisbursementDetail.d.ts +0 -13
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/disbursement/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/request/resources/thera/resources/disbursement/index.js +0 -17
- package/serialization/resources/api/resources/request/resources/thera/resources/disbursement/index.d.ts +0 -1
- package/serialization/resources/api/resources/request/resources/thera/resources/disbursement/index.js +0 -17
- /package/api/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/CreateDisbursementDetail.js +0 -0
- /package/api/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/CreateDisbursementRequest.js +0 -0
- /package/api/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/CreateExpenseDetail.d.ts +0 -0
- /package/api/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/CreateExpenseDetail.js +0 -0
- /package/api/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/CreateInvoiceDetail.js +0 -0
- /package/{dist/api/resources/api/resources/request/resources/thera/resources/disbursement/types/CreateDisbursementDetail.js → api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/InvoiceWorkUnit.js} +0 -0
- /package/dist/api/resources/api/resources/{request/resources/thera/resources/disbursement/types/CreateDisbursementRequest.js → thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.js} +0 -0
- /package/dist/api/resources/api/resources/{request/resources/thera/resources/disbursement/types/CreateExpenseDetail.js → thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementRequest.js} +0 -0
- /package/dist/api/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/CreateExpenseDetail.d.ts +0 -0
- /package/dist/api/resources/api/resources/{request/resources/thera/resources/disbursement/types/CreateInvoiceDetail.js → thera/resources/disbursement/resources/disbursementApi/types/CreateExpenseDetail.js} +0 -0
- /package/{api/resources/api/resources/request/resources/thera/resources/disbursement → dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/index.d.ts +0 -0
- /package/{api/resources/api/resources/request/resources/thera/resources/disbursement → dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/index.js +0 -0
- /package/dist/serialization/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/CreateExpenseDetail.js +0 -0
- /package/{dist/api/resources/api/resources/request/resources/thera/resources/disbursement → serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/index.d.ts +0 -0
- /package/{dist/api/resources/api/resources/request/resources/thera/resources/disbursement → serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi}/index.js +0 -0
- /package/serialization/resources/api/resources/{request/resources/thera/resources/disbursement → thera/resources/disbursement/resources/disbursementApi}/types/CreateExpenseDetail.js +0 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../../../..";
|
|
4
5
|
export interface CreateInvoiceDetail {
|
|
5
|
-
|
|
6
|
+
/** Null/empty if doesn't exist, for example in Fixed Rate contract */
|
|
7
|
+
workUnit?: TheraApi.api.thera.disbursement.InvoiceWorkUnit;
|
|
6
8
|
rate: number;
|
|
7
9
|
amount: number;
|
|
8
10
|
startDate: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type InvoiceWorkUnitType = "HOURLY" | "DAILY" | "WEEKLY" | "TASK";
|
|
5
|
+
export declare const InvoiceWorkUnitType: {
|
|
6
|
+
readonly Hourly: "HOURLY";
|
|
7
|
+
readonly Daily: "DAILY";
|
|
8
|
+
readonly Weekly: "WEEKLY";
|
|
9
|
+
readonly Task: "TASK";
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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.InvoiceWorkUnitType = void 0;
|
|
7
|
+
exports.InvoiceWorkUnitType = {
|
|
8
|
+
Hourly: "HOURLY",
|
|
9
|
+
Daily: "DAILY",
|
|
10
|
+
Weekly: "WEEKLY",
|
|
11
|
+
Task: "TASK",
|
|
12
|
+
};
|
|
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./InvoiceWorkUnitType"), exports);
|
|
18
|
+
__exportStar(require("./InvoiceWorkUnit"), exports);
|
|
17
19
|
__exportStar(require("./CreateInvoiceDetail"), exports);
|
|
18
20
|
__exportStar(require("./CreateExpenseDetail"), exports);
|
|
19
21
|
__exportStar(require("./CreateDisbursementDetail"), exports);
|
|
@@ -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.1585",
|
|
64
64
|
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
|
65
65
|
},
|
|
66
66
|
contentType: "application/json",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
export * as disbursementApi from "./disbursementApi";
|
|
2
|
+
export * from "./disbursementApi/types";
|
|
1
3
|
export * as disbursementWebhookApi from "./disbursementWebhookApi";
|
|
2
4
|
export * from "./disbursementWebhookApi/types";
|
|
3
|
-
export * as disbursementApi from "./disbursementApi";
|
|
4
5
|
export * from "./disbursementWebhookApi/client/requests";
|
|
@@ -26,8 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.disbursementWebhookApi = exports.disbursementApi = void 0;
|
|
30
|
+
exports.disbursementApi = __importStar(require("./disbursementApi"));
|
|
31
|
+
__exportStar(require("./disbursementApi/types"), exports);
|
|
30
32
|
exports.disbursementWebhookApi = __importStar(require("./disbursementWebhookApi"));
|
|
31
33
|
__exportStar(require("./disbursementWebhookApi/types"), exports);
|
|
32
|
-
exports.disbursementApi = __importStar(require("./disbursementApi"));
|
|
33
34
|
__exportStar(require("./disbursementWebhookApi/client/requests"), 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.1585",
|
|
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.1585",
|
|
112
112
|
},
|
|
113
113
|
contentType: "application/json",
|
|
114
114
|
timeoutMs: 60000,
|
|
@@ -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.1585",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
timeoutMs: 60000,
|
package/dist/serialization/resources/api/resources/request/resources/thera/resources/index.js
CHANGED
|
@@ -26,8 +26,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.document =
|
|
30
|
-
exports.disbursement = __importStar(require("./disbursement"));
|
|
31
|
-
__exportStar(require("./disbursement/types"), exports);
|
|
29
|
+
exports.document = void 0;
|
|
32
30
|
exports.document = __importStar(require("./document"));
|
|
33
31
|
__exportStar(require("./document/types"), exports);
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
import * as serializers from "../../../../../../../../..";
|
|
5
5
|
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
6
|
import * as core from "../../../../../../../../../../core";
|
|
7
|
-
export declare const CreateDisbursementDetail: core.serialization.Schema<serializers.api.
|
|
7
|
+
export declare const CreateDisbursementDetail: core.serialization.Schema<serializers.api.thera.disbursement.CreateDisbursementDetail.Raw, TheraApi.api.thera.disbursement.CreateDisbursementDetail>;
|
|
8
8
|
export declare namespace CreateDisbursementDetail {
|
|
9
9
|
type Raw = CreateDisbursementDetail.Invoice | CreateDisbursementDetail.Expense;
|
|
10
|
-
interface Invoice extends serializers.api.
|
|
10
|
+
interface Invoice extends serializers.api.thera.disbursement.CreateInvoiceDetail.Raw {
|
|
11
11
|
type: "invoice";
|
|
12
12
|
}
|
|
13
|
-
interface Expense extends serializers.api.
|
|
13
|
+
interface Expense extends serializers.api.thera.disbursement.CreateExpenseDetail.Raw {
|
|
14
14
|
type: "expense";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -39,8 +39,8 @@ exports.CreateDisbursementDetail = void 0;
|
|
|
39
39
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
40
|
exports.CreateDisbursementDetail = core.serialization
|
|
41
41
|
.union("type", {
|
|
42
|
-
invoice: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.
|
|
43
|
-
expense: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.
|
|
42
|
+
invoice: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.CreateInvoiceDetail; })),
|
|
43
|
+
expense: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.CreateExpenseDetail; })),
|
|
44
44
|
})
|
|
45
45
|
.transform({
|
|
46
46
|
transform: (value) => value,
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import * as serializers from "../../../../../../../../..";
|
|
5
5
|
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
6
|
import * as core from "../../../../../../../../../../core";
|
|
7
|
-
export declare const CreateDisbursementRequest: core.serialization.ObjectSchema<serializers.api.
|
|
7
|
+
export declare const CreateDisbursementRequest: core.serialization.ObjectSchema<serializers.api.thera.disbursement.CreateDisbursementRequest.Raw, TheraApi.api.thera.disbursement.CreateDisbursementRequest>;
|
|
8
8
|
export declare namespace CreateDisbursementRequest {
|
|
9
9
|
interface Raw {
|
|
10
10
|
contractID: string;
|
|
11
11
|
currency: string;
|
|
12
|
-
detail: serializers.api.
|
|
12
|
+
detail: serializers.api.thera.disbursement.CreateDisbursementDetail.Raw;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -40,5 +40,5 @@ const core = __importStar(require("../../../../../../../../../../core"));
|
|
|
40
40
|
exports.CreateDisbursementRequest = core.serialization.object({
|
|
41
41
|
contractId: core.serialization.property("contractID", core.serialization.string()),
|
|
42
42
|
currency: core.serialization.string(),
|
|
43
|
-
detail: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.
|
|
43
|
+
detail: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.CreateDisbursementDetail; })),
|
|
44
44
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../../../../../../../../..";
|
|
5
5
|
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
6
|
import * as core from "../../../../../../../../../../core";
|
|
7
|
-
export declare const CreateExpenseDetail: core.serialization.ObjectSchema<serializers.api.
|
|
7
|
+
export declare const CreateExpenseDetail: core.serialization.ObjectSchema<serializers.api.thera.disbursement.CreateExpenseDetail.Raw, TheraApi.api.thera.disbursement.CreateExpenseDetail>;
|
|
8
8
|
export declare namespace CreateExpenseDetail {
|
|
9
9
|
interface Raw {
|
|
10
10
|
description: string;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import * as serializers from "../../../../../../../../..";
|
|
5
5
|
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
6
|
import * as core from "../../../../../../../../../../core";
|
|
7
|
-
export declare const CreateInvoiceDetail: core.serialization.ObjectSchema<serializers.api.
|
|
7
|
+
export declare const CreateInvoiceDetail: core.serialization.ObjectSchema<serializers.api.thera.disbursement.CreateInvoiceDetail.Raw, TheraApi.api.thera.disbursement.CreateInvoiceDetail>;
|
|
8
8
|
export declare namespace CreateInvoiceDetail {
|
|
9
9
|
interface Raw {
|
|
10
|
-
|
|
10
|
+
workUnit?: serializers.api.thera.disbursement.InvoiceWorkUnit.Raw | null;
|
|
11
11
|
rate: number;
|
|
12
12
|
amount: number;
|
|
13
13
|
startDate: string;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.CreateInvoiceDetail = void 0;
|
|
39
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
|
+
exports.CreateInvoiceDetail = core.serialization.object({
|
|
41
|
+
workUnit: core.serialization
|
|
42
|
+
.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.InvoiceWorkUnit; }))
|
|
43
|
+
.optional(),
|
|
44
|
+
rate: core.serialization.number(),
|
|
45
|
+
amount: core.serialization.number(),
|
|
46
|
+
startDate: core.serialization.string(),
|
|
47
|
+
endDate: core.serialization.string(),
|
|
48
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
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 InvoiceWorkUnit: core.serialization.ObjectSchema<serializers.api.thera.disbursement.InvoiceWorkUnit.Raw, TheraApi.api.thera.disbursement.InvoiceWorkUnit>;
|
|
8
|
+
export declare namespace InvoiceWorkUnit {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: serializers.api.thera.disbursement.InvoiceWorkUnitType.Raw;
|
|
11
|
+
total: number;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.InvoiceWorkUnit = void 0;
|
|
39
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
|
+
exports.InvoiceWorkUnit = core.serialization.object({
|
|
41
|
+
type: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.InvoiceWorkUnitType; })),
|
|
42
|
+
total: core.serialization.number(),
|
|
43
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 InvoiceWorkUnitType: core.serialization.Schema<serializers.api.thera.disbursement.InvoiceWorkUnitType.Raw, TheraApi.api.thera.disbursement.InvoiceWorkUnitType>;
|
|
8
|
+
export declare namespace InvoiceWorkUnitType {
|
|
9
|
+
type Raw = "HOURLY" | "DAILY" | "WEEKLY" | "TASK";
|
|
10
|
+
}
|
|
@@ -26,12 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.InvoiceWorkUnitType = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
hours: core.serialization.number(),
|
|
33
|
-
rate: core.serialization.number(),
|
|
34
|
-
amount: core.serialization.number(),
|
|
35
|
-
startDate: core.serialization.string(),
|
|
36
|
-
endDate: core.serialization.string(),
|
|
37
|
-
});
|
|
31
|
+
exports.InvoiceWorkUnitType = core.serialization.enum_(["HOURLY", "DAILY", "WEEKLY", "TASK"]);
|
|
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./InvoiceWorkUnitType"), exports);
|
|
18
|
+
__exportStar(require("./InvoiceWorkUnit"), exports);
|
|
17
19
|
__exportStar(require("./CreateInvoiceDetail"), exports);
|
|
18
20
|
__exportStar(require("./CreateExpenseDetail"), exports);
|
|
19
21
|
__exportStar(require("./CreateDisbursementDetail"), exports);
|
package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/index.js
CHANGED
|
@@ -26,6 +26,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.disbursementWebhookApi = void 0;
|
|
29
|
+
exports.disbursementWebhookApi = exports.disbursementApi = void 0;
|
|
30
|
+
exports.disbursementApi = __importStar(require("./disbursementApi"));
|
|
31
|
+
__exportStar(require("./disbursementApi/types"), exports);
|
|
30
32
|
exports.disbursementWebhookApi = __importStar(require("./disbursementWebhookApi"));
|
|
31
33
|
__exportStar(require("./disbursementWebhookApi/types"), exports);
|
package/package.json
CHANGED
|
@@ -26,8 +26,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.document =
|
|
30
|
-
exports.disbursement = __importStar(require("./disbursement"));
|
|
31
|
-
__exportStar(require("./disbursement/types"), exports);
|
|
29
|
+
exports.document = void 0;
|
|
32
30
|
exports.document = __importStar(require("./document"));
|
|
33
31
|
__exportStar(require("./document/types"), exports);
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
import * as serializers from "../../../../../../../../..";
|
|
5
5
|
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
6
|
import * as core from "../../../../../../../../../../core";
|
|
7
|
-
export declare const CreateDisbursementDetail: core.serialization.Schema<serializers.api.
|
|
7
|
+
export declare const CreateDisbursementDetail: core.serialization.Schema<serializers.api.thera.disbursement.CreateDisbursementDetail.Raw, TheraApi.api.thera.disbursement.CreateDisbursementDetail>;
|
|
8
8
|
export declare namespace CreateDisbursementDetail {
|
|
9
9
|
type Raw = CreateDisbursementDetail.Invoice | CreateDisbursementDetail.Expense;
|
|
10
|
-
interface Invoice extends serializers.api.
|
|
10
|
+
interface Invoice extends serializers.api.thera.disbursement.CreateInvoiceDetail.Raw {
|
|
11
11
|
type: "invoice";
|
|
12
12
|
}
|
|
13
|
-
interface Expense extends serializers.api.
|
|
13
|
+
interface Expense extends serializers.api.thera.disbursement.CreateExpenseDetail.Raw {
|
|
14
14
|
type: "expense";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -39,8 +39,8 @@ exports.CreateDisbursementDetail = void 0;
|
|
|
39
39
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
40
|
exports.CreateDisbursementDetail = core.serialization
|
|
41
41
|
.union("type", {
|
|
42
|
-
invoice: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.
|
|
43
|
-
expense: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.
|
|
42
|
+
invoice: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.CreateInvoiceDetail; })),
|
|
43
|
+
expense: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.CreateExpenseDetail; })),
|
|
44
44
|
})
|
|
45
45
|
.transform({
|
|
46
46
|
transform: (value) => value,
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import * as serializers from "../../../../../../../../..";
|
|
5
5
|
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
6
|
import * as core from "../../../../../../../../../../core";
|
|
7
|
-
export declare const CreateDisbursementRequest: core.serialization.ObjectSchema<serializers.api.
|
|
7
|
+
export declare const CreateDisbursementRequest: core.serialization.ObjectSchema<serializers.api.thera.disbursement.CreateDisbursementRequest.Raw, TheraApi.api.thera.disbursement.CreateDisbursementRequest>;
|
|
8
8
|
export declare namespace CreateDisbursementRequest {
|
|
9
9
|
interface Raw {
|
|
10
10
|
contractID: string;
|
|
11
11
|
currency: string;
|
|
12
|
-
detail: serializers.api.
|
|
12
|
+
detail: serializers.api.thera.disbursement.CreateDisbursementDetail.Raw;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -40,5 +40,5 @@ const core = __importStar(require("../../../../../../../../../../core"));
|
|
|
40
40
|
exports.CreateDisbursementRequest = core.serialization.object({
|
|
41
41
|
contractId: core.serialization.property("contractID", core.serialization.string()),
|
|
42
42
|
currency: core.serialization.string(),
|
|
43
|
-
detail: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.
|
|
43
|
+
detail: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.CreateDisbursementDetail; })),
|
|
44
44
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../../../../../../../../..";
|
|
5
5
|
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
6
|
import * as core from "../../../../../../../../../../core";
|
|
7
|
-
export declare const CreateExpenseDetail: core.serialization.ObjectSchema<serializers.api.
|
|
7
|
+
export declare const CreateExpenseDetail: core.serialization.ObjectSchema<serializers.api.thera.disbursement.CreateExpenseDetail.Raw, TheraApi.api.thera.disbursement.CreateExpenseDetail>;
|
|
8
8
|
export declare namespace CreateExpenseDetail {
|
|
9
9
|
interface Raw {
|
|
10
10
|
description: string;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import * as serializers from "../../../../../../../../..";
|
|
5
5
|
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
6
|
import * as core from "../../../../../../../../../../core";
|
|
7
|
-
export declare const CreateInvoiceDetail: core.serialization.ObjectSchema<serializers.api.
|
|
7
|
+
export declare const CreateInvoiceDetail: core.serialization.ObjectSchema<serializers.api.thera.disbursement.CreateInvoiceDetail.Raw, TheraApi.api.thera.disbursement.CreateInvoiceDetail>;
|
|
8
8
|
export declare namespace CreateInvoiceDetail {
|
|
9
9
|
interface Raw {
|
|
10
|
-
|
|
10
|
+
workUnit?: serializers.api.thera.disbursement.InvoiceWorkUnit.Raw | null;
|
|
11
11
|
rate: number;
|
|
12
12
|
amount: number;
|
|
13
13
|
startDate: string;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.CreateInvoiceDetail = void 0;
|
|
39
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
|
+
exports.CreateInvoiceDetail = core.serialization.object({
|
|
41
|
+
workUnit: core.serialization
|
|
42
|
+
.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.InvoiceWorkUnit; }))
|
|
43
|
+
.optional(),
|
|
44
|
+
rate: core.serialization.number(),
|
|
45
|
+
amount: core.serialization.number(),
|
|
46
|
+
startDate: core.serialization.string(),
|
|
47
|
+
endDate: core.serialization.string(),
|
|
48
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
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 InvoiceWorkUnit: core.serialization.ObjectSchema<serializers.api.thera.disbursement.InvoiceWorkUnit.Raw, TheraApi.api.thera.disbursement.InvoiceWorkUnit>;
|
|
8
|
+
export declare namespace InvoiceWorkUnit {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: serializers.api.thera.disbursement.InvoiceWorkUnitType.Raw;
|
|
11
|
+
total: number;
|
|
12
|
+
}
|
|
13
|
+
}
|