@thera-hr/api-sdk 1.2.0-prerelease2398-dev-2 → 1.2.0-prerelease2407-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 (176) 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 +3 -63
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +48 -312
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRequest.d.ts +11 -1
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -4
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +0 -3
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +0 -3
  12. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  13. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  14. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  15. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  16. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  17. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  18. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  19. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  20. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  21. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  22. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  23. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  24. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  25. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  26. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  27. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  28. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  29. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  30. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  31. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  32. package/api/resources/db/resources/generic/types/GenericType.d.ts +1 -0
  33. package/api/resources/db/resources/index.d.ts +2 -0
  34. package/api/resources/db/resources/index.js +3 -1
  35. package/api/resources/db/resources/payoutQueue/index.d.ts +1 -0
  36. package/api/resources/db/resources/payoutQueue/index.js +17 -0
  37. package/api/resources/db/resources/payoutQueue/types/PayoutProvider.d.ts +9 -0
  38. package/api/resources/{api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsJsonRequest.js → db/resources/payoutQueue/types/PayoutProvider.js} +6 -0
  39. package/api/resources/db/resources/payoutQueue/types/PayoutQueueItem.d.ts +50 -0
  40. package/api/resources/db/resources/payoutQueue/types/PayoutStatus.d.ts +10 -0
  41. package/api/resources/db/resources/payoutQueue/types/PayoutStatus.js +12 -0
  42. package/api/resources/db/resources/payoutQueue/types/index.d.ts +3 -0
  43. package/api/resources/db/resources/payoutQueue/types/index.js +19 -0
  44. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  45. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  46. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  47. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  48. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  49. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +3 -63
  50. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +48 -312
  51. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRequest.d.ts +11 -1
  52. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -4
  53. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +0 -3
  54. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +0 -3
  55. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  56. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  57. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  58. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  59. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  60. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  61. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  62. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  63. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  64. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  65. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  66. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  67. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  68. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  69. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  70. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  71. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  72. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  73. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  74. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  75. package/dist/api/resources/db/resources/generic/types/GenericType.d.ts +1 -0
  76. package/dist/api/resources/db/resources/index.d.ts +2 -0
  77. package/dist/api/resources/db/resources/index.js +3 -1
  78. package/dist/api/resources/db/resources/payoutQueue/index.d.ts +1 -0
  79. package/dist/api/resources/db/resources/payoutQueue/index.js +17 -0
  80. package/dist/api/resources/db/resources/payoutQueue/types/PayoutProvider.d.ts +9 -0
  81. package/{api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsCsvRequest.js → dist/api/resources/db/resources/payoutQueue/types/PayoutProvider.js} +6 -0
  82. package/dist/api/resources/db/resources/payoutQueue/types/PayoutQueueItem.d.ts +50 -0
  83. package/dist/api/resources/db/resources/payoutQueue/types/PayoutStatus.d.ts +10 -0
  84. package/dist/api/resources/db/resources/payoutQueue/types/PayoutStatus.js +12 -0
  85. package/dist/api/resources/db/resources/payoutQueue/types/index.d.ts +3 -0
  86. package/dist/api/resources/db/resources/payoutQueue/types/index.js +19 -0
  87. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +0 -4
  88. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +1 -5
  89. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +0 -3
  90. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +0 -3
  91. package/dist/serialization/resources/db/resources/generic/types/GenericType.d.ts +1 -0
  92. package/dist/serialization/resources/db/resources/generic/types/GenericType.js +1 -0
  93. package/dist/serialization/resources/db/resources/index.d.ts +2 -0
  94. package/dist/serialization/resources/db/resources/index.js +3 -1
  95. package/dist/serialization/resources/db/resources/payoutQueue/index.d.ts +1 -0
  96. package/dist/serialization/resources/db/resources/payoutQueue/index.js +17 -0
  97. package/dist/serialization/resources/db/resources/payoutQueue/types/PayoutProvider.d.ts +10 -0
  98. package/dist/serialization/resources/{api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesCsv.js → db/resources/payoutQueue/types/PayoutProvider.js} +3 -3
  99. package/dist/serialization/resources/db/resources/payoutQueue/types/PayoutQueueItem.d.ts +35 -0
  100. package/{serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js → dist/serialization/resources/db/resources/payoutQueue/types/PayoutQueueItem.js} +24 -14
  101. package/dist/serialization/resources/db/resources/payoutQueue/types/PayoutStatus.d.ts +10 -0
  102. package/dist/serialization/resources/{api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsCsv.js → db/resources/payoutQueue/types/PayoutStatus.js} +3 -3
  103. package/dist/serialization/resources/db/resources/payoutQueue/types/index.d.ts +3 -0
  104. package/dist/serialization/resources/db/resources/payoutQueue/types/index.js +19 -0
  105. package/dist/version.d.ts +1 -1
  106. package/dist/version.js +1 -1
  107. package/package.json +1 -1
  108. package/reference.md +2 -330
  109. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +0 -4
  110. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +1 -5
  111. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +0 -3
  112. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +0 -3
  113. package/serialization/resources/db/resources/generic/types/GenericType.d.ts +1 -0
  114. package/serialization/resources/db/resources/generic/types/GenericType.js +1 -0
  115. package/serialization/resources/db/resources/index.d.ts +2 -0
  116. package/serialization/resources/db/resources/index.js +3 -1
  117. package/serialization/resources/db/resources/payoutQueue/index.d.ts +1 -0
  118. package/serialization/resources/db/resources/payoutQueue/index.js +17 -0
  119. package/serialization/resources/db/resources/payoutQueue/types/PayoutProvider.d.ts +10 -0
  120. package/serialization/resources/{api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsCsv.js → db/resources/payoutQueue/types/PayoutProvider.js} +3 -3
  121. package/serialization/resources/db/resources/payoutQueue/types/PayoutQueueItem.d.ts +35 -0
  122. package/{dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js → serialization/resources/db/resources/payoutQueue/types/PayoutQueueItem.js} +24 -14
  123. package/serialization/resources/db/resources/payoutQueue/types/PayoutStatus.d.ts +10 -0
  124. package/serialization/resources/{api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesCsv.js → db/resources/payoutQueue/types/PayoutStatus.js} +3 -3
  125. package/serialization/resources/db/resources/payoutQueue/types/index.d.ts +3 -0
  126. package/serialization/resources/db/resources/payoutQueue/types/index.js +19 -0
  127. package/version.d.ts +1 -1
  128. package/version.js +1 -1
  129. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesCsvRequest.d.ts +0 -25
  130. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesJsonRequest.d.ts +0 -25
  131. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsCsvRequest.d.ts +0 -20
  132. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsJsonRequest.d.ts +0 -20
  133. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +0 -23
  134. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +0 -5
  135. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +0 -9
  136. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +0 -5
  137. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +0 -19
  138. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +0 -5
  139. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesCsvRequest.d.ts +0 -25
  140. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesCsvRequest.js +0 -5
  141. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesJsonRequest.d.ts +0 -25
  142. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesJsonRequest.js +0 -5
  143. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsCsvRequest.d.ts +0 -20
  144. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsCsvRequest.js +0 -5
  145. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsJsonRequest.d.ts +0 -20
  146. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsJsonRequest.js +0 -5
  147. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +0 -23
  148. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +0 -5
  149. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +0 -9
  150. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +0 -5
  151. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +0 -19
  152. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +0 -5
  153. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesCsv.d.ts +0 -9
  154. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesJson.d.ts +0 -11
  155. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesJson.js +0 -42
  156. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsCsv.d.ts +0 -9
  157. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsJson.d.ts +0 -11
  158. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsJson.js +0 -42
  159. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +0 -29
  160. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +0 -60
  161. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +0 -15
  162. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +0 -46
  163. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +0 -25
  164. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesCsv.d.ts +0 -9
  165. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesJson.d.ts +0 -11
  166. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesJson.js +0 -42
  167. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsCsv.d.ts +0 -9
  168. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsJson.d.ts +0 -11
  169. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsJson.js +0 -42
  170. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +0 -29
  171. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +0 -60
  172. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +0 -15
  173. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +0 -46
  174. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +0 -25
  175. /package/api/resources/{api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesCsvRequest.js → db/resources/payoutQueue/types/PayoutQueueItem.js} +0 -0
  176. /package/{api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesJsonRequest.js → dist/api/resources/db/resources/payoutQueue/types/PayoutQueueItem.js} +0 -0
