@thera-hr/api-sdk 0.0.3925 → 0.0.3943

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  3. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +4 -0
  4. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +64 -18
  5. package/api/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.d.ts → bank/resources/bankApi/types/GetBankAccountDetailsResponse.d.ts} +2 -2
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  8. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +8 -8
  9. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  10. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -2
  11. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -2
  12. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  13. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
  14. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  15. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  16. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  17. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  18. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  19. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  20. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  21. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +4 -0
  22. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +64 -18
  23. package/dist/api/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.d.ts → bank/resources/bankApi/types/GetBankAccountDetailsResponse.d.ts} +2 -2
  24. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  25. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  26. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +8 -8
  27. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  28. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -2
  29. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -2
  30. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  31. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
  32. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  33. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  34. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  35. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  36. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  37. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getPlaidBankDetails.d.ts +10 -0
  38. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getPlaidBankDetails.js +42 -0
  39. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +1 -0
  40. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +2 -1
  41. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountDetailsResponse.d.ts +12 -0
  42. package/dist/serialization/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.js → bank/resources/bankApi/types/GetBankAccountDetailsResponse.js} +3 -3
  43. package/{serialization/resources/api/resources/thera/resources/company/resources/companyApi → dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi}/types/PlaidVerificationStatus.d.ts +1 -1
  44. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  45. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  46. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  47. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +0 -3
  48. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -2
  49. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -2
  50. package/package.json +1 -1
  51. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getPlaidBankDetails.d.ts +10 -0
  52. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getPlaidBankDetails.js +42 -0
  53. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +1 -0
  54. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +2 -1
  55. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountDetailsResponse.d.ts +12 -0
  56. package/serialization/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.js → bank/resources/bankApi/types/GetBankAccountDetailsResponse.js} +3 -3
  57. package/{dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi → serialization/resources/api/resources/thera/resources/bank/resources/bankApi}/types/PlaidVerificationStatus.d.ts +1 -1
  58. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  59. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  60. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  61. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +0 -3
  62. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -2
  63. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -2
  64. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/BankAccountResponseMetadata.d.ts +0 -12
  65. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/BankAccountResponseMetadata.d.ts +0 -12
  66. /package/api/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.js → bank/resources/bankApi/types/GetBankAccountDetailsResponse.js} +0 -0
  67. /package/api/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.d.ts +0 -0
  68. /package/api/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.js +0 -0
  69. /package/dist/api/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.js → bank/resources/bankApi/types/GetBankAccountDetailsResponse.js} +0 -0
  70. /package/dist/api/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.d.ts +0 -0
  71. /package/dist/api/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.js +0 -0
  72. /package/dist/serialization/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.js +0 -0
  73. /package/serialization/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.js +0 -0
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../..";
5
+ import * as TheraApi from "../../../../../../../../../../api";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const Response: core.serialization.Schema<serializers.api.thera.bank.bankApi.getPlaidBankDetails.Response.Raw, TheraApi.api.thera.bank.GetBankAccountDetailsResponse | undefined>;
8
+ export declare namespace Response {
9
+ type Raw = serializers.api.thera.bank.GetBankAccountDetailsResponse.Raw | null | undefined;
10
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.Response = void 0;
39
+ const core = __importStar(require("../../../../../../../../../../core"));
40
+ exports.Response = core.serialization
41
+ .lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.bank.GetBankAccountDetailsResponse; }))
42
+ .optional();
@@ -1,2 +1,3 @@
1
+ export * as getPlaidBankDetails from "./getPlaidBankDetails";
1
2
  export * as getSupportedWithdrawalMethods from "./getSupportedWithdrawalMethods";
2
3
  export * from "./requests";
@@ -26,6 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.getSupportedWithdrawalMethods = void 0;
29
+ exports.getSupportedWithdrawalMethods = exports.getPlaidBankDetails = void 0;
30
+ exports.getPlaidBankDetails = __importStar(require("./getPlaidBankDetails"));
30
31
  exports.getSupportedWithdrawalMethods = __importStar(require("./getSupportedWithdrawalMethods"));
31
32
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../..";
5
+ import * as TheraApi from "../../../../../../../../../../api";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const GetBankAccountDetailsResponse: core.serialization.ObjectSchema<serializers.api.thera.bank.GetBankAccountDetailsResponse.Raw, TheraApi.api.thera.bank.GetBankAccountDetailsResponse>;
8
+ export declare namespace GetBankAccountDetailsResponse {
9
+ interface Raw {
10
+ plaidVerificationStatus: serializers.api.thera.bank.PlaidVerificationStatus.Raw;
11
+ }
12
+ }
@@ -35,8 +35,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
35
35
  });
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.BankAccountResponseMetadata = void 0;
38
+ exports.GetBankAccountDetailsResponse = void 0;
39
39
  const core = __importStar(require("../../../../../../../../../../core"));
40
- exports.BankAccountResponseMetadata = core.serialization.object({
41
- plaidVerificationStatus: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.company.PlaidVerificationStatus; })),
40
+ exports.GetBankAccountDetailsResponse = core.serialization.object({
41
+ plaidVerificationStatus: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.bank.PlaidVerificationStatus; })),
42
42
  });
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../../../../../../../../..";
5
5
  import * as TheraApi from "../../../../../../../../../../api";
