@thera-hr/api-sdk 1.1.1-prerelease2438-dev-4 → 1.2.1-prerelease2321-dev-3

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 (124) 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 -3
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +40 -41
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.d.ts +3 -11
  9. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  10. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  11. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  12. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  13. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  14. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  15. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  16. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  17. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  18. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  19. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  20. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  21. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  22. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  23. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  24. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  25. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  26. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  27. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  28. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  29. package/api/resources/db/resources/company/types/Company.d.ts +0 -1
  30. package/api/resources/db/resources/company/types/index.d.ts +0 -2
  31. package/api/resources/db/resources/company/types/index.js +0 -2
  32. package/api/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +0 -1
  33. package/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +0 -2
  34. package/api/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
  35. package/api/resources/db/resources/paymentMethod/types/index.js +0 -1
  36. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  37. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  38. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  39. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  40. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  41. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -3
  42. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +40 -41
  43. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.d.ts +3 -11
  44. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  45. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  46. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  47. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  48. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  49. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  50. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  51. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  52. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  53. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  54. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  55. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  56. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  57. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  58. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  59. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  60. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  61. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  62. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  63. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  64. package/dist/api/resources/db/resources/company/types/Company.d.ts +0 -1
  65. package/dist/api/resources/db/resources/company/types/index.d.ts +0 -2
  66. package/dist/api/resources/db/resources/company/types/index.js +0 -2
  67. package/dist/api/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +0 -1
  68. package/dist/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +0 -2
  69. package/dist/api/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
  70. package/dist/api/resources/db/resources/paymentMethod/types/index.js +0 -1
  71. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.d.ts +1 -2
  72. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.js +1 -2
  73. package/dist/serialization/resources/db/resources/company/types/Company.d.ts +0 -2
  74. package/dist/serialization/resources/db/resources/company/types/Company.js +0 -2
  75. package/dist/serialization/resources/db/resources/company/types/index.d.ts +0 -2
  76. package/dist/serialization/resources/db/resources/company/types/index.js +0 -2
  77. package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +0 -1
  78. package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +0 -1
  79. package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +0 -2
  80. package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +0 -2
  81. package/dist/serialization/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
  82. package/dist/serialization/resources/db/resources/paymentMethod/types/index.js +0 -1
  83. package/dist/version.d.ts +1 -1
  84. package/dist/version.js +1 -1
  85. package/package.json +1 -1
  86. package/reference.md +0 -1
  87. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.d.ts +1 -2
  88. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.js +1 -2
  89. package/serialization/resources/db/resources/company/types/Company.d.ts +0 -2
  90. package/serialization/resources/db/resources/company/types/Company.js +0 -2
  91. package/serialization/resources/db/resources/company/types/index.d.ts +0 -2
  92. package/serialization/resources/db/resources/company/types/index.js +0 -2
  93. package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +0 -1
  94. package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +0 -1
  95. package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +0 -2
  96. package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +0 -2
  97. package/serialization/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
  98. package/serialization/resources/db/resources/paymentMethod/types/index.js +0 -1
  99. package/version.d.ts +1 -1
  100. package/version.js +1 -1
  101. package/api/resources/db/resources/company/types/StripeAccountInfo.d.ts +0 -7
  102. package/api/resources/db/resources/company/types/StripeAccountInfo.js +0 -5
  103. package/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +0 -9
  104. package/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +0 -5
  105. package/api/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +0 -9
  106. package/api/resources/db/resources/paymentMethod/types/StripeAccountType.js +0 -11
  107. package/dist/api/resources/db/resources/company/types/StripeAccountInfo.d.ts +0 -7
  108. package/dist/api/resources/db/resources/company/types/StripeAccountInfo.js +0 -5
  109. package/dist/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +0 -9
  110. package/dist/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +0 -5
  111. package/dist/api/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +0 -9
  112. package/dist/api/resources/db/resources/paymentMethod/types/StripeAccountType.js +0 -11
  113. package/dist/serialization/resources/db/resources/company/types/StripeAccountInfo.d.ts +0 -13
  114. package/dist/serialization/resources/db/resources/company/types/StripeAccountInfo.js +0 -44
  115. package/dist/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +0 -15
  116. package/dist/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +0 -46
  117. package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +0 -10
  118. package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.js +0 -41
  119. package/serialization/resources/db/resources/company/types/StripeAccountInfo.d.ts +0 -13
  120. package/serialization/resources/db/resources/company/types/StripeAccountInfo.js +0 -44
  121. package/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +0 -15
  122. package/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +0 -46
  123. package/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +0 -10
  124. package/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.js +0 -41
