@thera-hr/api-sdk 0.0.3925 → 0.0.3943

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 (73) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  3. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +4 -0
  4. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +64 -18
  5. package/api/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.d.ts → bank/resources/bankApi/types/GetBankAccountDetailsResponse.d.ts} +2 -2
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  8. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +8 -8
  9. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  10. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -2
  11. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -2
  12. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  13. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
  14. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  15. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  16. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  17. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  18. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  19. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  20. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  21. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +4 -0
  22. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +64 -18
  23. package/dist/api/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.d.ts → bank/resources/bankApi/types/GetBankAccountDetailsResponse.d.ts} +2 -2
  24. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  25. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  26. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +8 -8
  27. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  28. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -2
  29. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -2
  30. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  31. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
  32. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  33. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  34. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  35. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  36. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  37. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getPlaidBankDetails.d.ts +10 -0
  38. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getPlaidBankDetails.js +42 -0
  39. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +1 -0
  40. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +2 -1
  41. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountDetailsResponse.d.ts +12 -0
  42. package/dist/serialization/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.js → bank/resources/bankApi/types/GetBankAccountDetailsResponse.js} +3 -3
  43. package/{serialization/resources/api/resources/thera/resources/company/resources/companyApi → dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi}/types/PlaidVerificationStatus.d.ts +1 -1
  44. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  45. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  46. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  47. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +0 -3
  48. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -2
  49. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -2
  50. package/package.json +1 -1
  51. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getPlaidBankDetails.d.ts +10 -0
  52. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getPlaidBankDetails.js +42 -0
  53. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +1 -0
  54. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +2 -1
  55. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountDetailsResponse.d.ts +12 -0
  56. package/serialization/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.js → bank/resources/bankApi/types/GetBankAccountDetailsResponse.js} +3 -3
  57. package/{dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi → serialization/resources/api/resources/thera/resources/bank/resources/bankApi}/types/PlaidVerificationStatus.d.ts +1 -1
  58. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  59. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  60. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  61. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +0 -3
  62. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -2
  63. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -2
  64. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/BankAccountResponseMetadata.d.ts +0 -12
  65. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/BankAccountResponseMetadata.d.ts +0 -12
  66. /package/api/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.js → bank/resources/bankApi/types/GetBankAccountDetailsResponse.js} +0 -0
  67. /package/api/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.d.ts +0 -0
  68. /package/api/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.js +0 -0
  69. /package/dist/api/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.js → bank/resources/bankApi/types/GetBankAccountDetailsResponse.js} +0 -0
  70. /package/dist/api/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.d.ts +0 -0
  71. /package/dist/api/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.js +0 -0
  72. /package/dist/serialization/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.js +0 -0
  73. /package/serialization/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.js +0 -0
@@ -40,14 +40,60 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
40
40
  Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.BankApi = void 0;
42
42
  const core = __importStar(require("../../../../../../../../../../core"));
43
- const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
44
43
  const url_join_1 = __importDefault(require("url-join"));
45
44
  const serializers = __importStar(require("../../../../../../../../../../serialization"));
46
45
  const errors = __importStar(require("../../../../../../../../../../errors"));