6
6
  import * as core from "../../../../../../../../../../core";
7
- export declare const PlaidVerificationStatus: core.serialization.Schema<serializers.api.thera.company.PlaidVerificationStatus.Raw, TheraApi.api.thera.company.PlaidVerificationStatus>;
7
+ export declare const PlaidVerificationStatus: core.serialization.Schema<serializers.api.thera.bank.PlaidVerificationStatus.Raw, TheraApi.api.thera.bank.PlaidVerificationStatus>;
8
8
  export declare namespace PlaidVerificationStatus {
9
9
  type Raw = "pending_automatic_verification" | "pending_manual_verification" | "automatically_verified" | "manually_verified" | "others";
10
10
  }
@@ -26,5 +26,7 @@ export * from "./WorkerTransaction";
26
26
  export * from "./WorkerTransactionDetails";
27
27
  export * from "./WorkerWithdrawalTransaction";
28
28
  export * from "./WorkerInvoicePaymentTransaction";
29
+ export * from "./GetBankAccountDetailsResponse";
30
+ export * from "./PlaidVerificationStatus";
29
31
  export * from "./SetAutoWithdrawalResponse";
30
32
  export * from "./WorkerTransactionStatus";
@@ -42,5 +42,7 @@ __exportStar(require("./WorkerTransaction"), exports);
42
42
  __exportStar(require("./WorkerTransactionDetails"), exports);
43
43
  __exportStar(require("./WorkerWithdrawalTransaction"), exports);
44
44
  __exportStar(require("./WorkerInvoicePaymentTransaction"), exports);
45
+ __exportStar(require("./GetBankAccountDetailsResponse"), exports);
46
+ __exportStar(require("./PlaidVerificationStatus"), exports);
45
47
  __exportStar(require("./SetAutoWithdrawalResponse"), exports);
46
48
  __exportStar(require("./WorkerTransactionStatus"), exports);
@@ -25,6 +25,5 @@ export declare namespace CompanyApiResponse {
25
25
  flags: serializers.api.thera.company.Flags.Raw;
26
26
  isZealBankAccountVerified: boolean;
27
27
  settings: serializers.api.thera.company.CompanySettings.Raw;
28
- bankAccount?: serializers.api.thera.company.BankAccountResponseMetadata.Raw | null;
29
28
  }
30
29
  }
@@ -56,7 +56,4 @@ exports.CompanyApiResponse = core.serialization.object({
56
56
  flags: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.company.Flags; })),
57
57
  isZealBankAccountVerified: core.serialization.boolean(),
58
58
  settings: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.company.CompanySettings; })),
59
- bankAccount: core.serialization
60
- .lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.company.BankAccountResponseMetadata; }))
61
- .optional(),
62
59
  });
@@ -21,8 +21,6 @@ export * from "./OrgRoleAndDetails";
21
21
  export * from "./OrgAdmin";
22
22
  export * from "./CreateCompanyRequest";
23
23
  export * from "./CompanyApiResponse";
24
- export * from "./BankAccountResponseMetadata";
25
- export * from "./PlaidVerificationStatus";
26
24
  export * from "./CompanySettings";
27
25
  export * from "./SubscriptionPricing";
28
26
  export * from "./Flags";
@@ -37,8 +37,6 @@ __exportStar(require("./OrgRoleAndDetails"), exports);
37
37
  __exportStar(require("./OrgAdmin"), exports);
38
38
  __exportStar(require("./CreateCompanyRequest"), exports);
39
39
  __exportStar(require("./CompanyApiResponse"), exports);
40
- __exportStar(require("./BankAccountResponseMetadata"), exports);
41
- __exportStar(require("./PlaidVerificationStatus"), exports);
42
40
  __exportStar(require("./CompanySettings"), exports);
43
41
  __exportStar(require("./SubscriptionPricing"), exports);
44
42
  __exportStar(require("./Flags"), exports);
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../../../../../..";
5
- import * as TheraApi from "../../../../../../../../../../api";
6
- import * as core from "../../../../../../../../../../core";
7
- export declare const BankAccountResponseMetadata: core.serialization.ObjectSchema<serializers.api.thera.company.BankAccountResponseMetadata.Raw, TheraApi.api.thera.company.BankAccountResponseMetadata>;
8
- export declare namespace BankAccountResponseMetadata {
9
- interface Raw {
10
- plaidVerificationStatus: serializers.api.thera.company.PlaidVerificationStatus.Raw;
11
- }
12
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../../../../../..";
5
- import * as TheraApi from "../../../../../../../../../../api";
6
- import * as core from "../../../../../../../../../../core";
7
- export declare const BankAccountResponseMetadata: core.serialization.ObjectSchema<serializers.api.thera.company.BankAccountResponseMetadata.Raw, TheraApi.api.thera.company.BankAccountResponseMetadata>;
8
- export declare namespace BankAccountResponseMetadata {
9
- interface Raw {
10
- plaidVerificationStatus: serializers.api.thera.company.PlaidVerificationStatus.Raw;
11
- }
12
- }