@thera-hr/api-sdk 0.0.3674 → 0.0.3679

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 (105) 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.js +17 -17
  4. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +0 -8
  5. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +8 -100
  6. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  7. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -1
  8. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +4 -4
  9. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +3 -3
  10. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -5
  11. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -5
  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/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
  15. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +1 -3
  16. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  17. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  18. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  19. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  20. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  21. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  22. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  23. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +17 -17
  24. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +0 -8
  25. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +8 -100
  26. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  27. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -1
  28. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +4 -4
  29. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +3 -3
  30. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -5
  31. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -5
  32. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  33. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
  34. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
  35. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +1 -3
  36. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  37. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  38. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  39. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  40. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  41. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  42. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +0 -1
  43. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -1
  44. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +4 -1
  45. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +1 -1
  46. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +1 -1
  47. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -5
  48. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -5
  49. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
  50. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js +1 -1
  51. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +1 -3
  52. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.js +1 -3
  53. package/package.json +1 -1
  54. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  55. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +0 -1
  56. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -1
  57. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +4 -1
  58. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +1 -1
  59. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +1 -1
  60. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -5
  61. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -5
  62. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
  63. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js +1 -1
  64. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +1 -3
  65. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.js +1 -3
  66. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +0 -8
  67. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +0 -5
  68. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +0 -7
  69. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +0 -5
  70. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +0 -7
  71. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +0 -5
  72. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +0 -6
  73. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +0 -5
  74. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +0 -9
  75. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +0 -5
  76. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +0 -8
  77. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +0 -5
  78. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +0 -7
  79. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +0 -5
  80. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +0 -7
  81. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +0 -5
  82. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +0 -6
  83. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +0 -5
  84. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +0 -9
  85. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +0 -5
  86. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +0 -13
  87. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +0 -43
  88. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +0 -12
  89. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +0 -42
  90. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +0 -12
  91. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +0 -42
  92. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +0 -12
  93. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +0 -33
  94. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +0 -14
  95. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +0 -44
  96. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +0 -13
  97. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +0 -43
  98. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +0 -12
  99. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +0 -42
  100. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +0 -12
  101. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +0 -42
  102. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +0 -12
  103. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +0 -33
  104. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +0 -14
  105. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +0 -44
@@ -56,7 +56,7 @@ class File_ {
56
56
  Authorization: yield this._getAuthorizationHeader(),
57
57
  "X-Fern-Language": "JavaScript",
58
58
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
59
- "X-Fern-SDK-Version": "0.0.3674",
59
+ "X-Fern-SDK-Version": "0.0.3679",
60
60
  },
61
61
  contentType: "application/json",
62
62
  body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
@@ -97,7 +97,7 @@ class File_ {
97
97
  Authorization: yield this._getAuthorizationHeader(),
98
98
  "X-Fern-Language": "JavaScript",
99
99
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
100
- "X-Fern-SDK-Version": "0.0.3674",
100
+ "X-Fern-SDK-Version": "0.0.3679",
101
101
  },
102
102
  contentType: "application/json",
103
103
  body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
@@ -138,7 +138,7 @@ class File_ {
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.3674",
141
+ "X-Fern-SDK-Version": "0.0.3679",
142
142
  },
143
143
  contentType: "application/json",
144
144
  timeoutMs: 60000,
@@ -181,7 +181,7 @@ class File_ {
181
181
  Authorization: yield this._getAuthorizationHeader(),
182
182
  "X-Fern-Language": "JavaScript",
183
183
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
184
- "X-Fern-SDK-Version": "0.0.3674",
184
+ "X-Fern-SDK-Version": "0.0.3679",
185
185
  },
186
186
  contentType: "application/json",
187
187
  timeoutMs: 60000,
@@ -65,7 +65,7 @@ class BankApi {
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.3674",
68
+ "X-Fern-SDK-Version": "0.0.3679",
69
69
  },
70
70
  contentType: "application/json",
71
71
  queryParameters: _queryParams,
@@ -112,7 +112,7 @@ class BankApi {
112
112
  Authorization: yield this._getAuthorizationHeader(),
113
113
  "X-Fern-Language": "JavaScript",
114
114
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
115
- "X-Fern-SDK-Version": "0.0.3674",
115
+ "X-Fern-SDK-Version": "0.0.3679",
116
116
  },
