@thera-hr/api-sdk 1.1.1-prerelease2389-dev-2 → 1.1.1-prerelease2392-dev-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  3. package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  4. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  5. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -2
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +54 -42
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.d.ts +15 -0
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.js +5 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.d.ts +15 -0
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.js +5 -0
  12. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +23 -0
  13. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +5 -0
  14. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +9 -0
  15. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +5 -0
  16. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +19 -0
  17. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +5 -0
  18. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +5 -0
  19. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +5 -0
  20. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  21. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  22. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  23. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  24. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  25. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  26. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  27. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  28. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  29. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  30. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  31. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  32. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  33. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  34. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  35. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  36. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  37. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  38. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  39. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  40. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  41. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  42. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  43. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  44. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  45. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -2
  46. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +54 -42
  47. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.d.ts +15 -0
  48. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.js +5 -0
  49. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.d.ts +15 -0
  50. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.js +5 -0
  51. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +23 -0
  52. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +5 -0
  53. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +9 -0
  54. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +5 -0
  55. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +19 -0
  56. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +5 -0
  57. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +5 -0
  58. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +5 -0
  59. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  60. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  61. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  62. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  63. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  64. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  65. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  66. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  67. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  68. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  69. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  70. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  71. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  72. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  73. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  74. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  75. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  76. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  77. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  78. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  79. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.d.ts +19 -0
  80. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.js +54 -0
  81. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.d.ts +19 -0
  82. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.js +54 -0
  83. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +29 -0
  84. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +60 -0
  85. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +15 -0
  86. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +46 -0
  87. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +25 -0
  88. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +56 -0
  89. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +5 -0
  90. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +5 -0
  91. package/dist/version.d.ts +1 -1
  92. package/dist/version.js +1 -1
  93. package/package.json +1 -1
  94. package/reference.md +2 -2
  95. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.d.ts +19 -0
  96. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.js +54 -0
  97. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.d.ts +19 -0
  98. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.js +54 -0
  99. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +29 -0
  100. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +60 -0
  101. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +15 -0
  102. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +46 -0
  103. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +25 -0
  104. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +56 -0
  105. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +5 -0
  106. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +5 -0
  107. package/version.d.ts +1 -1
  108. package/version.js +1 -1
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ import { ExportedInvoice } from "./ExportedInvoice";
8
+ export declare const ExportWorkerInvoicesResponse: core.serialization.Schema<serializers.api.thera.bank.ExportWorkerInvoicesResponse.Raw, TheraApi.api.thera.bank.ExportWorkerInvoicesResponse>;
9
+ export declare namespace ExportWorkerInvoicesResponse {
10
+ type Raw = ExportWorkerInvoicesResponse.Csv | ExportWorkerInvoicesResponse.Json;
11
+ interface Csv {
12
+ type: "csv";
13
+ value: string;
14
+ }
15
+ interface Json {
16
+ type: "json";
17
+ value: ExportedInvoice.Raw[];
18
+ }
19
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ExportWorkerInvoicesResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const ExportedInvoice_1 = require("./ExportedInvoice");
42
+ exports.ExportWorkerInvoicesResponse = core.serialization
43
+ .union("type", {
44
+ csv: core.serialization.object({
45
+ value: core.serialization.string(),
46
+ }),
47
+ json: core.serialization.object({
48
+ value: core.serialization.list(ExportedInvoice_1.ExportedInvoice),
49
+ }),
50
+ })
51
+ .transform({
52
+ transform: (value) => value,
53
+ untransform: (value) => value,
54
+ });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ import { ExportedWithdrawal } from "./ExportedWithdrawal";
8
+ export declare const ExportWorkerWithdrawalsResponse: core.serialization.Schema<serializers.api.thera.bank.ExportWorkerWithdrawalsResponse.Raw, TheraApi.api.thera.bank.ExportWorkerWithdrawalsResponse>;
9
+ export declare namespace ExportWorkerWithdrawalsResponse {
10
+ type Raw = ExportWorkerWithdrawalsResponse.Csv | ExportWorkerWithdrawalsResponse.Json;
11
+ interface Csv {
12
+ type: "csv";
13
+ value: string;
14
+ }
15
+ interface Json {
16
+ type: "json";
17
+ value: ExportedWithdrawal.Raw[];
18
+ }
19
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ExportWorkerWithdrawalsResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const ExportedWithdrawal_1 = require("./ExportedWithdrawal");
42
+ exports.ExportWorkerWithdrawalsResponse = core.serialization
43
+ .union("type", {
44
+ csv: core.serialization.object({
45
+ value: core.serialization.string(),
46
+ }),
47
+ json: core.serialization.object({
48
+ value: core.serialization.list(ExportedWithdrawal_1.ExportedWithdrawal),
49
+ }),
50
+ })
51
+ .transform({
52
+ transform: (value) => value,
53
+ untransform: (value) => value,
54
+ });
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ import { ExportedInvoiceDeduction } from "./ExportedInvoiceDeduction";
8
+ export declare const ExportedInvoice: core.serialization.ObjectSchema<serializers.api.thera.bank.ExportedInvoice.Raw, TheraApi.api.thera.bank.ExportedInvoice>;
9
+ export declare namespace ExportedInvoice {
10
+ interface Raw {
11
+ invoiceId?: string | null;
12
+ displayId?: string | null;
13
+ contractId: string;
14
+ status?: string | null;
15
+ type?: string | null;
16
+ amount?: number | null;
17
+ currency?: string | null;
18
+ actualPaymentAmount?: number | null;
19
+ actualPaymentCurrency?: string | null;
20
+ creationDate?: string | null;
21
+ paymentDate?: string | null;
22
+ startDate?: string | null;
23
+ endDate?: string | null;
24
+ hoursOrWorkUnits?: number | null;
25
+ rate?: number | null;
26
+ deductions?: ExportedInvoiceDeduction.Raw[] | null;
27
+ description?: string | null;
28
+ }
29
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ExportedInvoice = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const ExportedInvoiceDeduction_1 = require("./ExportedInvoiceDeduction");
42
+ exports.ExportedInvoice = core.serialization.object({
43
+ invoiceId: core.serialization.string().optional(),
44
+ displayId: core.serialization.string().optional(),
45
+ contractId: core.serialization.string(),
46
+ status: core.serialization.string().optional(),
47
+ type: core.serialization.string().optional(),
48
+ amount: core.serialization.number().optional(),
49
+ currency: core.serialization.string().optional(),
50
+ actualPaymentAmount: core.serialization.number().optional(),
51
+ actualPaymentCurrency: core.serialization.string().optional(),
52
+ creationDate: core.serialization.string().optional(),
53
+ paymentDate: core.serialization.string().optional(),
54
+ startDate: core.serialization.string().optional(),
55
+ endDate: core.serialization.string().optional(),
56
+ hoursOrWorkUnits: core.serialization.number().optional(),
57
+ rate: core.serialization.number().optional(),
58
+ deductions: core.serialization.list(ExportedInvoiceDeduction_1.ExportedInvoiceDeduction).optional(),
59
+ description: core.serialization.string().optional(),
60
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const ExportedInvoiceDeduction: core.serialization.ObjectSchema<serializers.api.thera.bank.ExportedInvoiceDeduction.Raw, TheraApi.api.thera.bank.ExportedInvoiceDeduction>;
8
+ export declare namespace ExportedInvoiceDeduction {
9
+ interface Raw {
10
+ id: string;
11
+ amount?: number | null;
12
+ currency?: string | null;
13
+ description?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ExportedInvoiceDeduction = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ exports.ExportedInvoiceDeduction = core.serialization.object({
42
+ id: core.serialization.string(),
43
+ amount: core.serialization.number().optional(),
44
+ currency: core.serialization.string().optional(),
45
+ description: core.serialization.string().optional(),
46
+ });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const ExportedWithdrawal: core.serialization.ObjectSchema<serializers.api.thera.bank.ExportedWithdrawal.Raw, TheraApi.api.thera.bank.ExportedWithdrawal>;
8
+ export declare namespace ExportedWithdrawal {
9
+ interface Raw {
10
+ ledgerTransactionId: string;
11
+ withdrawalMethodTitle?: string | null;
12
+ withdrawalMethodId?: string | null;
13
+ amount: number;
14
+ currency: string;
15
+ convertedAmount?: number | null;
16
+ convertedCurrency?: string | null;
17
+ timestamp: string;
18
+ status?: string | null;
19
+ feeCurrency?: string | null;
20
+ flatFee?: number | null;
21
+ variableFee?: number | null;
22
+ exchangeRate?: number | null;
23
+ exchangeFrom: number;
24
+ }
25
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ExportedWithdrawal = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ exports.ExportedWithdrawal = core.serialization.object({
42
+ ledgerTransactionId: core.serialization.string(),
43
+ withdrawalMethodTitle: core.serialization.string().optional(),
44
+ withdrawalMethodId: core.serialization.string().optional(),
45
+ amount: core.serialization.number(),
46
+ currency: core.serialization.string(),
47
+ convertedAmount: core.serialization.number().optional(),
48
+ convertedCurrency: core.serialization.string().optional(),
49
+ timestamp: core.serialization.string(),
50
+ status: core.serialization.string().optional(),
51
+ feeCurrency: core.serialization.string().optional(),
52
+ flatFee: core.serialization.number().optional(),
53
+ variableFee: core.serialization.number().optional(),
54
+ exchangeRate: core.serialization.number().optional(),
55
+ exchangeFrom: core.serialization.number(),
56
+ });
@@ -73,3 +73,8 @@ export * from "./SetAutoWithdrawalResponse";
73
73
  export * from "./WorkerTransactionStatus";
74
74
  export * from "./SetBulkAutoApproveInvoiceForTeamsRequest";
75
75
  export * from "./GetPayInCountResponse";
76
+ export * from "./ExportWorkerInvoicesResponse";
77
+ export * from "./ExportedInvoice";
78
+ export * from "./ExportedInvoiceDeduction";
79
+ export * from "./ExportWorkerWithdrawalsResponse";
80
+ export * from "./ExportedWithdrawal";
@@ -89,3 +89,8 @@ __exportStar(require("./SetAutoWithdrawalResponse"), exports);
89
89
  __exportStar(require("./WorkerTransactionStatus"), exports);
90
90
  __exportStar(require("./SetBulkAutoApproveInvoiceForTeamsRequest"), exports);
91
91
  __exportStar(require("./GetPayInCountResponse"), exports);
92
+ __exportStar(require("./ExportWorkerInvoicesResponse"), exports);
93
+ __exportStar(require("./ExportedInvoice"), exports);
94
+ __exportStar(require("./ExportedInvoiceDeduction"), exports);
95
+ __exportStar(require("./ExportWorkerWithdrawalsResponse"), exports);
96
+ __exportStar(require("./ExportedWithdrawal"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1.1-prerelease2389-dev-2";
1
+ export declare const SDK_VERSION = "1.1.1-prerelease2392-dev-2";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.1.1-prerelease2389-dev-2";
4
+ exports.SDK_VERSION = "1.1.1-prerelease2392-dev-2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "1.1.1-prerelease2389-dev-2",
3
+ "version": "1.1.1-prerelease2392-dev-2",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2664,7 +2664,7 @@ await client.api.thera.bank.bankApi.getWorkerTransactionById("string", "string",
2664
2664
  </dl>
2665
2665
  </details>
2666
2666
 
2667
- <details><summary><code>client.api.thera.bank.bankApi.<a href="/src/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.ts">exportWorkerInvoices</a>(userId, companyId, { ...params }) -> unknown</code></summary>
2667
+ <details><summary><code>client.api.thera.bank.bankApi.<a href="/src/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.ts">exportWorkerInvoices</a>(userId, companyId, { ...params }) -> TheraApi.ExportWorkerInvoicesResponse</code></summary>
2668
2668
  <dl>
2669
2669
  <dd>
2670
2670
 
@@ -2748,7 +2748,7 @@ await client.api.thera.bank.bankApi.exportWorkerInvoices("string", "string", {
2748
2748
  </dl>
2749
2749
  </details>
2750
2750
 
2751
- <details><summary><code>client.api.thera.bank.bankApi.<a href="/src/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.ts">exportWorkerWithdrawals</a>(userId, companyId, { ...params }) -> unknown</code></summary>
2751
+ <details><summary><code>client.api.thera.bank.bankApi.<a href="/src/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.ts">exportWorkerWithdrawals</a>(userId, companyId, { ...params }) -> TheraApi.ExportWorkerWithdrawalsResponse</code></summary>
2752
2752
  <dl>
2753
2753
  <dd>
2754
2754
 
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ import { ExportedInvoice } from "./ExportedInvoice";
8
+ export declare const ExportWorkerInvoicesResponse: core.serialization.Schema<serializers.api.thera.bank.ExportWorkerInvoicesResponse.Raw, TheraApi.api.thera.bank.ExportWorkerInvoicesResponse>;
9
+ export declare namespace ExportWorkerInvoicesResponse {
10
+ type Raw = ExportWorkerInvoicesResponse.Csv | ExportWorkerInvoicesResponse.Json;
11
+ interface Csv {
12
+ type: "csv";
13
+ value: string;
14
+ }
15
+ interface Json {
16
+ type: "json";
17
+ value: ExportedInvoice.Raw[];
18
+ }
19
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ExportWorkerInvoicesResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const ExportedInvoice_1 = require("./ExportedInvoice");
42
+ exports.ExportWorkerInvoicesResponse = core.serialization
43
+ .union("type", {
44
+ csv: core.serialization.object({
45
+ value: core.serialization.string(),
46
+ }),
47
+ json: core.serialization.object({
48
+ value: core.serialization.list(ExportedInvoice_1.ExportedInvoice),
49
+ }),
50
+ })
51
+ .transform({
52
+ transform: (value) => value,
53
+ untransform: (value) => value,
54
+ });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ import { ExportedWithdrawal } from "./ExportedWithdrawal";
8
+ export declare const ExportWorkerWithdrawalsResponse: core.serialization.Schema<serializers.api.thera.bank.ExportWorkerWithdrawalsResponse.Raw, TheraApi.api.thera.bank.ExportWorkerWithdrawalsResponse>;
9
+ export declare namespace ExportWorkerWithdrawalsResponse {
10
+ type Raw = ExportWorkerWithdrawalsResponse.Csv | ExportWorkerWithdrawalsResponse.Json;
11
+ interface Csv {
12
+ type: "csv";
13
+ value: string;
14
+ }
15
+ interface Json {
16
+ type: "json";
17
+ value: ExportedWithdrawal.Raw[];
18
+ }
19
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ExportWorkerWithdrawalsResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const ExportedWithdrawal_1 = require("./ExportedWithdrawal");
42
+ exports.ExportWorkerWithdrawalsResponse = core.serialization
43
+ .union("type", {
44
+ csv: core.serialization.object({
45
+ value: core.serialization.string(),
46
+ }),
47
+ json: core.serialization.object({
48
+ value: core.serialization.list(ExportedWithdrawal_1.ExportedWithdrawal),
49
+ }),
50
+ })
51
+ .transform({
52
+ transform: (value) => value,
53
+ untransform: (value) => value,
54
+ });
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ import { ExportedInvoiceDeduction } from "./ExportedInvoiceDeduction";
8
+ export declare const ExportedInvoice: core.serialization.ObjectSchema<serializers.api.thera.bank.ExportedInvoice.Raw, TheraApi.api.thera.bank.ExportedInvoice>;
9
+ export declare namespace ExportedInvoice {
10
+ interface Raw {
11
+ invoiceId?: string | null;
12
+ displayId?: string | null;
13
+ contractId: string;
14
+ status?: string | null;
15
+ type?: string | null;
16
+ amount?: number | null;
17
+ currency?: string | null;
18
+ actualPaymentAmount?: number | null;
19
+ actualPaymentCurrency?: string | null;
20
+ creationDate?: string | null;
21
+ paymentDate?: string | null;
22
+ startDate?: string | null;
23
+ endDate?: string | null;
24
+ hoursOrWorkUnits?: number | null;
25
+ rate?: number | null;
26
+ deductions?: ExportedInvoiceDeduction.Raw[] | null;
27
+ description?: string | null;
28
+ }
29
+ }