@thera-hr/api-sdk 0.0.1-prerelease2691-dev → 0.0.1-prerelease2693-dev

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 (89) 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/services/resources/file/client/Client.js +5 -5
  4. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  5. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +32 -32
  6. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +50 -8
  7. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +71 -29
  8. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +8 -0
  9. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +5 -0
  10. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +6 -0
  11. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +5 -0
  12. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +8 -0
  13. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +5 -0
  14. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +17 -1
  15. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +17 -3
  16. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +3 -0
  17. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +3 -0
  18. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  19. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  20. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  21. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  22. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  23. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  24. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  25. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  26. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  27. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  28. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  29. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  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 +10 -10
  32. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  33. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  34. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  35. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  36. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  37. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +32 -32
  38. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +50 -8
  39. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +71 -29
  40. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +8 -0
  41. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +5 -0
  42. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +6 -0
  43. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +5 -0
  44. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +8 -0
  45. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +5 -0
  46. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +17 -1
  47. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +17 -3
  48. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +3 -0
  49. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +3 -0
  50. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  51. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  52. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  53. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  54. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  55. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  56. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  57. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  58. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  59. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  60. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  61. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  62. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  63. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  64. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  65. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +14 -0
  66. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +35 -0
  67. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +12 -0
  68. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +33 -0
  69. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +14 -0
  70. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +35 -0
  71. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +20 -1
  72. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +20 -1
  73. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +20 -3
  74. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +20 -3
  75. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +3 -0
  76. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +3 -0
  77. package/package.json +1 -1
  78. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +14 -0
  79. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +35 -0
  80. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +12 -0
  81. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +33 -0
  82. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +14 -0
  83. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +35 -0
  84. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +20 -1
  85. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +20 -1
  86. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +20 -3
  87. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +20 -3
  88. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +3 -0
  89. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +3 -0
@@ -64,7 +64,7 @@ class BridgeApi {
64
64
  Authorization: yield this._getAuthorizationHeader(),
65
65
  "X-Fern-Language": "JavaScript",
66
66
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
67
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
67
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
68
68
  "X-Fern-Runtime": core.RUNTIME.type,
69
69
  "X-Fern-Runtime-Version": core.RUNTIME.version,
70
70
  },
@@ -138,7 +138,7 @@ class BridgeApi {
138
138
  Authorization: yield this._getAuthorizationHeader(),
139
139
  "X-Fern-Language": "JavaScript",
140
140
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
141
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
141
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
142
142
  "X-Fern-Runtime": core.RUNTIME.type,
143
143
  "X-Fern-Runtime-Version": core.RUNTIME.version,
144
144
  },