117
117
  contentType: "application/json",
118
118
  body: yield serializers.api.thera.bank.CompleteAccountSignupRequest.jsonOrThrow(request, {
@@ -161,7 +161,7 @@ class BankApi {
161
161
  Authorization: yield this._getAuthorizationHeader(),
162
162
  "X-Fern-Language": "JavaScript",
163
163
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
164
- "X-Fern-SDK-Version": "0.0.3674",
164
+ "X-Fern-SDK-Version": "0.0.3679",
165
165
  },
166
166
  contentType: "application/json",
167
167
  queryParameters: _queryParams,
@@ -208,7 +208,7 @@ class BankApi {
208
208
  Authorization: yield this._getAuthorizationHeader(),
209
209
  "X-Fern-Language": "JavaScript",
210
210
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
211
- "X-Fern-SDK-Version": "0.0.3674",
211
+ "X-Fern-SDK-Version": "0.0.3679",
212
212
  },
213
213
  contentType: "application/json",
214
214
  timeoutMs: 60000,
@@ -249,7 +249,7 @@ class BankApi {
249
249
  Authorization: yield this._getAuthorizationHeader(),
250
250
  "X-Fern-Language": "JavaScript",
251
251
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
252
- "X-Fern-SDK-Version": "0.0.3674",
252
+ "X-Fern-SDK-Version": "0.0.3679",
253
253
  },
254
254
  contentType: "application/json",
255
255
  body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
@@ -296,7 +296,7 @@ class BankApi {
296
296
  Authorization: yield this._getAuthorizationHeader(),
297
297
  "X-Fern-Language": "JavaScript",
298
298
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
299
- "X-Fern-SDK-Version": "0.0.3674",
299
+ "X-Fern-SDK-Version": "0.0.3679",
300
300
  },
301
301
  contentType: "application/json",
302
302
  queryParameters: _queryParams,
@@ -346,7 +346,7 @@ class BankApi {
346
346
  Authorization: yield this._getAuthorizationHeader(),
347
347
  "X-Fern-Language": "JavaScript",
348
348
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
349
- "X-Fern-SDK-Version": "0.0.3674",
349
+ "X-Fern-SDK-Version": "0.0.3679",
350
350
  },
351
351
  contentType: "application/json",
352
352
  queryParameters: _queryParams,
@@ -393,7 +393,7 @@ class BankApi {
393
393
  Authorization: yield this._getAuthorizationHeader(),
394
394
  "X-Fern-Language": "JavaScript",
395
395
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
396
- "X-Fern-SDK-Version": "0.0.3674",
396
+ "X-Fern-SDK-Version": "0.0.3679",
397
397
  },
398
398
  contentType: "application/json",
399
399
  body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
@@ -442,7 +442,7 @@ class BankApi {
442
442
  Authorization: yield this._getAuthorizationHeader(),
443
443
  "X-Fern-Language": "JavaScript",
444
444
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
445
- "X-Fern-SDK-Version": "0.0.3674",
445
+ "X-Fern-SDK-Version": "0.0.3679",
446
446
  },
447
447
  contentType: "application/json",
448
448
  body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
@@ -488,7 +488,7 @@ class BankApi {
488
488
  Authorization: yield this._getAuthorizationHeader(),
489
489
  "X-Fern-Language": "JavaScript",
490
490
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
491
- "X-Fern-SDK-Version": "0.0.3674",
491
+ "X-Fern-SDK-Version": "0.0.3679",
492
492
  },
493
493
  contentType: "application/json",
494
494
  timeoutMs: 60000,
@@ -531,7 +531,7 @@ class BankApi {
531
531
  Authorization: yield this._getAuthorizationHeader(),
532
532
  "X-Fern-Language": "JavaScript",
533
533
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
534
- "X-Fern-SDK-Version": "0.0.3674",
534
+ "X-Fern-SDK-Version": "0.0.3679",
535
535
  },
536
536
  contentType: "application/json",
537
537
  body: yield serializers.api.thera.bank.EditWithdrawalMethodRequest.jsonOrThrow(request, {
@@ -577,7 +577,7 @@ class BankApi {
577
577
  Authorization: yield this._getAuthorizationHeader(),
578
578
  "X-Fern-Language": "JavaScript",
579
579
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
580
- "X-Fern-SDK-Version": "0.0.3674",
580
+ "X-Fern-SDK-Version": "0.0.3679",
581
581
  },
582
582
  contentType: "application/json",
583
583
  body: yield serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
@@ -623,7 +623,7 @@ class BankApi {
623
623
  Authorization: yield this._getAuthorizationHeader(),
624
624
  "X-Fern-Language": "JavaScript",
625
625
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
626
- "X-Fern-SDK-Version": "0.0.3674",
626
+ "X-Fern-SDK-Version": "0.0.3679",
627
627
  },
628
628
  contentType: "application/json",
629
629
  timeoutMs: 60000,
@@ -666,7 +666,7 @@ class BankApi {
666
666
  Authorization: yield this._getAuthorizationHeader(),
667
667
  "X-Fern-Language": "JavaScript",
668
668
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
669
- "X-Fern-SDK-Version": "0.0.3674",
669
+ "X-Fern-SDK-Version": "0.0.3679",
670
670
  },
671
671
  contentType: "application/json",
672
672
  timeoutMs: 60000,
@@ -714,7 +714,7 @@ class BankApi {
714
714
  Authorization: yield this._getAuthorizationHeader(),
715
715
  "X-Fern-Language": "JavaScript",
716
716
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
717
- "X-Fern-SDK-Version": "0.0.3674",
717
+ "X-Fern-SDK-Version": "0.0.3679",
718
718
  },
719
719
  contentType: "application/json",
720
720
  queryParameters: _queryParams,
@@ -758,7 +758,7 @@ class BankApi {
758
758
  Authorization: yield this._getAuthorizationHeader(),
759
759
  "X-Fern-Language": "JavaScript",
760
760
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
761
- "X-Fern-SDK-Version": "0.0.3674",
761
+ "X-Fern-SDK-Version": "0.0.3679",
762
762
  },
763
763
  contentType: "application/json",
764
764
  body: yield serializers.api.thera.bank.SetAutoWithdrawalRequest.jsonOrThrow(request, {
@@ -804,7 +804,7 @@ class BankApi {
804
804
  Authorization: yield this._getAuthorizationHeader(),
805
805
  "X-Fern-Language": "JavaScript",
806
806
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
807
- "X-Fern-SDK-Version": "0.0.3674",
807
+ "X-Fern-SDK-Version": "0.0.3679",
808
808
  },
809
809
  contentType: "application/json",
810
810
  timeoutMs: 60000,
@@ -36,10 +36,6 @@ export declare class CompanyApi {
36
36
  * < Add org admins, with ultimate admin permissions across the platform. These users must already be managers of the org.
37
37
  */
38
38
  changeContractTeam(companyId: string, contractId: string, request: TheraApi.api.thera.company.ChangeContractTeamRequest): Promise<TheraApi.api.thera.company.ChangeContractTeamResponse>;
39
- /**
40
- * Get all of the teams and their contracts for a company
41
- */
42
- getTeams(companyId: string): Promise<TheraApi.api.thera.company.GetTeamsResponse>;
43
39
  /**
44
40
  * Get all of the managers for a company
45
41
  */
@@ -48,9 +44,5 @@ export declare class CompanyApi {
48
44
  * Create a team within a company. At least one Team Admin must be added.
49
45
  */
50
46
  createTeam(companyId: string, request: TheraApi.api.thera.company.CreateTeamRequest): Promise<TheraApi.api.thera.company.CreateTeamResponse>;
51
- /**
52
- * Gets all team and org permissions across all orgs for a given user
53
- */
54
- getAllCompanyPermissionsForUser(userId: string): Promise<TheraApi.api.thera.company.GetAllCompanyPermissionsForUserResponse>;
55
47
  protected _getAuthorizationHeader(): Promise<string | undefined>;
56
48
  }
@@ -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.3674",
68
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
118
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
167
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
216
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
265
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
311
+ "X-Fern-SDK-Version": "0.0.3679",
312
312
  },
313
313
  contentType: "application/json",
314
314
  body: yield serializers.api.thera.company.ChangeContractTeamRequest.jsonOrThrow(request, {
@@ -345,52 +345,6 @@ class CompanyApi {
345
345
  }
346
346
  });
347
347
  }
348
- /**
349
- * Get all of the teams and their contracts for a company
350
- */
351
- getTeams(companyId) {
352
- return __awaiter(this, void 0, void 0, function* () {
353
- const _response = yield core.fetcher({
354
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/teams`),
355
- method: "GET",
356
- headers: {
357
- Authorization: yield this._getAuthorizationHeader(),
358
- "X-Fern-Language": "JavaScript",
359
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
360
- "X-Fern-SDK-Version": "0.0.3674",
361
- },
362
- contentType: "application/json",
363
- timeoutMs: 60000,
364
- });
365
- if (_response.ok) {
366
- return yield serializers.api.thera.company.GetTeamsResponse.parseOrThrow(_response.body, {
367
- unrecognizedObjectKeys: "passthrough",
368
- allowUnrecognizedUnionMembers: true,
369
- allowUnrecognizedEnumValues: true,
370
- breadcrumbsPrefix: ["response"],
371
- });
372
- }
373
- if (_response.error.reason === "status-code") {
374
- throw new errors.TheraApiError({
375
- statusCode: _response.error.statusCode,
376
- body: _response.error.body,
377
- });
378
- }
379
- switch (_response.error.reason) {
380
- case "non-json":
381
- throw new errors.TheraApiError({
382
- statusCode: _response.error.statusCode,
383
- body: _response.error.rawBody,
384
- });
385
- case "timeout":
386
- throw new errors.TheraApiTimeoutError();
387
- case "unknown":
388
- throw new errors.TheraApiError({
389
- message: _response.error.errorMessage,
390
- });
391
- }
392
- });
393
- }
394
348
  /**
395
349
  * Get all of the managers for a company
396
350
  */
@@ -403,7 +357,7 @@ class CompanyApi {
403
357
  Authorization: yield this._getAuthorizationHeader(),
404
358
  "X-Fern-Language": "JavaScript",
405
359
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
406
- "X-Fern-SDK-Version": "0.0.3674",
360
+ "X-Fern-SDK-Version": "0.0.3679",
407
361
  },
408
362
  contentType: "application/json",
409
363
  timeoutMs: 60000,
@@ -449,7 +403,7 @@ class CompanyApi {
449
403
  Authorization: yield this._getAuthorizationHeader(),
450
404
  "X-Fern-Language": "JavaScript",
451
405
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
452
- "X-Fern-SDK-Version": "0.0.3674",
406
+ "X-Fern-SDK-Version": "0.0.3679",
453
407
  },
454
408
  contentType: "application/json",
455
409
  body: yield serializers.api.thera.company.CreateTeamRequest.jsonOrThrow(request, {
@@ -486,52 +440,6 @@ class CompanyApi {
486
440
  }
487
441
  });
488
442
  }
489
- /**
490
- * Gets all team and org permissions across all orgs for a given user
491
- */
492
- getAllCompanyPermissionsForUser(userId) {
493
- return __awaiter(this, void 0, void 0, function* () {
494
- const _response = yield core.fetcher({
495
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `users/${userId}/company-permissions`),
496
- method: "POST",
497
- headers: {
498
- Authorization: yield this._getAuthorizationHeader(),
499
- "X-Fern-Language": "JavaScript",
500
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
501
- "X-Fern-SDK-Version": "0.0.3674",
502
- },
503
- contentType: "application/json",
504
- timeoutMs: 60000,
505
- });
506
- if (_response.ok) {
507
- return yield serializers.api.thera.company.GetAllCompanyPermissionsForUserResponse.parseOrThrow(_response.body, {
508
- unrecognizedObjectKeys: "passthrough",
509
- allowUnrecognizedUnionMembers: true,
510
- allowUnrecognizedEnumValues: true,
511
- breadcrumbsPrefix: ["response"],
512
- });
513
- }
514
- if (_response.error.reason === "status-code") {
515
- throw new errors.TheraApiError({
516
- statusCode: _response.error.statusCode,
517
- body: _response.error.body,
518
- });
519
- }
520
- switch (_response.error.reason) {
521
- case "non-json":
522
- throw new errors.TheraApiError({
523
- statusCode: _response.error.statusCode,
524
- body: _response.error.rawBody,
525
- });
526
- case "timeout":
527
- throw new errors.TheraApiTimeoutError();
528
- case "unknown":
529
- throw new errors.TheraApiError({
530
- message: _response.error.errorMessage,
531
- });
532
- }
533
- });
534
- }
535
443
  _getAuthorizationHeader() {
536
444
  return __awaiter(this, void 0, void 0, function* () {
537
445
  const bearer = yield core.Supplier.get(this._options.token);
@@ -22,5 +22,4 @@ export interface CompanyApiResponse {
22
22
  isZealBankAccountVerified: boolean;
23
23
  settings: TheraApi.api.thera.company.CompanySettings;
24
24
  bankAccount?: TheraApi.api.thera.company.BankAccountResponseMetadata;
25
- teamsById: Record<string, TheraApi.api.thera.company.Team>;
26
25
  }
@@ -4,5 +4,6 @@
4
4
  import * as TheraApi from "../../../../../../../../..";
5
5
  export interface Manager {
6
6
  user: TheraApi.db.User;
7
- companyPermissions: TheraApi.api.thera.company.CompanyPermissions;
7
+ teams: Record<string, TheraApi.api.thera.company.TeamRoleAndDetails>;
8
+ orgAdmin?: TheraApi.api.thera.company.OrgRoleAndDetails;
8
9
  }
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type TeamRole = "ROLE_ADMIN" | "ROLE_PEOPLE_MANAGER" | "ROLE_VIEWER_SENSITIVE";
4
+ export declare type TeamRole = "ADMIN" | "PEOPLE_MANAGER" | "VIEWER_SENSITIVE";
5
5
  export declare const TeamRole: {
6
- readonly RoleAdmin: "ROLE_ADMIN";
7
- readonly RolePeopleManager: "ROLE_PEOPLE_MANAGER";
8
- readonly RoleViewerSensitive: "ROLE_VIEWER_SENSITIVE";
6
+ readonly Admin: "ADMIN";
7
+ readonly PeopleManager: "PEOPLE_MANAGER";
8
+ readonly ViewerSensitive: "VIEWER_SENSITIVE";
9
9
  };
@@ -5,7 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.TeamRole = void 0;
7
7
  exports.TeamRole = {
8
- RoleAdmin: "ROLE_ADMIN",
9
- RolePeopleManager: "ROLE_PEOPLE_MANAGER",
10
- RoleViewerSensitive: "ROLE_VIEWER_SENSITIVE",
8
+ Admin: "ADMIN",
9
+ PeopleManager: "PEOPLE_MANAGER",
10
+ ViewerSensitive: "VIEWER_SENSITIVE",
11
11
  };
@@ -10,12 +10,9 @@ export * from "./EditManagerRolesResponse";
10
10
  export * from "./EditOrgAdminsResponse";
11
11
  export * from "./RemoveManagerResponse";
12
12
  export * from "./ChangeContractTeamResponse";
13
- export * from "./GetTeamsResponse";
14
13
  export * from "./GetManagersResponse";
15
14
  export * from "./CreateTeamResponse";
16
15
  export * from "./CreateTeamRequestManager";
17
- export * from "./GetAllCompanyPermissionsForUserResponse";
18
- export * from "./CompanyPermissions";
19
16
  export * from "./Manager";
20
17
  export * from "./TeamRole";
21
18
  export * from "./TeamRoleAndDetails";
@@ -24,8 +21,6 @@ export * from "./OrgRoleAndDetails";
24
21
  export * from "./OrgAdmin";
25
22
  export * from "./CreateCompanyRequest";
26
23
  export * from "./CompanyApiResponse";
27
- export * from "./Team";
28
- export * from "./TeamAndDetails";
29
24
  export * from "./BankAccountResponseMetadata";
30
25
  export * from "./PlaidVerificationStatus";
31
26
  export * from "./CompanySettings";
@@ -26,12 +26,9 @@ __exportStar(require("./EditManagerRolesResponse"), exports);
26
26
  __exportStar(require("./EditOrgAdminsResponse"), exports);
27
27
  __exportStar(require("./RemoveManagerResponse"), exports);
28
28
  __exportStar(require("./ChangeContractTeamResponse"), exports);
29
- __exportStar(require("./GetTeamsResponse"), exports);
30
29
  __exportStar(require("./GetManagersResponse"), exports);
31
30
  __exportStar(require("./CreateTeamResponse"), exports);
32
31
  __exportStar(require("./CreateTeamRequestManager"), exports);
33
- __exportStar(require("./GetAllCompanyPermissionsForUserResponse"), exports);
34
- __exportStar(require("./CompanyPermissions"), exports);
35
32
  __exportStar(require("./Manager"), exports);
36
33
  __exportStar(require("./TeamRole"), exports);
37
34
  __exportStar(require("./TeamRoleAndDetails"), exports);
@@ -40,8 +37,6 @@ __exportStar(require("./OrgRoleAndDetails"), exports);
40
37
  __exportStar(require("./OrgAdmin"), exports);
41
38
  __exportStar(require("./CreateCompanyRequest"), exports);
42
39
  __exportStar(require("./CompanyApiResponse"), exports);
43
- __exportStar(require("./Team"), exports);
44
- __exportStar(require("./TeamAndDetails"), exports);
45
40
  __exportStar(require("./BankAccountResponseMetadata"), exports);
46
41
  __exportStar(require("./PlaidVerificationStatus"), exports);
47
42
  __exportStar(require("./CompanySettings"), 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.3674",
62
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
76
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
121
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
165
+ "X-Fern-SDK-Version": "0.0.3679",
166
166
  },
167
167
  contentType: "application/json",
168
168
  timeoutMs: 60000,
@@ -6,5 +6,5 @@ export interface CreateInvoiceCsvColumn {
6
6
  templateColumnName: string;
7
7
  templateColumnKey: string;
8
8
  isCustom?: boolean;
9
- customColumnName?: string;
9
+ customColumnName: string;
10
10
  }
@@ -6,7 +6,5 @@ export interface CreateInvoiceCsvRecord {
6
6
  contractId?: string;
7
7
  date: string;
8
8
  amount: string;
9
- currency: string;
10
- description?: string;
11
- custom?: Record<string, string>;
9
+ custom: Record<string, string>;
12
10
  }
@@ -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.3674",
63
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
62
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
111
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
157
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
64
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
62
+ "X-Fern-SDK-Version": "0.0.3679",
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.3674",
66
+ "X-Fern-SDK-Version": "0.0.3679",
67
67
  },
68
68
  contentType: "application/json",
69
69
  queryParameters: _queryParams,
@@ -26,6 +26,5 @@ export declare namespace CompanyApiResponse {
26
26
  isZealBankAccountVerified: boolean;
27
27
  settings: serializers.api.thera.company.CompanySettings.Raw;
28
28
  bankAccount?: serializers.api.thera.company.BankAccountResponseMetadata.Raw | null;
29
- teamsById: Record<string, serializers.api.thera.company.Team.Raw>;
30
29
  }
31
30
  }
@@ -59,5 +59,4 @@ exports.CompanyApiResponse = core.serialization.object({
59
59
  bankAccount: core.serialization
60
60
  .lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.company.BankAccountResponseMetadata; }))
61
61
  .optional(),
62
- teamsById: core.serialization.record(core.serialization.string(), core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.company.Team; }))),
63
62
  });
@@ -8,6 +8,7 @@ export declare const Manager: core.serialization.ObjectSchema<serializers.api.th
8
8
  export declare namespace Manager {
9
9
  interface Raw {
10
10
  user: serializers.db.User.Raw;
11
- companyPermissions: serializers.api.thera.company.CompanyPermissions.Raw;
11
+ teams: Record<string, serializers.api.thera.company.TeamRoleAndDetails.Raw>;
12
+ orgAdmin?: serializers.api.thera.company.OrgRoleAndDetails.Raw | null;
12
13
  }
13
14
  }
@@ -39,5 +39,8 @@ exports.Manager = void 0;
39
39
  const core = __importStar(require("../../../../../../../../../../core"));
40
40
  exports.Manager = core.serialization.object({
41
41
  user: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).db.User; })),
42
- companyPermissions: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.company.CompanyPermissions; })),
42
+ teams: core.serialization.record(core.serialization.string(), core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.company.TeamRoleAndDetails; }))),
43
+ orgAdmin: core.serialization
44
+ .lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.company.OrgRoleAndDetails; }))
45
+ .optional(),
43
46
  });