@thera-hr/api-sdk 0.0.1-prerelease3529-dev-2 → 0.0.1-prerelease3530-dev-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  3. package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  4. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  5. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +37 -37
  7. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  8. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  9. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  10. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  11. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  12. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  13. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  14. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  15. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  16. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  17. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  18. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +0 -12
  19. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +8 -57
  20. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +0 -1
  21. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  22. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  23. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  24. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  25. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  26. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  27. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +1 -3
  28. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +12 -14
  29. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +1 -3
  30. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  31. package/api/resources/db/resources/company/types/CompanyBeneficiary.d.ts +2 -2
  32. package/api/resources/db/resources/company/types/CompanySettings.d.ts +0 -5
  33. package/api/resources/db/resources/company/types/Flags.d.ts +0 -2
  34. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  35. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  36. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  37. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  38. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  39. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +37 -37
  40. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  41. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  42. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  43. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  44. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  45. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  46. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  47. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  48. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  49. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  50. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  51. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +0 -12
  52. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +8 -57
  53. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +0 -1
  54. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  55. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  56. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  57. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  58. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  59. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  60. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +1 -3
  61. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +12 -14
  62. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +1 -3
  63. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  64. package/dist/api/resources/db/resources/company/types/CompanyBeneficiary.d.ts +2 -2
  65. package/dist/api/resources/db/resources/company/types/CompanySettings.d.ts +0 -5
  66. package/dist/api/resources/db/resources/company/types/Flags.d.ts +0 -2
  67. package/dist/serialization/resources/db/resources/company/types/CompanyBeneficiary.d.ts +1 -1
  68. package/dist/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +1 -1
  69. package/dist/serialization/resources/db/resources/company/types/CompanySettings.d.ts +0 -1
  70. package/dist/serialization/resources/db/resources/company/types/CompanySettings.js +0 -1
  71. package/dist/serialization/resources/db/resources/company/types/Flags.d.ts +0 -2
  72. package/dist/serialization/resources/db/resources/company/types/Flags.js +0 -2
  73. package/dist/version.d.ts +1 -1
  74. package/dist/version.js +1 -1
  75. package/package.json +1 -1
  76. package/reference.md +1 -68
  77. package/serialization/resources/db/resources/company/types/CompanyBeneficiary.d.ts +1 -1
  78. package/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +1 -1
  79. package/serialization/resources/db/resources/company/types/CompanySettings.d.ts +0 -1
  80. package/serialization/resources/db/resources/company/types/CompanySettings.js +0 -1
  81. package/serialization/resources/db/resources/company/types/Flags.d.ts +0 -2
  82. package/serialization/resources/db/resources/company/types/Flags.js +0 -2
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
  85. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.d.ts +0 -12
  86. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.js +0 -5
  87. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.d.ts +0 -12
  88. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.js +0 -5