@@ -36,7 +36,6 @@ export interface Company {
36
36
  ledgerAccountIdsByCurrency: Record<string, string>;
37
37
  v2LedgerAccountIdsByCurrency: Record<string, string>;
38
38
  teamsById: Record<string, TheraApi.db.Team>;
39
- stripeMultipleAccountInfo?: TheraApi.db.StripeMultipleAccountCustomerInfo;
40
39
  /** URLs for the business website(s). At least one is required for banking companies. */
41
40
  urls: string[];
42
41
  companyDescription?: string;
@@ -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);
@@ -7,7 +7,6 @@ import * as core from "../../../../../../../../../../../core";
7
7
  export declare const EditWithdrawalMethodRequest: core.serialization.Schema<serializers.api.thera.bank.EditWithdrawalMethodRequest.Raw, TheraApi.api.thera.bank.EditWithdrawalMethodRequest>;
8
8
  export declare namespace EditWithdrawalMethodRequest {
9
9
  interface Raw {
10
- preferred?: boolean | null;
11
- forceOffPlatformReason?: string | null;
10
+ preferred: boolean;
12
11
  }
13
12
  }
@@ -39,6 +39,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.EditWithdrawalMethodRequest = void 0;
40
40
  const core = __importStar(require("../../../../../../../../../../../core"));
41
41
  exports.EditWithdrawalMethodRequest = core.serialization.object({
42
- preferred: core.serialization.boolean().optional(),
43
- forceOffPlatformReason: core.serialization.string().optional(),
42
+ preferred: core.serialization.boolean(),
44
43
  });
