@thera-hr/api-sdk 1.1.1-prerelease2641-dev-3 → 1.1.1-prerelease2641-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 (140) 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 +16 -0
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +106 -38
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.d.ts +25 -0
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +8 -0
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  12. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  13. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  14. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  15. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  16. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  17. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  18. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  19. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  20. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  21. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  22. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  23. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  24. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  25. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  26. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  27. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  28. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  29. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  30. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  31. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  32. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  33. package/api/resources/db/resources/company/types/Company.d.ts +0 -1
  34. package/api/resources/db/resources/company/types/Flags.d.ts +1 -0
  35. package/api/resources/db/resources/company/types/index.d.ts +0 -2
  36. package/api/resources/db/resources/company/types/index.js +0 -2
  37. package/api/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +0 -1
  38. package/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +0 -2
  39. package/api/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
  40. package/api/resources/db/resources/paymentMethod/types/index.js +0 -1
  41. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  42. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  43. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  44. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  45. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  46. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +16 -0
  47. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +106 -38
  48. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.d.ts +25 -0
  49. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
  50. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +8 -0
  51. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  52. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  53. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  54. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  55. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  56. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  57. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  58. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  59. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  60. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  61. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  62. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  63. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  64. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  65. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  66. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  67. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  68. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  69. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  70. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  71. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  72. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  73. package/dist/api/resources/db/resources/company/types/Company.d.ts +0 -1
  74. package/dist/api/resources/db/resources/company/types/Flags.d.ts +1 -0
  75. package/dist/api/resources/db/resources/company/types/index.d.ts +0 -2
  76. package/dist/api/resources/db/resources/company/types/index.js +0 -2
  77. package/dist/api/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +0 -1
  78. package/dist/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +0 -2
  79. package/dist/api/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
  80. package/dist/api/resources/db/resources/paymentMethod/types/index.js +0 -1
  81. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +14 -0
  82. package/dist/serialization/resources/{db/resources/company/types/StripeAccountInfo.js → api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.js} +6 -5
  83. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  84. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  85. package/dist/serialization/resources/db/resources/company/types/Company.d.ts +0 -2
  86. package/dist/serialization/resources/db/resources/company/types/Company.js +0 -2
  87. package/dist/serialization/resources/db/resources/company/types/Flags.d.ts +1 -0
  88. package/dist/serialization/resources/db/resources/company/types/Flags.js +1 -0
  89. package/dist/serialization/resources/db/resources/company/types/index.d.ts +0 -2
  90. package/dist/serialization/resources/db/resources/company/types/index.js +0 -2
  91. package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +0 -1
  92. package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +0 -1
  93. package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +0 -2
  94. package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +0 -2
  95. package/dist/serialization/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
  96. package/dist/serialization/resources/db/resources/paymentMethod/types/index.js +0 -1
  97. package/dist/version.d.ts +1 -1
  98. package/dist/version.js +1 -1
  99. package/package.json +1 -1
  100. package/reference.md +83 -0
  101. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +14 -0
  102. package/serialization/resources/{db/resources/company/types/StripeAccountInfo.js → api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.js} +6 -5
  103. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  104. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  105. package/serialization/resources/db/resources/company/types/Company.d.ts +0 -2
  106. package/serialization/resources/db/resources/company/types/Company.js +0 -2
  107. package/serialization/resources/db/resources/company/types/Flags.d.ts +1 -0
  108. package/serialization/resources/db/resources/company/types/Flags.js +1 -0
  109. package/serialization/resources/db/resources/company/types/index.d.ts +0 -2
  110. package/serialization/resources/db/resources/company/types/index.js +0 -2
  111. package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +0 -1
  112. package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +0 -1
  113. package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +0 -2
  114. package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +0 -2
  115. package/serialization/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
  116. package/serialization/resources/db/resources/paymentMethod/types/index.js +0 -1
  117. package/version.d.ts +1 -1
  118. package/version.js +1 -1
  119. package/api/resources/db/resources/company/types/StripeAccountInfo.d.ts +0 -7
  120. package/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +0 -9
  121. package/api/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +0 -9
  122. package/api/resources/db/resources/paymentMethod/types/StripeAccountType.js +0 -11
  123. package/dist/api/resources/db/resources/company/types/StripeAccountInfo.d.ts +0 -7
  124. package/dist/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +0 -9
  125. package/dist/api/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +0 -9
  126. package/dist/api/resources/db/resources/paymentMethod/types/StripeAccountType.js +0 -11
  127. package/dist/serialization/resources/db/resources/company/types/StripeAccountInfo.d.ts +0 -13
  128. package/dist/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +0 -15
  129. package/dist/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +0 -46
  130. package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +0 -10
  131. package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.js +0 -41
  132. package/serialization/resources/db/resources/company/types/StripeAccountInfo.d.ts +0 -13
  133. package/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +0 -15
  134. package/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +0 -46
  135. package/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +0 -10
  136. package/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.js +0 -41
  137. /package/api/resources/{db/resources/company/types/StripeAccountInfo.js → api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.js} +0 -0
  138. /package/api/resources/{db/resources/company/types/StripeMultipleAccountCustomerInfo.js → api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.js} +0 -0
  139. /package/dist/api/resources/{db/resources/company/types/StripeAccountInfo.js → api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.js} +0 -0
  140. /package/dist/api/resources/{db/resources/company/types/StripeMultipleAccountCustomerInfo.js → api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.js} +0 -0
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as TheraApi from "../../../../../index";
5
5
  export interface Flags {
6
+ isActive?: boolean;
6
7
  /** The Thera payment system that the company will be using. 1 is Stripe Express, 2 is Payments V2 (Wise, etc.). This will match the `paymentsVersion` of the `Company` that invites the contractor to the platform.integer */
7
8
  paymentsVersion: number;
8
9
  csv: boolean;
@@ -53,5 +53,3 @@ export * from "./HolidayDate";
53
53
  export * from "./UserHolidaysResponse";
54
54
  export * from "./AssociateUsersToHolidayPolicyResponse";
55
55
  export * from "./DeleteCustomHolidayResponse";
56
- export * from "./StripeMultipleAccountCustomerInfo";
57
- export * from "./StripeAccountInfo";
@@ -69,5 +69,3 @@ __exportStar(require("./HolidayDate"), exports);
69
69
  __exportStar(require("./UserHolidaysResponse"), exports);
70
70
  __exportStar(require("./AssociateUsersToHolidayPolicyResponse"), exports);
71
71
  __exportStar(require("./DeleteCustomHolidayResponse"), exports);
72
- __exportStar(require("./StripeMultipleAccountCustomerInfo"), exports);
73
- __exportStar(require("./StripeAccountInfo"), exports);
@@ -18,5 +18,4 @@ export interface CompanyPaymentMethod {
18
18
  deletionDetails?: TheraApi.db.CompanyPaymentMethodDeletionDetails;
19
19
  /** If empty, it means it's not Stripe payment method */
20
20
  stripeMandateStatus?: TheraApi.db.StripeMandateStatus;
21
- stripeCustomerId?: string;
22
21
  }
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as TheraApi from "../../../../../index";
5
4
  export interface PlaidPostVerificationPaymentMethodDetails {
6
5
  stripePaymentMethodId: string;
7
6
  /**
@@ -24,5 +23,4 @@ export interface PlaidPostVerificationPaymentMethodDetails {
24
23
  checkBankAccountId?: string;
25
24
  accountNumber: string;
26
25
  routingNumber: string;
27
- accountType?: TheraApi.db.StripeAccountType;
28
26
  }
@@ -10,4 +10,3 @@ export * from "./StripeUsBankAccountPaymentMethodDetails";
10
10
  export * from "./StripeAcssDebitAccountPaymentMethodDetails";
11
11
  export * from "./StripeBankAccountVerificationStatus";
12
12
  export * from "./StripeCardPaymentMethodDetails";
13
- export * from "./StripeAccountType";
@@ -26,4 +26,3 @@ __exportStar(require("./StripeUsBankAccountPaymentMethodDetails"), exports);
26
26
  __exportStar(require("./StripeAcssDebitAccountPaymentMethodDetails"), exports);
27
27
  __exportStar(require("./StripeBankAccountVerificationStatus"), exports);
28
28
  __exportStar(require("./StripeCardPaymentMethodDetails"), exports);
29
- __exportStar(require("./StripeAccountType"), exports);
@@ -0,0 +1,14 @@
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 { WorkerTransaction } from "./WorkerTransaction";
8
+ export declare const GetWorkerTransactionsRangeResponse: core.serialization.ObjectSchema<serializers.api.thera.bank.GetWorkerTransactionsRangeResponse.Raw, TheraApi.api.thera.bank.GetWorkerTransactionsRangeResponse>;
9
+ export declare namespace GetWorkerTransactionsRangeResponse {
10
+ interface Raw {
11
+ transactions: WorkerTransaction.Raw[];
12
+ csv?: string | null;
13
+ }
14
+ }
@@ -36,9 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.StripeAccountInfo = void 0;
40
- const core = __importStar(require("../../../../../../core"));
41
- exports.StripeAccountInfo = core.serialization.object({
42
- stripeCustomerId: core.serialization.string(),
43
- defaultPaymentMethodId: core.serialization.string(),
39
+ exports.GetWorkerTransactionsRangeResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const WorkerTransaction_1 = require("./WorkerTransaction");
42
+ exports.GetWorkerTransactionsRangeResponse = core.serialization.object({
43
+ transactions: core.serialization.list(WorkerTransaction_1.WorkerTransaction),
44
+ csv: core.serialization.string().optional(),
44
45
  });
@@ -61,6 +61,7 @@ export * from "./HistoricalInvoice";
61
61
  export * from "./GetWorkerBalancesResponse";
62
62
  export * from "./WorkerBalance";
63
63
  export * from "./GetWorkerTransactionsResponse";
64
+ export * from "./GetWorkerTransactionsRangeResponse";
64
65
  export * from "./WorkerTransaction";
65
66
  export * from "./WorkerTransactionDetails";
66
67
  export * from "./WorkerWithdrawalTransaction";
@@ -77,6 +77,7 @@ __exportStar(require("./HistoricalInvoice"), exports);
77
77
  __exportStar(require("./GetWorkerBalancesResponse"), exports);
78
78
  __exportStar(require("./WorkerBalance"), exports);
79
79
  __exportStar(require("./GetWorkerTransactionsResponse"), exports);
80
+ __exportStar(require("./GetWorkerTransactionsRangeResponse"), exports);
80
81
  __exportStar(require("./WorkerTransaction"), exports);
81
82
  __exportStar(require("./WorkerTransactionDetails"), exports);
82
83
  __exportStar(require("./WorkerWithdrawalTransaction"), exports);
@@ -12,7 +12,6 @@ import { Flags } from "./Flags";
12
12
  import { CompanySettings } from "./CompanySettings";
13
13
  import { BankAccountResponseMetadata } from "./BankAccountResponseMetadata";
14
14
  import { Team } from "./Team";
15
- import { StripeMultipleAccountCustomerInfo } from "./StripeMultipleAccountCustomerInfo";
16
15
  import { TpCompanyInformation } from "./TpCompanyInformation";
17
16
  import { MercoaCompanyDetails } from "./MercoaCompanyDetails";
18
17
  import { CompanyAccountingInformation } from "./CompanyAccountingInformation";
@@ -45,7 +44,6 @@ export declare namespace Company {
45
44
  ledgerAccountIdsByCurrency: Record<string, string>;
46
45
  v2LedgerAccountIdsByCurrency: Record<string, string>;
47
46
  teamsById: Record<string, Team.Raw>;
48
- stripeMultipleAccountInfo?: StripeMultipleAccountCustomerInfo.Raw | null;
49
47
  urls: string[];
50
48
  companyDescription?: string | null;
51
49
  tp?: TpCompanyInformation.Raw | null;
@@ -46,7 +46,6 @@ const Flags_1 = require("./Flags");
46
46
  const CompanySettings_1 = require("./CompanySettings");
47
47
  const BankAccountResponseMetadata_1 = require("./BankAccountResponseMetadata");
48
48
  const Team_1 = require("./Team");
49
- const StripeMultipleAccountCustomerInfo_1 = require("./StripeMultipleAccountCustomerInfo");
50
49
  const TpCompanyInformation_1 = require("./TpCompanyInformation");
51
50
  const MercoaCompanyDetails_1 = require("./MercoaCompanyDetails");
52
51
  const CompanyAccountingInformation_1 = require("./CompanyAccountingInformation");
@@ -77,7 +76,6 @@ exports.Company = core.serialization.object({
77
76
  ledgerAccountIdsByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
78
77
  v2LedgerAccountIdsByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
79
78
  teamsById: core.serialization.record(core.serialization.string(), Team_1.Team),
80
- stripeMultipleAccountInfo: StripeMultipleAccountCustomerInfo_1.StripeMultipleAccountCustomerInfo.optional(),
81
79
  urls: core.serialization.list(core.serialization.string()),
82
80
  companyDescription: core.serialization.string().optional(),
83
81
  tp: TpCompanyInformation_1.TpCompanyInformation.optional(),
@@ -9,6 +9,7 @@ import { CustomContract } from "./CustomContract";
9
9
  export declare const Flags: core.serialization.ObjectSchema<serializers.db.Flags.Raw, TheraApi.db.Flags>;
10
10
  export declare namespace Flags {
11
11
  interface Raw {
12
+ isActive?: boolean | null;
12
13
  paymentsVersion: number;
13
14
  csv: boolean;
14
15
  cards: boolean;
@@ -41,6 +41,7 @@ const core = __importStar(require("../../../../../../core"));
41
41
  const CompanyStatus_1 = require("./CompanyStatus");
42
42
  const CustomContract_1 = require("./CustomContract");
43
43
  exports.Flags = core.serialization.object({
44
+ isActive: core.serialization.boolean().optional(),
44
45
  paymentsVersion: core.serialization.number(),
45
46
  csv: core.serialization.boolean(),
46
47
  cards: core.serialization.boolean(),
@@ -53,5 +53,3 @@ export * from "./HolidayDate";
53
53
  export * from "./UserHolidaysResponse";
54
54
  export * from "./AssociateUsersToHolidayPolicyResponse";
55
55
  export * from "./DeleteCustomHolidayResponse";
56
- export * from "./StripeMultipleAccountCustomerInfo";
57
- export * from "./StripeAccountInfo";
@@ -69,5 +69,3 @@ __exportStar(require("./HolidayDate"), exports);
69
69
  __exportStar(require("./UserHolidaysResponse"), exports);
70
70
  __exportStar(require("./AssociateUsersToHolidayPolicyResponse"), exports);
71
71
  __exportStar(require("./DeleteCustomHolidayResponse"), exports);
72
- __exportStar(require("./StripeMultipleAccountCustomerInfo"), exports);
73
- __exportStar(require("./StripeAccountInfo"), exports);
@@ -18,6 +18,5 @@ export declare namespace CompanyPaymentMethod {
18
18
  details: PaymentMethodDetails.Raw;
19
19
  deletionDetails?: CompanyPaymentMethodDeletionDetails.Raw | null;
20
20
  stripeMandateStatus?: StripeMandateStatus.Raw | null;
21
- stripeCustomerId?: string | null;
22
21
  }
23
22
  }
@@ -50,5 +50,4 @@ exports.CompanyPaymentMethod = core.serialization.object({
50
50
  details: PaymentMethodDetails_1.PaymentMethodDetails,
51
51
  deletionDetails: CompanyPaymentMethodDeletionDetails_1.CompanyPaymentMethodDeletionDetails.optional(),
52
52
  stripeMandateStatus: StripeMandateStatus_1.StripeMandateStatus.optional(),
53
- stripeCustomerId: core.serialization.string().optional(),
54
53
  });
@@ -4,7 +4,6 @@
4
4
  import * as serializers from "../../../../../index";
5
5
  import * as TheraApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
- import { StripeAccountType } from "./StripeAccountType";
8
7
  export declare const PlaidPostVerificationPaymentMethodDetails: core.serialization.ObjectSchema<serializers.db.PlaidPostVerificationPaymentMethodDetails.Raw, TheraApi.db.PlaidPostVerificationPaymentMethodDetails>;
9
8
  export declare namespace PlaidPostVerificationPaymentMethodDetails {
10
9
  interface Raw {
@@ -16,6 +15,5 @@ export declare namespace PlaidPostVerificationPaymentMethodDetails {
16
15
  checkBankAccountId?: string | null;
17
16
  accountNumber: string;
18
17
  routingNumber: string;
19
- accountType?: StripeAccountType.Raw | null;
20
18
  }
21
19
  }
@@ -38,7 +38,6 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.PlaidPostVerificationPaymentMethodDetails = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
- const StripeAccountType_1 = require("./StripeAccountType");
42
41
  exports.PlaidPostVerificationPaymentMethodDetails = core.serialization.object({
43
42
  stripePaymentMethodId: core.serialization.string(),
44
43
  stripeBankAccountToken: core.serialization.string(),
@@ -48,5 +47,4 @@ exports.PlaidPostVerificationPaymentMethodDetails = core.serialization.object({
48
47
  checkBankAccountId: core.serialization.string().optional(),
49
48
  accountNumber: core.serialization.string(),
50
49
  routingNumber: core.serialization.string(),
51
- accountType: StripeAccountType_1.StripeAccountType.optional(),
52
50
  });
@@ -10,4 +10,3 @@ export * from "./StripeUsBankAccountPaymentMethodDetails";
10
10
  export * from "./StripeAcssDebitAccountPaymentMethodDetails";
11
11
  export * from "./StripeBankAccountVerificationStatus";
12
12
  export * from "./StripeCardPaymentMethodDetails";
13
- export * from "./StripeAccountType";
@@ -26,4 +26,3 @@ __exportStar(require("./StripeUsBankAccountPaymentMethodDetails"), exports);
26
26
  __exportStar(require("./StripeAcssDebitAccountPaymentMethodDetails"), exports);
27
27
  __exportStar(require("./StripeBankAccountVerificationStatus"), exports);
28
28
  __exportStar(require("./StripeCardPaymentMethodDetails"), exports);
29
- __exportStar(require("./StripeAccountType"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1.1-prerelease2641-dev-3";
1
+ export declare const SDK_VERSION = "1.1.1-prerelease2641-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-prerelease2641-dev-3";
4
+ exports.SDK_VERSION = "1.1.1-prerelease2641-dev-2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "1.1.1-prerelease2641-dev-3",
3
+ "version": "1.1.1-prerelease2641-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
@@ -2585,6 +2585,89 @@ await client.api.thera.bank.bankApi.getWorkerTransactions("string", "string", {
2585
2585
  </dl>
2586
2586
  </details>
2587
2587
 
2588
+ <details><summary><code>client.api.thera.bank.bankApi.<a href="/src/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.ts">getWorkerTransactionsRange</a>(userId, companyId, { ...params }) -> TheraApi.GetWorkerTransactionsRangeResponse</code></summary>
2589
+ <dl>
2590
+ <dd>
2591
+
2592
+ #### 📝 Description
2593
+
2594
+ <dl>
2595
+ <dd>
2596
+
2597
+ <dl>
2598
+ <dd>
2599
+
2600
+ Get all worker transactions within a date range. Uses autoPager to fetch all results (no pagination).
2601
+
2602
+ </dd>
2603
+ </dl>
2604
+ </dd>
2605
+ </dl>
2606
+
2607
+ #### 🔌 Usage
2608
+
2609
+ <dl>
2610
+ <dd>
2611
+
2612
+ <dl>
2613
+ <dd>
2614
+
2615
+ ```typescript
2616
+ await client.api.thera.bank.bankApi.getWorkerTransactionsRange("string", "string", {
2617
+ startDate: "string",
2618
+ endDate: "string",
2619
+ exportAs: "string",
2620
+ });
2621
+ ```
2622
+
2623
+ </dd>
2624
+ </dl>
2625
+ </dd>
2626
+ </dl>
2627
+
2628
+ #### ⚙️ Parameters
2629
+
2630
+ <dl>
2631
+ <dd>
2632
+
2633
+ <dl>
2634
+ <dd>
2635
+
2636
+ **userId:** `string`
2637
+
2638
+ </dd>
2639
+ </dl>
2640
+
2641
+ <dl>
2642
+ <dd>
2643
+
2644
+ **companyId:** `string`
2645
+
2646
+ </dd>
2647
+ </dl>
2648
+
2649
+ <dl>
2650
+ <dd>
2651
+
2652
+ **request:** `TheraApi.api.thera.bank.GetWorkerTransactionsRangeRequest`
2653
+
2654
+ </dd>
2655
+ </dl>
2656
+
2657
+ <dl>
2658
+ <dd>
2659
+
2660
+ **requestOptions:** `BankApi.RequestOptions`
2661
+
2662
+ </dd>
2663
+ </dl>
2664
+ </dd>
2665
+ </dl>
2666
+
2667
+ </dd>
2668
+ </dl>
2669
+ </details>
2670
+
2588
2671
  <details><summary><code>client.api.thera.bank.bankApi.<a href="/src/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.ts">getWorkerTransactionById</a>(userId, companyId, transactionId) -> TheraApi.WorkerTransaction</code></summary>
2589
2672
  <dl>
2590
2673
  <dd>
@@ -0,0 +1,14 @@
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 { WorkerTransaction } from "./WorkerTransaction";
8
+ export declare const GetWorkerTransactionsRangeResponse: core.serialization.ObjectSchema<serializers.api.thera.bank.GetWorkerTransactionsRangeResponse.Raw, TheraApi.api.thera.bank.GetWorkerTransactionsRangeResponse>;
9
+ export declare namespace GetWorkerTransactionsRangeResponse {
10
+ interface Raw {
11
+ transactions: WorkerTransaction.Raw[];
12
+ csv?: string | null;
13
+ }
14
+ }
@@ -36,9 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.StripeAccountInfo = void 0;
40
- const core = __importStar(require("../../../../../../core"));
41
- exports.StripeAccountInfo = core.serialization.object({
42
- stripeCustomerId: core.serialization.string(),
43
- defaultPaymentMethodId: core.serialization.string(),
39
+ exports.GetWorkerTransactionsRangeResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const WorkerTransaction_1 = require("./WorkerTransaction");
42
+ exports.GetWorkerTransactionsRangeResponse = core.serialization.object({
43
+ transactions: core.serialization.list(WorkerTransaction_1.WorkerTransaction),
44
+ csv: core.serialization.string().optional(),
44
45
  });
@@ -61,6 +61,7 @@ export * from "./HistoricalInvoice";
61
61
  export * from "./GetWorkerBalancesResponse";
62
62
  export * from "./WorkerBalance";
63
63
  export * from "./GetWorkerTransactionsResponse";
64
+ export * from "./GetWorkerTransactionsRangeResponse";
64
65
  export * from "./WorkerTransaction";
65
66
  export * from "./WorkerTransactionDetails";
66
67
  export * from "./WorkerWithdrawalTransaction";
@@ -77,6 +77,7 @@ __exportStar(require("./HistoricalInvoice"), exports);
77
77
  __exportStar(require("./GetWorkerBalancesResponse"), exports);
78
78
  __exportStar(require("./WorkerBalance"), exports);
79
79
  __exportStar(require("./GetWorkerTransactionsResponse"), exports);
80
+ __exportStar(require("./GetWorkerTransactionsRangeResponse"), exports);
80
81
  __exportStar(require("./WorkerTransaction"), exports);
81
82
  __exportStar(require("./WorkerTransactionDetails"), exports);
82
83
  __exportStar(require("./WorkerWithdrawalTransaction"), exports);
@@ -12,7 +12,6 @@ import { Flags } from "./Flags";
12
12
  import { CompanySettings } from "./CompanySettings";
13
13
  import { BankAccountResponseMetadata } from "./BankAccountResponseMetadata";
14
14
  import { Team } from "./Team";
15
- import { StripeMultipleAccountCustomerInfo } from "./StripeMultipleAccountCustomerInfo";
16
15
  import { TpCompanyInformation } from "./TpCompanyInformation";
17
16
  import { MercoaCompanyDetails } from "./MercoaCompanyDetails";
18
17
  import { CompanyAccountingInformation } from "./CompanyAccountingInformation";
@@ -45,7 +44,6 @@ export declare namespace Company {
45
44
  ledgerAccountIdsByCurrency: Record<string, string>;
46
45
  v2LedgerAccountIdsByCurrency: Record<string, string>;
47
46
  teamsById: Record<string, Team.Raw>;
48
- stripeMultipleAccountInfo?: StripeMultipleAccountCustomerInfo.Raw | null;
49
47
  urls: string[];
50
48
  companyDescription?: string | null;
51
49
  tp?: TpCompanyInformation.Raw | null;
@@ -46,7 +46,6 @@ const Flags_1 = require("./Flags");
46
46
  const CompanySettings_1 = require("./CompanySettings");
47
47
  const BankAccountResponseMetadata_1 = require("./BankAccountResponseMetadata");
48
48
  const Team_1 = require("./Team");
49
- const StripeMultipleAccountCustomerInfo_1 = require("./StripeMultipleAccountCustomerInfo");
50
49
  const TpCompanyInformation_1 = require("./TpCompanyInformation");
51
50
  const MercoaCompanyDetails_1 = require("./MercoaCompanyDetails");
52
51
  const CompanyAccountingInformation_1 = require("./CompanyAccountingInformation");
@@ -77,7 +76,6 @@ exports.Company = core.serialization.object({
77
76
  ledgerAccountIdsByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
78
77
  v2LedgerAccountIdsByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
79
78
  teamsById: core.serialization.record(core.serialization.string(), Team_1.Team),
80
- stripeMultipleAccountInfo: StripeMultipleAccountCustomerInfo_1.StripeMultipleAccountCustomerInfo.optional(),
81
79
  urls: core.serialization.list(core.serialization.string()),
82
80
  companyDescription: core.serialization.string().optional(),
83
81
  tp: TpCompanyInformation_1.TpCompanyInformation.optional(),
@@ -9,6 +9,7 @@ import { CustomContract } from "./CustomContract";
9
9
  export declare const Flags: core.serialization.ObjectSchema<serializers.db.Flags.Raw, TheraApi.db.Flags>;
10
10
  export declare namespace Flags {
11
11
  interface Raw {
12
+ isActive?: boolean | null;
12
13
  paymentsVersion: number;
13
14
  csv: boolean;
14
15
  cards: boolean;
@@ -41,6 +41,7 @@ const core = __importStar(require("../../../../../../core"));
41
41
  const CompanyStatus_1 = require("./CompanyStatus");
42
42
  const CustomContract_1 = require("./CustomContract");
43
43
  exports.Flags = core.serialization.object({
44
+ isActive: core.serialization.boolean().optional(),
44
45
  paymentsVersion: core.serialization.number(),
45
46
  csv: core.serialization.boolean(),
46
47
  cards: core.serialization.boolean(),
@@ -53,5 +53,3 @@ export * from "./HolidayDate";
53
53
  export * from "./UserHolidaysResponse";
54
54
  export * from "./AssociateUsersToHolidayPolicyResponse";
55
55
  export * from "./DeleteCustomHolidayResponse";
56
- export * from "./StripeMultipleAccountCustomerInfo";
57
- export * from "./StripeAccountInfo";
@@ -69,5 +69,3 @@ __exportStar(require("./HolidayDate"), exports);
69
69
  __exportStar(require("./UserHolidaysResponse"), exports);
70
70
  __exportStar(require("./AssociateUsersToHolidayPolicyResponse"), exports);
71
71
  __exportStar(require("./DeleteCustomHolidayResponse"), exports);
72
- __exportStar(require("./StripeMultipleAccountCustomerInfo"), exports);
73
- __exportStar(require("./StripeAccountInfo"), exports);
@@ -18,6 +18,5 @@ export declare namespace CompanyPaymentMethod {
18
18
  details: PaymentMethodDetails.Raw;
19
19
  deletionDetails?: CompanyPaymentMethodDeletionDetails.Raw | null;
20
20
  stripeMandateStatus?: StripeMandateStatus.Raw | null;
21
- stripeCustomerId?: string | null;
22
21
  }
23
22
  }
@@ -50,5 +50,4 @@ exports.CompanyPaymentMethod = core.serialization.object({
50
50
  details: PaymentMethodDetails_1.PaymentMethodDetails,
51
51
  deletionDetails: CompanyPaymentMethodDeletionDetails_1.CompanyPaymentMethodDeletionDetails.optional(),
52
52
  stripeMandateStatus: StripeMandateStatus_1.StripeMandateStatus.optional(),
53
- stripeCustomerId: core.serialization.string().optional(),
54
53
  });
@@ -4,7 +4,6 @@
4
4
  import * as serializers from "../../../../../index";
5
5
  import * as TheraApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
- import { StripeAccountType } from "./StripeAccountType";
8
7
  export declare const PlaidPostVerificationPaymentMethodDetails: core.serialization.ObjectSchema<serializers.db.PlaidPostVerificationPaymentMethodDetails.Raw, TheraApi.db.PlaidPostVerificationPaymentMethodDetails>;
9
8
  export declare namespace PlaidPostVerificationPaymentMethodDetails {
10
9
  interface Raw {
@@ -16,6 +15,5 @@ export declare namespace PlaidPostVerificationPaymentMethodDetails {
16
15
  checkBankAccountId?: string | null;
17
16
  accountNumber: string;
18
17
  routingNumber: string;
19
- accountType?: StripeAccountType.Raw | null;
20
18
  }
21
19
  }
@@ -38,7 +38,6 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.PlaidPostVerificationPaymentMethodDetails = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
- const StripeAccountType_1 = require("./StripeAccountType");
42
41
  exports.PlaidPostVerificationPaymentMethodDetails = core.serialization.object({
43
42
  stripePaymentMethodId: core.serialization.string(),
44
43
  stripeBankAccountToken: core.serialization.string(),
@@ -48,5 +47,4 @@ exports.PlaidPostVerificationPaymentMethodDetails = core.serialization.object({
48
47
  checkBankAccountId: core.serialization.string().optional(),
49
48
  accountNumber: core.serialization.string(),
50
49
  routingNumber: core.serialization.string(),
51
- accountType: StripeAccountType_1.StripeAccountType.optional(),
52
50
  });
@@ -10,4 +10,3 @@ export * from "./StripeUsBankAccountPaymentMethodDetails";
10
10
  export * from "./StripeAcssDebitAccountPaymentMethodDetails";
11
11
  export * from "./StripeBankAccountVerificationStatus";
12
12
  export * from "./StripeCardPaymentMethodDetails";
13
- export * from "./StripeAccountType";
@@ -26,4 +26,3 @@ __exportStar(require("./StripeUsBankAccountPaymentMethodDetails"), exports);
26
26
  __exportStar(require("./StripeAcssDebitAccountPaymentMethodDetails"), exports);
27
27
  __exportStar(require("./StripeBankAccountVerificationStatus"), exports);
28
28
  __exportStar(require("./StripeCardPaymentMethodDetails"), exports);
29
- __exportStar(require("./StripeAccountType"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1.1-prerelease2641-dev-3";
1
+ export declare const SDK_VERSION = "1.1.1-prerelease2641-dev-2";
package/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-prerelease2641-dev-3";
4
+ exports.SDK_VERSION = "1.1.1-prerelease2641-dev-2";
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface StripeAccountInfo {
5
- stripeCustomerId: string;
6
- defaultPaymentMethodId: string;
7
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../index";
5
- export interface StripeMultipleAccountCustomerInfo {
6
- mainAccount: TheraApi.db.StripeAccountInfo;
7
- revenueAccount: TheraApi.db.StripeAccountInfo;
8
- eorAccount: TheraApi.db.StripeAccountInfo;
9
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type StripeAccountType = "MAIN" | "REVENUE" | "EOR";
5
- export declare const StripeAccountType: {
6
- readonly Main: "MAIN";
7
- readonly Revenue: "REVENUE";
8
- readonly Eor: "EOR";
9
- };
@@ -1,11 +0,0 @@
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.StripeAccountType = void 0;
7
- exports.StripeAccountType = {
8
- Main: "MAIN",
9
- Revenue: "REVENUE",
10
- Eor: "EOR",
11
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface StripeAccountInfo {
5
- stripeCustomerId: string;
6
- defaultPaymentMethodId: string;
7
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../index";
5
- export interface StripeMultipleAccountCustomerInfo {
6
- mainAccount: TheraApi.db.StripeAccountInfo;
7
- revenueAccount: TheraApi.db.StripeAccountInfo;
8
- eorAccount: TheraApi.db.StripeAccountInfo;
9
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type StripeAccountType = "MAIN" | "REVENUE" | "EOR";
5
- export declare const StripeAccountType: {
6
- readonly Main: "MAIN";
7
- readonly Revenue: "REVENUE";
8
- readonly Eor: "EOR";
9
- };
@@ -1,11 +0,0 @@
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.StripeAccountType = void 0;
7
- exports.StripeAccountType = {
8
- Main: "MAIN",
9
- Revenue: "REVENUE",
10
- Eor: "EOR",
11
- };