@@ -188,12 +188,52 @@ class BridgeApi {
188
188
  * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
189
189
  *
190
190
  * @example
191
- * await client.api.thera.bridge.bridgeApi.linkExternalAccount("string", {
192
- * address: "string",
193
- * currency: "string"
191
+ * await client.api.thera.bridge.bridgeApi.createExternalAccount("string", {
192
+ * currency: "string",
193
+ * bankName: "string",
194
+ * accountOwnerName: "string",
195
+ * accountNumber: "string",
196
+ * routingNumber: "string",
197
+ * accountType: "string",
198
+ * iban: {
199
+ * ibanNumber: "string"
200
+ * },
201
+ * swift: {
202
+ * account: "string",
203
+ * address: {
204
+ * streetLine1: "string",
205
+ * streetLine2: "string",
206
+ * city: "string",
207
+ * state: "string",
208
+ * postalCode: "string",
209
+ * country: "string"
210
+ * }
211
+ * },
212
+ * account: {
213
+ * accountNumber: "string",
214
+ * routingNumber: "string",
215
+ * checkingOrSavings: {
216
+ * "key": "value"
217
+ * }
218
+ * },
219
+ * address: {
220
+ * streetLine1: "string",
221
+ * streetLine2: "string",
222
+ * city: "string",
223
+ * state: "string",
224
+ * postalCode: "string",
225
+ * country: "string"
226
+ * },
227
+ * category: "string",
228
+ * purposeOfFunds: ["string"],
229
+ * shortBusinessDescription: "string",
230
+ * accountOwnerType: "string",
231
+ * firstName: "string",
232
+ * lastName: "string",
233
+ * businessName: "string"
194
234
  * })
195
235
  */
196
- linkExternalAccount(customerId, request, requestOptions) {
236
+ createExternalAccount(customerId, request, requestOptions) {
197
237
  return __awaiter(this, void 0, void 0, function* () {
198
238
  const _response = yield core.fetcher({
199
239
  url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `external-accounts/${encodeURIComponent(customerId)}/accounts`),
@@ -202,7 +242,7 @@ class BridgeApi {
202
242
  Authorization: yield this._getAuthorizationHeader(),
203
243
  "X-Fern-Language": "JavaScript",
204
244
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
205
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
245
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
206
246
  "X-Fern-Runtime": core.RUNTIME.type,
207
247
  "X-Fern-Runtime-Version": core.RUNTIME.version,
208
248
  },
@@ -262,7 +302,7 @@ class BridgeApi {
262
302
  Authorization: yield this._getAuthorizationHeader(),
263
303
  "X-Fern-Language": "JavaScript",
264
304
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
265
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
305
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
266
306
  "X-Fern-Runtime": core.RUNTIME.type,
267
307
  "X-Fern-Runtime-Version": core.RUNTIME.version,
268
308
  },
@@ -318,7 +358,7 @@ class BridgeApi {
318
358
  Authorization: yield this._getAuthorizationHeader(),
319
359
  "X-Fern-Language": "JavaScript",
320
360
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
321
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
361
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
322
362
  "X-Fern-Runtime": core.RUNTIME.type,
323
363
  "X-Fern-Runtime-Version": core.RUNTIME.version,
324
364
  },
@@ -381,7 +421,7 @@ class BridgeApi {
381
421
  Authorization: yield this._getAuthorizationHeader(),
382
422
  "X-Fern-Language": "JavaScript",
383
423
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
384
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
424
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
385
425
  "X-Fern-Runtime": core.RUNTIME.type,
386
426
  "X-Fern-Runtime-Version": core.RUNTIME.version,
387
427
  },
@@ -441,7 +481,7 @@ class BridgeApi {
441
481
  Authorization: yield this._getAuthorizationHeader(),
442
482
  "X-Fern-Language": "JavaScript",
443
483
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
444
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
484
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
445
485
  "X-Fern-Runtime": core.RUNTIME.type,
446
486
  "X-Fern-Runtime-Version": core.RUNTIME.version,
447
487
  },
@@ -501,7 +541,7 @@ class BridgeApi {
501
541
  Authorization: yield this._getAuthorizationHeader(),
502
542
  "X-Fern-Language": "JavaScript",
503
543
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
504
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
544
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
505
545
  "X-Fern-Runtime": core.RUNTIME.type,
506
546
  "X-Fern-Runtime-Version": core.RUNTIME.version,
507
547
  },
@@ -561,7 +601,7 @@ class BridgeApi {
561
601
  Authorization: yield this._getAuthorizationHeader(),
562
602
  "X-Fern-Language": "JavaScript",
563
603
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
564
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
604
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
565
605
  "X-Fern-Runtime": core.RUNTIME.type,
566
606
  "X-Fern-Runtime-Version": core.RUNTIME.version,
567
607
  },
@@ -618,7 +658,7 @@ class BridgeApi {
618
658
  Authorization: yield this._getAuthorizationHeader(),
619
659
  "X-Fern-Language": "JavaScript",
620
660
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
621
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
661
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
622
662
  "X-Fern-Runtime": core.RUNTIME.type,
623
663
  "X-Fern-Runtime-Version": core.RUNTIME.version,
624
664
  },
@@ -680,7 +720,7 @@ class BridgeApi {
680
720
  Authorization: yield this._getAuthorizationHeader(),
681
721
  "X-Fern-Language": "JavaScript",
682
722
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
683
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
723
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
684
724
  "X-Fern-Runtime": core.RUNTIME.type,
685
725
  "X-Fern-Runtime-Version": core.RUNTIME.version,
686
726
  },
@@ -740,7 +780,7 @@ class BridgeApi {
740
780
  Authorization: yield this._getAuthorizationHeader(),
741
781
  "X-Fern-Language": "JavaScript",
742
782
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
743
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
783
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
744
784
  "X-Fern-Runtime": core.RUNTIME.type,
745
785
  "X-Fern-Runtime-Version": core.RUNTIME.version,
746
786
  },
@@ -782,21 +822,22 @@ class BridgeApi {
782
822
  /**
783
823
  * Retrieve a list of all external accounts linked to customers.
784
824
  *
825
+ * @param {string} customerId
785
826
  * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
786
827
  *
787
828
  * @example
788
- * await client.api.thera.bridge.bridgeApi.listExternalAccounts()
829
+ * await client.api.thera.bridge.bridgeApi.listExternalAccounts("string")
789
830
  */
790
- listExternalAccounts(requestOptions) {
831
+ listExternalAccounts(customerId, requestOptions) {
791
832
  return __awaiter(this, void 0, void 0, function* () {
792
833
  const _response = yield core.fetcher({
793
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "external-accounts"),
834
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `${encodeURIComponent(customerId)}/external-accounts`),
794
835
  method: "GET",
795
836
  headers: {
796
837
  Authorization: yield this._getAuthorizationHeader(),
797
838
  "X-Fern-Language": "JavaScript",
798
839
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
799
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
840
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
800
841
  "X-Fern-Runtime": core.RUNTIME.type,
801
842
  "X-Fern-Runtime-Version": core.RUNTIME.version,
802
843
  },
@@ -857,7 +898,7 @@ class BridgeApi {
857
898
  Authorization: yield this._getAuthorizationHeader(),
858
899
  "X-Fern-Language": "JavaScript",
859
900
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
860
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
901
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
861
902
  "X-Fern-Runtime": core.RUNTIME.type,
862
903
  "X-Fern-Runtime-Version": core.RUNTIME.version,
863
904
  },
@@ -917,7 +958,7 @@ class BridgeApi {
917
958
  Authorization: yield this._getAuthorizationHeader(),
918
959
  "X-Fern-Language": "JavaScript",
919
960
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
920
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
961
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
921
962
  "X-Fern-Runtime": core.RUNTIME.type,
922
963
  "X-Fern-Runtime-Version": core.RUNTIME.version,
923
964
  },
@@ -968,7 +1009,7 @@ class BridgeApi {
968
1009
  Authorization: yield this._getAuthorizationHeader(),
969
1010
  "X-Fern-Language": "JavaScript",
970
1011
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
971
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
1012
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
972
1013
  "X-Fern-Runtime": core.RUNTIME.type,
973
1014
  "X-Fern-Runtime-Version": core.RUNTIME.version,
974
1015
  },
@@ -1043,7 +1084,7 @@ class BridgeApi {
1043
1084
  Authorization: yield this._getAuthorizationHeader(),
1044
1085
  "X-Fern-Language": "JavaScript",
1045
1086
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1046
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
1087
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
1047
1088
  "X-Fern-Runtime": core.RUNTIME.type,
1048
1089
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1049
1090
  },
@@ -1101,7 +1142,7 @@ class BridgeApi {
1101
1142
  Authorization: yield this._getAuthorizationHeader(),
1102
1143
  "X-Fern-Language": "JavaScript",
1103
1144
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1104
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
1145
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
1105
1146
  "X-Fern-Runtime": core.RUNTIME.type,
1106
1147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1107
1148
  },
@@ -1143,21 +1184,22 @@ class BridgeApi {
1143
1184
  /**
1144
1185
  * Retrieves all transfers.
1145
1186
  *
1187
+ * @param {string} customerId
1146
1188
  * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
1147
1189
  *
1148
1190
  * @example
1149
- * await client.api.thera.bridge.bridgeApi.listTransfers()
1191
+ * await client.api.thera.bridge.bridgeApi.listTransfers("string")
1150
1192
  */
1151
- listTransfers(requestOptions) {
1193
+ listTransfers(customerId, requestOptions) {
1152
1194
  return __awaiter(this, void 0, void 0, function* () {
1153
1195
  const _response = yield core.fetcher({
1154
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "transfers"),
1196
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `${encodeURIComponent(customerId)}/transfers`),
1155
1197
  method: "GET",
1156
1198
  headers: {
1157
1199
  Authorization: yield this._getAuthorizationHeader(),
1158
1200
  "X-Fern-Language": "JavaScript",
1159
1201
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1160
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
1202
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
1161
1203
  "X-Fern-Runtime": core.RUNTIME.type,
1162
1204
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1163
1205
  },
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BridgeAccountDetails {
5
+ accountNumber: string;
6
+ routingNumber: string;
7
+ checkingOrSavings?: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BridgeIbanBankAccount {
5
+ ibanNumber: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../index";
5
+ export interface BridgeSwiftBankAccount {
6
+ account: string;
7
+ address: TheraApi.api.thera.bridge.Address;
8
+ }
@@ -0,0 +1,5 @@
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,7 +1,23 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as TheraApi from "../../../../../../../../../index";
4
5
  export interface ExternalAccount {
5
- address: string;
6
6
  currency: string;
7
+ bankName: string;
8
+ accountOwnerName: string;
9
+ accountNumber: string;
10
+ routingNumber: string;
11
+ accountType: string;
12
+ iban?: TheraApi.api.thera.bridge.BridgeIbanBankAccount;
13
+ swift?: TheraApi.api.thera.bridge.BridgeSwiftBankAccount;
14
+ account?: TheraApi.api.thera.bridge.BridgeAccountDetails;
15
+ address: TheraApi.api.thera.bridge.Address;
16
+ category: string;
17
+ purposeOfFunds: string[];
18
+ shortBusinessDescription: string;
19
+ accountOwnerType: string;
20
+ firstName?: string;
21
+ lastName?: string;
22
+ businessName?: string;
7
23
  }
@@ -1,9 +1,23 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as TheraApi from "../../../../../../../../../index";
4
5
  export interface ExternalAccountDetails {
5
- accountId: string;
6
- customerId: string;
6
+ currency: string;
7
+ bankName: string;
8
+ accountOwnerName: string;
9
+ accountNumber: string;
10
+ routingNumber: string;
7
11
  accountType: string;
8
- status: string;
12
+ iban?: TheraApi.api.thera.bridge.BridgeIbanBankAccount;
13
+ swift?: TheraApi.api.thera.bridge.BridgeSwiftBankAccount;
14
+ account?: TheraApi.api.thera.bridge.BridgeAccountDetails;
15
+ address: TheraApi.api.thera.bridge.Address;
16
+ category: string;
17
+ purposeOfFunds: string[];
18
+ shortBusinessDescription: string;
19
+ accountOwnerType: string;
20
+ firstName?: string;
21
+ lastName?: string;
22
+ businessName?: string;
9
23
  }
@@ -17,3 +17,6 @@ export * from "./Transfer";
17
17
  export * from "./TransferSource";
18
18
  export * from "./TransferDestination";
19
19
  export * from "./TransferDetails";
20
+ export * from "./BridgeIbanBankAccount";
21
+ export * from "./BridgeSwiftBankAccount";
22
+ export * from "./BridgeAccountDetails";
@@ -33,3 +33,6 @@ __exportStar(require("./Transfer"), exports);
33
33
  __exportStar(require("./TransferSource"), exports);
34
34
  __exportStar(require("./TransferDestination"), exports);
35
35
  __exportStar(require("./TransferDetails"), exports);
36
+ __exportStar(require("./BridgeIbanBankAccount"), exports);
37
+ __exportStar(require("./BridgeSwiftBankAccount"), exports);
38
+ __exportStar(require("./BridgeAccountDetails"), exports);
@@ -68,7 +68,7 @@ class CompanyApi {
68
68
  Authorization: yield this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
71
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
71
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
72
72
  "X-Fern-Runtime": core.RUNTIME.type,
73
73
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
74
  },
@@ -132,7 +132,7 @@ class CompanyApi {
132
132
  Authorization: yield this._getAuthorizationHeader(),
133
133
  "X-Fern-Language": "JavaScript",
134
134
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
135
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
135
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
136
136
  "X-Fern-Runtime": core.RUNTIME.type,
137
137
  "X-Fern-Runtime-Version": core.RUNTIME.version,
138
138
  },
@@ -258,7 +258,7 @@ class CompanyApi {
258
258
  Authorization: yield this._getAuthorizationHeader(),
259
259
  "X-Fern-Language": "JavaScript",
260
260
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
261
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
261
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
262
262
  "X-Fern-Runtime": core.RUNTIME.type,
263
263
  "X-Fern-Runtime-Version": core.RUNTIME.version,
264
264
  },
@@ -332,7 +332,7 @@ class CompanyApi {
332
332
  Authorization: yield this._getAuthorizationHeader(),
333
333
  "X-Fern-Language": "JavaScript",
334
334
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
335
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
335
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
336
336
  "X-Fern-Runtime": core.RUNTIME.type,
337
337
  "X-Fern-Runtime-Version": core.RUNTIME.version,
338
338
  },
@@ -404,7 +404,7 @@ class CompanyApi {
404
404
  Authorization: yield this._getAuthorizationHeader(),
405
405
  "X-Fern-Language": "JavaScript",
406
406
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
407
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
407
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
408
408
  "X-Fern-Runtime": core.RUNTIME.type,
409
409
  "X-Fern-Runtime-Version": core.RUNTIME.version,
410
410
  },
@@ -479,7 +479,7 @@ class CompanyApi {
479
479
  Authorization: yield this._getAuthorizationHeader(),
480
480
  "X-Fern-Language": "JavaScript",
481
481
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
482
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
482
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
483
483
  "X-Fern-Runtime": core.RUNTIME.type,
484
484
  "X-Fern-Runtime-Version": core.RUNTIME.version,
485
485
  },
@@ -540,7 +540,7 @@ class CompanyApi {
540
540
  Authorization: yield this._getAuthorizationHeader(),
541
541
  "X-Fern-Language": "JavaScript",
542
542
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
543
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
543
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
544
544
  "X-Fern-Runtime": core.RUNTIME.type,
545
545
  "X-Fern-Runtime-Version": core.RUNTIME.version,
546
546
  },
@@ -602,7 +602,7 @@ class CompanyApi {
602
602
  Authorization: yield this._getAuthorizationHeader(),
603
603
  "X-Fern-Language": "JavaScript",
604
604
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
605
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
605
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
606
606
  "X-Fern-Runtime": core.RUNTIME.type,
607
607
  "X-Fern-Runtime-Version": core.RUNTIME.version,
608
608
  },
@@ -662,7 +662,7 @@ class CompanyApi {
662
662
  Authorization: yield this._getAuthorizationHeader(),
663
663
  "X-Fern-Language": "JavaScript",
664
664
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
665
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
665
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
666
666
  "X-Fern-Runtime": core.RUNTIME.type,
667
667
  "X-Fern-Runtime-Version": core.RUNTIME.version,
668
668
  },
@@ -719,7 +719,7 @@ class CompanyApi {
719
719
  Authorization: yield this._getAuthorizationHeader(),
720
720
  "X-Fern-Language": "JavaScript",
721
721
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
722
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
722
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
723
723
  "X-Fern-Runtime": core.RUNTIME.type,
724
724
  "X-Fern-Runtime-Version": core.RUNTIME.version,
725
725
  },
@@ -788,7 +788,7 @@ class CompanyApi {
788
788
  Authorization: yield this._getAuthorizationHeader(),
789
789
  "X-Fern-Language": "JavaScript",
790
790
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
791
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
791
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
792
792
  "X-Fern-Runtime": core.RUNTIME.type,
793
793
  "X-Fern-Runtime-Version": core.RUNTIME.version,
794
794
  },
@@ -849,7 +849,7 @@ class CompanyApi {
849
849
  Authorization: yield this._getAuthorizationHeader(),
850
850
  "X-Fern-Language": "JavaScript",
851
851
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
852
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
852
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
853
853
  "X-Fern-Runtime": core.RUNTIME.type,
854
854
  "X-Fern-Runtime-Version": core.RUNTIME.version,
855
855
  },
@@ -910,7 +910,7 @@ class CompanyApi {
910
910
  Authorization: yield this._getAuthorizationHeader(),
911
911
  "X-Fern-Language": "JavaScript",
912
912
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
913
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
913
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
914
914
  "X-Fern-Runtime": core.RUNTIME.type,
915
915
  "X-Fern-Runtime-Version": core.RUNTIME.version,
916
916
  },
@@ -970,7 +970,7 @@ class CompanyApi {
970
970
  Authorization: yield this._getAuthorizationHeader(),
971
971
  "X-Fern-Language": "JavaScript",
972
972
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
973
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
973
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
974
974
  "X-Fern-Runtime": core.RUNTIME.type,
975
975
  "X-Fern-Runtime-Version": core.RUNTIME.version,
976
976
  },
@@ -1032,7 +1032,7 @@ class CompanyApi {
1032
1032
  Authorization: yield this._getAuthorizationHeader(),
1033
1033
  "X-Fern-Language": "JavaScript",
1034
1034
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1035
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
1035
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
1036
1036
  "X-Fern-Runtime": core.RUNTIME.type,
1037
1037
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1038
1038
  },
@@ -1096,7 +1096,7 @@ class CompanyApi {
1096
1096
  Authorization: yield this._getAuthorizationHeader(),
1097
1097
  "X-Fern-Language": "JavaScript",
1098
1098
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1099
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
1099
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
1100
1100
  "X-Fern-Runtime": core.RUNTIME.type,
1101
1101
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1102
1102
  },
@@ -1164,7 +1164,7 @@ class CompanyApi {
1164
1164
  Authorization: yield this._getAuthorizationHeader(),
1165
1165
  "X-Fern-Language": "JavaScript",
1166
1166
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1167
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
1167
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
1168
1168
  "X-Fern-Runtime": core.RUNTIME.type,
1169
1169
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1170
1170
  },
@@ -1238,7 +1238,7 @@ class CompanyApi {
1238
1238
  Authorization: yield this._getAuthorizationHeader(),
1239
1239
  "X-Fern-Language": "JavaScript",
1240
1240
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1241
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
1241
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
1242
1242
  "X-Fern-Runtime": core.RUNTIME.type,
1243
1243
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1244
1244
  },
@@ -72,7 +72,7 @@ class CompanyW2PayrollApi {
72
72
  Authorization: yield this._getAuthorizationHeader(),
73
73
  "X-Fern-Language": "JavaScript",
74
74
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
75
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
75
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
76
76
  "X-Fern-Runtime": core.RUNTIME.type,
77
77
  "X-Fern-Runtime-Version": core.RUNTIME.version,
78
78
  },
@@ -136,7 +136,7 @@ class CompanyW2PayrollApi {
136
136
  Authorization: yield this._getAuthorizationHeader(),
137
137
  "X-Fern-Language": "JavaScript",
138
138
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
139
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
139
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
140
140
  "X-Fern-Runtime": core.RUNTIME.type,
141
141
  "X-Fern-Runtime-Version": core.RUNTIME.version,
142
142
  },
@@ -204,7 +204,7 @@ class CompanyW2PayrollApi {
204
204
  Authorization: yield this._getAuthorizationHeader(),
205
205
  "X-Fern-Language": "JavaScript",
206
206
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
207
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
207
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
208
208
  "X-Fern-Runtime": core.RUNTIME.type,
209
209
  "X-Fern-Runtime-Version": core.RUNTIME.version,
210
210
  },
@@ -80,7 +80,7 @@ class ContractorApi {
80
80
  Authorization: yield this._getAuthorizationHeader(),
81
81
  "X-Fern-Language": "JavaScript",
82
82
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
83
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
83
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
84
84
  "X-Fern-Runtime": core.RUNTIME.type,
85
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
86
  },
@@ -141,7 +141,7 @@ class ContractorApi {
141
141
  Authorization: yield this._getAuthorizationHeader(),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
144
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
144
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
145
145
  "X-Fern-Runtime": core.RUNTIME.type,
146
146
  "X-Fern-Runtime-Version": core.RUNTIME.version,
147
147
  },
@@ -240,7 +240,7 @@ class ContractorApi {
240
240
  Authorization: yield this._getAuthorizationHeader(),
241
241
  "X-Fern-Language": "JavaScript",
242
242
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
243
- "X-Fern-SDK-Version": "0.0.1-prerelease2691-dev",
243
+ "X-Fern-SDK-Version": "0.0.1-prerelease2693-dev",
244
244
  "X-Fern-Runtime": core.RUNTIME.type,
245
245
  "X-Fern-Runtime-Version": core.RUNTIME.version,
246
246
  },