@unified-api/typescript-sdk 1.0.35 → 1.0.37

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 (65) hide show
  1. package/dist/sdk/company.d.ts +24 -0
  2. package/dist/sdk/company.js +402 -0
  3. package/dist/sdk/hris.d.ts +24 -0
  4. package/dist/sdk/hris.js +402 -0
  5. package/dist/sdk/models/operations/createhriscompany.d.ts +28 -0
  6. package/dist/sdk/models/operations/createhriscompany.js +95 -0
  7. package/dist/sdk/models/operations/gethriscompany.d.ts +35 -0
  8. package/dist/sdk/models/operations/gethriscompany.js +99 -0
  9. package/dist/sdk/models/operations/getunifiedintegrationauth.d.ts +2 -0
  10. package/dist/sdk/models/operations/getunifiedintegrationauth.js +2 -0
  11. package/dist/sdk/models/operations/index.d.ts +6 -0
  12. package/dist/sdk/models/operations/index.js +6 -0
  13. package/dist/sdk/models/operations/listhriscompanies.d.ts +43 -0
  14. package/dist/sdk/models/operations/listhriscompanies.js +119 -0
  15. package/dist/sdk/models/operations/listhrisemployees.d.ts +1 -0
  16. package/dist/sdk/models/operations/listhrisemployees.js +4 -0
  17. package/dist/sdk/models/operations/listhrisgroups.d.ts +1 -0
  18. package/dist/sdk/models/operations/listhrisgroups.js +4 -0
  19. package/dist/sdk/models/operations/patchhriscompany.d.ts +32 -0
  20. package/dist/sdk/models/operations/patchhriscompany.js +99 -0
  21. package/dist/sdk/models/operations/removehriscompany.d.ts +30 -0
  22. package/dist/sdk/models/operations/removehriscompany.js +71 -0
  23. package/dist/sdk/models/operations/updatehriscompany.d.ts +32 -0
  24. package/dist/sdk/models/operations/updatehriscompany.js +99 -0
  25. package/dist/sdk/models/shared/hriscompany.d.ts +11 -0
  26. package/dist/sdk/models/shared/hriscompany.js +85 -0
  27. package/dist/sdk/models/shared/hrisemployee.d.ts +1 -0
  28. package/dist/sdk/models/shared/hrisemployee.js +5 -0
  29. package/dist/sdk/models/shared/hrisgroup.d.ts +1 -0
  30. package/dist/sdk/models/shared/hrisgroup.js +5 -0
  31. package/dist/sdk/models/shared/index.d.ts +2 -0
  32. package/dist/sdk/models/shared/index.js +2 -0
  33. package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
  34. package/dist/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  35. package/dist/sdk/models/shared/propertycrmeventtask.d.ts +6 -0
  36. package/dist/sdk/models/shared/propertycrmeventtask.js +12 -1
  37. package/dist/sdk/models/shared/propertyhriscompanyaddress.d.ts +11 -0
  38. package/dist/sdk/models/shared/propertyhriscompanyaddress.js +80 -0
  39. package/dist/sdk/models/shared/webhook.d.ts +1 -0
  40. package/dist/sdk/models/shared/webhook.js +1 -0
  41. package/dist/sdk/sdk.js +3 -3
  42. package/docs/sdk/models/operations/createhriscompanyrequest.md +9 -0
  43. package/docs/sdk/models/operations/createhriscompanyresponse.md +11 -0
  44. package/docs/sdk/models/operations/gethriscompanyrequest.md +10 -0
  45. package/docs/sdk/models/operations/gethriscompanyresponse.md +11 -0
  46. package/docs/sdk/models/operations/listhriscompaniesrequest.md +15 -0
  47. package/docs/sdk/models/operations/listhriscompaniesresponse.md +11 -0
  48. package/docs/sdk/models/operations/listhrisemployeesrequest.md +1 -0
  49. package/docs/sdk/models/operations/listhrisgroupsrequest.md +1 -0
  50. package/docs/sdk/models/operations/patchhriscompanyrequest.md +10 -0
  51. package/docs/sdk/models/operations/patchhriscompanyresponse.md +11 -0
  52. package/docs/sdk/models/operations/removehriscompanyrequest.md +9 -0
  53. package/docs/sdk/models/operations/removehriscompanyresponse.md +11 -0
  54. package/docs/sdk/models/operations/scopes.md +2 -0
  55. package/docs/sdk/models/operations/updatehriscompanyrequest.md +10 -0
  56. package/docs/sdk/models/operations/updatehriscompanyresponse.md +11 -0
  57. package/docs/sdk/models/shared/hriscompany.md +14 -0
  58. package/docs/sdk/models/shared/hrisemployee.md +1 -0
  59. package/docs/sdk/models/shared/hrisgroup.md +1 -0
  60. package/docs/sdk/models/shared/objecttype.md +1 -0
  61. package/docs/sdk/models/shared/priority.md +10 -0
  62. package/docs/sdk/models/shared/propertyconnectionpermissions.md +2 -0
  63. package/docs/sdk/models/shared/propertycrmeventtask.md +1 -0
  64. package/docs/sdk/models/shared/propertyhriscompanyaddress.md +15 -0
  65. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import * as shared from "../../../sdk/models/shared";