@@ -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";
@@ -44,7 +43,6 @@ export declare namespace Company {
44
43
  ledgerAccountIdsByCurrency: Record<string, string>;
45
44
  v2LedgerAccountIdsByCurrency: Record<string, string>;
46
45
  teamsById: Record<string, Team.Raw>;
47
- stripeMultipleAccountInfo?: StripeMultipleAccountCustomerInfo.Raw | null;
48
46
  urls: string[];
49
47
  companyDescription?: string | null;
50
48
  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");
@@ -76,7 +75,6 @@ exports.Company = core.serialization.object({
76
75
  ledgerAccountIdsByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
77
76
  v2LedgerAccountIdsByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
78
77
  teamsById: core.serialization.record(core.serialization.string(), Team_1.Team),
79
- stripeMultipleAccountInfo: StripeMultipleAccountCustomerInfo_1.StripeMultipleAccountCustomerInfo.optional(),
80
78
  urls: core.serialization.list(core.serialization.string()),
81
79
  companyDescription: core.serialization.string().optional(),
82
80
  tp: TpCompanyInformation_1.TpCompanyInformation.optional(),
@@ -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-prerelease2438-dev-4";
1
+ export declare const SDK_VERSION = "1.2.1-prerelease2321-dev-3";
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-prerelease2438-dev-4";
4
+ exports.SDK_VERSION = "1.2.1-prerelease2321-dev-3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "1.1.1-prerelease2438-dev-4",
3
+ "version": "1.2.1-prerelease2321-dev-3",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2130,7 +2130,6 @@ await client.api.thera.bank.bankApi.deleteWithdrawalMethod("string", "string");
2130
2130
  ```typescript
2131
2131
  await client.api.thera.bank.bankApi.editWithdrawalMethod("string", "string", {
2132
2132
  preferred: true,
2133
- forceOffPlatformReason: "string",
2134
2133
  });
2135
2134
  ```
2136
2135
 
@@ -7,7 +7,6 @@ import * as core from "../../../../../../../../../../../core";
7
7
  export declare const EditWithdrawalMethodRequest: core.serialization.Schema<serializers.api.thera.bank.EditWithdrawalMethodRequest.Raw, TheraApi.api.thera.bank.EditWithdrawalMethodRequest>;
8
8
  export declare namespace EditWithdrawalMethodRequest {
9
9
  interface Raw {
10
- preferred?: boolean | null;
11
- forceOffPlatformReason?: string | null;
10
+ preferred: boolean;
12
11
  }
13
12
  }
@@ -39,6 +39,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.EditWithdrawalMethodRequest = void 0;
40
40
  const core = __importStar(require("../../../../../../../../../../../core"));
41
41
  exports.EditWithdrawalMethodRequest = core.serialization.object({
42
- preferred: core.serialization.boolean().optional(),
43
- forceOffPlatformReason: core.serialization.string().optional(),
42
+ preferred: core.serialization.boolean(),
44
43
  });
@@ -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";
@@ -44,7 +43,6 @@ export declare namespace Company {
44
43
  ledgerAccountIdsByCurrency: Record<string, string>;
45
44
  v2LedgerAccountIdsByCurrency: Record<string, string>;
46
45
  teamsById: Record<string, Team.Raw>;
47
- stripeMultipleAccountInfo?: StripeMultipleAccountCustomerInfo.Raw | null;
48
46
  urls: string[];
49
47
  companyDescription?: string | null;
50
48
  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");
@@ -76,7 +75,6 @@ exports.Company = core.serialization.object({
76
75
  ledgerAccountIdsByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
77
76
  v2LedgerAccountIdsByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
78
77
  teamsById: core.serialization.record(core.serialization.string(), Team_1.Team),
79
- stripeMultipleAccountInfo: StripeMultipleAccountCustomerInfo_1.StripeMultipleAccountCustomerInfo.optional(),
80
78
  urls: core.serialization.list(core.serialization.string()),
81
79
  companyDescription: core.serialization.string().optional(),
82
80
  tp: TpCompanyInformation_1.TpCompanyInformation.optional(),
@@ -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-prerelease2438-dev-4";
1
+ export declare const SDK_VERSION = "1.2.1-prerelease2321-dev-3";
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-prerelease2438-dev-4";
4
+ exports.SDK_VERSION = "1.2.1-prerelease2321-dev-3";
@@ -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,5 +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 });
@@ -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,5 +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 });
@@ -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,5 +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 });
@@ -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,5 +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 });
@@ -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,13 +0,0 @@
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 StripeAccountInfo: core.serialization.ObjectSchema<serializers.db.StripeAccountInfo.Raw, TheraApi.db.StripeAccountInfo>;
8
- export declare namespace StripeAccountInfo {
9
- interface Raw {
10
- stripeCustomerId: string;
11
- defaultPaymentMethodId: string;
12
- }
13
- }
@@ -1,44 +0,0 @@
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.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(),
44
- });
@@ -1,15 +0,0 @@
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 { StripeAccountInfo } from "./StripeAccountInfo";
8
- export declare const StripeMultipleAccountCustomerInfo: core.serialization.ObjectSchema<serializers.db.StripeMultipleAccountCustomerInfo.Raw, TheraApi.db.StripeMultipleAccountCustomerInfo>;
9
- export declare namespace StripeMultipleAccountCustomerInfo {
10
- interface Raw {
11
- mainAccount: StripeAccountInfo.Raw;
12
- revenueAccount: StripeAccountInfo.Raw;
13
- eorAccount: StripeAccountInfo.Raw;
14
- }
15
- }
@@ -1,46 +0,0 @@
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.StripeMultipleAccountCustomerInfo = void 0;
40
- const core = __importStar(require("../../../../../../core"));
41
- const StripeAccountInfo_1 = require("./StripeAccountInfo");
42
- exports.StripeMultipleAccountCustomerInfo = core.serialization.object({
43
- mainAccount: StripeAccountInfo_1.StripeAccountInfo,
44
- revenueAccount: StripeAccountInfo_1.StripeAccountInfo,
45
- eorAccount: StripeAccountInfo_1.StripeAccountInfo,
46
- });
@@ -1,10 +0,0 @@
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 StripeAccountType: core.serialization.Schema<serializers.db.StripeAccountType.Raw, TheraApi.db.StripeAccountType>;
8
- export declare namespace StripeAccountType {
9
- type Raw = "MAIN" | "REVENUE" | "EOR";
10
- }