@unified-api/typescript-sdk 1.0.63 → 1.0.65

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 (57) hide show
  1. package/dist/sdk/hris.d.ts +24 -0
  2. package/dist/sdk/hris.js +400 -0
  3. package/dist/sdk/location.d.ts +24 -0
  4. package/dist/sdk/location.js +400 -0
  5. package/dist/sdk/models/operations/createhrislocation.d.ts +28 -0
  6. package/dist/sdk/models/operations/createhrislocation.js +95 -0
  7. package/dist/sdk/models/operations/gethrislocation.d.ts +35 -0
  8. package/dist/sdk/models/operations/gethrislocation.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/listhrislocations.d.ts +41 -0
  14. package/dist/sdk/models/operations/listhrislocations.js +111 -0
  15. package/dist/sdk/models/operations/patchhrislocation.d.ts +32 -0
  16. package/dist/sdk/models/operations/patchhrislocation.js +99 -0
  17. package/dist/sdk/models/operations/removehrislocation.d.ts +30 -0
  18. package/dist/sdk/models/operations/removehrislocation.js +71 -0
  19. package/dist/sdk/models/operations/updatehrislocation.d.ts +32 -0
  20. package/dist/sdk/models/operations/updatehrislocation.js +99 -0
  21. package/dist/sdk/models/shared/accountingorganization.d.ts +1 -0
  22. package/dist/sdk/models/shared/accountingorganization.js +5 -0
  23. package/dist/sdk/models/shared/commerceitemvariant.d.ts +1 -1
  24. package/dist/sdk/models/shared/hrisemployee.d.ts +7 -0
  25. package/dist/sdk/models/shared/hrisemployee.js +14 -0
  26. package/dist/sdk/models/shared/hrislocation.d.ts +20 -0
  27. package/dist/sdk/models/shared/hrislocation.js +127 -0
  28. package/dist/sdk/models/shared/index.d.ts +2 -0
  29. package/dist/sdk/models/shared/index.js +2 -0
  30. package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
  31. package/dist/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  32. package/dist/sdk/models/shared/propertyhrislocationaddress.d.ts +11 -0
  33. package/dist/sdk/models/shared/propertyhrislocationaddress.js +80 -0
  34. package/dist/sdk/models/shared/webhook.d.ts +1 -0
  35. package/dist/sdk/models/shared/webhook.js +1 -0
  36. package/dist/sdk/sdk.js +3 -3
  37. package/docs/sdk/models/operations/createhrislocationrequest.md +9 -0
  38. package/docs/sdk/models/operations/createhrislocationresponse.md +11 -0
  39. package/docs/sdk/models/operations/gethrislocationrequest.md +10 -0
  40. package/docs/sdk/models/operations/gethrislocationresponse.md +11 -0
  41. package/docs/sdk/models/operations/listhrislocationsrequest.md +13 -0
  42. package/docs/sdk/models/operations/listhrislocationsresponse.md +11 -0
  43. package/docs/sdk/models/operations/patchhrislocationrequest.md +10 -0
  44. package/docs/sdk/models/operations/patchhrislocationresponse.md +11 -0
  45. package/docs/sdk/models/operations/removehrislocationrequest.md +9 -0
  46. package/docs/sdk/models/operations/removehrislocationresponse.md +11 -0
  47. package/docs/sdk/models/operations/scopes.md +2 -0
  48. package/docs/sdk/models/operations/updatehrislocationrequest.md +10 -0
  49. package/docs/sdk/models/operations/updatehrislocationresponse.md +11 -0
  50. package/docs/sdk/models/shared/accountingorganization.md +1 -0
  51. package/docs/sdk/models/shared/commerceitemvariant.md +1 -1
  52. package/docs/sdk/models/shared/hrisemployee.md +36 -34
  53. package/docs/sdk/models/shared/hrislocation.md +22 -0
  54. package/docs/sdk/models/shared/objecttype.md +1 -0
  55. package/docs/sdk/models/shared/propertyconnectionpermissions.md +2 -0
  56. package/docs/sdk/models/shared/propertyhrislocationaddress.md +15 -0
  57. package/package.json +1 -1
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). 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.UpdateHrisLocationResponse = exports.UpdateHrisLocationRequest = void 0;
54
+ var utils_1 = require("../../../internal/utils");
55
+ var shared = __importStar(require("../../../sdk/models/shared"));
56
+ var UpdateHrisLocationRequest = /** @class */ (function (_super) {
57
+ __extends(UpdateHrisLocationRequest, _super);
58
+ function UpdateHrisLocationRequest() {
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.HrisLocation)
64
+ ], UpdateHrisLocationRequest.prototype, "hrisLocation", void 0);
65
+ __decorate([
66
+ (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
67
+ __metadata("design:type", String)
68
+ ], UpdateHrisLocationRequest.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
+ ], UpdateHrisLocationRequest.prototype, "id", void 0);
73
+ return UpdateHrisLocationRequest;
74
+ }(utils_1.SpeakeasyBase));
75
+ exports.UpdateHrisLocationRequest = UpdateHrisLocationRequest;
76
+ var UpdateHrisLocationResponse = /** @class */ (function (_super) {
77
+ __extends(UpdateHrisLocationResponse, _super);
78
+ function UpdateHrisLocationResponse() {
79
+ return _super !== null && _super.apply(this, arguments) || this;
80
+ }
81
+ __decorate([
82
+ (0, utils_1.SpeakeasyMetadata)(),
83
+ __metadata("design:type", String)
84
+ ], UpdateHrisLocationResponse.prototype, "contentType", void 0);
85
+ __decorate([
86
+ (0, utils_1.SpeakeasyMetadata)(),
87
+ __metadata("design:type", shared.HrisLocation)
88
+ ], UpdateHrisLocationResponse.prototype, "hrisLocation", void 0);
89
+ __decorate([
90
+ (0, utils_1.SpeakeasyMetadata)(),
91
+ __metadata("design:type", Number)
92
+ ], UpdateHrisLocationResponse.prototype, "statusCode", void 0);
93
+ __decorate([
94
+ (0, utils_1.SpeakeasyMetadata)(),
95
+ __metadata("design:type", Object)
96
+ ], UpdateHrisLocationResponse.prototype, "rawResponse", void 0);
97
+ return UpdateHrisLocationResponse;
98
+ }(utils_1.SpeakeasyBase));
99
+ exports.UpdateHrisLocationResponse = UpdateHrisLocationResponse;
@@ -8,6 +8,7 @@ export declare class AccountingOrganization extends SpeakeasyBase {
8
8
  id?: string;
9
9
  legalName?: string;
10
10
  name: string;
11
+ organizationCode?: string;
11
12
  raw?: Record<string, any>;
12
13
  taxNumber?: string;
13
14
  timezone?: string;
@@ -76,6 +76,11 @@ var AccountingOrganization = /** @class */ (function (_super) {
76
76
  (0, class_transformer_1.Expose)({ name: "name" }),
77
77
  __metadata("design:type", String)
78
78
  ], AccountingOrganization.prototype, "name", void 0);
79
+ __decorate([
80
+ (0, utils_1.SpeakeasyMetadata)(),
81
+ (0, class_transformer_1.Expose)({ name: "organization_code" }),
82
+ __metadata("design:type", String)
83
+ ], AccountingOrganization.prototype, "organizationCode", void 0);
79
84
  __decorate([
80
85
  (0, utils_1.SpeakeasyMetadata)(),
81
86
  (0, class_transformer_1.Expose)({ name: "raw" }),
@@ -23,7 +23,7 @@ export declare class CommerceItemVariant extends SpeakeasyBase {
23
23
  isVisible?: boolean;
24
24
  length?: number;
25
25
  media?: CommerceItemMedia[];
26
- name: string;
26
+ name?: string;
27
27
  options?: CommerceItemOption[];
28
28
  prices?: CommerceItemPrice[];
29
29
  publicDescription?: string;
@@ -1,6 +1,8 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
2
  import { HrisCompensation } from "./hriscompensation";
3
3
  import { HrisEmail } from "./hrisemail";
4
+ import { HrisGroup } from "./hrisgroup";
5
+ import { HrisLocation } from "./hrislocation";
4
6
  import { HrisTelephone } from "./hristelephone";
5
7
  import { PropertyHrisEmployeeAddress } from "./propertyhrisemployeeaddress";
6
8
  import { PropertyHrisEmployeeEmployeeRoles } from "./propertyhrisemployeeemployeeroles";
@@ -47,11 +49,16 @@ export declare class HrisEmployee extends SpeakeasyBase {
47
49
  employmentStatus?: EmploymentStatus;
48
50
  employmentType?: HrisEmployeeEmploymentType;
49
51
  gender?: HrisEmployeeGender;
52
+ /**
53
+ * Which groups/teams/units that this employee/user belongs to. May not have all of the Group fields present, but should have id, name, or email.
54
+ */
55
+ groups?: HrisGroup[];
50
56
  hiredAt?: Date;
51
57
  id?: string;
52
58
  imageUrl?: string;
53
59
  languageLocale?: string;
54
60
  location?: string;
61
+ locations?: HrisLocation[];
55
62
  managerId?: string;
56
63
  maritalStatus?: MaritalStatus;
57
64
  name?: string;
@@ -31,6 +31,8 @@ exports.HrisEmployee = exports.MaritalStatus = exports.HrisEmployeeGender = expo
31
31
  var utils_1 = require("../../../internal/utils");
32
32
  var hriscompensation_1 = require("./hriscompensation");
33
33
  var hrisemail_1 = require("./hrisemail");
34
+ var hrisgroup_1 = require("./hrisgroup");
35
+ var hrislocation_1 = require("./hrislocation");
34
36
  var hristelephone_1 = require("./hristelephone");
35
37
  var propertyhrisemployeeaddress_1 = require("./propertyhrisemployeeaddress");
36
38
  var class_transformer_1 = require("class-transformer");
@@ -156,6 +158,12 @@ var HrisEmployee = /** @class */ (function (_super) {
156
158
  (0, class_transformer_1.Expose)({ name: "gender" }),
157
159
  __metadata("design:type", String)
158
160
  ], HrisEmployee.prototype, "gender", void 0);
161
+ __decorate([
162
+ (0, utils_1.SpeakeasyMetadata)({ elemType: hrisgroup_1.HrisGroup }),
163
+ (0, class_transformer_1.Expose)({ name: "groups" }),
164
+ (0, class_transformer_1.Type)(function () { return hrisgroup_1.HrisGroup; }),
165
+ __metadata("design:type", Array)
166
+ ], HrisEmployee.prototype, "groups", void 0);
159
167
  __decorate([
160
168
  (0, utils_1.SpeakeasyMetadata)(),
161
169
  (0, class_transformer_1.Expose)({ name: "hired_at" }),
@@ -185,6 +193,12 @@ var HrisEmployee = /** @class */ (function (_super) {
185
193
  (0, class_transformer_1.Expose)({ name: "location" }),
186
194
  __metadata("design:type", String)
187
195
  ], HrisEmployee.prototype, "location", void 0);
196
+ __decorate([
197
+ (0, utils_1.SpeakeasyMetadata)({ elemType: hrislocation_1.HrisLocation }),
198
+ (0, class_transformer_1.Expose)({ name: "locations" }),
199
+ (0, class_transformer_1.Type)(function () { return hrislocation_1.HrisLocation; }),
200
+ __metadata("design:type", Array)
201
+ ], HrisEmployee.prototype, "locations", void 0);
188
202
  __decorate([
189
203
  (0, utils_1.SpeakeasyMetadata)(),
190
204
  (0, class_transformer_1.Expose)({ name: "manager_id" }),
@@ -0,0 +1,20 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import { HrisTelephone } from "./hristelephone";
3
+ import { PropertyHrisLocationAddress } from "./propertyhrislocationaddress";
4
+ export declare class HrisLocation extends SpeakeasyBase {
5
+ address?: PropertyHrisLocationAddress;
6
+ createdAt?: Date;
7
+ currency?: string;
8
+ description?: string;
9
+ externalIdentifier?: string;
10
+ id?: string;
11
+ isActive?: boolean;
12
+ isHq?: boolean;
13
+ languageLocale?: string;
14
+ name?: string;
15
+ parentId?: string;
16
+ raw?: Record<string, any>;
17
+ telephones?: HrisTelephone[];
18
+ timezone?: string;
19
+ updatedAt?: Date;
20
+ }
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). 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.HrisLocation = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var hristelephone_1 = require("./hristelephone");
33
+ var propertyhrislocationaddress_1 = require("./propertyhrislocationaddress");
34
+ var class_transformer_1 = require("class-transformer");
35
+ var HrisLocation = /** @class */ (function (_super) {
36
+ __extends(HrisLocation, _super);
37
+ function HrisLocation() {
38
+ return _super !== null && _super.apply(this, arguments) || this;
39
+ }
40
+ __decorate([
41
+ (0, utils_1.SpeakeasyMetadata)(),
42
+ (0, class_transformer_1.Expose)({ name: "address" }),
43
+ (0, class_transformer_1.Type)(function () { return propertyhrislocationaddress_1.PropertyHrisLocationAddress; }),
44
+ __metadata("design:type", propertyhrislocationaddress_1.PropertyHrisLocationAddress)
45
+ ], HrisLocation.prototype, "address", void 0);
46
+ __decorate([
47
+ (0, utils_1.SpeakeasyMetadata)(),
48
+ (0, class_transformer_1.Expose)({ name: "created_at" }),
49
+ (0, class_transformer_1.Transform)(function (_a) {
50
+ var value = _a.value;
51
+ return new Date(value);
52
+ }, { toClassOnly: true }),
53
+ __metadata("design:type", Date)
54
+ ], HrisLocation.prototype, "createdAt", void 0);
55
+ __decorate([
56
+ (0, utils_1.SpeakeasyMetadata)(),
57
+ (0, class_transformer_1.Expose)({ name: "currency" }),
58
+ __metadata("design:type", String)
59
+ ], HrisLocation.prototype, "currency", void 0);
60
+ __decorate([
61
+ (0, utils_1.SpeakeasyMetadata)(),
62
+ (0, class_transformer_1.Expose)({ name: "description" }),
63
+ __metadata("design:type", String)
64
+ ], HrisLocation.prototype, "description", void 0);
65
+ __decorate([
66
+ (0, utils_1.SpeakeasyMetadata)(),
67
+ (0, class_transformer_1.Expose)({ name: "external_identifier" }),
68
+ __metadata("design:type", String)
69
+ ], HrisLocation.prototype, "externalIdentifier", void 0);
70
+ __decorate([
71
+ (0, utils_1.SpeakeasyMetadata)(),
72
+ (0, class_transformer_1.Expose)({ name: "id" }),
73
+ __metadata("design:type", String)
74
+ ], HrisLocation.prototype, "id", void 0);
75
+ __decorate([
76
+ (0, utils_1.SpeakeasyMetadata)(),
77
+ (0, class_transformer_1.Expose)({ name: "is_active" }),
78
+ __metadata("design:type", Boolean)
79
+ ], HrisLocation.prototype, "isActive", void 0);
80
+ __decorate([
81
+ (0, utils_1.SpeakeasyMetadata)(),
82
+ (0, class_transformer_1.Expose)({ name: "is_hq" }),
83
+ __metadata("design:type", Boolean)
84
+ ], HrisLocation.prototype, "isHq", void 0);
85
+ __decorate([
86
+ (0, utils_1.SpeakeasyMetadata)(),
87
+ (0, class_transformer_1.Expose)({ name: "language_locale" }),
88
+ __metadata("design:type", String)
89
+ ], HrisLocation.prototype, "languageLocale", void 0);
90
+ __decorate([
91
+ (0, utils_1.SpeakeasyMetadata)(),
92
+ (0, class_transformer_1.Expose)({ name: "name" }),
93
+ __metadata("design:type", String)
94
+ ], HrisLocation.prototype, "name", void 0);
95
+ __decorate([
96
+ (0, utils_1.SpeakeasyMetadata)(),
97
+ (0, class_transformer_1.Expose)({ name: "parent_id" }),
98
+ __metadata("design:type", String)
99
+ ], HrisLocation.prototype, "parentId", void 0);
100
+ __decorate([
101
+ (0, utils_1.SpeakeasyMetadata)(),
102
+ (0, class_transformer_1.Expose)({ name: "raw" }),
103
+ __metadata("design:type", Object)
104
+ ], HrisLocation.prototype, "raw", void 0);
105
+ __decorate([
106
+ (0, utils_1.SpeakeasyMetadata)({ elemType: hristelephone_1.HrisTelephone }),
107
+ (0, class_transformer_1.Expose)({ name: "telephones" }),
108
+ (0, class_transformer_1.Type)(function () { return hristelephone_1.HrisTelephone; }),
109
+ __metadata("design:type", Array)
110
+ ], HrisLocation.prototype, "telephones", void 0);
111
+ __decorate([
112
+ (0, utils_1.SpeakeasyMetadata)(),
113
+ (0, class_transformer_1.Expose)({ name: "timezone" }),
114
+ __metadata("design:type", String)
115
+ ], HrisLocation.prototype, "timezone", void 0);
116
+ __decorate([
117
+ (0, utils_1.SpeakeasyMetadata)(),
118
+ (0, class_transformer_1.Expose)({ name: "updated_at" }),
119
+ (0, class_transformer_1.Transform)(function (_a) {
120
+ var value = _a.value;
121
+ return new Date(value);
122
+ }, { toClassOnly: true }),
123
+ __metadata("design:type", Date)
124
+ ], HrisLocation.prototype, "updatedAt", void 0);
125
+ return HrisLocation;
126
+ }(utils_1.SpeakeasyBase));
127
+ exports.HrisLocation = HrisLocation;
@@ -59,6 +59,7 @@ export * from "./hriscompensation";
59
59
  export * from "./hrisemail";
60
60
  export * from "./hrisemployee";
61
61
  export * from "./hrisgroup";
62
+ export * from "./hrislocation";
62
63
  export * from "./hrispayslip";
63
64
  export * from "./hrispayslipdetail";
64
65
  export * from "./hristelephone";
@@ -102,6 +103,7 @@ export * from "./propertyenrichpersonaddress";
102
103
  export * from "./propertyhriscompanyaddress";
103
104
  export * from "./propertyhrisemployeeaddress";
104
105
  export * from "./propertyhrisemployeeemployeeroles";
106
+ export * from "./propertyhrislocationaddress";
105
107
  export * from "./propertyintegrationcategories";
106
108
  export * from "./propertyintegrationsupportwebhookevents";
107
109
  export * from "./propertymessagingmessageauthormember";
@@ -78,6 +78,7 @@ __exportStar(require("./hriscompensation"), exports);
78
78
  __exportStar(require("./hrisemail"), exports);
79
79
  __exportStar(require("./hrisemployee"), exports);
80
80
  __exportStar(require("./hrisgroup"), exports);
81
+ __exportStar(require("./hrislocation"), exports);
81
82
  __exportStar(require("./hrispayslip"), exports);
82
83
  __exportStar(require("./hrispayslipdetail"), exports);
83
84
  __exportStar(require("./hristelephone"), exports);
@@ -121,6 +122,7 @@ __exportStar(require("./propertyenrichpersonaddress"), exports);
121
122
  __exportStar(require("./propertyhriscompanyaddress"), exports);
122
123
  __exportStar(require("./propertyhrisemployeeaddress"), exports);
123
124
  __exportStar(require("./propertyhrisemployeeemployeeroles"), exports);
125
+ __exportStar(require("./propertyhrislocationaddress"), exports);
124
126
  __exportStar(require("./propertyintegrationcategories"), exports);
125
127
  __exportStar(require("./propertyintegrationsupportwebhookevents"), exports);
126
128
  __exportStar(require("./propertymessagingmessageauthormember"), exports);
@@ -75,6 +75,8 @@ export declare enum PropertyConnectionPermissions {
75
75
  HrisTimeoffWrite = "hris_timeoff_write",
76
76
  HrisCompanyRead = "hris_company_read",
77
77
  HrisCompanyWrite = "hris_company_write",
78
+ HrisLocationRead = "hris_location_read",
79
+ HrisLocationWrite = "hris_location_write",
78
80
  UcCallRead = "uc_call_read",
79
81
  StorageFileRead = "storage_file_read",
80
82
  StorageFileWrite = "storage_file_write",
@@ -82,6 +82,8 @@ var PropertyConnectionPermissions;
82
82
  PropertyConnectionPermissions["HrisTimeoffWrite"] = "hris_timeoff_write";
83
83
  PropertyConnectionPermissions["HrisCompanyRead"] = "hris_company_read";
84
84
  PropertyConnectionPermissions["HrisCompanyWrite"] = "hris_company_write";
85
+ PropertyConnectionPermissions["HrisLocationRead"] = "hris_location_read";
86
+ PropertyConnectionPermissions["HrisLocationWrite"] = "hris_location_write";
85
87
  PropertyConnectionPermissions["UcCallRead"] = "uc_call_read";
86
88
  PropertyConnectionPermissions["StorageFileRead"] = "storage_file_read";
87
89
  PropertyConnectionPermissions["StorageFileWrite"] = "storage_file_write";
@@ -0,0 +1,11 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ export declare class PropertyHrisLocationAddress 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://speakeasy.com). 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.PropertyHrisLocationAddress = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var class_transformer_1 = require("class-transformer");
33
+ var PropertyHrisLocationAddress = /** @class */ (function (_super) {
34
+ __extends(PropertyHrisLocationAddress, _super);
35
+ function PropertyHrisLocationAddress() {
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
+ ], PropertyHrisLocationAddress.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
+ ], PropertyHrisLocationAddress.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
+ ], PropertyHrisLocationAddress.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
+ ], PropertyHrisLocationAddress.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
+ ], PropertyHrisLocationAddress.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
+ ], PropertyHrisLocationAddress.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
+ ], PropertyHrisLocationAddress.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
+ ], PropertyHrisLocationAddress.prototype, "regionCode", void 0);
78
+ return PropertyHrisLocationAddress;
79
+ }(utils_1.SpeakeasyBase));
80
+ exports.PropertyHrisLocationAddress = PropertyHrisLocationAddress;
@@ -40,6 +40,7 @@ export declare enum ObjectType {
40
40
  HrisPayslip = "hris_payslip",
41
41
  HrisTimeoff = "hris_timeoff",
42
42
  HrisCompany = "hris_company",
43
+ HrisLocation = "hris_location",
43
44
  MartechList = "martech_list",
44
45
  MartechMember = "martech_member",
45
46
  Passthrough = "passthrough",
@@ -73,6 +73,7 @@ var ObjectType;
73
73
  ObjectType["HrisPayslip"] = "hris_payslip";
74
74
  ObjectType["HrisTimeoff"] = "hris_timeoff";
75
75
  ObjectType["HrisCompany"] = "hris_company";
76
+ ObjectType["HrisLocation"] = "hris_location";
76
77
  ObjectType["MartechList"] = "martech_list";
77
78
  ObjectType["MartechMember"] = "martech_member";
78
79
  ObjectType["Passthrough"] = "passthrough";
package/dist/sdk/sdk.js CHANGED
@@ -95,9 +95,9 @@ var SDKConfiguration = /** @class */ (function () {
95
95
  function SDKConfiguration(init) {
96
96
  this.language = "typescript";
97
97
  this.openapiDocVersion = "1.0";
98
- this.sdkVersion = "1.0.63";
99
- this.genVersion = "2.379.6";
100
- this.userAgent = "speakeasy-sdk/typescript 1.0.63 2.379.6 1.0 @unified-api/typescript-sdk";
98
+ this.sdkVersion = "1.0.65";
99
+ this.genVersion = "2.382.2";
100
+ this.userAgent = "speakeasy-sdk/typescript 1.0.65 2.382.2 1.0 @unified-api/typescript-sdk";
101
101
  Object.assign(this, init);
102
102
  }
103
103
  return SDKConfiguration;
@@ -0,0 +1,9 @@
1
+ # CreateHrisLocationRequest
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
8
+ | `hrisLocation` | [shared.HrisLocation](../../../sdk/models/shared/hrislocation.md) | :heavy_minus_sign: | N/A |
9
+ | `connectionId` | *string* | :heavy_check_mark: | ID of the connection |
@@ -0,0 +1,11 @@
1
+ # CreateHrisLocationResponse
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
+ | `hrisLocation` | [shared.HrisLocation](../../../sdk/models/shared/hrislocation.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
+ # GetHrisLocationRequest
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 Location |
@@ -0,0 +1,11 @@
1
+ # GetHrisLocationResponse
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
+ | `hrisLocation` | [shared.HrisLocation](../../../sdk/models/shared/hrislocation.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,13 @@
1
+ # ListHrisLocationsRequest
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
+ | `query` | *string* | :heavy_minus_sign: | Query string to search. eg. email address or name |
13
+ | `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
+ # ListHrisLocationsResponse
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
+ | `hrisLocations` | [shared.HrisLocation](../../../sdk/models/shared/hrislocation.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
+ # PatchHrisLocationRequest
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
8
+ | `hrisLocation` | [shared.HrisLocation](../../../sdk/models/shared/hrislocation.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 Location |
@@ -0,0 +1,11 @@
1
+ # PatchHrisLocationResponse
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
+ | `hrisLocation` | [shared.HrisLocation](../../../sdk/models/shared/hrislocation.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 |