@thera-hr/api-sdk 0.0.1-prerelease2928-dev-3 → 0.0.1-prerelease2928-production

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 (90) 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 +33 -33
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +4 -1
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.d.ts +8 -0
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.js +5 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  12. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  13. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  14. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  15. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  16. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  17. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  18. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  19. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  20. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  21. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  22. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  23. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  24. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  25. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  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 +26 -26
  28. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +36 -36
  29. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +26 -26
  30. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  31. package/api/resources/db/resources/company/types/CompanyBankingDetails.d.ts +1 -1
  32. package/api/resources/db/resources/company/types/CompanyBeneficiary.d.ts +1 -0
  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/external/resources/externalApi/client/Client.js +1 -1
  36. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  37. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  38. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  39. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +4 -1
  40. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.d.ts +8 -0
  41. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.js +5 -0
  42. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  43. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  44. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  45. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  46. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  47. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  48. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  49. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  50. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  51. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  52. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  53. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  54. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  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 +3 -3
  57. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  58. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  59. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +26 -26
  60. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +36 -36
  61. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +26 -26
  62. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  63. package/dist/api/resources/db/resources/company/types/CompanyBankingDetails.d.ts +1 -1
  64. package/dist/api/resources/db/resources/company/types/CompanyBeneficiary.d.ts +1 -0
  65. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +5 -1
  66. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.js +2 -0
  67. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.d.ts +14 -0
  68. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.js +45 -0
  69. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  70. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  71. package/dist/serialization/resources/db/resources/company/types/CompanyBankingDetails.d.ts +2 -1
  72. package/dist/serialization/resources/db/resources/company/types/CompanyBankingDetails.js +2 -1
  73. package/dist/serialization/resources/db/resources/company/types/CompanyBeneficiary.d.ts +1 -0
  74. package/dist/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +1 -0
  75. package/dist/version.d.ts +1 -1
  76. package/dist/version.js +1 -1
  77. package/package.json +1 -1
  78. package/reference.md +25 -25
  79. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +5 -1
  80. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.js +2 -0
  81. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.d.ts +14 -0
  82. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.js +45 -0
  83. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  84. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  85. package/serialization/resources/db/resources/company/types/CompanyBankingDetails.d.ts +2 -1
  86. package/serialization/resources/db/resources/company/types/CompanyBankingDetails.js +2 -1
  87. package/serialization/resources/db/resources/company/types/CompanyBeneficiary.d.ts +1 -0
  88. package/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +1 -0
  89. package/version.d.ts +1 -1
  90. package/version.js +1 -1
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-prerelease2928-dev-3";
4
+ exports.SDK_VERSION = "0.0.1-prerelease2928-production";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "0.0.1-prerelease2928-dev-3",
3
+ "version": "0.0.1-prerelease2928-production",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -10537,32 +10537,32 @@ await client.api.thera.tp.tpApi.addCompanyBankingDetails("string", {
10537
10537
  legalStructure: "ccorp",
10538
10538
  naics: "string",
10539
10539
  callerUserBeneficiaryInformation: {
10540
- makeOrgAdmin: true,
10541
- beneficiary: {
10542
- dateOfBirth: "2023-01-15",
10543
- emailAddress: "string",
10544
- firstName: "string",
10545
- lastName: "string",
10546
- middleName: {
10547
- key: "value",
10548
- },
10549
- phoneNumber: "string",
10550
- mailingAddress: {
10551
- key: "value",
10552
- },
10553
- physicalAddress: {
10554
- city: "string",
10555
- country: "string",
10556
- line1: "string",
10557
- line2: "string",
10558
- postalCode: "string",
10559
- state: "string",
10560
- },
10561
- tin: "string",
10562
- ownershipPercentage: 1,
10563
- title: "string",
10564
- isControlPerson: true,
10540
+ dateOfBirth: "2023-01-15",
10541
+ emailAddress: "string",
10542
+ firstName: "string",
10543
+ lastName: "string",
10544
+ middleName: {
10545
+ key: "value",
10546
+ },
10547
+ phoneNumber: "string",
10548
+ mailingAddress: {
10549
+ key: "value",
10550
+ },
10551
+ physicalAddress: {
10552
+ city: "string",
10553
+ country: "string",
10554
+ line1: "string",
10555
+ line2: "string",
10556
+ postalCode: "string",
10557
+ state: "string",
10558
+ },
10559
+ tin: "string",
10560
+ ownershipPercentage: 1,
10561
+ title: "string",
10562
+ makeOrgAdmin: {
10563
+ key: "value",
10565
10564
  },
10565
+ isControlPerson: true,
10566
10566
  },
10567
10567
  beneficiaries: [
10568
10568
  {
@@ -6,13 +6,17 @@ import * as TheraApi from "../../../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../../../core";
7
7
  import { InvoicePayment } from "./InvoicePayment";
8
8
  import { EorPayIn } from "./EorPayIn";
9
+ import { W2SubscriptionPayIn } from "./W2SubscriptionPayIn";
9
10
  export declare const HistoricPaymentDetail: core.serialization.Schema<serializers.api.thera.bank.HistoricPaymentDetail.Raw, TheraApi.api.thera.bank.HistoricPaymentDetail>;
10
11
  export declare namespace HistoricPaymentDetail {
11
- type Raw = HistoricPaymentDetail.InvoicePayment | HistoricPaymentDetail.EorPayIn;
12
+ type Raw = HistoricPaymentDetail.InvoicePayment | HistoricPaymentDetail.EorPayIn | HistoricPaymentDetail.W2SubscriptionFee;
12
13
  interface InvoicePayment extends InvoicePayment.Raw {
13
14
  type: "invoicePayment";
14
15
  }
15
16
  interface EorPayIn extends EorPayIn.Raw {
16
17
  type: "eorPayIn";
17
18
  }
19
+ interface W2SubscriptionFee extends W2SubscriptionPayIn.Raw {
20
+ type: "w2SubscriptionFee";
21
+ }
18
22
  }
@@ -40,10 +40,12 @@ exports.HistoricPaymentDetail = void 0;
40
40
  const core = __importStar(require("../../../../../../../../../../core"));
41
41
  const InvoicePayment_1 = require("./InvoicePayment");
42
42
  const EorPayIn_1 = require("./EorPayIn");
43
+ const W2SubscriptionPayIn_1 = require("./W2SubscriptionPayIn");
43
44
  exports.HistoricPaymentDetail = core.serialization
44
45
  .union("type", {
45
46
  invoicePayment: InvoicePayment_1.InvoicePayment,
46
47
  eorPayIn: EorPayIn_1.EorPayIn,
48
+ w2SubscriptionFee: W2SubscriptionPayIn_1.W2SubscriptionPayIn,
47
49
  })
48
50
  .transform({
49
51
  transform: (value) => value,
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const W2SubscriptionPayIn: core.serialization.ObjectSchema<serializers.api.thera.bank.W2SubscriptionPayIn.Raw, TheraApi.api.thera.bank.W2SubscriptionPayIn>;
8
+ export declare namespace W2SubscriptionPayIn {
9
+ interface Raw {
10
+ companySubscriptionMonthlyFeeAmount: number;
11
+ companySubscriptionPerEmployeeMonthlyFeeAmount: number;
12
+ numberOfEmployeeCharged: number;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.W2SubscriptionPayIn = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ exports.W2SubscriptionPayIn = core.serialization.object({
42
+ companySubscriptionMonthlyFeeAmount: core.serialization.number(),
43
+ companySubscriptionPerEmployeeMonthlyFeeAmount: core.serialization.number(),
44
+ numberOfEmployeeCharged: core.serialization.number(),
45
+ });
@@ -43,6 +43,7 @@ export * from "./GetPayInHistoryResponse";
43
43
  export * from "./HistoricalPayIn";
44
44
  export * from "./HistoricPayment";
45
45
  export * from "./HistoricPaymentDetail";
46
+ export * from "./W2SubscriptionPayIn";
46
47
  export * from "./EorPayIn";
47
48
  export * from "./InvoicePayment";
48
49
  export * from "./GetPayInDetailsResponse";
@@ -59,6 +59,7 @@ __exportStar(require("./GetPayInHistoryResponse"), exports);
59
59
  __exportStar(require("./HistoricalPayIn"), exports);
60
60
  __exportStar(require("./HistoricPayment"), exports);
61
61
  __exportStar(require("./HistoricPaymentDetail"), exports);
62
+ __exportStar(require("./W2SubscriptionPayIn"), exports);
62
63
  __exportStar(require("./EorPayIn"), exports);
63
64
  __exportStar(require("./InvoicePayment"), exports);
64
65
  __exportStar(require("./GetPayInDetailsResponse"), exports);
@@ -5,6 +5,7 @@ import * as serializers from "../../../../../index";
5
5
  import * as TheraApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { CompanyLegalStructure } from "./CompanyLegalStructure";
8
+ import { CompanyBeneficiary } from "./CompanyBeneficiary";
8
9
  import { AddCompanyBeneficiary } from "./AddCompanyBeneficiary";
9
10
  export declare const CompanyBankingDetails: core.serialization.ObjectSchema<serializers.db.CompanyBankingDetails.Raw, TheraApi.db.CompanyBankingDetails>;
10
11
  export declare namespace CompanyBankingDetails {
@@ -13,7 +14,7 @@ export declare namespace CompanyBankingDetails {
13
14
  incorporationState: string;
14
15
  legalStructure: CompanyLegalStructure.Raw;
15
16
  naics: string;
16
- callerUserBeneficiaryInformation: AddCompanyBeneficiary.Raw;
17
+ callerUserBeneficiaryInformation: CompanyBeneficiary.Raw;
17
18
  beneficiaries: AddCompanyBeneficiary.Raw[];
18
19
  }
19
20
  }
@@ -39,12 +39,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CompanyBankingDetails = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
41
  const CompanyLegalStructure_1 = require("./CompanyLegalStructure");
42
+ const CompanyBeneficiary_1 = require("./CompanyBeneficiary");
42
43
  const AddCompanyBeneficiary_1 = require("./AddCompanyBeneficiary");
43
44
  exports.CompanyBankingDetails = core.serialization.object({
44
45
  establishedOn: core.serialization.string(),
45
46
  incorporationState: core.serialization.string(),
46
47
  legalStructure: CompanyLegalStructure_1.CompanyLegalStructure,
47
48
  naics: core.serialization.string(),
48
- callerUserBeneficiaryInformation: AddCompanyBeneficiary_1.AddCompanyBeneficiary,
49
+ callerUserBeneficiaryInformation: CompanyBeneficiary_1.CompanyBeneficiary,
49
50
  beneficiaries: core.serialization.list(AddCompanyBeneficiary_1.AddCompanyBeneficiary),
50
51
  });
@@ -19,6 +19,7 @@ export declare namespace CompanyBeneficiary {
19
19
  tin: string;
20
20
  ownershipPercentage: number;
21
21
  title: string;
22
+ makeOrgAdmin?: boolean | null;
22
23
  isControlPerson: boolean;
23
24
  }
24
25
  }
@@ -51,5 +51,6 @@ exports.CompanyBeneficiary = core.serialization.object({
51
51
  tin: core.serialization.string(),
52
52
  ownershipPercentage: core.serialization.number(),
53
53
  title: core.serialization.string(),
54
+ makeOrgAdmin: core.serialization.boolean().optional(),
54
55
  isControlPerson: core.serialization.boolean(),
55
56
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.1-prerelease2928-dev-3";
1
+ export declare const SDK_VERSION = "0.0.1-prerelease2928-production";
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-prerelease2928-dev-3";
4
+ exports.SDK_VERSION = "0.0.1-prerelease2928-production";