@thera-hr/api-sdk 0.0.1668 → 0.0.1675

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.
Files changed (51) hide show
  1. package/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  2. package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  3. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +6 -6
  4. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +1 -1
  5. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  6. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +2 -2
  7. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +6 -3
  8. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.d.ts +11 -0
  9. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.d.ts → CreateOnCycleInvoiceDetail.d.ts} +5 -1
  10. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +2 -1
  11. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +2 -1
  12. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  13. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +2 -2
  14. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +4 -4
  15. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  16. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  17. package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  18. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +6 -6
  19. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +1 -1
  20. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  21. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +2 -2
  22. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +6 -3
  23. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.d.ts +11 -0
  24. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.js +5 -0
  25. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.d.ts → CreateOnCycleInvoiceDetail.d.ts} +5 -1
  26. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOnCycleInvoiceDetail.js +5 -0
  27. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +2 -1
  28. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +2 -1
  29. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  30. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +2 -2
  31. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +4 -4
  32. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  33. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +6 -3
  34. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.js +2 -1
  35. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.d.ts +14 -0
  36. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.js +35 -0
  37. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.d.ts → CreateOnCycleInvoiceDetail.d.ts} +3 -2
  38. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.js → CreateOnCycleInvoiceDetail.js} +3 -2
  39. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +2 -1
  40. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +2 -1
  41. package/package.json +1 -1
  42. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +6 -3
  43. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.js +2 -1
  44. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.d.ts +14 -0
  45. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.js +35 -0
  46. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.d.ts → CreateOnCycleInvoiceDetail.d.ts} +3 -2
  47. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.js → CreateOnCycleInvoiceDetail.js} +3 -2
  48. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +2 -1
  49. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +2 -1
  50. /package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.js → CreateOffCycleInvoiceDetail.js} +0 -0
  51. /package/{dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceDetail.js → api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOnCycleInvoiceDetail.js} +0 -0
@@ -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.1668",
59
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
100
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
141
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
184
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
59
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
68
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
115
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
159
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
200
+ "X-Fern-SDK-Version": "0.0.1675",
201
201
  },
202
202
  contentType: "application/json",
203
203
  body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
@@ -238,7 +238,7 @@ class BankApi {
238
238
  Authorization: yield this._getAuthorizationHeader(),
239
239
  "X-Fern-Language": "JavaScript",
240
240
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
241
- "X-Fern-SDK-Version": "0.0.1668",
241
+ "X-Fern-SDK-Version": "0.0.1675",
242
242
  },
243
243
  contentType: "application/json",
244
244
  body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
@@ -284,7 +284,7 @@ class BankApi {
284
284
  Authorization: yield this._getAuthorizationHeader(),
285
285
  "X-Fern-Language": "JavaScript",
286
286
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
287
- "X-Fern-SDK-Version": "0.0.1668",
287
+ "X-Fern-SDK-Version": "0.0.1675",
288
288
  },
289
289
  contentType: "application/json",
290
290
  body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.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.1668",
68
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
62
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
62
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
106
+ "X-Fern-SDK-Version": "0.0.1675",
107
107
  },
108
108
  contentType: "application/json",
109
109
  timeoutMs: 60000,