@@ -13,8 +13,8 @@ export interface CompanyBeneficiary {
13
13
  /** Only required if different from physical address */
14
14
  mailingAddress?: TheraApi.api.thera.common.RequestAddress;
15
15
  physicalAddress: TheraApi.api.thera.common.RequestAddress;
16
- /** Two-letter ISO country code for person's nationality/citizenship (e.g., "US", "CA", "MX"). Optional, only required if Non-US person. */
17
- citizenship?: string;
16
+ /** Two-letter ISO country code for person's nationality/citizenship (e.g., "US", "CA", "MX"). */
17
+ nationality: string;
18
18
  /** U.S. Social Security or IRS tax ID number of the person (optional for non-US persons, use identificationNumber instead). */
19
19
  tin?: string;
20
20
  /** International identification number for non-US persons (tax ID, passport number, etc.). Max 30 chars. */
@@ -12,9 +12,4 @@ export interface CompanySettings {
12
12
  autoApproveTimeOffRequests: boolean;
13
13
  isKycMandated: boolean;
14
14
  active?: boolean;
15
- /**
16
- * If enabled, autopay will run early for invoices that would normally be due on holidays or weekends.
17
- * The autopay will execute based on the previous valid business day as the effective due date.
18
- */
19
- autoPayAheadOfHolidaysWeekends?: boolean;
20
15
  }
@@ -22,6 +22,4 @@ export interface Flags {
22
22
  customContract?: TheraApi.db.CustomContract;
23
23
  autoPayExposed: boolean;
24
24
  mfaEnabled: boolean;
25
- separateRevenue?: boolean;
26
- chargeActiveWorkersMonthly?: boolean;
27
25
  }
@@ -16,7 +16,7 @@ export declare namespace CompanyBeneficiary {
16
16
  phoneNumber: string;
17
17
  mailingAddress?: RequestAddress.Raw | null;
18
18
  physicalAddress: RequestAddress.Raw;
19
- citizenship?: string | null;
19
+ nationality: string;
20
20
  tin?: string | null;
21
21
  identificationNumber?: string | null;
22
22
  identificationNumberType?: string | null;
@@ -48,7 +48,7 @@ exports.CompanyBeneficiary = core.serialization.object({
48
48
  phoneNumber: core.serialization.string(),
49
49
  mailingAddress: RequestAddress_1.RequestAddress.optional(),
50
50
  physicalAddress: RequestAddress_1.RequestAddress,
51
- citizenship: core.serialization.string().optional(),
51
+ nationality: core.serialization.string(),
52
52
  tin: core.serialization.string().optional(),
53
53
  identificationNumber: core.serialization.string().optional(),
54
54
  identificationNumberType: core.serialization.string().optional(),
@@ -20,6 +20,5 @@ export declare namespace CompanySettings {
20
20
  autoApproveTimeOffRequests: boolean;
21
21
  isKYCMandated: boolean;
22
22
  active?: boolean | null;
23
- autoPayAheadOfHolidaysWeekends?: boolean | null;
24
23
  }
25
24
  }
@@ -52,5 +52,4 @@ exports.CompanySettings = core.serialization.object({
52
52
  autoApproveTimeOffRequests: core.serialization.boolean(),
53
53
  isKycMandated: core.serialization.property("isKYCMandated", core.serialization.boolean()),
54
54
  active: core.serialization.boolean().optional(),
55
- autoPayAheadOfHolidaysWeekends: core.serialization.boolean().optional(),
56
55
  });
@@ -22,7 +22,5 @@ export declare namespace Flags {
22
22
  customContract?: CustomContract.Raw | null;
23
23
  autoPayExposed: boolean;
24
24
  mfaEnabled: boolean;
25
- separateRevenue?: boolean | null;
26
- chargeActiveWorkersMonthly?: boolean | null;
27
25
  }
28
26
  }
@@ -54,6 +54,4 @@ exports.Flags = core.serialization.object({
54
54
  customContract: CustomContract_1.CustomContract.optional(),
55
55
  autoPayExposed: core.serialization.boolean(),
56
56
  mfaEnabled: core.serialization.boolean(),
57
- separateRevenue: core.serialization.boolean().optional(),
58
- chargeActiveWorkersMonthly: core.serialization.boolean().optional(),
59
57
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.1-prerelease3529-dev-2";
1
+ export declare const SDK_VERSION = "0.0.1-prerelease3530-dev-3";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.1-prerelease3529-dev-2";
4
+ exports.SDK_VERSION = "0.0.1-prerelease3530-dev-3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "0.0.1-prerelease3529-dev-2",
3
+ "version": "0.0.1-prerelease3530-dev-3",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -8823,71 +8823,6 @@ await client.api.thera.misc.misc.autoPayCron({
8823
8823
  </dl>
8824
8824
  </details>
8825
8825
 
8826
- <details><summary><code>client.api.thera.misc.misc.<a href="/src/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.ts">distributeTpPayrollAccountCron</a>({ ...params }) -> void</code></summary>
8827
- <dl>
8828
- <dd>
8829
-
8830
- #### 📝 Description
8831
-
8832
- <dl>
8833
- <dd>
8834
-
8835
- <dl>
8836
- <dd>
8837
-
8838
- Calling this API will trigger automatic distribution of Tp payroll amount to omnibus.
8839
-
8840
- </dd>
8841
- </dl>
8842
- </dd>
8843
- </dl>
8844
-
8845
- #### 🔌 Usage
8846
-
8847
- <dl>
8848
- <dd>
8849
-
8850
- <dl>
8851
- <dd>
8852
-
8853
- ```typescript
8854
- await client.api.thera.misc.misc.distributeTpPayrollAccountCron({
8855
- theraWebhookSignatureHeader: "string",
8856
- });
8857
- ```
8858
-
8859
- </dd>
8860
- </dl>
8861
- </dd>
8862
- </dl>
8863
-
8864
- #### ⚙️ Parameters
8865
-
8866
- <dl>
8867
- <dd>
8868
-
8869
- <dl>
8870
- <dd>
8871
-
8872
- **request:** `TheraApi.api.thera.misc.DistributeTpPayrollAccountCronRequest`
8873
-
8874
- </dd>
8875
- </dl>
8876
-
8877
- <dl>
8878
- <dd>
8879
-
8880
- **requestOptions:** `Misc.RequestOptions`
8881
-
8882
- </dd>
8883
- </dl>
8884
- </dd>
8885
- </dl>
8886
-
8887
- </dd>
8888
- </dl>
8889
- </details>
8890
-
8891
8826
  <details><summary><code>client.api.thera.misc.misc.<a href="/src/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.ts">autoPayEmailNotificationCron</a>({ ...params }) -> void</code></summary>
8892
8827
  <dl>
8893
8828
  <dd>
@@ -12909,9 +12844,7 @@ await client.api.thera.tp.tpApi.addCompanyBankingDetails("string", {
12909
12844
  postalCode: "string",
12910
12845
  state: "string",
12911
12846
  },
12912
- citizenship: {
12913
- key: "value",
12914
- },
12847
+ nationality: "string",
12915
12848
  tin: {
12916
12849
  key: "value",
12917
12850
  },
@@ -16,7 +16,7 @@ export declare namespace CompanyBeneficiary {
16
16
  phoneNumber: string;
17
17
  mailingAddress?: RequestAddress.Raw | null;
18
18
  physicalAddress: RequestAddress.Raw;
19
- citizenship?: string | null;
19
+ nationality: string;
20
20
  tin?: string | null;
21
21
  identificationNumber?: string | null;
22
22
  identificationNumberType?: string | null;
@@ -48,7 +48,7 @@ exports.CompanyBeneficiary = core.serialization.object({
48
48
  phoneNumber: core.serialization.string(),
49
49
  mailingAddress: RequestAddress_1.RequestAddress.optional(),
50
50
  physicalAddress: RequestAddress_1.RequestAddress,
51
- citizenship: core.serialization.string().optional(),
51
+ nationality: core.serialization.string(),
52
52
  tin: core.serialization.string().optional(),
53
53
  identificationNumber: core.serialization.string().optional(),
54
54
  identificationNumberType: core.serialization.string().optional(),
@@ -20,6 +20,5 @@ export declare namespace CompanySettings {
20
20
  autoApproveTimeOffRequests: boolean;
21
21
  isKYCMandated: boolean;
22
22
  active?: boolean | null;
23
- autoPayAheadOfHolidaysWeekends?: boolean | null;
24
23
  }
25
24
  }
@@ -52,5 +52,4 @@ exports.CompanySettings = core.serialization.object({
52
52
  autoApproveTimeOffRequests: core.serialization.boolean(),
53
53
  isKycMandated: core.serialization.property("isKYCMandated", core.serialization.boolean()),
54
54
  active: core.serialization.boolean().optional(),
55
- autoPayAheadOfHolidaysWeekends: core.serialization.boolean().optional(),
56
55
  });
@@ -22,7 +22,5 @@ export declare namespace Flags {
22
22
  customContract?: CustomContract.Raw | null;
23
23
  autoPayExposed: boolean;
24
24
  mfaEnabled: boolean;
25
- separateRevenue?: boolean | null;
26
- chargeActiveWorkersMonthly?: boolean | null;
27
25
  }
28
26
  }
@@ -54,6 +54,4 @@ exports.Flags = core.serialization.object({
54
54
  customContract: CustomContract_1.CustomContract.optional(),
55
55
  autoPayExposed: core.serialization.boolean(),
56
56
  mfaEnabled: core.serialization.boolean(),
57
- separateRevenue: core.serialization.boolean().optional(),
58
- chargeActiveWorkersMonthly: core.serialization.boolean().optional(),
59
57
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.1-prerelease3529-dev-2";
1
+ export declare const SDK_VERSION = "0.0.1-prerelease3530-dev-3";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.1-prerelease3529-dev-2";
4
+ exports.SDK_VERSION = "0.0.1-prerelease3530-dev-3";
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * theraWebhookSignatureHeader: "string"
8
- * }
9
- */
10
- export interface DistributeTpPayrollAccountCronRequest {
11
- theraWebhookSignatureHeader: string;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * theraWebhookSignatureHeader: "string"
8
- * }
9
- */
10
- export interface DistributeTpPayrollAccountCronRequest {
11
- theraWebhookSignatureHeader: string;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });