@unified-api/typescript-sdk 1.0.9 → 1.0.11

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 (54) hide show
  1. package/dist/sdk/hris.d.ts +16 -0
  2. package/dist/sdk/hris.js +252 -0
  3. package/dist/sdk/models/operations/gethrispayslip.d.ts +35 -0
  4. package/dist/sdk/models/operations/gethrispayslip.js +99 -0
  5. package/dist/sdk/models/operations/gethristimeoff.d.ts +35 -0
  6. package/dist/sdk/models/operations/gethristimeoff.js +99 -0
  7. package/dist/sdk/models/operations/getunifiedintegrationauth.d.ts +4 -0
  8. package/dist/sdk/models/operations/getunifiedintegrationauth.js +4 -0
  9. package/dist/sdk/models/operations/index.d.ts +4 -0
  10. package/dist/sdk/models/operations/index.js +4 -0
  11. package/dist/sdk/models/operations/listenrichpeople.d.ts +4 -0
  12. package/dist/sdk/models/operations/listenrichpeople.js +4 -0
  13. package/dist/sdk/models/operations/listhrispayslips.d.ts +47 -0
  14. package/dist/sdk/models/operations/listhrispayslips.js +123 -0
  15. package/dist/sdk/models/operations/listhristimeoffs.d.ts +47 -0
  16. package/dist/sdk/models/operations/listhristimeoffs.js +123 -0
  17. package/dist/sdk/models/shared/hrispayslip.d.ts +22 -0
  18. package/dist/sdk/models/shared/hrispayslip.js +133 -0
  19. package/dist/sdk/models/shared/hrispayslipdetail.d.ts +28 -0
  20. package/dist/sdk/models/shared/hrispayslipdetail.js +90 -0
  21. package/dist/sdk/models/shared/hristimeoff.d.ts +24 -0
  22. package/dist/sdk/models/shared/hristimeoff.js +131 -0
  23. package/dist/sdk/models/shared/index.d.ts +3 -0
  24. package/dist/sdk/models/shared/index.js +3 -0
  25. package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +4 -0
  26. package/dist/sdk/models/shared/propertyconnectionpermissions.js +4 -0
  27. package/dist/sdk/models/shared/webhook.d.ts +2 -0
  28. package/dist/sdk/models/shared/webhook.js +2 -0
  29. package/dist/sdk/payslip.d.ts +15 -0
  30. package/dist/sdk/payslip.js +213 -0
  31. package/dist/sdk/sdk.d.ts +4 -0
  32. package/dist/sdk/sdk.js +7 -3
  33. package/dist/sdk/timeoff.d.ts +15 -0
  34. package/dist/sdk/timeoff.js +213 -0
  35. package/docs/sdk/models/operations/gethrispaysliprequest.md +10 -0
  36. package/docs/sdk/models/operations/gethrispayslipresponse.md +11 -0
  37. package/docs/sdk/models/operations/gethristimeoffrequest.md +10 -0
  38. package/docs/sdk/models/operations/gethristimeoffresponse.md +11 -0
  39. package/docs/sdk/models/operations/listenrichpeoplerequest.md +8 -7
  40. package/docs/sdk/models/operations/listhrispayslipsrequest.md +16 -0
  41. package/docs/sdk/models/operations/listhrispayslipsresponse.md +11 -0
  42. package/docs/sdk/models/operations/listhristimeoffsrequest.md +16 -0
  43. package/docs/sdk/models/operations/listhristimeoffsresponse.md +11 -0
  44. package/docs/sdk/models/operations/scopes.md +4 -0
  45. package/docs/sdk/models/shared/hrispayslip.md +20 -0
  46. package/docs/sdk/models/shared/hrispayslipdetail.md +13 -0
  47. package/docs/sdk/models/shared/hrispayslipdetailtype.md +24 -0
  48. package/docs/sdk/models/shared/hristimeoff.md +19 -0
  49. package/docs/sdk/models/shared/hristimeoffstatus.md +10 -0
  50. package/docs/sdk/models/shared/hristimeofftype.md +9 -0
  51. package/docs/sdk/models/shared/objecttype.md +2 -0
  52. package/docs/sdk/models/shared/paymenttype.md +10 -0
  53. package/docs/sdk/models/shared/propertyconnectionpermissions.md +4 -0
  54. package/package.json +1 -1
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ var desc = Object.getOwnPropertyDescriptor(m, k);
19
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
20
+ desc = { enumerable: true, get: function() { return m[k]; } };
21
+ }
22
+ Object.defineProperty(o, k2, desc);
23
+ }) : (function(o, m, k, k2) {
24
+ if (k2 === undefined) k2 = k;
25
+ o[k2] = m[k];
26
+ }));
27
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
28
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
29
+ }) : function(o, v) {
30
+ o["default"] = v;
31
+ });
32
+ var __importStar = (this && this.__importStar) || function (mod) {
33
+ if (mod && mod.__esModule) return mod;
34
+ var result = {};
35
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
36
+ __setModuleDefault(result, mod);
37
+ return result;
38
+ };
39
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
40
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
41
+ return new (P || (P = Promise))(function (resolve, reject) {
42
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
43
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
44
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
45
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
46
+ });
47
+ };
48
+ var __generator = (this && this.__generator) || function (thisArg, body) {
49
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
50
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ function verb(n) { return function (v) { return step([n, v]); }; }
52
+ function step(op) {
53
+ if (f) throw new TypeError("Generator is already executing.");
54
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
55
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
56
+ if (y = 0, t) op = [op[0] & 2, t.value];
57
+ switch (op[0]) {
58
+ case 0: case 1: t = op; break;
59
+ case 4: _.label++; return { value: op[1], done: false };
60
+ case 5: _.label++; y = op[1]; op = [0]; continue;
61
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
62
+ default:
63
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
64
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
65
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
66
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
67
+ if (t[2]) _.ops.pop();
68
+ _.trys.pop(); continue;
69
+ }
70
+ op = body.call(thisArg, _);
71
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
72
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
73
+ }
74
+ };
75
+ Object.defineProperty(exports, "__esModule", { value: true });
76
+ exports.Timeoff = void 0;
77
+ var utils = __importStar(require("../internal/utils"));
78
+ var errors = __importStar(require("../sdk/models/errors"));
79
+ var operations = __importStar(require("../sdk/models/operations"));
80
+ var shared = __importStar(require("../sdk/models/shared"));
81
+ var Timeoff = /** @class */ (function () {
82
+ function Timeoff(sdkConfig) {
83
+ this.sdkConfiguration = sdkConfig;
84
+ }
85
+ /**
86
+ * Retrieve a timeoff
87
+ */
88
+ Timeoff.prototype.getHrisTimeoff = function (req, config) {
89
+ var _a, _b;
90
+ return __awaiter(this, void 0, void 0, function () {
91
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
92
+ return __generator(this, function (_c) {
93
+ switch (_c.label) {
94
+ case 0:
95
+ if (!(req instanceof utils.SpeakeasyBase)) {
96
+ req = new operations.GetHrisTimeoffRequest(req);
97
+ }
98
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
99
+ operationUrl = utils.generateURL(baseURL, "/hris/{connection_id}/timeoff/{id}", req);
100
+ client = this.sdkConfiguration.defaultClient;
101
+ globalSecurity = this.sdkConfiguration.security;
102
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
103
+ return [4 /*yield*/, globalSecurity()];
104
+ case 1:
105
+ globalSecurity = _c.sent();
106
+ _c.label = 2;
107
+ case 2:
108
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
109
+ globalSecurity = new shared.Security(globalSecurity);
110
+ }
111
+ properties = utils.parseSecurityProperties(globalSecurity);
112
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
113
+ queryParams = utils.serializeQueryParams(req);
114
+ headers["Accept"] = "application/json";
115
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
116
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
117
+ case 3:
118
+ httpRes = _c.sent();
119
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
120
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
121
+ throw new Error("status code not found in response: ".concat(httpRes));
122
+ }
123
+ res = new operations.GetHrisTimeoffResponse({
124
+ statusCode: httpRes.status,
125
+ contentType: responseContentType,
126
+ rawResponse: httpRes,
127
+ });
128
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
129
+ switch (true) {
130
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
131
+ if (utils.matchContentType(responseContentType, "application/json")) {
132
+ res.hrisTimeoff = utils.objectToClass(JSON.parse(decodedRes), shared.HrisTimeoff);
133
+ }
134
+ else {
135
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
136
+ }
137
+ break;
138
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
139
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
140
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
141
+ }
142
+ return [2 /*return*/, res];
143
+ }
144
+ });
145
+ });
146
+ };
147
+ /**
148
+ * List all timeoffs
149
+ */
150
+ Timeoff.prototype.listHrisTimeoffs = function (req, config) {
151
+ var _a, _b;
152
+ return __awaiter(this, void 0, void 0, function () {
153
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
154
+ return __generator(this, function (_c) {
155
+ switch (_c.label) {
156
+ case 0:
157
+ if (!(req instanceof utils.SpeakeasyBase)) {
158
+ req = new operations.ListHrisTimeoffsRequest(req);
159
+ }
160
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
161
+ operationUrl = utils.generateURL(baseURL, "/hris/{connection_id}/timeoff", req);
162
+ client = this.sdkConfiguration.defaultClient;
163
+ globalSecurity = this.sdkConfiguration.security;
164
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
165
+ return [4 /*yield*/, globalSecurity()];
166
+ case 1:
167
+ globalSecurity = _c.sent();
168
+ _c.label = 2;
169
+ case 2:
170
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
171
+ globalSecurity = new shared.Security(globalSecurity);
172
+ }
173
+ properties = utils.parseSecurityProperties(globalSecurity);
174
+ headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
175
+ queryParams = utils.serializeQueryParams(req);
176
+ headers["Accept"] = "application/json";
177
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
178
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
179
+ case 3:
180
+ httpRes = _c.sent();
181
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
182
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
183
+ throw new Error("status code not found in response: ".concat(httpRes));
184
+ }
185
+ res = new operations.ListHrisTimeoffsResponse({
186
+ statusCode: httpRes.status,
187
+ contentType: responseContentType,
188
+ rawResponse: httpRes,
189
+ });
190
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
191
+ switch (true) {
192
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
193
+ if (utils.matchContentType(responseContentType, "application/json")) {
194
+ res.hrisTimeoffs = [];
195
+ resFieldDepth = utils.getResFieldDepth(res);
196
+ res.hrisTimeoffs = utils.objectToClass(JSON.parse(decodedRes), shared.HrisTimeoff, resFieldDepth);
197
+ }
198
+ else {
199
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
200
+ }
201
+ break;
202
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
203
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
204
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
205
+ }
206
+ return [2 /*return*/, res];
207
+ }
208
+ });
209
+ });
210
+ };
211
+ return Timeoff;
212
+ }());
213
+ exports.Timeoff = Timeoff;
@@ -0,0 +1,10 @@
1
+ # GetHrisPayslipRequest
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 Payslip |
@@ -0,0 +1,11 @@
1
+ # GetHrisPayslipResponse
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
+ | `hrisPayslip` | [shared.HrisPayslip](../../../sdk/models/shared/hrispayslip.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
+ # GetHrisTimeoffRequest
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 Timeoff |
@@ -0,0 +1,11 @@
1
+ # GetHrisTimeoffResponse
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
+ | `hrisTimeoff` | [shared.HrisTimeoff](../../../sdk/models/shared/hristimeoff.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 |
@@ -3,10 +3,11 @@
3
3
 
4
4
  ## Fields
5
5
 
6
- | Field | Type | Required | Description |
7
- | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
8
- | `connectionId` | *string* | :heavy_check_mark: | ID of the connection |
9
- | `email` | *string* | :heavy_minus_sign: | The email of the person to search |
10
- | `linkedinUrl` | *string* | :heavy_minus_sign: | The LinkedIn URL of the person to search |
11
- | `name` | *string* | :heavy_minus_sign: | The name of the person to search |
12
- | `twitter` | *string* | :heavy_minus_sign: | The twitter handle of the person to search |
6
+ | Field | Type | Required | Description |
7
+ | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
8
+ | `companyName` | *string* | :heavy_minus_sign: | The name of the company the person is associated with. Not valid by itself. |
9
+ | `connectionId` | *string* | :heavy_check_mark: | ID of the connection |
10
+ | `email` | *string* | :heavy_minus_sign: | The email of the person to search |
11
+ | `linkedinUrl` | *string* | :heavy_minus_sign: | The LinkedIn URL of the person to search |
12
+ | `name` | *string* | :heavy_minus_sign: | The name of the person to search |
13
+ | `twitter` | *string* | :heavy_minus_sign: | The twitter handle of the person to search |
@@ -0,0 +1,16 @@
1
+ # ListHrisPayslipsRequest
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 |
16
+ | `userId` | *string* | :heavy_minus_sign: | Employee ID |
@@ -0,0 +1,11 @@
1
+ # ListHrisPayslipsResponse
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
+ | `hrisPayslips` | [shared.HrisPayslip](../../../sdk/models/shared/hrispayslip.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,16 @@
1
+ # ListHrisTimeoffsRequest
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 |
16
+ | `userId` | *string* | :heavy_minus_sign: | Employee ID |
@@ -0,0 +1,11 @@
1
+ # ListHrisTimeoffsResponse
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
+ | `hrisTimeoffs` | [shared.HrisTimeoff](../../../sdk/models/shared/hristimeoff.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 |
@@ -73,6 +73,10 @@
73
73
  | `HrisEmployeeWrite` | hris_employee_write |
74
74
  | `HrisGroupRead` | hris_group_read |
75
75
  | `HrisGroupWrite` | hris_group_write |
76
+ | `HrisPayslipRead` | hris_payslip_read |
77
+ | `HrisPayslipWrite` | hris_payslip_write |
78
+ | `HrisTimeoffRead` | hris_timeoff_read |
79
+ | `HrisTimeoffWrite` | hris_timeoff_write |
76
80
  | `UcCallRead` | uc_call_read |
77
81
  | `StorageFileRead` | storage_file_read |
78
82
  | `StorageFileWrite` | storage_file_write |
@@ -0,0 +1,20 @@
1
+ # HrisPayslip
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
8
+ | `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
9
+ | `currency` | *string* | :heavy_minus_sign: | N/A |
10
+ | `details` | [shared.HrisPayslipDetail](../../../sdk/models/shared/hrispayslipdetail.md)[] | :heavy_minus_sign: | N/A |
11
+ | `endAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
12
+ | `grossAmount` | *number* | :heavy_minus_sign: | N/A |
13
+ | `id` | *string* | :heavy_minus_sign: | N/A |
14
+ | `netAmount` | *number* | :heavy_minus_sign: | N/A |
15
+ | `paidAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
16
+ | `paymentType` | [shared.PaymentType](../../../sdk/models/shared/paymenttype.md) | :heavy_minus_sign: | N/A |
17
+ | `raw` | Record<string, *any*> | :heavy_check_mark: | N/A |
18
+ | `startAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
19
+ | `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
20
+ | `userId` | *string* | :heavy_check_mark: | N/A |
@@ -0,0 +1,13 @@
1
+ # HrisPayslipDetail
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
8
+ | `amount` | *number* | :heavy_check_mark: | N/A |
9
+ | `companyAmount` | *number* | :heavy_minus_sign: | N/A |
10
+ | `description` | *string* | :heavy_minus_sign: | N/A |
11
+ | `employeeAmount` | *number* | :heavy_minus_sign: | N/A |
12
+ | `name` | *string* | :heavy_minus_sign: | N/A |
13
+ | `type` | [shared.HrisPayslipDetailType](../../../sdk/models/shared/hrispayslipdetailtype.md) | :heavy_minus_sign: | N/A |
@@ -0,0 +1,24 @@
1
+ # HrisPayslipDetailType
2
+
3
+
4
+ ## Values
5
+
6
+ | Name | Value |
7
+ | --------------------------------- | --------------------------------- |
8
+ | `EarningSalary` | EARNING_SALARY |
9
+ | `EarningOvertime` | EARNING_OVERTIME |
10
+ | `EarningTip` | EARNING_TIP |
11
+ | `EarningBonus` | EARNING_BONUS |
12
+ | `EarningCommission` | EARNING_COMMISSION |
13
+ | `EarningAdjustment` | EARNING_ADJUSTMENT |
14
+ | `Earning` | EARNING |
15
+ | `PretaxDeduction` | PRETAX_DEDUCTION |
16
+ | `PretaxDeductionHealthInsurance` | PRETAX_DEDUCTION_HEALTH_INSURANCE |
17
+ | `PretaxDeductionRetirement` | PRETAX_DEDUCTION_RETIREMENT |
18
+ | `PretaxDeductionHra` | PRETAX_DEDUCTION_HRA |
19
+ | `TaxFederal` | TAX_FEDERAL |
20
+ | `TaxRegion` | TAX_REGION |
21
+ | `TaxLocal` | TAX_LOCAL |
22
+ | `PosttaxBenefit` | POSTTAX_BENEFIT |
23
+ | `PosttaxGarnishment` | POSTTAX_GARNISHMENT |
24
+ | `Reimbursement` | REIMBURSEMENT |
@@ -0,0 +1,19 @@
1
+ # HrisTimeoff
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
8
+ | `approvedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
9
+ | `approverUserId` | *string* | :heavy_minus_sign: | N/A |
10
+ | `comments` | *string* | :heavy_minus_sign: | N/A |
11
+ | `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
12
+ | `endAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
13
+ | `id` | *string* | :heavy_minus_sign: | N/A |
14
+ | `raw` | Record<string, *any*> | :heavy_minus_sign: | N/A |
15
+ | `startAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A |
16
+ | `status` | [shared.HrisTimeoffStatus](../../../sdk/models/shared/hristimeoffstatus.md) | :heavy_minus_sign: | N/A |
17
+ | `type` | [shared.HrisTimeoffType](../../../sdk/models/shared/hristimeofftype.md) | :heavy_minus_sign: | N/A |
18
+ | `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
19
+ | `userId` | *string* | :heavy_check_mark: | N/A |
@@ -0,0 +1,10 @@
1
+ # HrisTimeoffStatus
2
+
3
+
4
+ ## Values
5
+
6
+ | Name | Value |
7
+ | ---------- | ---------- |
8
+ | `Approved` | APPROVED |
9
+ | `Pending` | PENDING |
10
+ | `Denied` | DENIED |
@@ -0,0 +1,9 @@
1
+ # HrisTimeoffType
2
+
3
+
4
+ ## Values
5
+
6
+ | Name | Value |
7
+ | -------- | -------- |
8
+ | `Paid` | PAID |
9
+ | `Unpaid` | UNPAID |
@@ -36,6 +36,8 @@
36
36
  | `CrmPipeline` | crm_pipeline |
37
37
  | `HrisEmployee` | hris_employee |
38
38
  | `HrisGroup` | hris_group |
39
+ | `HrisPayslip` | hris_payslip |
40
+ | `HrisTimeoff` | hris_timeoff |
39
41
  | `MartechList` | martech_list |
40
42
  | `MartechMember` | martech_member |
41
43
  | `Passthrough` | passthrough |
@@ -0,0 +1,10 @@
1
+ # PaymentType
2
+
3
+
4
+ ## Values
5
+
6
+ | Name | Value |
7
+ | -------- | -------- |
8
+ | `Direct` | DIRECT |
9
+ | `Cheque` | CHEQUE |
10
+ | `Cash` | CASH |
@@ -73,6 +73,10 @@
73
73
  | `HrisEmployeeWrite` | hris_employee_write |
74
74
  | `HrisGroupRead` | hris_group_read |
75
75
  | `HrisGroupWrite` | hris_group_write |
76
+ | `HrisPayslipRead` | hris_payslip_read |
77
+ | `HrisPayslipWrite` | hris_payslip_write |
78
+ | `HrisTimeoffRead` | hris_timeoff_read |
79
+ | `HrisTimeoffWrite` | hris_timeoff_write |
76
80
  | `UcCallRead` | uc_call_read |
77
81
  | `StorageFileRead` | storage_file_read |
78
82
  | `StorageFileWrite` | storage_file_write |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unified-api/typescript-sdk",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "author": "Unified",
5
5
  "scripts": {
6
6
  "prepare": "tsc --build",