@@ -2,12 +2,15 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as TheraApi from "../../../../../../../../..";
5
- export declare type CreateDisbursementDetail = TheraApi.api.thera.disbursement.CreateDisbursementDetail.Invoice | TheraApi.api.thera.disbursement.CreateDisbursementDetail.Expense;
5
+ export declare type CreateDisbursementDetail = TheraApi.api.thera.disbursement.CreateDisbursementDetail.OnCycleInvoice | TheraApi.api.thera.disbursement.CreateDisbursementDetail.Expense | TheraApi.api.thera.disbursement.CreateDisbursementDetail.OffCycleInvoice;
6
6
  export declare namespace CreateDisbursementDetail {
7
- interface Invoice extends TheraApi.api.thera.disbursement.CreateInvoiceDetail {
8
- type: "invoice";
7
+ interface OnCycleInvoice extends TheraApi.api.thera.disbursement.CreateOnCycleInvoiceDetail {
8
+ type: "onCycleInvoice";
9
9
  }
10
10
  interface Expense extends TheraApi.api.thera.disbursement.CreateExpenseDetail {
11
11
  type: "expense";
12
12
  }
13
+ interface OffCycleInvoice extends TheraApi.api.thera.disbursement.CreateOffCycleInvoiceDetail {
14
+ type: "offCycleInvoice";
15
+ }
13
16
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The date for this invoice is auto-generated in BE.
6
+ */
7
+ export interface CreateOffCycleInvoiceDetail {
8
+ description?: string;
9
+ uploadedFileId?: string;
10
+ amount: number;
11
+ }
@@ -2,11 +2,15 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as TheraApi from "../../../../../../../../..";
5
- export interface CreateInvoiceDetail {
5
+ export interface CreateOnCycleInvoiceDetail {
6
6
  /** Null/empty if doesn't exist, for example in Fixed Rate contract */
7
7
  workUnit?: TheraApi.api.thera.disbursement.InvoiceWorkUnit;
8
8
  rate: number;
9
9
  amount: number;
10
+ /** Represents start date of a cycle */
10
11
  startDate: string;
12
+ /** Represents end date of a cycle */
11
13
  endDate: string;
14
+ /** This represents the Submission Date or any selectable single date. Present if it's an one-off invoice */
15
+ date?: string;
12
16
  }
@@ -1,6 +1,7 @@
1
1
  export * from "./InvoiceWorkUnitType";
2
2
  export * from "./InvoiceWorkUnit";
3
- export * from "./CreateInvoiceDetail";
3
+ export * from "./CreateOnCycleInvoiceDetail";
4
4
  export * from "./CreateExpenseDetail";
5
+ export * from "./CreateOffCycleInvoiceDetail";
5
6
  export * from "./CreateDisbursementDetail";
6
7
  export * from "./CreateDisbursementRequest";
@@ -16,7 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./InvoiceWorkUnitType"), exports);
18
18
  __exportStar(require("./InvoiceWorkUnit"), exports);
19
- __exportStar(require("./CreateInvoiceDetail"), exports);
19
+ __exportStar(require("./CreateOnCycleInvoiceDetail"), exports);
20
20
  __exportStar(require("./CreateExpenseDetail"), exports);
21
+ __exportStar(require("./CreateOffCycleInvoiceDetail"), exports);
21
22
  __exportStar(require("./CreateDisbursementDetail"), exports);
22
23
  __exportStar(require("./CreateDisbursementRequest"), 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.1668",
63
+ "X-Fern-SDK-Version": "0.0.1675",
64
64
  "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
65
65
  },
66
66
  contentType: "application/json",
@@ -13,11 +13,11 @@ export declare class EmploymentApi {
13
13
  protected readonly _options: EmploymentApi.Options;
14
14
  constructor(_options: EmploymentApi.Options);
15
15
  /**
16
- * [Staging] Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
16
+ * Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
17
17
  */
18
18
  estimateContract(request: TheraApi.api.thera.employment.CreateContractEstimateRequest): Promise<TheraApi.api.thera.employment.CreateContractEstimateResponse>;
19
19
  /**
20
- * [Staging]. Get Current Cycle for this contract
20
+ * Get Current Cycle for this contract
21
21
  */
22
22
  getCurrentPayCycle(contractId: string): Promise<TheraApi.api.thera.employment.GetCurrentPayCycleResponse>;
23
23
  protected _getAuthorizationHeader(): Promise<string | undefined>;
@@ -48,7 +48,7 @@ class EmploymentApi {
48
48
  this._options = _options;
49
49
  }
50
50
  /**
51
- * [Staging] Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
51
+ * Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
52
52
  */
53
53
  estimateContract(request) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
@@ -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.1668",
62
+ "X-Fern-SDK-Version": "0.0.1675",
63
63
  },
64
64
  contentType: "application/json",
65
65
  body: yield serializers.api.thera.employment.CreateContractEstimateRequest.jsonOrThrow(request, {
@@ -97,7 +97,7 @@ class EmploymentApi {
97
97
  });
98
98
  }
99
99
  /**
100
- * [Staging]. Get Current Cycle for this contract
100
+ * Get Current Cycle for this contract
101
101
  */
102
102
  getCurrentPayCycle(contractId) {
103
103
  return __awaiter(this, void 0, void 0, function* () {
@@ -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.1668",
111
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
62
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
59
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
100
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
141
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
184
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
59
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
68
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
115
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
159
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
200
+ "X-Fern-SDK-Version": "0.0.1675",
201
201
  },
202
202
  contentType: "application/json",
203
203
  body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
@@ -238,7 +238,7 @@ class BankApi {
238
238
  Authorization: yield this._getAuthorizationHeader(),
239
239
  "X-Fern-Language": "JavaScript",
240
240
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
241
- "X-Fern-SDK-Version": "0.0.1668",
241
+ "X-Fern-SDK-Version": "0.0.1675",
242
242
  },
243
243
  contentType: "application/json",
244
244
  body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
@@ -284,7 +284,7 @@ class BankApi {
284
284
  Authorization: yield this._getAuthorizationHeader(),
285
285
  "X-Fern-Language": "JavaScript",
286
286
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
287
- "X-Fern-SDK-Version": "0.0.1668",
287
+ "X-Fern-SDK-Version": "0.0.1675",
288
288
  },
289
289
  contentType: "application/json",
290
290
  body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.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.1668",
68
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
62
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
62
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
106
+ "X-Fern-SDK-Version": "0.0.1675",
107
107
  },
108
108
  contentType: "application/json",
109
109
  timeoutMs: 60000,
@@ -2,12 +2,15 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as TheraApi from "../../../../../../../../..";
5
- export declare type CreateDisbursementDetail = TheraApi.api.thera.disbursement.CreateDisbursementDetail.Invoice | TheraApi.api.thera.disbursement.CreateDisbursementDetail.Expense;
5
+ export declare type CreateDisbursementDetail = TheraApi.api.thera.disbursement.CreateDisbursementDetail.OnCycleInvoice | TheraApi.api.thera.disbursement.CreateDisbursementDetail.Expense | TheraApi.api.thera.disbursement.CreateDisbursementDetail.OffCycleInvoice;
6
6
  export declare namespace CreateDisbursementDetail {
7
- interface Invoice extends TheraApi.api.thera.disbursement.CreateInvoiceDetail {
8
- type: "invoice";
7
+ interface OnCycleInvoice extends TheraApi.api.thera.disbursement.CreateOnCycleInvoiceDetail {
8
+ type: "onCycleInvoice";
9
9
  }
10
10
  interface Expense extends TheraApi.api.thera.disbursement.CreateExpenseDetail {
11
11
  type: "expense";
12
12
  }
13
+ interface OffCycleInvoice extends TheraApi.api.thera.disbursement.CreateOffCycleInvoiceDetail {
14
+ type: "offCycleInvoice";
15
+ }
13
16
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The date for this invoice is auto-generated in BE.
6
+ */
7
+ export interface CreateOffCycleInvoiceDetail {
8
+ description?: string;
9
+ uploadedFileId?: string;
10
+ amount: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,11 +2,15 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as TheraApi from "../../../../../../../../..";
5
- export interface CreateInvoiceDetail {
5
+ export interface CreateOnCycleInvoiceDetail {
6
6
  /** Null/empty if doesn't exist, for example in Fixed Rate contract */
7
7
  workUnit?: TheraApi.api.thera.disbursement.InvoiceWorkUnit;
8
8
  rate: number;
9
9
  amount: number;
10
+ /** Represents start date of a cycle */
10
11
  startDate: string;
12
+ /** Represents end date of a cycle */
11
13
  endDate: string;
14
+ /** This represents the Submission Date or any selectable single date. Present if it's an one-off invoice */
15
+ date?: string;
12
16
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,7 @@
1
1
  export * from "./InvoiceWorkUnitType";
2
2
  export * from "./InvoiceWorkUnit";
3
- export * from "./CreateInvoiceDetail";
3
+ export * from "./CreateOnCycleInvoiceDetail";
4
4
  export * from "./CreateExpenseDetail";
5
+ export * from "./CreateOffCycleInvoiceDetail";
5
6
  export * from "./CreateDisbursementDetail";
6
7
  export * from "./CreateDisbursementRequest";
@@ -16,7 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./InvoiceWorkUnitType"), exports);
18
18
  __exportStar(require("./InvoiceWorkUnit"), exports);
19
- __exportStar(require("./CreateInvoiceDetail"), exports);
19
+ __exportStar(require("./CreateOnCycleInvoiceDetail"), exports);
20
20
  __exportStar(require("./CreateExpenseDetail"), exports);
21
+ __exportStar(require("./CreateOffCycleInvoiceDetail"), exports);
21
22
  __exportStar(require("./CreateDisbursementDetail"), exports);
22
23
  __exportStar(require("./CreateDisbursementRequest"), 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.1668",
63
+ "X-Fern-SDK-Version": "0.0.1675",
64
64
  "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
65
65
  },
66
66
  contentType: "application/json",
@@ -13,11 +13,11 @@ export declare class EmploymentApi {
13
13
  protected readonly _options: EmploymentApi.Options;
14
14
  constructor(_options: EmploymentApi.Options);
15
15
  /**
16
- * [Staging] Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
16
+ * Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
17
17
  */
18
18
  estimateContract(request: TheraApi.api.thera.employment.CreateContractEstimateRequest): Promise<TheraApi.api.thera.employment.CreateContractEstimateResponse>;
19
19
  /**
20
- * [Staging]. Get Current Cycle for this contract
20
+ * Get Current Cycle for this contract
21
21
  */
22
22
  getCurrentPayCycle(contractId: string): Promise<TheraApi.api.thera.employment.GetCurrentPayCycleResponse>;
23
23
  protected _getAuthorizationHeader(): Promise<string | undefined>;
@@ -48,7 +48,7 @@ class EmploymentApi {
48
48
  this._options = _options;
49
49
  }
50
50
  /**
51
- * [Staging] Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
51
+ * Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
52
52
  */
53
53
  estimateContract(request) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
@@ -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.1668",
62
+ "X-Fern-SDK-Version": "0.0.1675",
63
63
  },
64
64
  contentType: "application/json",
65
65
  body: yield serializers.api.thera.employment.CreateContractEstimateRequest.jsonOrThrow(request, {
@@ -97,7 +97,7 @@ class EmploymentApi {
97
97
  });
98
98
  }
99
99
  /**
100
- * [Staging]. Get Current Cycle for this contract
100
+ * Get Current Cycle for this contract
101
101
  */
102
102
  getCurrentPayCycle(contractId) {
103
103
  return __awaiter(this, void 0, void 0, function* () {
@@ -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.1668",
111
+ "X-Fern-SDK-Version": "0.0.1675",
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.1668",
62
+ "X-Fern-SDK-Version": "0.0.1675",
63
63
  },
64
64
  contentType: "application/json",
65
65
  timeoutMs: 60000,
@@ -6,11 +6,14 @@ import * as TheraApi from "../../../../../../../../../../api";
6
6
  import * as core from "../../../../../../../../../../core";
7
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
- type Raw = CreateDisbursementDetail.Invoice | CreateDisbursementDetail.Expense;
10
- interface Invoice extends serializers.api.thera.disbursement.CreateInvoiceDetail.Raw {
11
- type: "invoice";
9
+ type Raw = CreateDisbursementDetail.OnCycleInvoice | CreateDisbursementDetail.Expense | CreateDisbursementDetail.OffCycleInvoice;
10
+ interface OnCycleInvoice extends serializers.api.thera.disbursement.CreateOnCycleInvoiceDetail.Raw {
11
+ type: "onCycleInvoice";
12
12
  }
13
13
  interface Expense extends serializers.api.thera.disbursement.CreateExpenseDetail.Raw {
14
14
  type: "expense";
15
15
  }
16
+ interface OffCycleInvoice extends serializers.api.thera.disbursement.CreateOffCycleInvoiceDetail.Raw {
17
+ type: "offCycleInvoice";
18
+ }
16
19
  }
@@ -39,8 +39,9 @@ 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.thera.disbursement.CreateInvoiceDetail; })),
42
+ onCycleInvoice: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.CreateOnCycleInvoiceDetail; })),
43
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
+ offCycleInvoice: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.CreateOffCycleInvoiceDetail; })),
44
45
  })
45
46
  .transform({
46
47
  transform: (value) => value,
@@ -0,0 +1,14 @@
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 CreateOffCycleInvoiceDetail: core.serialization.ObjectSchema<serializers.api.thera.disbursement.CreateOffCycleInvoiceDetail.Raw, TheraApi.api.thera.disbursement.CreateOffCycleInvoiceDetail>;
8
+ export declare namespace CreateOffCycleInvoiceDetail {
9
+ interface Raw {
10
+ description?: string | null;
11
+ uploadedFileId?: string | null;
12
+ amount: number;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.CreateOffCycleInvoiceDetail = void 0;
30
+ const core = __importStar(require("../../../../../../../../../../core"));
31
+ exports.CreateOffCycleInvoiceDetail = core.serialization.object({
32
+ description: core.serialization.string().optional(),
33
+ uploadedFileId: core.serialization.string().optional(),
34
+ amount: core.serialization.number(),
35
+ });
@@ -4,13 +4,14 @@
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.thera.disbursement.CreateInvoiceDetail.Raw, TheraApi.api.thera.disbursement.CreateInvoiceDetail>;
8
- export declare namespace CreateInvoiceDetail {
7
+ export declare const CreateOnCycleInvoiceDetail: core.serialization.ObjectSchema<serializers.api.thera.disbursement.CreateOnCycleInvoiceDetail.Raw, TheraApi.api.thera.disbursement.CreateOnCycleInvoiceDetail>;
8
+ export declare namespace CreateOnCycleInvoiceDetail {
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;
14
14
  endDate: string;
15
+ date?: string | null;
15
16
  }
16
17
  }
@@ -35,9 +35,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
35
35
  });
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.CreateInvoiceDetail = void 0;
38
+ exports.CreateOnCycleInvoiceDetail = void 0;
39
39
  const core = __importStar(require("../../../../../../../../../../core"));
40
- exports.CreateInvoiceDetail = core.serialization.object({
40
+ exports.CreateOnCycleInvoiceDetail = core.serialization.object({
41
41
  workUnit: core.serialization
42
42
  .lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.InvoiceWorkUnit; }))
43
43
  .optional(),
@@ -45,4 +45,5 @@ exports.CreateInvoiceDetail = core.serialization.object({
45
45
  amount: core.serialization.number(),
46
46
  startDate: core.serialization.string(),
47
47
  endDate: core.serialization.string(),
48
+ date: core.serialization.string().optional(),
48
49
  });
@@ -1,6 +1,7 @@
1
1
  export * from "./InvoiceWorkUnitType";
2
2
  export * from "./InvoiceWorkUnit";
3
- export * from "./CreateInvoiceDetail";
3
+ export * from "./CreateOnCycleInvoiceDetail";
4
4
  export * from "./CreateExpenseDetail";
5
+ export * from "./CreateOffCycleInvoiceDetail";
5
6
  export * from "./CreateDisbursementDetail";
6
7
  export * from "./CreateDisbursementRequest";
@@ -16,7 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./InvoiceWorkUnitType"), exports);
18
18
  __exportStar(require("./InvoiceWorkUnit"), exports);
19
- __exportStar(require("./CreateInvoiceDetail"), exports);
19
+ __exportStar(require("./CreateOnCycleInvoiceDetail"), exports);
20
20
  __exportStar(require("./CreateExpenseDetail"), exports);
21
+ __exportStar(require("./CreateOffCycleInvoiceDetail"), exports);
21
22
  __exportStar(require("./CreateDisbursementDetail"), exports);
22
23
  __exportStar(require("./CreateDisbursementRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "0.0.1668",
3
+ "version": "0.0.1675",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
@@ -6,11 +6,14 @@ import * as TheraApi from "../../../../../../../../../../api";
6
6
  import * as core from "../../../../../../../../../../core";
7
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
- type Raw = CreateDisbursementDetail.Invoice | CreateDisbursementDetail.Expense;
10
- interface Invoice extends serializers.api.thera.disbursement.CreateInvoiceDetail.Raw {
11
- type: "invoice";
9
+ type Raw = CreateDisbursementDetail.OnCycleInvoice | CreateDisbursementDetail.Expense | CreateDisbursementDetail.OffCycleInvoice;
10
+ interface OnCycleInvoice extends serializers.api.thera.disbursement.CreateOnCycleInvoiceDetail.Raw {
11
+ type: "onCycleInvoice";
12
12
  }
13
13
  interface Expense extends serializers.api.thera.disbursement.CreateExpenseDetail.Raw {
14
14
  type: "expense";
15
15
  }
16
+ interface OffCycleInvoice extends serializers.api.thera.disbursement.CreateOffCycleInvoiceDetail.Raw {
17
+ type: "offCycleInvoice";
18
+ }
16
19
  }
@@ -39,8 +39,9 @@ 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.thera.disbursement.CreateInvoiceDetail; })),
42
+ onCycleInvoice: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.CreateOnCycleInvoiceDetail; })),
43
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
+ offCycleInvoice: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.CreateOffCycleInvoiceDetail; })),
44
45
  })