@@ -4,6 +4,7 @@
4
4
  import * as TheraApi from "../../../../../index";
5
5
  export interface GenericType {
6
6
  key: TheraApi.db.GenericTypeKey;
7
+ processPayouts: boolean;
7
8
  fxLedgerAccountIdByCurrency: Record<string, string>;
8
9
  stripeFxAccountIdByCurrency: Record<string, string>;
9
10
  theraApAccountIdByCurrency: Record<string, string>;
@@ -16,5 +16,7 @@ export * as migrations from "./migrations";
16
16
  export * from "./migrations/types";
17
17
  export * as paymentMethod from "./paymentMethod";
18
18
  export * from "./paymentMethod/types";
19
+ export * as payoutQueue from "./payoutQueue";
20
+ export * from "./payoutQueue/types";
19
21
  export * as user from "./user";
20
22
  export * from "./user/types";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.user = exports.paymentMethod = exports.migrations = exports.invoice = exports.generic = exports.expense = exports.employment = exports.document = exports.contract = exports.company = void 0;
39
+ exports.user = exports.payoutQueue = exports.paymentMethod = exports.migrations = exports.invoice = exports.generic = exports.expense = exports.employment = exports.document = exports.contract = exports.company = void 0;
40
40
  exports.company = __importStar(require("./company"));
41
41
  __exportStar(require("./company/types"), exports);
42
42
  exports.contract = __importStar(require("./contract"));
@@ -55,5 +55,7 @@ exports.migrations = __importStar(require("./migrations"));
55
55
  __exportStar(require("./migrations/types"), exports);
56
56
  exports.paymentMethod = __importStar(require("./paymentMethod"));
57
57
  __exportStar(require("./paymentMethod/types"), exports);
58
+ exports.payoutQueue = __importStar(require("./payoutQueue"));
59
+ __exportStar(require("./payoutQueue/types"), exports);
58
60
  exports.user = __importStar(require("./user"));
59
61
  __exportStar(require("./user/types"), exports);
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type PayoutProvider = "WISE" | "DLOCAL" | "OFFPLATFORM";
5
+ export declare const PayoutProvider: {
6
+ readonly Wise: "WISE";
7
+ readonly Dlocal: "DLOCAL";
8
+ readonly Offplatform: "OFFPLATFORM";
9
+ };
@@ -3,3 +3,9 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PayoutProvider = void 0;
7
+ exports.PayoutProvider = {
8
+ Wise: "WISE",
9
+ Dlocal: "DLOCAL",
10
+ Offplatform: "OFFPLATFORM",
11
+ };
@@ -0,0 +1,50 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../index";
5
+ export interface PayoutQueueItem {
6
+ /** Unique identifier from Modern Treasury ledger transaction (1:1 mapping) */
7
+ ledgerTransactionId: string;
8
+ /** User ID of the contractor receiving the payout */
9
+ userId: string;
10
+ /** Company ID making the payout */
11
+ companyId: string;
12
+ /** ID of the withdrawal method used */
13
+ withdrawalMethodId: string;
14
+ /** Amount in cents (source currency) */
15
+ amount: number;
16
+ /** Source currency code (e.g., USD) */
17
+ currency: string;
18
+ /** Quoted destination amount in cents */
19
+ quotedDestinationAmount: number;
20
+ /** Destination currency code */
21
+ quotedDestinationCurrency: string;
22
+ /** Payment provider used for this payout */
23
+ provider: TheraApi.db.PayoutProvider;
24
+ /** Current status of the payout in the queue */
25
+ status: TheraApi.db.PayoutStatus;
26
+ /** Whether this was an automatic withdrawal */
27
+ autoWithdrawal: boolean;
28
+ /** ISO8601 timestamp when payout was queued */
29
+ createdAt: string;
30
+ /** ISO8601 timestamp of last update */
31
+ updatedAt: string;
32
+ /** ISO8601 timestamp when processing started */
33
+ processingStartedAt?: string;
34
+ /** ISO8601 timestamp when payout completed successfully */
35
+ completedAt?: string;
36
+ /** Number of times this payout has been manually retried */
37
+ retryCount: number;
38
+ /** Last error message if payout failed */
39
+ lastError?: string;
40
+ /** Stack trace of last error for debugging */
41
+ lastErrorStackTrace?: string;
42
+ /** ISO8601 timestamp of last error */
43
+ lastErrorTimestamp?: string;
44
+ /** Provider's transaction/transfer ID after successful completion */
45
+ payoutId?: string;
46
+ /** Wise transfer ID if transfer created but funding failed (for idempotent retry) */
47
+ wiseTransferId?: string;
48
+ /** Server instance ID that processed this item (for debugging concurrent processing) */
49
+ processingInstanceId?: string;
50
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type PayoutStatus = "QUEUED" | "PROCESSING" | "COMPLETED" | "FAILED";
5
+ export declare const PayoutStatus: {
6
+ readonly Queued: "QUEUED";
7
+ readonly Processing: "PROCESSING";
8
+ readonly Completed: "COMPLETED";
9
+ readonly Failed: "FAILED";
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.PayoutStatus = void 0;
7
+ exports.PayoutStatus = {
8
+ Queued: "QUEUED",
9
+ Processing: "PROCESSING",
10
+ Completed: "COMPLETED",
11
+ Failed: "FAILED",
12
+ };
@@ -0,0 +1,3 @@
1
+ export * from "./PayoutProvider";
2
+ export * from "./PayoutStatus";
3
+ export * from "./PayoutQueueItem";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./PayoutProvider"), exports);
18
+ __exportStar(require("./PayoutStatus"), exports);
19
+ __exportStar(require("./PayoutQueueItem"), exports);
@@ -1,7 +1,3 @@
1
1
  export * as getPlaidBankDetails from "./getPlaidBankDetails";
2
2
  export * as getSupportedWithdrawalMethods from "./getSupportedWithdrawalMethods";
3
- export * as exportWorkerInvoicesCsv from "./exportWorkerInvoicesCsv";
4
- export * as exportWorkerInvoicesJson from "./exportWorkerInvoicesJson";
5
- export * as exportWorkerWithdrawalsCsv from "./exportWorkerWithdrawalsCsv";
6
- export * as exportWorkerWithdrawalsJson from "./exportWorkerWithdrawalsJson";
7
3
  export * from "./requests";
@@ -36,11 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.exportWorkerWithdrawalsJson = exports.exportWorkerWithdrawalsCsv = exports.exportWorkerInvoicesJson = exports.exportWorkerInvoicesCsv = exports.getSupportedWithdrawalMethods = exports.getPlaidBankDetails = void 0;
39
+ exports.getSupportedWithdrawalMethods = exports.getPlaidBankDetails = void 0;
40
40
  exports.getPlaidBankDetails = __importStar(require("./getPlaidBankDetails"));
41
41
  exports.getSupportedWithdrawalMethods = __importStar(require("./getSupportedWithdrawalMethods"));
42
- exports.exportWorkerInvoicesCsv = __importStar(require("./exportWorkerInvoicesCsv"));
43
- exports.exportWorkerInvoicesJson = __importStar(require("./exportWorkerInvoicesJson"));
44
- exports.exportWorkerWithdrawalsCsv = __importStar(require("./exportWorkerWithdrawalsCsv"));
45
- exports.exportWorkerWithdrawalsJson = __importStar(require("./exportWorkerWithdrawalsJson"));
46
42
  __exportStar(require("./requests"), exports);
@@ -73,6 +73,3 @@ export * from "./SetAutoWithdrawalResponse";
73
73
  export * from "./WorkerTransactionStatus";
74
74
  export * from "./SetBulkAutoApproveInvoiceForTeamsRequest";
75
75
  export * from "./GetPayInCountResponse";
76
- export * from "./ExportedInvoice";
77
- export * from "./ExportedInvoiceDeduction";
78
- export * from "./ExportedWithdrawal";
@@ -89,6 +89,3 @@ __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("./ExportedInvoice"), exports);
93
- __exportStar(require("./ExportedInvoiceDeduction"), exports);
94
- __exportStar(require("./ExportedWithdrawal"), exports);
@@ -9,6 +9,7 @@ export declare const GenericType: core.serialization.ObjectSchema<serializers.db
9
9
  export declare namespace GenericType {
10
10
  interface Raw {
11
11
  key: GenericTypeKey.Raw;
12
+ processPayouts: boolean;
12
13
  fxLedgerAccountIdByCurrency: Record<string, string>;
13
14
  stripeFxAccountIdByCurrency: Record<string, string>;
14
15
  theraApAccountIdByCurrency: Record<string, string>;
@@ -41,6 +41,7 @@ const core = __importStar(require("../../../../../../core"));
41
41
  const GenericTypeKey_1 = require("./GenericTypeKey");
42
42
  exports.GenericType = core.serialization.object({
43
43
  key: GenericTypeKey_1.GenericTypeKey,
44
+ processPayouts: core.serialization.boolean(),
44
45
  fxLedgerAccountIdByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
45
46
  stripeFxAccountIdByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
46
47
  theraApAccountIdByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
@@ -16,5 +16,7 @@ export * as migrations from "./migrations";
16
16
  export * from "./migrations/types";
17
17
  export * as paymentMethod from "./paymentMethod";
18
18
  export * from "./paymentMethod/types";
19
+ export * as payoutQueue from "./payoutQueue";
20
+ export * from "./payoutQueue/types";
19
21
  export * as user from "./user";
20
22
  export * from "./user/types";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.user = exports.paymentMethod = exports.migrations = exports.invoice = exports.generic = exports.expense = exports.employment = exports.document = exports.contract = exports.company = void 0;
39
+ exports.user = exports.payoutQueue = exports.paymentMethod = exports.migrations = exports.invoice = exports.generic = exports.expense = exports.employment = exports.document = exports.contract = exports.company = void 0;
40
40
  exports.company = __importStar(require("./company"));
41
41
  __exportStar(require("./company/types"), exports);
42
42
  exports.contract = __importStar(require("./contract"));
@@ -55,5 +55,7 @@ exports.migrations = __importStar(require("./migrations"));
55
55
  __exportStar(require("./migrations/types"), exports);
56
56
  exports.paymentMethod = __importStar(require("./paymentMethod"));
57
57
  __exportStar(require("./paymentMethod/types"), exports);
58
+ exports.payoutQueue = __importStar(require("./payoutQueue"));
59
+ __exportStar(require("./payoutQueue/types"), exports);
58
60
  exports.user = __importStar(require("./user"));
59
61
  __exportStar(require("./user/types"), exports);
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,10 @@
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 PayoutProvider: core.serialization.Schema<serializers.db.PayoutProvider.Raw, TheraApi.db.PayoutProvider>;
8
+ export declare namespace PayoutProvider {
9
+ type Raw = "WISE" | "DLOCAL" | "OFFPLATFORM";
10
+ }
@@ -36,6 +36,6 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Response = void 0;
40
- const core = __importStar(require("../../../../../../../../../../core"));
41
- exports.Response = core.serialization.string();
39
+ exports.PayoutProvider = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.PayoutProvider = core.serialization.enum_(["WISE", "DLOCAL", "OFFPLATFORM"]);
@@ -0,0 +1,35 @@
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 { PayoutProvider } from "./PayoutProvider";
8
+ import { PayoutStatus } from "./PayoutStatus";
9
+ export declare const PayoutQueueItem: core.serialization.ObjectSchema<serializers.db.PayoutQueueItem.Raw, TheraApi.db.PayoutQueueItem>;
10
+ export declare namespace PayoutQueueItem {
11
+ interface Raw {
12
+ ledgerTransactionId: string;
13
+ userId: string;
14
+ companyId: string;
15
+ withdrawalMethodId: string;
16
+ amount: number;
17
+ currency: string;
18
+ quotedDestinationAmount: number;
19
+ quotedDestinationCurrency: string;
20
+ provider: PayoutProvider.Raw;
21
+ status: PayoutStatus.Raw;
22
+ autoWithdrawal: boolean;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ processingStartedAt?: string | null;
26
+ completedAt?: string | null;
27
+ retryCount: number;
28
+ lastError?: string | null;
29
+ lastErrorStackTrace?: string | null;
30
+ lastErrorTimestamp?: string | null;
31
+ payoutId?: string | null;
32
+ wiseTransferId?: string | null;
33
+ processingInstanceId?: string | null;
34
+ }
35
+ }
@@ -36,21 +36,31 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ExportedWithdrawal = void 0;
40
- const core = __importStar(require("../../../../../../../../../../core"));
41
- exports.ExportedWithdrawal = core.serialization.object({
39
+ exports.PayoutQueueItem = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const PayoutProvider_1 = require("./PayoutProvider");
42
+ const PayoutStatus_1 = require("./PayoutStatus");
43
+ exports.PayoutQueueItem = core.serialization.object({
42
44
  ledgerTransactionId: core.serialization.string(),
43
- withdrawalMethodTitle: core.serialization.string().optional(),
44
- withdrawalMethodId: core.serialization.string().optional(),
45
+ userId: core.serialization.string(),
46
+ companyId: core.serialization.string(),
47
+ withdrawalMethodId: core.serialization.string(),
45
48
  amount: core.serialization.number(),
46
49
  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(),
50
+ quotedDestinationAmount: core.serialization.number(),
51
+ quotedDestinationCurrency: core.serialization.string(),
52
+ provider: PayoutProvider_1.PayoutProvider,
53
+ status: PayoutStatus_1.PayoutStatus,
54
+ autoWithdrawal: core.serialization.boolean(),
55
+ createdAt: core.serialization.string(),
56
+ updatedAt: core.serialization.string(),
57
+ processingStartedAt: core.serialization.string().optional(),
58
+ completedAt: core.serialization.string().optional(),
59
+ retryCount: core.serialization.number(),
60
+ lastError: core.serialization.string().optional(),
61
+ lastErrorStackTrace: core.serialization.string().optional(),
62
+ lastErrorTimestamp: core.serialization.string().optional(),
63
+ payoutId: core.serialization.string().optional(),
64
+ wiseTransferId: core.serialization.string().optional(),
65
+ processingInstanceId: core.serialization.string().optional(),
56
66
  });
@@ -0,0 +1,10 @@
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 PayoutStatus: core.serialization.Schema<serializers.db.PayoutStatus.Raw, TheraApi.db.PayoutStatus>;
8
+ export declare namespace PayoutStatus {
9
+ type Raw = "QUEUED" | "PROCESSING" | "COMPLETED" | "FAILED";
10
+ }
@@ -36,6 +36,6 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Response = void 0;
40
- const core = __importStar(require("../../../../../../../../../../core"));
41
- exports.Response = core.serialization.string();
39
+ exports.PayoutStatus = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.PayoutStatus = core.serialization.enum_(["QUEUED", "PROCESSING", "COMPLETED", "FAILED"]);
@@ -0,0 +1,3 @@
1
+ export * from "./PayoutProvider";
2
+ export * from "./PayoutStatus";
3
+ export * from "./PayoutQueueItem";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./PayoutProvider"), exports);
18
+ __exportStar(require("./PayoutStatus"), exports);
19
+ __exportStar(require("./PayoutQueueItem"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.0-prerelease2398-dev-2";
1
+ export declare const SDK_VERSION = "1.2.0-prerelease2407-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.2.0-prerelease2398-dev-2";
4
+ exports.SDK_VERSION = "1.2.0-prerelease2407-dev-2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "1.2.0-prerelease2398-dev-2",
3
+ "version": "1.2.0-prerelease2407-dev-2",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",