46
+ const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
47
47
  class BankApi {
48
48
  constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
+ /**
52
+ * Get Plaid Bank Account Details (employer/admin's bank account status). Contains Status, etc
53
+ */
54
+ getPlaidBankDetails(companyId) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const _response = yield core.fetcher({
57
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/bank/account`),
58
+ method: "GET",
59
+ headers: {
60
+ Authorization: yield this._getAuthorizationHeader(),
61
+ "X-Fern-Language": "JavaScript",
62
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
63
+ "X-Fern-SDK-Version": "0.0.3943",
64
+ },
65
+ contentType: "application/json",
66
+ timeoutMs: 60000,
67
+ });
68
+ if (_response.ok) {
69
+ return yield serializers.api.thera.bank.bankApi.getPlaidBankDetails.Response.parseOrThrow(_response.body, {
70
+ unrecognizedObjectKeys: "passthrough",
71
+ allowUnrecognizedUnionMembers: true,
72
+ allowUnrecognizedEnumValues: true,
73
+ breadcrumbsPrefix: ["response"],
74
+ });
75
+ }
76
+ if (_response.error.reason === "status-code") {
77
+ throw new errors.TheraApiError({
78
+ statusCode: _response.error.statusCode,
79
+ body: _response.error.body,
80
+ });
81
+ }
82
+ switch (_response.error.reason) {
83
+ case "non-json":
84
+ throw new errors.TheraApiError({
85
+ statusCode: _response.error.statusCode,
86
+ body: _response.error.rawBody,
87
+ });
88
+ case "timeout":
89
+ throw new errors.TheraApiTimeoutError();
90
+ case "unknown":
91
+ throw new errors.TheraApiError({
92
+ message: _response.error.errorMessage,
93
+ });
94
+ }
95
+ });
96
+ }
51
97
  /**
52
98
  * Get Plaid's link-token
53
99
  */
@@ -65,7 +111,7 @@ class BankApi {
65
111
  Authorization: yield this._getAuthorizationHeader(),
66
112
  "X-Fern-Language": "JavaScript",
67
113
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
68
- "X-Fern-SDK-Version": "0.0.3925",
114
+ "X-Fern-SDK-Version": "0.0.3943",
69
115
  },
70
116
  contentType: "application/json",
71
117
  queryParameters: _queryParams,
@@ -112,7 +158,7 @@ class BankApi {
112
158
  Authorization: yield this._getAuthorizationHeader(),
113
159
  "X-Fern-Language": "JavaScript",
114
160
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
115
- "X-Fern-SDK-Version": "0.0.3925",
161
+ "X-Fern-SDK-Version": "0.0.3943",
116
162
  },
117
163
  contentType: "application/json",
118
164
  body: yield serializers.api.thera.bank.CompleteAccountSignupRequest.jsonOrThrow(request, {
@@ -161,7 +207,7 @@ class BankApi {
161
207
  Authorization: yield this._getAuthorizationHeader(),
162
208
  "X-Fern-Language": "JavaScript",
163
209
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
164
- "X-Fern-SDK-Version": "0.0.3925",
210
+ "X-Fern-SDK-Version": "0.0.3943",
165
211
  },
166
212
  contentType: "application/json",
167
213
  queryParameters: _queryParams,
@@ -208,7 +254,7 @@ class BankApi {
208
254
  Authorization: yield this._getAuthorizationHeader(),
209
255
  "X-Fern-Language": "JavaScript",
210
256
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
211
- "X-Fern-SDK-Version": "0.0.3925",
257
+ "X-Fern-SDK-Version": "0.0.3943",
212
258
  },
213
259
  contentType: "application/json",
214
260
  timeoutMs: 60000,
@@ -249,7 +295,7 @@ class BankApi {
249
295
  Authorization: yield this._getAuthorizationHeader(),
250
296
  "X-Fern-Language": "JavaScript",
251
297
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
252
- "X-Fern-SDK-Version": "0.0.3925",
298
+ "X-Fern-SDK-Version": "0.0.3943",
253
299
  },
254
300
  contentType: "application/json",
255
301
  body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
@@ -296,7 +342,7 @@ class BankApi {
296
342
  Authorization: yield this._getAuthorizationHeader(),
297
343
  "X-Fern-Language": "JavaScript",
298
344
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
299
- "X-Fern-SDK-Version": "0.0.3925",
345
+ "X-Fern-SDK-Version": "0.0.3943",
300
346
  },
301
347
  contentType: "application/json",
302
348
  queryParameters: _queryParams,
@@ -346,7 +392,7 @@ class BankApi {
346
392
  Authorization: yield this._getAuthorizationHeader(),
347
393
  "X-Fern-Language": "JavaScript",
348
394
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
349
- "X-Fern-SDK-Version": "0.0.3925",
395
+ "X-Fern-SDK-Version": "0.0.3943",
350
396
  },
351
397
  contentType: "application/json",
352
398
  queryParameters: _queryParams,
@@ -393,7 +439,7 @@ class BankApi {
393
439
  Authorization: yield this._getAuthorizationHeader(),
394
440
  "X-Fern-Language": "JavaScript",
395
441
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
396
- "X-Fern-SDK-Version": "0.0.3925",
442
+ "X-Fern-SDK-Version": "0.0.3943",
397
443
  },
398
444
  contentType: "application/json",
399
445
  body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
@@ -442,7 +488,7 @@ class BankApi {
442
488
  Authorization: yield this._getAuthorizationHeader(),
443
489
  "X-Fern-Language": "JavaScript",
444
490
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
445
- "X-Fern-SDK-Version": "0.0.3925",
491
+ "X-Fern-SDK-Version": "0.0.3943",
446
492
  },
447
493
  contentType: "application/json",
448
494
  body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
@@ -488,7 +534,7 @@ class BankApi {
488
534
  Authorization: yield this._getAuthorizationHeader(),
489
535
  "X-Fern-Language": "JavaScript",
490
536
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
491
- "X-Fern-SDK-Version": "0.0.3925",
537
+ "X-Fern-SDK-Version": "0.0.3943",
492
538
  },
493
539
  contentType: "application/json",
494
540
  timeoutMs: 60000,
@@ -531,7 +577,7 @@ class BankApi {
531
577
  Authorization: yield this._getAuthorizationHeader(),
532
578
  "X-Fern-Language": "JavaScript",
533
579
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
534
- "X-Fern-SDK-Version": "0.0.3925",
580
+ "X-Fern-SDK-Version": "0.0.3943",
535
581
  },
536
582
  contentType: "application/json",
537
583
  body: yield serializers.api.thera.bank.EditWithdrawalMethodRequest.jsonOrThrow(request, {
@@ -577,7 +623,7 @@ class BankApi {
577
623
  Authorization: yield this._getAuthorizationHeader(),
578
624
  "X-Fern-Language": "JavaScript",
579
625
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
580
- "X-Fern-SDK-Version": "0.0.3925",
626
+ "X-Fern-SDK-Version": "0.0.3943",
581
627
  },
582
628
  contentType: "application/json",
583
629
  body: yield serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
@@ -623,7 +669,7 @@ class BankApi {
623
669
  Authorization: yield this._getAuthorizationHeader(),
624
670
  "X-Fern-Language": "JavaScript",
625
671
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
626
- "X-Fern-SDK-Version": "0.0.3925",
672
+ "X-Fern-SDK-Version": "0.0.3943",
627
673
  },
628
674
  contentType: "application/json",
629
675
  timeoutMs: 60000,
@@ -666,7 +712,7 @@ class BankApi {
666
712
  Authorization: yield this._getAuthorizationHeader(),
667
713
  "X-Fern-Language": "JavaScript",
668
714
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
669
- "X-Fern-SDK-Version": "0.0.3925",
715
+ "X-Fern-SDK-Version": "0.0.3943",
670
716
  },
671
717
  contentType: "application/json",
672
718
  timeoutMs: 60000,
@@ -714,7 +760,7 @@ class BankApi {
714
760
  Authorization: yield this._getAuthorizationHeader(),
715
761
  "X-Fern-Language": "JavaScript",
716
762
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
717
- "X-Fern-SDK-Version": "0.0.3925",
763
+ "X-Fern-SDK-Version": "0.0.3943",
718
764
  },
719
765
  contentType: "application/json",
720
766
  queryParameters: _queryParams,
@@ -758,7 +804,7 @@ class BankApi {
758
804
  Authorization: yield this._getAuthorizationHeader(),
759
805
  "X-Fern-Language": "JavaScript",
760
806
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
761
- "X-Fern-SDK-Version": "0.0.3925",
807
+ "X-Fern-SDK-Version": "0.0.3943",
762
808
  },
763
809
  contentType: "application/json",
764
810
  body: yield serializers.api.thera.bank.SetAutoWithdrawalRequest.jsonOrThrow(request, {
@@ -804,7 +850,7 @@ class BankApi {
804
850
  Authorization: yield this._getAuthorizationHeader(),
805
851
  "X-Fern-Language": "JavaScript",
806
852
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
807
- "X-Fern-SDK-Version": "0.0.3925",
853
+ "X-Fern-SDK-Version": "0.0.3943",
808
854
  },
809
855
  contentType: "application/json",
810
856
  timeoutMs: 60000,
@@ -2,6 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as TheraApi from "../../../../../../../../..";
5
- export interface BankAccountResponseMetadata {
6
- plaidVerificationStatus: TheraApi.api.thera.company.PlaidVerificationStatus;
5
+ export interface GetBankAccountDetailsResponse {
6
+ plaidVerificationStatus: TheraApi.api.thera.bank.PlaidVerificationStatus;
7
7
  }
@@ -26,5 +26,7 @@ export * from "./WorkerTransaction";
26
26
  export * from "./WorkerTransactionDetails";
27
27
  export * from "./WorkerWithdrawalTransaction";
28
28
  export * from "./WorkerInvoicePaymentTransaction";
29
+ export * from "./GetBankAccountDetailsResponse";
30
+ export * from "./PlaidVerificationStatus";
29
31
  export * from "./SetAutoWithdrawalResponse";
30
32
  export * from "./WorkerTransactionStatus";
@@ -42,5 +42,7 @@ __exportStar(require("./WorkerTransaction"), exports);
42
42
  __exportStar(require("./WorkerTransactionDetails"), exports);
43
43
  __exportStar(require("./WorkerWithdrawalTransaction"), exports);
44
44
  __exportStar(require("./WorkerInvoicePaymentTransaction"), exports);
45
+ __exportStar(require("./GetBankAccountDetailsResponse"), exports);
46
+ __exportStar(require("./PlaidVerificationStatus"), exports);
45
47
  __exportStar(require("./SetAutoWithdrawalResponse"), exports);
46
48
  __exportStar(require("./WorkerTransactionStatus"), exports);
@@ -65,7 +65,7 @@ class CompanyApi {
65
65
  Authorization: yield this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
68
- "X-Fern-SDK-Version": "0.0.3925",
68
+ "X-Fern-SDK-Version": "0.0.3943",
69
69
  },
70
70
  contentType: "application/json",
71
71
  queryParameters: _queryParams,
@@ -115,7 +115,7 @@ class CompanyApi {
115
115
  Authorization: yield this._getAuthorizationHeader(),
116
116
  "X-Fern-Language": "JavaScript",
117
117
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
118
- "X-Fern-SDK-Version": "0.0.3925",
118
+ "X-Fern-SDK-Version": "0.0.3943",
119
119
  },
120
120
  contentType: "application/json",
121
121
  body: yield serializers.api.thera.company.InviteManagerRequest.jsonOrThrow(request, {
@@ -164,7 +164,7 @@ class CompanyApi {
164
164
  Authorization: yield this._getAuthorizationHeader(),
165
165
  "X-Fern-Language": "JavaScript",
166
166
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
167
- "X-Fern-SDK-Version": "0.0.3925",
167
+ "X-Fern-SDK-Version": "0.0.3943",
168
168
  },
169
169
  contentType: "application/json",
170
170
  body: yield serializers.api.thera.company.EditManagerRolesRequest.jsonOrThrow(request, {
@@ -213,7 +213,7 @@ class CompanyApi {
213
213
  Authorization: yield this._getAuthorizationHeader(),
214
214
  "X-Fern-Language": "JavaScript",
215
215
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
216
- "X-Fern-SDK-Version": "0.0.3925",
216
+ "X-Fern-SDK-Version": "0.0.3943",
217
217
  },
218
218
  contentType: "application/json",
219
219
  body: yield serializers.api.thera.company.EditOrgAdminsRequest.jsonOrThrow(request, {
@@ -262,7 +262,7 @@ class CompanyApi {
262
262
  Authorization: yield this._getAuthorizationHeader(),
263
263
  "X-Fern-Language": "JavaScript",
264
264
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
265
- "X-Fern-SDK-Version": "0.0.3925",
265
+ "X-Fern-SDK-Version": "0.0.3943",
266
266
  },
267
267
  contentType: "application/json",
268
268
  timeoutMs: 60000,
@@ -308,7 +308,7 @@ class CompanyApi {
308
308
  Authorization: yield this._getAuthorizationHeader(),
309
309
  "X-Fern-Language": "JavaScript",
310
310
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
311
- "X-Fern-SDK-Version": "0.0.3925",
311
+ "X-Fern-SDK-Version": "0.0.3943",
312
312
  },
313
313
  contentType: "application/json",
314
314
  body: yield serializers.api.thera.company.ChangeContractTeamRequest.jsonOrThrow(request, {
@@ -357,7 +357,7 @@ class CompanyApi {
357
357
  Authorization: yield this._getAuthorizationHeader(),
358
358
  "X-Fern-Language": "JavaScript",
359
359
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
360
- "X-Fern-SDK-Version": "0.0.3925",
360
+ "X-Fern-SDK-Version": "0.0.3943",
361
361
  },
362
362
  contentType: "application/json",
363
363
  timeoutMs: 60000,
@@ -403,7 +403,7 @@ class CompanyApi {
403
403
  Authorization: yield this._getAuthorizationHeader(),
404
404
  "X-Fern-Language": "JavaScript",
405
405
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
406
- "X-Fern-SDK-Version": "0.0.3925",
406
+ "X-Fern-SDK-Version": "0.0.3943",
407
407
  },
408
408
  contentType: "application/json",
409
409
  body: yield serializers.api.thera.company.CreateTeamRequest.jsonOrThrow(request, {
@@ -21,5 +21,4 @@ export interface CompanyApiResponse {
21
21
  flags: TheraApi.api.thera.company.Flags;
22
22
  isZealBankAccountVerified: boolean;
23
23
  settings: TheraApi.api.thera.company.CompanySettings;
24
- bankAccount?: TheraApi.api.thera.company.BankAccountResponseMetadata;
25
24
  }
@@ -21,8 +21,6 @@ export * from "./OrgRoleAndDetails";
21
21
  export * from "./OrgAdmin";
22
22
  export * from "./CreateCompanyRequest";
23
23
  export * from "./CompanyApiResponse";
24
- export * from "./BankAccountResponseMetadata";
25
- export * from "./PlaidVerificationStatus";
26
24
  export * from "./CompanySettings";
27
25
  export * from "./SubscriptionPricing";
28
26
  export * from "./Flags";
@@ -37,8 +37,6 @@ __exportStar(require("./OrgRoleAndDetails"), exports);
37
37
  __exportStar(require("./OrgAdmin"), exports);
38
38
  __exportStar(require("./CreateCompanyRequest"), exports);
39
39
  __exportStar(require("./CompanyApiResponse"), exports);
40
- __exportStar(require("./BankAccountResponseMetadata"), exports);
41
- __exportStar(require("./PlaidVerificationStatus"), exports);
42
40
  __exportStar(require("./CompanySettings"), exports);
43
41
  __exportStar(require("./SubscriptionPricing"), exports);
44
42
  __exportStar(require("./Flags"), exports);
@@ -59,7 +59,7 @@ class CompanyW2PayrollApi {
59
59
  Authorization: yield this._getAuthorizationHeader(),
60
60
  "X-Fern-Language": "JavaScript",
61
61
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
62
- "X-Fern-SDK-Version": "0.0.3925",
62
+ "X-Fern-SDK-Version": "0.0.3943",
63
63
  },
64
64
  contentType: "application/json",
65
65
  body: yield serializers.api.thera.company.OnboardW2PayrollRequest.jsonOrThrow(request, {
@@ -73,7 +73,7 @@ class DisbursementApi {
73
73
  Authorization: yield this._getAuthorizationHeader(),
74
74
  "X-Fern-Language": "JavaScript",
75
75
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
76
- "X-Fern-SDK-Version": "0.0.3925",
76
+ "X-Fern-SDK-Version": "0.0.3943",
77
77
  },
78
78
  contentType: "application/json",
79
79
  queryParameters: _queryParams,
@@ -118,7 +118,7 @@ class DisbursementApi {
118
118
  Authorization: yield this._getAuthorizationHeader(),
119
119
  "X-Fern-Language": "JavaScript",
120
120
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
121
- "X-Fern-SDK-Version": "0.0.3925",
121
+ "X-Fern-SDK-Version": "0.0.3943",
122
122
  },
123
123
  contentType: "application/json",
124
124
  body: yield serializers.api.thera.disbursement.CreateDisbursementRequest.jsonOrThrow(request, {
@@ -162,7 +162,7 @@ class DisbursementApi {
162
162
  Authorization: yield this._getAuthorizationHeader(),
163
163
  "X-Fern-Language": "JavaScript",
164
164
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
165
- "X-Fern-SDK-Version": "0.0.3925",
165
+ "X-Fern-SDK-Version": "0.0.3943",
166
166
  },
167
167
  contentType: "application/json",
168
168
  timeoutMs: 60000,
@@ -60,7 +60,7 @@ class DisbursementWebhookApi {
60
60
  Authorization: yield this._getAuthorizationHeader(),
61
61
  "X-Fern-Language": "JavaScript",
62
62
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
63
- "X-Fern-SDK-Version": "0.0.3925",
63
+ "X-Fern-SDK-Version": "0.0.3943",
64
64
  "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
65
65
  },
66
66
  contentType: "application/json",
@@ -59,7 +59,7 @@ class EmploymentApi {
59
59
  Authorization: yield this._getAuthorizationHeader(),
60
60
  "X-Fern-Language": "JavaScript",
61
61
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
62
- "X-Fern-SDK-Version": "0.0.3925",
62
+ "X-Fern-SDK-Version": "0.0.3943",
63
63
  },
64
64
  contentType: "application/json",
65
65
  body: yield serializers.api.thera.employment.CreateContractEstimateRequest.jsonOrThrow(request, {
@@ -108,7 +108,7 @@ class EmploymentApi {
108
108
  Authorization: yield this._getAuthorizationHeader(),
109
109
  "X-Fern-Language": "JavaScript",
110
110
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
111
- "X-Fern-SDK-Version": "0.0.3925",
111
+ "X-Fern-SDK-Version": "0.0.3943",
112
112
  },
113
113
  contentType: "application/json",
114
114
  timeoutMs: 60000,
@@ -154,7 +154,7 @@ class EmploymentApi {
154
154
  Authorization: yield this._getAuthorizationHeader(),
155
155
  "X-Fern-Language": "JavaScript",
156
156
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
157
- "X-Fern-SDK-Version": "0.0.3925",
157
+ "X-Fern-SDK-Version": "0.0.3943",
158
158
  },
159
159
  contentType: "application/json",
160
160
  timeoutMs: 60000,
@@ -61,7 +61,7 @@ class Misc {
61
61
  Authorization: yield this._getAuthorizationHeader(),
62
62
  "X-Fern-Language": "JavaScript",
63
63
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
64
- "X-Fern-SDK-Version": "0.0.3925",
64
+ "X-Fern-SDK-Version": "0.0.3943",
65
65
  "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
66
66
  },
67
67
  contentType: "application/json",
@@ -59,7 +59,7 @@ class OncycleApi {
59
59
  Authorization: yield this._getAuthorizationHeader(),
60
60
  "X-Fern-Language": "JavaScript",
61
61
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
62
- "X-Fern-SDK-Version": "0.0.3925",
62
+ "X-Fern-SDK-Version": "0.0.3943",
63
63
  },
64
64
  contentType: "application/json",
65
65
  timeoutMs: 60000,
@@ -63,7 +63,7 @@ class UserApi {
63
63
  Authorization: yield this._getAuthorizationHeader(),
64
64
  "X-Fern-Language": "JavaScript",
65
65
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
66
- "X-Fern-SDK-Version": "0.0.3925",
66
+ "X-Fern-SDK-Version": "0.0.3943",
67
67
  },
68
68
  contentType: "application/json",
69
69
  queryParameters: _queryParams,
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../..";
5
+ import * as TheraApi from "../../../../../../../../../../api";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const Response: core.serialization.Schema<serializers.api.thera.bank.bankApi.getPlaidBankDetails.Response.Raw, TheraApi.api.thera.bank.GetBankAccountDetailsResponse | undefined>;
8
+ export declare namespace Response {
9
+ type Raw = serializers.api.thera.bank.GetBankAccountDetailsResponse.Raw | null | undefined;
10
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.Response = void 0;
39
+ const core = __importStar(require("../../../../../../../../../../core"));
40
+ exports.Response = core.serialization
41
+ .lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.bank.GetBankAccountDetailsResponse; }))
42
+ .optional();
@@ -1,2 +1,3 @@
1
+ export * as getPlaidBankDetails from "./getPlaidBankDetails";
1
2
  export * as getSupportedWithdrawalMethods from "./getSupportedWithdrawalMethods";
2
3
  export * from "./requests";
@@ -26,6 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.getSupportedWithdrawalMethods = void 0;
29
+ exports.getSupportedWithdrawalMethods = exports.getPlaidBankDetails = void 0;
30
+ exports.getPlaidBankDetails = __importStar(require("./getPlaidBankDetails"));
30
31
  exports.getSupportedWithdrawalMethods = __importStar(require("./getSupportedWithdrawalMethods"));
31
32
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../..";
5
+ import * as TheraApi from "../../../../../../../../../../api";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const GetBankAccountDetailsResponse: core.serialization.ObjectSchema<serializers.api.thera.bank.GetBankAccountDetailsResponse.Raw, TheraApi.api.thera.bank.GetBankAccountDetailsResponse>;
8
+ export declare namespace GetBankAccountDetailsResponse {
9
+ interface Raw {
10
+ plaidVerificationStatus: serializers.api.thera.bank.PlaidVerificationStatus.Raw;
11
+ }
12
+ }
@@ -35,8 +35,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
35
35
  });
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.BankAccountResponseMetadata = void 0;
38
+ exports.GetBankAccountDetailsResponse = void 0;
39
39
  const core = __importStar(require("../../../../../../../../../../core"));
40
- exports.BankAccountResponseMetadata = core.serialization.object({
41
- plaidVerificationStatus: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.company.PlaidVerificationStatus; })),
40
+ exports.GetBankAccountDetailsResponse = core.serialization.object({
41
+ plaidVerificationStatus: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.bank.PlaidVerificationStatus; })),
42
42
  });
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../../../../../../../../..";
5
5
  import * as TheraApi from "../../../../../../../../../../api";
6
6
  import * as core from "../../../../../../../../../../core";
7
- export declare const PlaidVerificationStatus: core.serialization.Schema<serializers.api.thera.company.PlaidVerificationStatus.Raw, TheraApi.api.thera.company.PlaidVerificationStatus>;
7
+ export declare const PlaidVerificationStatus: core.serialization.Schema<serializers.api.thera.bank.PlaidVerificationStatus.Raw, TheraApi.api.thera.bank.PlaidVerificationStatus>;
8
8
  export declare namespace PlaidVerificationStatus {
9
9
  type Raw = "pending_automatic_verification" | "pending_manual_verification" | "automatically_verified" | "manually_verified" | "others";
10
10
  }
@@ -26,5 +26,7 @@ export * from "./WorkerTransaction";
26
26
  export * from "./WorkerTransactionDetails";
27
27
  export * from "./WorkerWithdrawalTransaction";
28
28
  export * from "./WorkerInvoicePaymentTransaction";
29
+ export * from "./GetBankAccountDetailsResponse";
30
+ export * from "./PlaidVerificationStatus";
29
31
  export * from "./SetAutoWithdrawalResponse";
30
32
  export * from "./WorkerTransactionStatus";
@@ -42,5 +42,7 @@ __exportStar(require("./WorkerTransaction"), exports);
42
42
  __exportStar(require("./WorkerTransactionDetails"), exports);
43
43
  __exportStar(require("./WorkerWithdrawalTransaction"), exports);
44
44
  __exportStar(require("./WorkerInvoicePaymentTransaction"), exports);
45
+ __exportStar(require("./GetBankAccountDetailsResponse"), exports);
46
+ __exportStar(require("./PlaidVerificationStatus"), exports);
45
47
  __exportStar(require("./SetAutoWithdrawalResponse"), exports);
46
48
  __exportStar(require("./WorkerTransactionStatus"), exports);
@@ -25,6 +25,5 @@ export declare namespace CompanyApiResponse {
25
25
  flags: serializers.api.thera.company.Flags.Raw;
26
26
  isZealBankAccountVerified: boolean;
27
27
  settings: serializers.api.thera.company.CompanySettings.Raw;
28
- bankAccount?: serializers.api.thera.company.BankAccountResponseMetadata.Raw | null;
29
28
  }
30
29
  }
@@ -56,7 +56,4 @@ exports.CompanyApiResponse = core.serialization.object({
56
56
  flags: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.company.Flags; })),
57
57
  isZealBankAccountVerified: core.serialization.boolean(),
58
58
  settings: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.company.CompanySettings; })),
59
- bankAccount: core.serialization
60
- .lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.company.BankAccountResponseMetadata; }))
61
- .optional(),
62
59
  });
@@ -21,8 +21,6 @@ export * from "./OrgRoleAndDetails";
21
21
  export * from "./OrgAdmin";
22
22
  export * from "./CreateCompanyRequest";
23
23
  export * from "./CompanyApiResponse";
24
- export * from "./BankAccountResponseMetadata";
25
- export * from "./PlaidVerificationStatus";
26
24
  export * from "./CompanySettings";
27
25
  export * from "./SubscriptionPricing";
28
26
  export * from "./Flags";
@@ -37,8 +37,6 @@ __exportStar(require("./OrgRoleAndDetails"), exports);
37
37
  __exportStar(require("./OrgAdmin"), exports);
38
38
  __exportStar(require("./CreateCompanyRequest"), exports);
39
39
  __exportStar(require("./CompanyApiResponse"), exports);
40
- __exportStar(require("./BankAccountResponseMetadata"), exports);
41
- __exportStar(require("./PlaidVerificationStatus"), exports);
42
40
  __exportStar(require("./CompanySettings"), exports);
43
41
  __exportStar(require("./SubscriptionPricing"), exports);
44
42
  __exportStar(require("./Flags"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "0.0.3925",
3
+ "version": "0.0.3943",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",