45
46
  .transform({
46
47
  transform: (value) => value,
@@ -0,0 +1,14 @@
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 CreateOffCycleInvoiceDetail: core.serialization.ObjectSchema<serializers.api.thera.disbursement.CreateOffCycleInvoiceDetail.Raw, TheraApi.api.thera.disbursement.CreateOffCycleInvoiceDetail>;
8
+ export declare namespace CreateOffCycleInvoiceDetail {
9
+ interface Raw {
10
+ description?: string | null;
11
+ uploadedFileId?: string | null;
12
+ amount: number;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.CreateOffCycleInvoiceDetail = void 0;
30
+ const core = __importStar(require("../../../../../../../../../../core"));
31
+ exports.CreateOffCycleInvoiceDetail = core.serialization.object({
32
+ description: core.serialization.string().optional(),
33
+ uploadedFileId: core.serialization.string().optional(),
34
+ amount: core.serialization.number(),
35
+ });
@@ -4,13 +4,14 @@
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.thera.disbursement.CreateInvoiceDetail.Raw, TheraApi.api.thera.disbursement.CreateInvoiceDetail>;
8
- export declare namespace CreateInvoiceDetail {
7
+ export declare const CreateOnCycleInvoiceDetail: core.serialization.ObjectSchema<serializers.api.thera.disbursement.CreateOnCycleInvoiceDetail.Raw, TheraApi.api.thera.disbursement.CreateOnCycleInvoiceDetail>;
8
+ export declare namespace CreateOnCycleInvoiceDetail {
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;
14
14
  endDate: string;
15
+ date?: string | null;
15
16
  }
16
17
  }
@@ -35,9 +35,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
35
35
  });
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.CreateInvoiceDetail = void 0;
38
+ exports.CreateOnCycleInvoiceDetail = void 0;
39
39
  const core = __importStar(require("../../../../../../../../../../core"));
40
- exports.CreateInvoiceDetail = core.serialization.object({
40
+ exports.CreateOnCycleInvoiceDetail = core.serialization.object({
41
41
  workUnit: core.serialization
42
42
  .lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.disbursement.InvoiceWorkUnit; }))
43
43
  .optional(),
@@ -45,4 +45,5 @@ exports.CreateInvoiceDetail = core.serialization.object({
45
45
  amount: core.serialization.number(),
46
46
  startDate: core.serialization.string(),
47
47
  endDate: core.serialization.string(),
48
+ date: core.serialization.string().optional(),
48
49
  });
@@ -1,6 +1,7 @@
1
1
  export * from "./InvoiceWorkUnitType";
2
2
  export * from "./InvoiceWorkUnit";
3
- export * from "./CreateInvoiceDetail";
3
+ export * from "./CreateOnCycleInvoiceDetail";
4
4
  export * from "./CreateExpenseDetail";
5
+ export * from "./CreateOffCycleInvoiceDetail";
5
6
  export * from "./CreateDisbursementDetail";
6
7
  export * from "./CreateDisbursementRequest";
@@ -16,7 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./InvoiceWorkUnitType"), exports);
18
18
  __exportStar(require("./InvoiceWorkUnit"), exports);
19
- __exportStar(require("./CreateInvoiceDetail"), exports);
19
+ __exportStar(require("./CreateOnCycleInvoiceDetail"), exports);
20
20
  __exportStar(require("./CreateExpenseDetail"), exports);
21
+ __exportStar(require("./CreateOffCycleInvoiceDetail"), exports);
21
22
  __exportStar(require("./CreateDisbursementDetail"), exports);
22
23
  __exportStar(require("./CreateDisbursementRequest"), exports);