3
+ import { AxiosResponse } from "axios";
4
+ export declare class UpdateHrisCompanyRequest extends SpeakeasyBase {
5
+ hrisCompany?: shared.HrisCompany;
6
+ /**
7
+ * ID of the connection
8
+ */
9
+ connectionId: string;
10
+ /**
11
+ * ID of the Company
12
+ */
13
+ id: string;
14
+ }
15
+ export declare class UpdateHrisCompanyResponse extends SpeakeasyBase {
16
+ /**
17
+ * HTTP response content type for this operation
18
+ */
19
+ contentType: string;
20
+ /**
21
+ * Successful
22
+ */
23
+ hrisCompany?: shared.HrisCompany;
24
+ /**
25
+ * HTTP response status code for this operation
26
+ */
27
+ statusCode: number;
28
+ /**
29
+ * Raw HTTP response; suitable for custom response parsing
30
+ */
31
+ rawResponse: AxiosResponse;
32
+ }
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __extends = (this && this.__extends) || (function () {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10
+ return extendStatics(d, b);
11
+ };
12
+ return function (d, b) {
13
+ if (typeof b !== "function" && b !== null)
14
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
+ extendStatics(d, b);
16
+ function __() { this.constructor = d; }
17
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
+ };
19
+ })();
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
32
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
33
+ }) : function(o, v) {
34
+ o["default"] = v;
35
+ });
36
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
37
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
38
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
39
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
40
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
41
+ };
42
+ var __importStar = (this && this.__importStar) || function (mod) {
43
+ if (mod && mod.__esModule) return mod;
44
+ var result = {};
45
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
46
+ __setModuleDefault(result, mod);
47
+ return result;
48
+ };
49
+ var __metadata = (this && this.__metadata) || function (k, v) {
50
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
51
+ };
52
+ Object.defineProperty(exports, "__esModule", { value: true });
53
+ exports.UpdateHrisCompanyResponse = exports.UpdateHrisCompanyRequest = void 0;
54
+ var utils_1 = require("../../../internal/utils");
55
+ var shared = __importStar(require("../../../sdk/models/shared"));
56
+ var UpdateHrisCompanyRequest = /** @class */ (function (_super) {
57
+ __extends(UpdateHrisCompanyRequest, _super);
58
+ function UpdateHrisCompanyRequest() {
59
+ return _super !== null && _super.apply(this, arguments) || this;
60
+ }
61
+ __decorate([
62
+ (0, utils_1.SpeakeasyMetadata)({ data: "request, media_type=application/json" }),
63
+ __metadata("design:type", shared.HrisCompany)
64
+ ], UpdateHrisCompanyRequest.prototype, "hrisCompany", void 0);
65
+ __decorate([
66
+ (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
67
+ __metadata("design:type", String)
68
+ ], UpdateHrisCompanyRequest.prototype, "connectionId", void 0);
69
+ __decorate([
70
+ (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
71
+ __metadata("design:type", String)
72
+ ], UpdateHrisCompanyRequest.prototype, "id", void 0);
73
+ return UpdateHrisCompanyRequest;
74
+ }(utils_1.SpeakeasyBase));
75
+ exports.UpdateHrisCompanyRequest = UpdateHrisCompanyRequest;
76
+ var UpdateHrisCompanyResponse = /** @class */ (function (_super) {
77
+ __extends(UpdateHrisCompanyResponse, _super);
78
+ function UpdateHrisCompanyResponse() {
79
+ return _super !== null && _super.apply(this, arguments) || this;
80
+ }
81
+ __decorate([
82
+ (0, utils_1.SpeakeasyMetadata)(),
83
+ __metadata("design:type", String)
84
+ ], UpdateHrisCompanyResponse.prototype, "contentType", void 0);
85
+ __decorate([
86
+ (0, utils_1.SpeakeasyMetadata)(),
87
+ __metadata("design:type", shared.HrisCompany)
88
+ ], UpdateHrisCompanyResponse.prototype, "hrisCompany", void 0);
89
+ __decorate([
90
+ (0, utils_1.SpeakeasyMetadata)(),
91
+ __metadata("design:type", Number)
92
+ ], UpdateHrisCompanyResponse.prototype, "statusCode", void 0);
93
+ __decorate([
94
+ (0, utils_1.SpeakeasyMetadata)(),
95
+ __metadata("design:type", Object)
96
+ ], UpdateHrisCompanyResponse.prototype, "rawResponse", void 0);
97
+ return UpdateHrisCompanyResponse;
98
+ }(utils_1.SpeakeasyBase));
99
+ exports.UpdateHrisCompanyResponse = UpdateHrisCompanyResponse;
@@ -0,0 +1,11 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import { PropertyHrisCompanyAddress } from "./propertyhriscompanyaddress";
3
+ export declare class HrisCompany extends SpeakeasyBase {
4
+ address?: PropertyHrisCompanyAddress;
5
+ createdAt?: Date;
6
+ id?: string;
7
+ legalName?: string;
8
+ name?: string;
9
+ raw?: Record<string, any>;
10
+ updatedAt?: Date;
11
+ }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __extends = (this && this.__extends) || (function () {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10
+ return extendStatics(d, b);
11
+ };
12
+ return function (d, b) {
13
+ if (typeof b !== "function" && b !== null)
14
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
+ extendStatics(d, b);
16
+ function __() { this.constructor = d; }
17
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
+ };
19
+ })();
20
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
21
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
25
+ };
26
+ var __metadata = (this && this.__metadata) || function (k, v) {
27
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.HrisCompany = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var propertyhriscompanyaddress_1 = require("./propertyhriscompanyaddress");
33
+ var class_transformer_1 = require("class-transformer");
34
+ var HrisCompany = /** @class */ (function (_super) {
35
+ __extends(HrisCompany, _super);
36
+ function HrisCompany() {
37
+ return _super !== null && _super.apply(this, arguments) || this;
38
+ }
39
+ __decorate([
40
+ (0, utils_1.SpeakeasyMetadata)(),
41
+ (0, class_transformer_1.Expose)({ name: "address" }),
42
+ (0, class_transformer_1.Type)(function () { return propertyhriscompanyaddress_1.PropertyHrisCompanyAddress; }),
43
+ __metadata("design:type", propertyhriscompanyaddress_1.PropertyHrisCompanyAddress)
44
+ ], HrisCompany.prototype, "address", void 0);
45
+ __decorate([
46
+ (0, utils_1.SpeakeasyMetadata)(),
47
+ (0, class_transformer_1.Expose)({ name: "created_at" }),
48
+ (0, class_transformer_1.Transform)(function (_a) {
49
+ var value = _a.value;
50
+ return new Date(value);
51
+ }, { toClassOnly: true }),
52
+ __metadata("design:type", Date)
53
+ ], HrisCompany.prototype, "createdAt", void 0);
54
+ __decorate([
55
+ (0, utils_1.SpeakeasyMetadata)(),
56
+ (0, class_transformer_1.Expose)({ name: "id" }),
57
+ __metadata("design:type", String)
58
+ ], HrisCompany.prototype, "id", void 0);
59
+ __decorate([
60
+ (0, utils_1.SpeakeasyMetadata)(),
61
+ (0, class_transformer_1.Expose)({ name: "legal_name" }),
62
+ __metadata("design:type", String)
63
+ ], HrisCompany.prototype, "legalName", void 0);
64
+ __decorate([
65
+ (0, utils_1.SpeakeasyMetadata)(),
66
+ (0, class_transformer_1.Expose)({ name: "name" }),
67
+ __metadata("design:type", String)
68
+ ], HrisCompany.prototype, "name", void 0);
69
+ __decorate([
70
+ (0, utils_1.SpeakeasyMetadata)(),
71
+ (0, class_transformer_1.Expose)({ name: "raw" }),
72
+ __metadata("design:type", Object)
73
+ ], HrisCompany.prototype, "raw", void 0);
74
+ __decorate([
75
+ (0, utils_1.SpeakeasyMetadata)(),
76
+ (0, class_transformer_1.Expose)({ name: "updated_at" }),
77
+ (0, class_transformer_1.Transform)(function (_a) {
78
+ var value = _a.value;
79
+ return new Date(value);
80
+ }, { toClassOnly: true }),
81
+ __metadata("design:type", Date)
82
+ ], HrisCompany.prototype, "updatedAt", void 0);
83
+ return HrisCompany;
84
+ }(utils_1.SpeakeasyBase));
85
+ exports.HrisCompany = HrisCompany;
@@ -31,6 +31,7 @@ export declare enum MaritalStatus {
31
31
  }
32
32
  export declare class HrisEmployee extends SpeakeasyBase {
33
33
  address?: PropertyHrisEmployeeAddress;
34
+ companyId?: string;
34
35
  createdAt?: Date;
35
36
  currency?: string;
36
37
  dateOfBirth?: Date;
@@ -75,6 +75,11 @@ var HrisEmployee = /** @class */ (function (_super) {
75
75
  (0, class_transformer_1.Type)(function () { return propertyhrisemployeeaddress_1.PropertyHrisEmployeeAddress; }),
76
76
  __metadata("design:type", propertyhrisemployeeaddress_1.PropertyHrisEmployeeAddress)
77
77
  ], HrisEmployee.prototype, "address", void 0);
78
+ __decorate([
79
+ (0, utils_1.SpeakeasyMetadata)(),
80
+ (0, class_transformer_1.Expose)({ name: "company_id" }),
81
+ __metadata("design:type", String)
82
+ ], HrisEmployee.prototype, "companyId", void 0);
78
83
  __decorate([
79
84
  (0, utils_1.SpeakeasyMetadata)(),
80
85
  (0, class_transformer_1.Expose)({ name: "created_at" }),
@@ -9,6 +9,7 @@ export declare enum HrisGroupType {
9
9
  SubDepartment = "SUB_DEPARTMENT"
10
10
  }
11
11
  export declare class HrisGroup extends SpeakeasyBase {
12
+ companyId?: string;
12
13
  createdAt?: Date;
13
14
  description?: string;
14
15
  id?: string;
@@ -45,6 +45,11 @@ var HrisGroup = /** @class */ (function (_super) {
45
45
  function HrisGroup() {
46
46
  return _super !== null && _super.apply(this, arguments) || this;
47
47
  }
48
+ __decorate([
49
+ (0, utils_1.SpeakeasyMetadata)(),
50
+ (0, class_transformer_1.Expose)({ name: "company_id" }),
51
+ __metadata("design:type", String)
52
+ ], HrisGroup.prototype, "companyId", void 0);
48
53
  __decorate([
49
54
  (0, utils_1.SpeakeasyMetadata)(),
50
55
  (0, class_transformer_1.Expose)({ name: "created_at" }),
@@ -52,6 +52,7 @@ export * from "./enrichtelephone";
52
52
  export * from "./genaicontent";
53
53
  export * from "./genaimodel";
54
54
  export * from "./genaiprompt";
55
+ export * from "./hriscompany";
55
56
  export * from "./hrisemail";
56
57
  export * from "./hrisemployee";
57
58
  export * from "./hrisgroup";
@@ -94,6 +95,7 @@ export * from "./propertycrmeventtask";
94
95
  export * from "./propertycrmleadaddress";
95
96
  export * from "./propertyenrichcompanyaddress";
96
97
  export * from "./propertyenrichpersonaddress";
98
+ export * from "./propertyhriscompanyaddress";
97
99
  export * from "./propertyhrisemployeeaddress";
98
100
  export * from "./propertyintegrationcategories";
99
101
  export * from "./propertyintegrationsupportwebhookevents";
@@ -71,6 +71,7 @@ __exportStar(require("./enrichtelephone"), exports);
71
71
  __exportStar(require("./genaicontent"), exports);
72
72
  __exportStar(require("./genaimodel"), exports);
73
73
  __exportStar(require("./genaiprompt"), exports);
74
+ __exportStar(require("./hriscompany"), exports);
74
75
  __exportStar(require("./hrisemail"), exports);
75
76
  __exportStar(require("./hrisemployee"), exports);
76
77
  __exportStar(require("./hrisgroup"), exports);
@@ -113,6 +114,7 @@ __exportStar(require("./propertycrmeventtask"), exports);
113
114
  __exportStar(require("./propertycrmleadaddress"), exports);
114
115
  __exportStar(require("./propertyenrichcompanyaddress"), exports);
115
116
  __exportStar(require("./propertyenrichpersonaddress"), exports);
117
+ __exportStar(require("./propertyhriscompanyaddress"), exports);
116
118
  __exportStar(require("./propertyhrisemployeeaddress"), exports);
117
119
  __exportStar(require("./propertyintegrationcategories"), exports);
118
120
  __exportStar(require("./propertyintegrationsupportwebhookevents"), exports);
@@ -71,6 +71,8 @@ export declare enum PropertyConnectionPermissions {
71
71
  HrisPayslipWrite = "hris_payslip_write",
72
72
  HrisTimeoffRead = "hris_timeoff_read",
73
73
  HrisTimeoffWrite = "hris_timeoff_write",
74
+ HrisCompanyRead = "hris_company_read",
75
+ HrisCompanyWrite = "hris_company_write",
74
76
  UcCallRead = "uc_call_read",
75
77
  StorageFileRead = "storage_file_read",
76
78
  StorageFileWrite = "storage_file_write",
@@ -78,6 +78,8 @@ var PropertyConnectionPermissions;
78
78
  PropertyConnectionPermissions["HrisPayslipWrite"] = "hris_payslip_write";
79
79
  PropertyConnectionPermissions["HrisTimeoffRead"] = "hris_timeoff_read";
80
80
  PropertyConnectionPermissions["HrisTimeoffWrite"] = "hris_timeoff_write";
81
+ PropertyConnectionPermissions["HrisCompanyRead"] = "hris_company_read";
82
+ PropertyConnectionPermissions["HrisCompanyWrite"] = "hris_company_write";
81
83
  PropertyConnectionPermissions["UcCallRead"] = "uc_call_read";
82
84
  PropertyConnectionPermissions["StorageFileRead"] = "storage_file_read";
83
85
  PropertyConnectionPermissions["StorageFileWrite"] = "storage_file_write";
@@ -1,4 +1,9 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
+ export declare enum Priority {
3
+ High = "HIGH",
4
+ Medium = "MEDIUM",
5
+ Low = "LOW"
6
+ }
2
7
  export declare enum PropertyCrmEventTaskStatus {
3
8
  Completed = "COMPLETED",
4
9
  NotStarted = "NOT_STARTED",
@@ -12,5 +17,6 @@ export declare class PropertyCrmEventTask extends SpeakeasyBase {
12
17
  description?: string;
13
18
  dueAt?: Date;
14
19
  name?: string;
20
+ priority?: Priority;
15
21
  status?: PropertyCrmEventTaskStatus;
16
22
  }
@@ -27,9 +27,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
27
27
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
- exports.PropertyCrmEventTask = exports.PropertyCrmEventTaskStatus = void 0;
30
+ exports.PropertyCrmEventTask = exports.PropertyCrmEventTaskStatus = exports.Priority = void 0;
31
31
  var utils_1 = require("../../../internal/utils");
32
32
  var class_transformer_1 = require("class-transformer");
33
+ var Priority;
34
+ (function (Priority) {
35
+ Priority["High"] = "HIGH";
36
+ Priority["Medium"] = "MEDIUM";
37
+ Priority["Low"] = "LOW";
38
+ })(Priority = exports.Priority || (exports.Priority = {}));
33
39
  var PropertyCrmEventTaskStatus;
34
40
  (function (PropertyCrmEventTaskStatus) {
35
41
  PropertyCrmEventTaskStatus["Completed"] = "COMPLETED";
@@ -64,6 +70,11 @@ var PropertyCrmEventTask = /** @class */ (function (_super) {
64
70
  (0, class_transformer_1.Expose)({ name: "name" }),
65
71
  __metadata("design:type", String)
66
72
  ], PropertyCrmEventTask.prototype, "name", void 0);
73
+ __decorate([
74
+ (0, utils_1.SpeakeasyMetadata)(),
75
+ (0, class_transformer_1.Expose)({ name: "priority" }),
76
+ __metadata("design:type", String)
77
+ ], PropertyCrmEventTask.prototype, "priority", void 0);
67
78
  __decorate([
68
79
  (0, utils_1.SpeakeasyMetadata)(),
69
80
  (0, class_transformer_1.Expose)({ name: "status" }),
@@ -0,0 +1,11 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ export declare class PropertyHrisCompanyAddress extends SpeakeasyBase {
3
+ address1?: string;
4
+ address2?: string;
5
+ city?: string;
6
+ country?: string;
7
+ countryCode?: string;
8
+ postalCode?: string;
9
+ region?: string;
10
+ regionCode?: string;
11
+ }
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __extends = (this && this.__extends) || (function () {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10
+ return extendStatics(d, b);
11
+ };
12
+ return function (d, b) {
13
+ if (typeof b !== "function" && b !== null)
14
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
+ extendStatics(d, b);
16
+ function __() { this.constructor = d; }
17
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
+ };
19
+ })();
20
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
21
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
25
+ };
26
+ var __metadata = (this && this.__metadata) || function (k, v) {
27
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.PropertyHrisCompanyAddress = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var class_transformer_1 = require("class-transformer");
33
+ var PropertyHrisCompanyAddress = /** @class */ (function (_super) {
34
+ __extends(PropertyHrisCompanyAddress, _super);
35
+ function PropertyHrisCompanyAddress() {
36
+ return _super !== null && _super.apply(this, arguments) || this;
37
+ }
38
+ __decorate([
39
+ (0, utils_1.SpeakeasyMetadata)(),
40
+ (0, class_transformer_1.Expose)({ name: "address1" }),
41
+ __metadata("design:type", String)
42
+ ], PropertyHrisCompanyAddress.prototype, "address1", void 0);
43
+ __decorate([
44
+ (0, utils_1.SpeakeasyMetadata)(),
45
+ (0, class_transformer_1.Expose)({ name: "address2" }),
46
+ __metadata("design:type", String)
47
+ ], PropertyHrisCompanyAddress.prototype, "address2", void 0);
48
+ __decorate([
49
+ (0, utils_1.SpeakeasyMetadata)(),
50
+ (0, class_transformer_1.Expose)({ name: "city" }),
51
+ __metadata("design:type", String)
52
+ ], PropertyHrisCompanyAddress.prototype, "city", void 0);
53
+ __decorate([
54
+ (0, utils_1.SpeakeasyMetadata)(),
55
+ (0, class_transformer_1.Expose)({ name: "country" }),
56
+ __metadata("design:type", String)
57
+ ], PropertyHrisCompanyAddress.prototype, "country", void 0);
58
+ __decorate([
59
+ (0, utils_1.SpeakeasyMetadata)(),
60
+ (0, class_transformer_1.Expose)({ name: "country_code" }),
61
+ __metadata("design:type", String)
62
+ ], PropertyHrisCompanyAddress.prototype, "countryCode", void 0);
63
+ __decorate([
64
+ (0, utils_1.SpeakeasyMetadata)(),
65
+ (0, class_transformer_1.Expose)({ name: "postal_code" }),
66
+ __metadata("design:type", String)
67
+ ], PropertyHrisCompanyAddress.prototype, "postalCode", void 0);
68
+ __decorate([
69
+ (0, utils_1.SpeakeasyMetadata)(),
70
+ (0, class_transformer_1.Expose)({ name: "region" }),
71
+ __metadata("design:type", String)
72
+ ], PropertyHrisCompanyAddress.prototype, "region", void 0);
73
+ __decorate([
74
+ (0, utils_1.SpeakeasyMetadata)(),
75
+ (0, class_transformer_1.Expose)({ name: "region_code" }),
76
+ __metadata("design:type", String)
77
+ ], PropertyHrisCompanyAddress.prototype, "regionCode", void 0);
78
+ return PropertyHrisCompanyAddress;
79
+ }(utils_1.SpeakeasyBase));
80
+ exports.PropertyHrisCompanyAddress = PropertyHrisCompanyAddress;
@@ -38,6 +38,7 @@ export declare enum ObjectType {
38
38
  HrisGroup = "hris_group",
39
39
  HrisPayslip = "hris_payslip",
40
40
  HrisTimeoff = "hris_timeoff",
41
+ HrisCompany = "hris_company",
41
42
  MartechList = "martech_list",
42
43
  MartechMember = "martech_member",
43
44
  Passthrough = "passthrough",
@@ -71,6 +71,7 @@ var ObjectType;
71
71
  ObjectType["HrisGroup"] = "hris_group";
72
72
  ObjectType["HrisPayslip"] = "hris_payslip";
73
73
  ObjectType["HrisTimeoff"] = "hris_timeoff";
74
+ ObjectType["HrisCompany"] = "hris_company";
74
75
  ObjectType["MartechList"] = "martech_list";
75
76
  ObjectType["MartechMember"] = "martech_member";
76
77
  ObjectType["Passthrough"] = "passthrough";
package/dist/sdk/sdk.js CHANGED
@@ -94,9 +94,9 @@ var SDKConfiguration = /** @class */ (function () {
94
94
  function SDKConfiguration(init) {
95
95
  this.language = "typescript";
96
96
  this.openapiDocVersion = "1.0";
97
- this.sdkVersion = "1.0.35";
98
- this.genVersion = "2.339.1";
99
- this.userAgent = "speakeasy-sdk/typescript 1.0.35 2.339.1 1.0 @unified-api/typescript-sdk";
97
+ this.sdkVersion = "1.0.37";
98
+ this.genVersion = "2.340.3";
99
+ this.userAgent = "speakeasy-sdk/typescript 1.0.37 2.340.3 1.0 @unified-api/typescript-sdk";
100
100
  Object.assign(this, init);
101
101
  }
102
102
  return SDKConfiguration;
@@ -0,0 +1,9 @@
1
+ # CreateHrisCompanyRequest
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- |
8
+ | `hrisCompany` | [shared.HrisCompany](../../../sdk/models/shared/hriscompany.md) | :heavy_minus_sign: | N/A |
9
+ | `connectionId` | *string* | :heavy_check_mark: | ID of the connection |
@@ -0,0 +1,11 @@
1
+ # CreateHrisCompanyResponse
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- |
8
+ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9
+ | `hrisCompany` | [shared.HrisCompany](../../../sdk/models/shared/hriscompany.md) | :heavy_minus_sign: | Successful |
10
+ | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
11
+ | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
@@ -0,0 +1,10 @@
1
+ # GetHrisCompanyRequest
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- |
8
+ | `connectionId` | *string* | :heavy_check_mark: | ID of the connection |
9
+ | `fields` | *string*[] | :heavy_minus_sign: | Comma-delimited fields to return |
10
+ | `id` | *string* | :heavy_check_mark: | ID of the Company |
@@ -0,0 +1,11 @@
1
+ # GetHrisCompanyResponse
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- |
8
+ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9
+ | `hrisCompany` | [shared.HrisCompany](../../../sdk/models/shared/hriscompany.md) | :heavy_minus_sign: | Successful |
10
+ | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
11
+ | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
@@ -0,0 +1,15 @@
1
+ # ListHrisCompaniesRequest
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
8
+ | `connectionId` | *string* | :heavy_check_mark: | ID of the connection |
9
+ | `fields` | *string*[] | :heavy_minus_sign: | Comma-delimited fields to return |
10
+ | `limit` | *number* | :heavy_minus_sign: | N/A |
11
+ | `offset` | *number* | :heavy_minus_sign: | N/A |
12
+ | `order` | *string* | :heavy_minus_sign: | N/A |
13
+ | `query` | *string* | :heavy_minus_sign: | Query string to search. eg. email address or name |
14
+ | `sort` | *string* | :heavy_minus_sign: | N/A |
15
+ | `updatedGte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Return only results whose updated date is equal or greater to this value |
@@ -0,0 +1,11 @@
1
+ # ListHrisCompaniesResponse
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
8
+ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9
+ | `hrisCompanies` | [shared.HrisCompany](../../../sdk/models/shared/hriscompany.md)[] | :heavy_minus_sign: | Successful |
10
+ | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
11
+ | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
@@ -5,6 +5,7 @@
5
5
 
6
6
  | Field | Type | Required | Description |
7
7
  | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
8
+ | `companyId` | *string* | :heavy_minus_sign: | N/A |
8
9
  | `connectionId` | *string* | :heavy_check_mark: | ID of the connection |
9
10
  | `fields` | *string*[] | :heavy_minus_sign: | Comma-delimited fields to return |
10
11
  | `limit` | *number* | :heavy_minus_sign: | N/A |
@@ -5,6 +5,7 @@
5
5
 
6
6
  | Field | Type | Required | Description |
7
7
  | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
8
+ | `companyId` | *string* | :heavy_minus_sign: | N/A |
8
9
  | `connectionId` | *string* | :heavy_check_mark: | ID of the connection |
9
10
  | `fields` | *string*[] | :heavy_minus_sign: | Comma-delimited fields to return |
10
11
  | `limit` | *number* | :heavy_minus_sign: | N/A |
@@ -0,0 +1,10 @@
1
+ # PatchHrisCompanyRequest
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- |
8
+ | `hrisCompany` | [shared.HrisCompany](../../../sdk/models/shared/hriscompany.md) | :heavy_minus_sign: | N/A |
9
+ | `connectionId` | *string* | :heavy_check_mark: | ID of the connection |
10
+ | `id` | *string* | :heavy_check_mark: | ID of the Company |