diff --git a/.gitignore b/.gitignore index a0f5986..16e13a0 100644 --- a/.gitignore +++ b/.gitignore @@ -32,8 +32,5 @@ node_modules # Optional REPL history .node_repl_history -dist -dist/* - # vscode .vscode diff --git a/dist/ApiClient.js b/dist/ApiClient.js new file mode 100644 index 0000000..8798623 --- /dev/null +++ b/dist/ApiClient.js @@ -0,0 +1,768 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _superagent = _interopRequireDefault(require("superagent")); + +var _querystring = _interopRequireDefault(require("querystring")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* @module ApiClient +* @version 1.0 +*/ + +/** +* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an +* application to use this class directly - the *Api and model classes provide the public API for the service. The +* contents of this file should be regarded as internal but are documented for completeness. +* @alias module:ApiClient +* @class +*/ +var ApiClient = /*#__PURE__*/function () { + function ApiClient() { + _classCallCheck(this, ApiClient); + + /** + * The base URL against which to resolve every API call's (relative) path. + * @type {String} + * @default https://api.merge.dev/api/hris/v1 + */ + this.basePath = 'https://api.merge.dev/api/hris/v1'.replace(/\/+$/, ''); + /** + * The authentication methods to be included for all API calls. + * @type {Array.} + */ + + this.authentications = { + 'tokenAuth': { + type: 'apiKey', + 'in': 'header', + name: 'Authorization' + } + }; + /** + * The default HTTP headers to be included for all API calls. + * @type {Array.} + * @default {} + */ + + this.defaultHeaders = { + 'User-Agent': 'OpenAPI-Generator/1.0/Javascript' + }; + /** + * The default HTTP timeout for all API calls. + * @type {Number} + * @default 60000 + */ + + this.timeout = 60000; + /** + * If set to false an additional timestamp parameter is added to all API GET calls to + * prevent browser caching + * @type {Boolean} + * @default true + */ + + this.cache = true; + /** + * If set to true, the client will save the cookies from each server + * response, and return them in the next request. + * @default false + */ + + this.enableCookies = false; + /* + * Used to save and return cookies in a node.js (non-browser) setting, + * if this.enableCookies is set to true. + */ + + if (typeof window === 'undefined') { + this.agent = new _superagent["default"].agent(); + } + /* + * Allow user to override superagent agent + */ + + + this.requestAgent = null; + /* + * Allow user to add superagent plugins + */ + + this.plugins = null; + } + /** + * Returns a string representation for an actual parameter. + * @param param The actual parameter. + * @returns {String} The string representation of param. + */ + + + _createClass(ApiClient, [{ + key: "paramToString", + value: function paramToString(param) { + if (param == undefined || param == null) { + return ''; + } + + if (param instanceof Date) { + return param.toJSON(); + } + + if (ApiClient.canBeJsonified(param)) { + return JSON.stringify(param); + } + + return param.toString(); + } + /** + * Returns a boolean indicating if the parameter could be JSON.stringified + * @param param The actual parameter + * @returns {Boolean} Flag indicating if param can be JSON.stringified + */ + + }, { + key: "buildUrl", + value: + /** + * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. + * NOTE: query parameters are not handled here. + * @param {String} path The path to append to the base URL. + * @param {Object} pathParams The parameter values to append. + * @param {String} apiBasePath Base path defined in the path, operation level to override the default one + * @returns {String} The encoded path with parameter values substituted. + */ + function buildUrl(path, pathParams, apiBasePath) { + var _this = this; + + if (!path.match(/^\//)) { + path = '/' + path; + } + + var url = this.basePath + path; // use API (operation, path) base path if defined + + if (apiBasePath !== null && apiBasePath !== undefined) { + url = apiBasePath + path; + } + + url = url.replace(/\{([\w-\.]+)\}/g, function (fullMatch, key) { + var value; + + if (pathParams.hasOwnProperty(key)) { + value = _this.paramToString(pathParams[key]); + } else { + value = fullMatch; + } + + return encodeURIComponent(value); + }); + return url; + } + /** + * Checks whether the given content type represents JSON.
+ * JSON content type examples:
+ * + * @param {String} contentType The MIME content type to check. + * @returns {Boolean} true if contentType represents JSON, otherwise false. + */ + + }, { + key: "isJsonMime", + value: function isJsonMime(contentType) { + return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); + } + /** + * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. + * @param {Array.} contentTypes + * @returns {String} The chosen content type, preferring JSON. + */ + + }, { + key: "jsonPreferredMime", + value: function jsonPreferredMime(contentTypes) { + for (var i = 0; i < contentTypes.length; i++) { + if (this.isJsonMime(contentTypes[i])) { + return contentTypes[i]; + } + } + + return contentTypes[0]; + } + /** + * Checks whether the given parameter value represents file-like content. + * @param param The parameter to check. + * @returns {Boolean} true if param represents a file. + */ + + }, { + key: "isFileParam", + value: function isFileParam(param) { + // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) + if (typeof require === 'function') { + var fs; + + try { + fs = require('fs'); + } catch (err) {} + + if (fs && fs.ReadStream && param instanceof fs.ReadStream) { + return true; + } + } // Buffer in Node.js + + + if (typeof Buffer === 'function' && param instanceof Buffer) { + return true; + } // Blob in browser + + + if (typeof Blob === 'function' && param instanceof Blob) { + return true; + } // File in browser (it seems File object is also instance of Blob, but keep this for safe) + + + if (typeof File === 'function' && param instanceof File) { + return true; + } + + return false; + } + /** + * Normalizes parameter values: + *
    + *
  • remove nils
  • + *
  • keep files and arrays
  • + *
  • format to string with `paramToString` for other cases
  • + *
+ * @param {Object.} params The parameters as object properties. + * @returns {Object.} normalized parameters. + */ + + }, { + key: "normalizeParams", + value: function normalizeParams(params) { + var newParams = {}; + + for (var key in params) { + if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { + var value = params[key]; + + if (this.isFileParam(value) || Array.isArray(value)) { + newParams[key] = value; + } else { + newParams[key] = this.paramToString(value); + } + } + } + + return newParams; + } + /** + * Builds a string representation of an array-type actual parameter, according to the given collection format. + * @param {Array} param An array parameter. + * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. + * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns + * param as is if collectionFormat is multi. + */ + + }, { + key: "buildCollectionParam", + value: function buildCollectionParam(param, collectionFormat) { + if (param == null) { + return null; + } + + switch (collectionFormat) { + case 'csv': + return param.map(this.paramToString, this).join(','); + + case 'ssv': + return param.map(this.paramToString, this).join(' '); + + case 'tsv': + return param.map(this.paramToString, this).join('\t'); + + case 'pipes': + return param.map(this.paramToString, this).join('|'); + + case 'multi': + //return the array directly as SuperAgent will handle it as expected + return param.map(this.paramToString, this); + + case 'passthrough': + return param; + + default: + throw new Error('Unknown collection format: ' + collectionFormat); + } + } + /** + * Applies authentication headers to the request. + * @param {Object} request The request object created by a superagent() call. + * @param {Array.} authNames An array of authentication method names. + */ + + }, { + key: "applyAuthToRequest", + value: function applyAuthToRequest(request, authNames) { + var _this2 = this; + + authNames.forEach(function (authName) { + var auth = _this2.authentications[authName]; + + switch (auth.type) { + case 'basic': + if (auth.username || auth.password) { + request.auth(auth.username || '', auth.password || ''); + } + + break; + + case 'bearer': + if (auth.accessToken) { + var localVarBearerToken = typeof auth.accessToken === 'function' ? auth.accessToken() : auth.accessToken; + request.set({ + 'Authorization': 'Bearer ' + localVarBearerToken + }); + } + + break; + + case 'apiKey': + if (auth.apiKey) { + var data = {}; + + if (auth.apiKeyPrefix) { + data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; + } else { + data[auth.name] = auth.apiKey; + } + + if (auth['in'] === 'header') { + request.set(data); + } else { + request.query(data); + } + } + + break; + + case 'oauth2': + if (auth.accessToken) { + request.set({ + 'Authorization': 'Bearer ' + auth.accessToken + }); + } + + break; + + default: + throw new Error('Unknown authentication type: ' + auth.type); + } + }); + } + /** + * Deserializes an HTTP response body into a value of the specified type. + * @param {Object} response A SuperAgent response object. + * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns A value of the specified type. + */ + + }, { + key: "deserialize", + value: function deserialize(response, returnType) { + if (response == null || returnType == null || response.status == 204) { + return null; + } // Rely on SuperAgent for parsing response body. + // See http://visionmedia.github.io/superagent/#parsing-response-bodies + + + var data = response.body; + + if (data == null || _typeof(data) === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length) { + // SuperAgent does not always produce a body; use the unparsed response as a fallback + data = response.text; + } + + return ApiClient.convertToType(data, returnType); + } + /** + * Callback function to receive the result of the operation. + * @callback module:ApiClient~callApiCallback + * @param {String} error Error message, if any. + * @param data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Invokes the REST service using the supplied settings and parameters. + * @param {String} path The base URL to invoke. + * @param {String} httpMethod The HTTP method to use. + * @param {Object.} pathParams A map of path parameters and their values. + * @param {Object.} queryParams A map of query parameters and their values. + * @param {Object.} headerParams A map of header parameters and their values. + * @param {Object.} formParams A map of form parameters and their values. + * @param {Object} bodyParam The value to pass as the request body. + * @param {Array.} authNames An array of authentication type names. + * @param {Array.} contentTypes An array of request MIME types. + * @param {Array.} accepts An array of acceptable response MIME types. + * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the + * constructor for a complex type. + * @param {String} apiBasePath base path defined in the operation/path level to override the default one + * @param {module:ApiClient~callApiCallback} callback The callback function. + * @returns {Object} The SuperAgent request object. + */ + + }, { + key: "callApi", + value: function callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType, apiBasePath, callback) { + var _this3 = this; + + var url = this.buildUrl(path, pathParams, apiBasePath); + var request = (0, _superagent["default"])(httpMethod, url); + + if (this.plugins !== null) { + for (var index in this.plugins) { + if (this.plugins.hasOwnProperty(index)) { + request.use(this.plugins[index]); + } + } + } // apply authentications + + + this.applyAuthToRequest(request, authNames); // set query parameters + + if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { + queryParams['_'] = new Date().getTime(); + } + + request.query(this.normalizeParams(queryParams)); // set header parameters + + request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); // set requestAgent if it is set by user + + if (this.requestAgent) { + request.agent(this.requestAgent); + } // set request timeout + + + request.timeout(this.timeout); + var contentType = this.jsonPreferredMime(contentTypes); + + if (contentType) { + // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) + if (contentType != 'multipart/form-data') { + request.type(contentType); + } + } + + if (contentType === 'application/x-www-form-urlencoded') { + request.send(_querystring["default"].stringify(this.normalizeParams(formParams))); + } else if (contentType == 'multipart/form-data') { + var _formParams = this.normalizeParams(formParams); + + for (var key in _formParams) { + if (_formParams.hasOwnProperty(key)) { + var _formParamsValue = _formParams[key]; + + if (this.isFileParam(_formParamsValue)) { + // file field + request.attach(key, _formParamsValue); + } else if (Array.isArray(_formParamsValue) && _formParamsValue.length && this.isFileParam(_formParamsValue[0])) { + // multiple files + _formParamsValue.forEach(function (file) { + return request.attach(key, file); + }); + } else { + request.field(key, _formParamsValue); + } + } + } + } else if (bodyParam !== null && bodyParam !== undefined) { + if (!request.header['Content-Type']) { + request.type('application/json'); + } + + request.send(bodyParam); + } + + var accept = this.jsonPreferredMime(accepts); + + if (accept) { + request.accept(accept); + } + + if (returnType === 'Blob') { + request.responseType('blob'); + } else if (returnType === 'String') { + request.responseType('string'); + } // Attach previously saved cookies, if enabled + + + if (this.enableCookies) { + if (typeof window === 'undefined') { + this.agent._attachCookies(request); + } else { + request.withCredentials(); + } + } + + request.end(function (error, response) { + if (callback) { + var data = null; + + if (!error) { + try { + data = _this3.deserialize(response, returnType); + + if (_this3.enableCookies && typeof window === 'undefined') { + _this3.agent._saveCookies(response); + } + } catch (err) { + error = err; + } + } + + callback(error, data, response); + } + }); + return request; + } + /** + * Parses an ISO-8601 string representation or epoch representation of a date value. + * @param {String} str The date value as a string. + * @returns {Date} The parsed date object. + */ + + }, { + key: "hostSettings", + value: + /** + * Gets an array of host settings + * @returns An array of host settings + */ + function hostSettings() { + return [{ + 'url': "https://api.merge.dev/api/hris/v1", + 'description': "Production" + }, { + 'url': "https://api-sandbox.merge.dev/api/hris/v1", + 'description': "Sandbox" + }]; + } + }, { + key: "getBasePathFromSettings", + value: function getBasePathFromSettings(index) { + var variables = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var servers = this.hostSettings(); // check array index out of bound + + if (index < 0 || index >= servers.length) { + throw new Error("Invalid index " + index + " when selecting the host settings. Must be less than " + servers.length); + } + + var server = servers[index]; + var url = server['url']; // go through variable and assign a value + + for (var variable_name in server['variables']) { + if (variable_name in variables) { + var variable = server['variables'][variable_name]; + + if (!('enum_values' in variable) || variable['enum_values'].includes(variables[variable_name])) { + url = url.replace("{" + variable_name + "}", variables[variable_name]); + } else { + throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + "."); + } + } else { + // use default value + url = url.replace("{" + variable_name + "}", server['variables'][variable_name]['default_value']); + } + } + + return url; + } + /** + * Constructs a new map or array model from REST data. + * @param data {Object|Array} The REST data. + * @param obj {Object|Array} The target object or array. + */ + + }], [{ + key: "canBeJsonified", + value: function canBeJsonified(str) { + if (typeof str !== 'string' && _typeof(str) !== 'object') return false; + + try { + var type = str.toString(); + return type === '[object Object]' || type === '[object Array]'; + } catch (err) { + return false; + } + } + }, { + key: "parseDate", + value: function parseDate(str) { + if (isNaN(str)) { + return new Date(str.replace(/(\d)(T)(\d)/i, '$1 $3')); + } + + return new Date(+str); + } + /** + * Converts a value to the specified type. + * @param {(String|Object)} data The data to convert, as a string or object. + * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns An instance of the specified type or null or undefined if data is null or undefined. + */ + + }, { + key: "convertToType", + value: function convertToType(data, type) { + if (data === null || data === undefined) return data; + + switch (type) { + case 'Boolean': + return Boolean(data); + + case 'Integer': + return parseInt(data, 10); + + case 'Number': + return parseFloat(data); + + case 'String': + return String(data); + + case 'Date': + return ApiClient.parseDate(String(data)); + + case 'Blob': + return data; + + default: + if (type === Object) { + // generic object, return directly + return data; + } else if (typeof type.constructFromObject === 'function') { + // for model type like User and enum class + return type.constructFromObject(data); + } else if (Array.isArray(type)) { + // for array type like: ['String'] + var itemType = type[0]; + return data.map(function (item) { + return ApiClient.convertToType(item, itemType); + }); + } else if (_typeof(type) === 'object') { + // for plain object type like: {'String': 'Integer'} + var keyType, valueType; + + for (var k in type) { + if (type.hasOwnProperty(k)) { + keyType = k; + valueType = type[k]; + break; + } + } + + var result = {}; + + for (var k in data) { + if (data.hasOwnProperty(k)) { + var key = ApiClient.convertToType(k, keyType); + var value = ApiClient.convertToType(data[k], valueType); + result[key] = value; + } + } + + return result; + } else { + // for unknown type, return the data directly + return data; + } + + } + } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj, itemType) { + if (Array.isArray(data)) { + for (var i = 0; i < data.length; i++) { + if (data.hasOwnProperty(i)) obj[i] = ApiClient.convertToType(data[i], itemType); + } + } else { + for (var k in data) { + if (data.hasOwnProperty(k)) obj[k] = ApiClient.convertToType(data[k], itemType); + } + } + } + }]); + + return ApiClient; +}(); +/** + * Enumeration of collection format separator strategies. + * @enum {String} + * @readonly + */ + + +ApiClient.CollectionFormatEnum = { + /** + * Comma-separated values. Value: csv + * @const + */ + CSV: ',', + + /** + * Space-separated values. Value: ssv + * @const + */ + SSV: ' ', + + /** + * Tab-separated values. Value: tsv + * @const + */ + TSV: '\t', + + /** + * Pipe(|)-separated values. Value: pipes + * @const + */ + PIPES: '|', + + /** + * Native array. Value: multi + * @const + */ + MULTI: 'multi' +}; +/** +* The default API client implementation. +* @type {module:ApiClient} +*/ + +ApiClient.instance = new ApiClient(); +var _default = ApiClient; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/Utils.js b/dist/Utils.js new file mode 100644 index 0000000..f5c67df --- /dev/null +++ b/dist/Utils.js @@ -0,0 +1,33 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("./ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function convertRelatedObjectToType(data, relatedModel) { + if (Array.isArray(data)) { + if (data.length == 0) { + return []; + } + + if (typeof data[0] == 'string') { + return _ApiClient["default"].convertToType(data, ['String']); + } else { + return _ApiClient["default"].convertToType(data, [relatedModel]); + } + } else { + if (typeof data == 'string') { + return _ApiClient["default"].convertToType(data, 'String'); + } else { + return _ApiClient["default"].convertToType(data, relatedModel); + } + } +} + +var _default = convertRelatedObjectToType; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/api/AccountDetailsApi.js b/dist/api/AccountDetailsApi.js new file mode 100644 index 0000000..9673ae6 --- /dev/null +++ b/dist/api/AccountDetailsApi.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AccountDetails = _interopRequireDefault(require("../model/AccountDetails")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* AccountDetails service. +* @module api/AccountDetailsApi +* @version 1.0 +*/ +var AccountDetailsApi = /*#__PURE__*/function () { + /** + * Constructs a new AccountDetailsApi. + * @alias module:api/AccountDetailsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function AccountDetailsApi(apiClient) { + _classCallCheck(this, AccountDetailsApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the accountDetailsRetrieve operation. + * @callback module:api/AccountDetailsApi~accountDetailsRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/AccountDetails} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get details for a linked account. + * @param {String} x_account_token Token identifying the end user. + * @param {module:api/AccountDetailsApi~accountDetailsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/AccountDetails} + */ + + + _createClass(AccountDetailsApi, [{ + key: "accountDetailsRetrieve", + value: function accountDetailsRetrieve(x_account_token, callback) { + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling accountDetailsRetrieve"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _AccountDetails["default"]; + return this.apiClient.callApi('/account-details', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return AccountDetailsApi; +}(); + +exports["default"] = AccountDetailsApi; \ No newline at end of file diff --git a/dist/api/AccountTokenApi.js b/dist/api/AccountTokenApi.js new file mode 100644 index 0000000..d2ea487 --- /dev/null +++ b/dist/api/AccountTokenApi.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AccountToken = _interopRequireDefault(require("../model/AccountToken")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* AccountToken service. +* @module api/AccountTokenApi +* @version 1.0 +*/ +var AccountTokenApi = /*#__PURE__*/function () { + /** + * Constructs a new AccountTokenApi. + * @alias module:api/AccountTokenApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function AccountTokenApi(apiClient) { + _classCallCheck(this, AccountTokenApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the accountTokenRetrieve operation. + * @callback module:api/AccountTokenApi~accountTokenRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/AccountToken} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns the account token for the end user with the provided public token. + * @param {String} public_token + * @param {module:api/AccountTokenApi~accountTokenRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/AccountToken} + */ + + + _createClass(AccountTokenApi, [{ + key: "accountTokenRetrieve", + value: function accountTokenRetrieve(public_token, callback) { + var postBody = null; // verify the required parameter 'public_token' is set + + if (public_token === undefined || public_token === null) { + throw new Error("Missing the required parameter 'public_token' when calling accountTokenRetrieve"); + } + + var pathParams = { + 'public_token': public_token + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _AccountToken["default"]; + return this.apiClient.callApi('/account-token/{public_token}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return AccountTokenApi; +}(); + +exports["default"] = AccountTokenApi; \ No newline at end of file diff --git a/dist/api/AvailableActionsApi.js b/dist/api/AvailableActionsApi.js new file mode 100644 index 0000000..9845b87 --- /dev/null +++ b/dist/api/AvailableActionsApi.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AvailableActions = _interopRequireDefault(require("../model/AvailableActions")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* AvailableActions service. +* @module api/AvailableActionsApi +* @version 1.0 +*/ +var AvailableActionsApi = /*#__PURE__*/function () { + /** + * Constructs a new AvailableActionsApi. + * @alias module:api/AvailableActionsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function AvailableActionsApi(apiClient) { + _classCallCheck(this, AvailableActionsApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the availableActionsRetrieve operation. + * @callback module:api/AvailableActionsApi~availableActionsRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/AvailableActions} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of models and actions available for an account. + * @param {String} x_account_token Token identifying the end user. + * @param {module:api/AvailableActionsApi~availableActionsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/AvailableActions} + */ + + + _createClass(AvailableActionsApi, [{ + key: "availableActionsRetrieve", + value: function availableActionsRetrieve(x_account_token, callback) { + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling availableActionsRetrieve"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _AvailableActions["default"]; + return this.apiClient.callApi('/available-actions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return AvailableActionsApi; +}(); + +exports["default"] = AvailableActionsApi; \ No newline at end of file diff --git a/dist/api/BankInfoApi.js b/dist/api/BankInfoApi.js new file mode 100644 index 0000000..9e6c5be --- /dev/null +++ b/dist/api/BankInfoApi.js @@ -0,0 +1,168 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _BankInfo = _interopRequireDefault(require("../model/BankInfo")); + +var _PaginatedBankInfoList = _interopRequireDefault(require("../model/PaginatedBankInfoList")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* BankInfo service. +* @module api/BankInfoApi +* @version 1.0 +*/ +var BankInfoApi = /*#__PURE__*/function () { + /** + * Constructs a new BankInfoApi. + * @alias module:api/BankInfoApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function BankInfoApi(apiClient) { + _classCallCheck(this, BankInfoApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the bankInfoList operation. + * @callback module:api/BankInfoApi~bankInfoListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedBankInfoList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `BankInfo` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.account_type If provided, will only return BankInfo's with this account type. Options: ('SAVINGS', 'CHECKING') + * @param {String} opts.bank_name If provided, will only return BankInfo's with this bank name. + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {String} opts.employee_id If provided, will only return bank accounts for this employee. + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {module:model/String} opts.order_by Overrides the default ordering for this endpoint. + * @param {Number} opts.page_size Number of results to return per page. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {module:api/BankInfoApi~bankInfoListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedBankInfoList} + */ + + + _createClass(BankInfoApi, [{ + key: "bankInfoList", + value: function bankInfoList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling bankInfoList"); + } + + var pathParams = {}; + var queryParams = { + 'account_type': opts['account_type'], + 'bank_name': opts['bank_name'], + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'employee_id': opts['employee_id'], + 'expand': opts['expand'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'order_by': opts['order_by'], + 'page_size': opts['page_size'], + 'remote_fields': opts['remote_fields'], + 'remote_id': opts['remote_id'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedBankInfoList["default"]; + return this.apiClient.callApi('/bank-info', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the bankInfoRetrieve operation. + * @callback module:api/BankInfoApi~bankInfoRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/BankInfo} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a `BankInfo` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {module:api/BankInfoApi~bankInfoRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/BankInfo} + */ + + }, { + key: "bankInfoRetrieve", + value: function bankInfoRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling bankInfoRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling bankInfoRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'expand': opts['expand'], + 'include_remote_data': opts['include_remote_data'], + 'remote_fields': opts['remote_fields'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _BankInfo["default"]; + return this.apiClient.callApi('/bank-info/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return BankInfoApi; +}(); + +exports["default"] = BankInfoApi; \ No newline at end of file diff --git a/dist/api/BenefitsApi.js b/dist/api/BenefitsApi.js new file mode 100644 index 0000000..517f9ca --- /dev/null +++ b/dist/api/BenefitsApi.js @@ -0,0 +1,158 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Benefit = _interopRequireDefault(require("../model/Benefit")); + +var _PaginatedBenefitList = _interopRequireDefault(require("../model/PaginatedBenefitList")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* Benefits service. +* @module api/BenefitsApi +* @version 1.0 +*/ +var BenefitsApi = /*#__PURE__*/function () { + /** + * Constructs a new BenefitsApi. + * @alias module:api/BenefitsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function BenefitsApi(apiClient) { + _classCallCheck(this, BenefitsApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the benefitsList operation. + * @callback module:api/BenefitsApi~benefitsListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedBenefitList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `Benefit` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {String} opts.employee_id If provided, will only return time off for this employee. + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {Number} opts.page_size Number of results to return per page. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {module:api/BenefitsApi~benefitsListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedBenefitList} + */ + + + _createClass(BenefitsApi, [{ + key: "benefitsList", + value: function benefitsList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling benefitsList"); + } + + var pathParams = {}; + var queryParams = { + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'employee_id': opts['employee_id'], + 'expand': opts['expand'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'page_size': opts['page_size'], + 'remote_id': opts['remote_id'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedBenefitList["default"]; + return this.apiClient.callApi('/benefits', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the benefitsRetrieve operation. + * @callback module:api/BenefitsApi~benefitsRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/Benefit} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a `Benefit` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:api/BenefitsApi~benefitsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/Benefit} + */ + + }, { + key: "benefitsRetrieve", + value: function benefitsRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling benefitsRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling benefitsRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'expand': opts['expand'], + 'include_remote_data': opts['include_remote_data'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _Benefit["default"]; + return this.apiClient.callApi('/benefits/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return BenefitsApi; +}(); + +exports["default"] = BenefitsApi; \ No newline at end of file diff --git a/dist/api/CompaniesApi.js b/dist/api/CompaniesApi.js new file mode 100644 index 0000000..349c079 --- /dev/null +++ b/dist/api/CompaniesApi.js @@ -0,0 +1,152 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Company = _interopRequireDefault(require("../model/Company")); + +var _PaginatedCompanyList = _interopRequireDefault(require("../model/PaginatedCompanyList")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* Companies service. +* @module api/CompaniesApi +* @version 1.0 +*/ +var CompaniesApi = /*#__PURE__*/function () { + /** + * Constructs a new CompaniesApi. + * @alias module:api/CompaniesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function CompaniesApi(apiClient) { + _classCallCheck(this, CompaniesApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the companiesList operation. + * @callback module:api/CompaniesApi~companiesListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedCompanyList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `Company` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {Number} opts.page_size Number of results to return per page. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {module:api/CompaniesApi~companiesListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedCompanyList} + */ + + + _createClass(CompaniesApi, [{ + key: "companiesList", + value: function companiesList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling companiesList"); + } + + var pathParams = {}; + var queryParams = { + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'page_size': opts['page_size'], + 'remote_id': opts['remote_id'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedCompanyList["default"]; + return this.apiClient.callApi('/companies', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the companiesRetrieve operation. + * @callback module:api/CompaniesApi~companiesRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/Company} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a `Company` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:api/CompaniesApi~companiesRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/Company} + */ + + }, { + key: "companiesRetrieve", + value: function companiesRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling companiesRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling companiesRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'include_remote_data': opts['include_remote_data'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _Company["default"]; + return this.apiClient.callApi('/companies/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return CompaniesApi; +}(); + +exports["default"] = CompaniesApi; \ No newline at end of file diff --git a/dist/api/DeductionsApi.js b/dist/api/DeductionsApi.js new file mode 100644 index 0000000..f9317ee --- /dev/null +++ b/dist/api/DeductionsApi.js @@ -0,0 +1,154 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Deduction = _interopRequireDefault(require("../model/Deduction")); + +var _PaginatedDeductionList = _interopRequireDefault(require("../model/PaginatedDeductionList")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* Deductions service. +* @module api/DeductionsApi +* @version 1.0 +*/ +var DeductionsApi = /*#__PURE__*/function () { + /** + * Constructs a new DeductionsApi. + * @alias module:api/DeductionsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function DeductionsApi(apiClient) { + _classCallCheck(this, DeductionsApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the deductionsList operation. + * @callback module:api/DeductionsApi~deductionsListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedDeductionList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `Deduction` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {String} opts.employee_payroll_run_id If provided, will only return deductions for this employee payroll run. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {Number} opts.page_size Number of results to return per page. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {module:api/DeductionsApi~deductionsListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedDeductionList} + */ + + + _createClass(DeductionsApi, [{ + key: "deductionsList", + value: function deductionsList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling deductionsList"); + } + + var pathParams = {}; + var queryParams = { + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'employee_payroll_run_id': opts['employee_payroll_run_id'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'page_size': opts['page_size'], + 'remote_id': opts['remote_id'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedDeductionList["default"]; + return this.apiClient.callApi('/deductions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the deductionsRetrieve operation. + * @callback module:api/DeductionsApi~deductionsRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/Deduction} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a `Deduction` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:api/DeductionsApi~deductionsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/Deduction} + */ + + }, { + key: "deductionsRetrieve", + value: function deductionsRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling deductionsRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling deductionsRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'include_remote_data': opts['include_remote_data'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _Deduction["default"]; + return this.apiClient.callApi('/deductions/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return DeductionsApi; +}(); + +exports["default"] = DeductionsApi; \ No newline at end of file diff --git a/dist/api/DeleteAccountApi.js b/dist/api/DeleteAccountApi.js new file mode 100644 index 0000000..3fcb4b8 --- /dev/null +++ b/dist/api/DeleteAccountApi.js @@ -0,0 +1,77 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* DeleteAccount service. +* @module api/DeleteAccountApi +* @version 1.0 +*/ +var DeleteAccountApi = /*#__PURE__*/function () { + /** + * Constructs a new DeleteAccountApi. + * @alias module:api/DeleteAccountApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function DeleteAccountApi(apiClient) { + _classCallCheck(this, DeleteAccountApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the deleteAccountCreate operation. + * @callback module:api/DeleteAccountApi~deleteAccountCreateCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete a linked account. + * @param {String} x_account_token Token identifying the end user. + * @param {module:api/DeleteAccountApi~deleteAccountCreateCallback} callback The callback function, accepting three arguments: error, data, response + */ + + + _createClass(DeleteAccountApi, [{ + key: "deleteAccountCreate", + value: function deleteAccountCreate(x_account_token, callback) { + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling deleteAccountCreate"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = []; + var returnType = null; + return this.apiClient.callApi('/delete-account', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return DeleteAccountApi; +}(); + +exports["default"] = DeleteAccountApi; \ No newline at end of file diff --git a/dist/api/EmployeePayrollRunsApi.js b/dist/api/EmployeePayrollRunsApi.js new file mode 100644 index 0000000..07b1096 --- /dev/null +++ b/dist/api/EmployeePayrollRunsApi.js @@ -0,0 +1,168 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EmployeePayrollRun = _interopRequireDefault(require("../model/EmployeePayrollRun")); + +var _PaginatedEmployeePayrollRunList = _interopRequireDefault(require("../model/PaginatedEmployeePayrollRunList")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* EmployeePayrollRuns service. +* @module api/EmployeePayrollRunsApi +* @version 1.0 +*/ +var EmployeePayrollRunsApi = /*#__PURE__*/function () { + /** + * Constructs a new EmployeePayrollRunsApi. + * @alias module:api/EmployeePayrollRunsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function EmployeePayrollRunsApi(apiClient) { + _classCallCheck(this, EmployeePayrollRunsApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the employeePayrollRunsList operation. + * @callback module:api/EmployeePayrollRunsApi~employeePayrollRunsListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedEmployeePayrollRunList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `EmployeePayrollRun` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {String} opts.employee_id If provided, will only return employee payroll runs for this employee. + * @param {Date} opts.ended_after If provided, will only return employee payroll runs ended after this datetime. + * @param {Date} opts.ended_before If provided, will only return employee payroll runs ended before this datetime. + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {Number} opts.page_size Number of results to return per page. + * @param {String} opts.payroll_run_id If provided, will only return employee payroll runs for this employee. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {Date} opts.started_after If provided, will only return employee payroll runs started after this datetime. + * @param {Date} opts.started_before If provided, will only return employee payroll runs started before this datetime. + * @param {module:api/EmployeePayrollRunsApi~employeePayrollRunsListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedEmployeePayrollRunList} + */ + + + _createClass(EmployeePayrollRunsApi, [{ + key: "employeePayrollRunsList", + value: function employeePayrollRunsList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling employeePayrollRunsList"); + } + + var pathParams = {}; + var queryParams = { + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'employee_id': opts['employee_id'], + 'ended_after': opts['ended_after'], + 'ended_before': opts['ended_before'], + 'expand': opts['expand'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'page_size': opts['page_size'], + 'payroll_run_id': opts['payroll_run_id'], + 'remote_id': opts['remote_id'], + 'started_after': opts['started_after'], + 'started_before': opts['started_before'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedEmployeePayrollRunList["default"]; + return this.apiClient.callApi('/employee-payroll-runs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the employeePayrollRunsRetrieve operation. + * @callback module:api/EmployeePayrollRunsApi~employeePayrollRunsRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/EmployeePayrollRun} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns an `EmployeePayrollRun` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:api/EmployeePayrollRunsApi~employeePayrollRunsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/EmployeePayrollRun} + */ + + }, { + key: "employeePayrollRunsRetrieve", + value: function employeePayrollRunsRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling employeePayrollRunsRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling employeePayrollRunsRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'expand': opts['expand'], + 'include_remote_data': opts['include_remote_data'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _EmployeePayrollRun["default"]; + return this.apiClient.callApi('/employee-payroll-runs/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return EmployeePayrollRunsApi; +}(); + +exports["default"] = EmployeePayrollRunsApi; \ No newline at end of file diff --git a/dist/api/EmployeesApi.js b/dist/api/EmployeesApi.js new file mode 100644 index 0000000..e894827 --- /dev/null +++ b/dist/api/EmployeesApi.js @@ -0,0 +1,331 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Employee = _interopRequireDefault(require("../model/Employee")); + +var _EmployeeEndpointRequest = _interopRequireDefault(require("../model/EmployeeEndpointRequest")); + +var _EmployeeResponse = _interopRequireDefault(require("../model/EmployeeResponse")); + +var _IgnoreCommonModel = _interopRequireDefault(require("../model/IgnoreCommonModel")); + +var _IgnoreCommonModelRequest = _interopRequireDefault(require("../model/IgnoreCommonModelRequest")); + +var _MetaResponse = _interopRequireDefault(require("../model/MetaResponse")); + +var _PaginatedEmployeeList = _interopRequireDefault(require("../model/PaginatedEmployeeList")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* Employees service. +* @module api/EmployeesApi +* @version 1.0 +*/ +var EmployeesApi = /*#__PURE__*/function () { + /** + * Constructs a new EmployeesApi. + * @alias module:api/EmployeesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function EmployeesApi(apiClient) { + _classCallCheck(this, EmployeesApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the employeesCreate operation. + * @callback module:api/EmployeesApi~employeesCreateCallback + * @param {String} error Error message, if any. + * @param {module:model/EmployeeResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Creates an `Employee` object with the given values. + * @param {String} x_account_token Token identifying the end user. + * @param {module:model/EmployeeEndpointRequest} employee_endpoint_request + * @param {Object} opts Optional parameters + * @param {Boolean} opts.is_debug_mode Whether to include debug fields (such as log file links) in the response. + * @param {Boolean} opts.run_async Whether or not third-party updates should be run asynchronously. + * @param {module:api/EmployeesApi~employeesCreateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/EmployeeResponse} + */ + + + _createClass(EmployeesApi, [{ + key: "employeesCreate", + value: function employeesCreate(x_account_token, employee_endpoint_request, opts, callback) { + opts = opts || {}; + var postBody = employee_endpoint_request; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling employeesCreate"); + } // verify the required parameter 'employee_endpoint_request' is set + + + if (employee_endpoint_request === undefined || employee_endpoint_request === null) { + throw new Error("Missing the required parameter 'employee_endpoint_request' when calling employeesCreate"); + } + + var pathParams = {}; + var queryParams = { + 'is_debug_mode': opts['is_debug_mode'], + 'run_async': opts['run_async'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']; + var accepts = ['application/json']; + var returnType = _EmployeeResponse["default"]; + return this.apiClient.callApi('/employees', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the employeesIgnoreCreate operation. + * @callback module:api/EmployeesApi~employeesIgnoreCreateCallback + * @param {String} error Error message, if any. + * @param {module:model/IgnoreCommonModel} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The \"reason\" and \"message\" fields in the request body will be stored for audit purposes. + * @param {String} x_account_token Token identifying the end user. + * @param {String} model_id + * @param {module:model/IgnoreCommonModelRequest} ignore_common_model_request + * @param {module:api/EmployeesApi~employeesIgnoreCreateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/IgnoreCommonModel} + */ + + }, { + key: "employeesIgnoreCreate", + value: function employeesIgnoreCreate(x_account_token, model_id, ignore_common_model_request, callback) { + var postBody = ignore_common_model_request; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling employeesIgnoreCreate"); + } // verify the required parameter 'model_id' is set + + + if (model_id === undefined || model_id === null) { + throw new Error("Missing the required parameter 'model_id' when calling employeesIgnoreCreate"); + } // verify the required parameter 'ignore_common_model_request' is set + + + if (ignore_common_model_request === undefined || ignore_common_model_request === null) { + throw new Error("Missing the required parameter 'ignore_common_model_request' when calling employeesIgnoreCreate"); + } + + var pathParams = { + 'model_id': model_id + }; + var queryParams = {}; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']; + var accepts = ['application/json']; + var returnType = _IgnoreCommonModel["default"]; + return this.apiClient.callApi('/employees/ignore/{model_id}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the employeesList operation. + * @callback module:api/EmployeesApi~employeesListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedEmployeeList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `Employee` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {String} opts.company_id If provided, will only return employees for this company. + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {String} opts.display_full_name If provided, will only return employees with this display name. + * @param {module:model/String} opts.employment_status If provided, will only return employees with this employment status. + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {String} opts.first_name If provided, will only return employees with this first name. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Boolean} opts.include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response. + * @param {String} opts.last_name If provided, will only return employees with this last name. + * @param {String} opts.manager_id If provided, will only return employees for this manager. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {Number} opts.page_size Number of results to return per page. + * @param {String} opts.pay_group_id If provided, will only return employees for this pay group + * @param {String} opts.personal_email If provided, will only return Employees with this personal email + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {String} opts.team_id If provided, will only return employees for this team. + * @param {String} opts.work_email If provided, will only return Employees with this work email + * @param {String} opts.work_location_id If provided, will only return employees for this location. + * @param {module:api/EmployeesApi~employeesListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedEmployeeList} + */ + + }, { + key: "employeesList", + value: function employeesList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling employeesList"); + } + + var pathParams = {}; + var queryParams = { + 'company_id': opts['company_id'], + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'display_full_name': opts['display_full_name'], + 'employment_status': opts['employment_status'], + 'expand': opts['expand'], + 'first_name': opts['first_name'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'include_sensitive_fields': opts['include_sensitive_fields'], + 'last_name': opts['last_name'], + 'manager_id': opts['manager_id'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'page_size': opts['page_size'], + 'pay_group_id': opts['pay_group_id'], + 'personal_email': opts['personal_email'], + 'remote_fields': opts['remote_fields'], + 'remote_id': opts['remote_id'], + 'team_id': opts['team_id'], + 'work_email': opts['work_email'], + 'work_location_id': opts['work_location_id'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedEmployeeList["default"]; + return this.apiClient.callApi('/employees', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the employeesMetaPostRetrieve operation. + * @callback module:api/EmployeesApi~employeesMetaPostRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/MetaResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns metadata for `Employee` POSTs. + * @param {String} x_account_token Token identifying the end user. + * @param {module:api/EmployeesApi~employeesMetaPostRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/MetaResponse} + */ + + }, { + key: "employeesMetaPostRetrieve", + value: function employeesMetaPostRetrieve(x_account_token, callback) { + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling employeesMetaPostRetrieve"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _MetaResponse["default"]; + return this.apiClient.callApi('/employees/meta/post', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the employeesRetrieve operation. + * @callback module:api/EmployeesApi~employeesRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/Employee} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns an `Employee` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Boolean} opts.include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {module:api/EmployeesApi~employeesRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/Employee} + */ + + }, { + key: "employeesRetrieve", + value: function employeesRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling employeesRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling employeesRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'expand': opts['expand'], + 'include_remote_data': opts['include_remote_data'], + 'include_sensitive_fields': opts['include_sensitive_fields'], + 'remote_fields': opts['remote_fields'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _Employee["default"]; + return this.apiClient.callApi('/employees/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return EmployeesApi; +}(); + +exports["default"] = EmployeesApi; \ No newline at end of file diff --git a/dist/api/EmploymentsApi.js b/dist/api/EmploymentsApi.js new file mode 100644 index 0000000..bf6bfc3 --- /dev/null +++ b/dist/api/EmploymentsApi.js @@ -0,0 +1,164 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Employment = _interopRequireDefault(require("../model/Employment")); + +var _PaginatedEmploymentList = _interopRequireDefault(require("../model/PaginatedEmploymentList")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* Employments service. +* @module api/EmploymentsApi +* @version 1.0 +*/ +var EmploymentsApi = /*#__PURE__*/function () { + /** + * Constructs a new EmploymentsApi. + * @alias module:api/EmploymentsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function EmploymentsApi(apiClient) { + _classCallCheck(this, EmploymentsApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the employmentsList operation. + * @callback module:api/EmploymentsApi~employmentsListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedEmploymentList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `Employment` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {String} opts.employee_id If provided, will only return employments for this employee. + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {module:model/String} opts.order_by Overrides the default ordering for this endpoint. + * @param {Number} opts.page_size Number of results to return per page. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {module:api/EmploymentsApi~employmentsListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedEmploymentList} + */ + + + _createClass(EmploymentsApi, [{ + key: "employmentsList", + value: function employmentsList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling employmentsList"); + } + + var pathParams = {}; + var queryParams = { + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'employee_id': opts['employee_id'], + 'expand': opts['expand'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'order_by': opts['order_by'], + 'page_size': opts['page_size'], + 'remote_fields': opts['remote_fields'], + 'remote_id': opts['remote_id'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedEmploymentList["default"]; + return this.apiClient.callApi('/employments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the employmentsRetrieve operation. + * @callback module:api/EmploymentsApi~employmentsRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/Employment} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns an `Employment` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {module:api/EmploymentsApi~employmentsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/Employment} + */ + + }, { + key: "employmentsRetrieve", + value: function employmentsRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling employmentsRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling employmentsRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'expand': opts['expand'], + 'include_remote_data': opts['include_remote_data'], + 'remote_fields': opts['remote_fields'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _Employment["default"]; + return this.apiClient.callApi('/employments/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return EmploymentsApi; +}(); + +exports["default"] = EmploymentsApi; \ No newline at end of file diff --git a/dist/api/ForceResyncApi.js b/dist/api/ForceResyncApi.js new file mode 100644 index 0000000..6bbb631 --- /dev/null +++ b/dist/api/ForceResyncApi.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _SyncStatus = _interopRequireDefault(require("../model/SyncStatus")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* ForceResync service. +* @module api/ForceResyncApi +* @version 1.0 +*/ +var ForceResyncApi = /*#__PURE__*/function () { + /** + * Constructs a new ForceResyncApi. + * @alias module:api/ForceResyncApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function ForceResyncApi(apiClient) { + _classCallCheck(this, ForceResyncApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the syncStatusResyncCreate operation. + * @callback module:api/ForceResyncApi~syncStatusResyncCreateCallback + * @param {String} error Error message, if any. + * @param {Array.} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans. + * @param {String} x_account_token Token identifying the end user. + * @param {module:api/ForceResyncApi~syncStatusResyncCreateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Array.} + */ + + + _createClass(ForceResyncApi, [{ + key: "syncStatusResyncCreate", + value: function syncStatusResyncCreate(x_account_token, callback) { + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling syncStatusResyncCreate"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = [_SyncStatus["default"]]; + return this.apiClient.callApi('/sync-status/resync', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return ForceResyncApi; +}(); + +exports["default"] = ForceResyncApi; \ No newline at end of file diff --git a/dist/api/GenerateKeyApi.js b/dist/api/GenerateKeyApi.js new file mode 100644 index 0000000..37cc822 --- /dev/null +++ b/dist/api/GenerateKeyApi.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _GenerateRemoteKeyRequest = _interopRequireDefault(require("../model/GenerateRemoteKeyRequest")); + +var _RemoteKey = _interopRequireDefault(require("../model/RemoteKey")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* GenerateKey service. +* @module api/GenerateKeyApi +* @version 1.0 +*/ +var GenerateKeyApi = /*#__PURE__*/function () { + /** + * Constructs a new GenerateKeyApi. + * @alias module:api/GenerateKeyApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function GenerateKeyApi(apiClient) { + _classCallCheck(this, GenerateKeyApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the generateKeyCreate operation. + * @callback module:api/GenerateKeyApi~generateKeyCreateCallback + * @param {String} error Error message, if any. + * @param {module:model/RemoteKey} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Create a remote key. + * @param {module:model/GenerateRemoteKeyRequest} generate_remote_key_request + * @param {module:api/GenerateKeyApi~generateKeyCreateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RemoteKey} + */ + + + _createClass(GenerateKeyApi, [{ + key: "generateKeyCreate", + value: function generateKeyCreate(generate_remote_key_request, callback) { + var postBody = generate_remote_key_request; // verify the required parameter 'generate_remote_key_request' is set + + if (generate_remote_key_request === undefined || generate_remote_key_request === null) { + throw new Error("Missing the required parameter 'generate_remote_key_request' when calling generateKeyCreate"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']; + var accepts = ['application/json']; + var returnType = _RemoteKey["default"]; + return this.apiClient.callApi('/generate-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return GenerateKeyApi; +}(); + +exports["default"] = GenerateKeyApi; \ No newline at end of file diff --git a/dist/api/GroupsApi.js b/dist/api/GroupsApi.js new file mode 100644 index 0000000..e5fe4ea --- /dev/null +++ b/dist/api/GroupsApi.js @@ -0,0 +1,156 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Group = _interopRequireDefault(require("../model/Group")); + +var _PaginatedGroupList = _interopRequireDefault(require("../model/PaginatedGroupList")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* Groups service. +* @module api/GroupsApi +* @version 1.0 +*/ +var GroupsApi = /*#__PURE__*/function () { + /** + * Constructs a new GroupsApi. + * @alias module:api/GroupsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function GroupsApi(apiClient) { + _classCallCheck(this, GroupsApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the groupsList operation. + * @callback module:api/GroupsApi~groupsListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedGroupList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `Group` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {Number} opts.page_size Number of results to return per page. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {module:api/GroupsApi~groupsListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedGroupList} + */ + + + _createClass(GroupsApi, [{ + key: "groupsList", + value: function groupsList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling groupsList"); + } + + var pathParams = {}; + var queryParams = { + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'page_size': opts['page_size'], + 'remote_fields': opts['remote_fields'], + 'remote_id': opts['remote_id'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedGroupList["default"]; + return this.apiClient.callApi('/groups', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the groupsRetrieve operation. + * @callback module:api/GroupsApi~groupsRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/Group} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a `Group` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {module:api/GroupsApi~groupsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/Group} + */ + + }, { + key: "groupsRetrieve", + value: function groupsRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling groupsRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling groupsRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'include_remote_data': opts['include_remote_data'], + 'remote_fields': opts['remote_fields'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _Group["default"]; + return this.apiClient.callApi('/groups/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return GroupsApi; +}(); + +exports["default"] = GroupsApi; \ No newline at end of file diff --git a/dist/api/IssuesApi.js b/dist/api/IssuesApi.js new file mode 100644 index 0000000..ee56bd0 --- /dev/null +++ b/dist/api/IssuesApi.js @@ -0,0 +1,139 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Issue = _interopRequireDefault(require("../model/Issue")); + +var _PaginatedIssueList = _interopRequireDefault(require("../model/PaginatedIssueList")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* Issues service. +* @module api/IssuesApi +* @version 1.0 +*/ +var IssuesApi = /*#__PURE__*/function () { + /** + * Constructs a new IssuesApi. + * @alias module:api/IssuesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function IssuesApi(apiClient) { + _classCallCheck(this, IssuesApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the issuesList operation. + * @callback module:api/IssuesApi~issuesListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedIssueList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Gets issues. + * @param {Object} opts Optional parameters + * @param {String} opts.account_token + * @param {String} opts.cursor The pagination cursor value. + * @param {String} opts.end_date If included, will only include issues whose most recent action occurred before this time + * @param {String} opts.end_user_organization_name + * @param {Date} opts.first_incident_time_after If provided, will only return issues whose first incident time was after this datetime. + * @param {Date} opts.first_incident_time_before If provided, will only return issues whose first incident time was before this datetime. + * @param {String} opts.include_muted If True, will include muted issues + * @param {String} opts.integration_name + * @param {Date} opts.last_incident_time_after If provided, will only return issues whose first incident time was after this datetime. + * @param {Date} opts.last_incident_time_before If provided, will only return issues whose first incident time was before this datetime. + * @param {Number} opts.page_size Number of results to return per page. + * @param {String} opts.start_date If included, will only include issues whose most recent action occurred after this time + * @param {module:model/String} opts.status + * @param {module:api/IssuesApi~issuesListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedIssueList} + */ + + + _createClass(IssuesApi, [{ + key: "issuesList", + value: function issuesList(opts, callback) { + opts = opts || {}; + var postBody = null; + var pathParams = {}; + var queryParams = { + 'account_token': opts['account_token'], + 'cursor': opts['cursor'], + 'end_date': opts['end_date'], + 'end_user_organization_name': opts['end_user_organization_name'], + 'first_incident_time_after': opts['first_incident_time_after'], + 'first_incident_time_before': opts['first_incident_time_before'], + 'include_muted': opts['include_muted'], + 'integration_name': opts['integration_name'], + 'last_incident_time_after': opts['last_incident_time_after'], + 'last_incident_time_before': opts['last_incident_time_before'], + 'page_size': opts['page_size'], + 'start_date': opts['start_date'], + 'status': opts['status'] + }; + var headerParams = {}; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedIssueList["default"]; + return this.apiClient.callApi('/issues', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the issuesRetrieve operation. + * @callback module:api/IssuesApi~issuesRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/Issue} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get a specific issue. + * @param {String} id + * @param {module:api/IssuesApi~issuesRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/Issue} + */ + + }, { + key: "issuesRetrieve", + value: function issuesRetrieve(id, callback) { + var postBody = null; // verify the required parameter 'id' is set + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling issuesRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _Issue["default"]; + return this.apiClient.callApi('/issues/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return IssuesApi; +}(); + +exports["default"] = IssuesApi; \ No newline at end of file diff --git a/dist/api/LinkTokenApi.js b/dist/api/LinkTokenApi.js new file mode 100644 index 0000000..8455ac8 --- /dev/null +++ b/dist/api/LinkTokenApi.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EndUserDetailsRequest = _interopRequireDefault(require("../model/EndUserDetailsRequest")); + +var _LinkToken = _interopRequireDefault(require("../model/LinkToken")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* LinkToken service. +* @module api/LinkTokenApi +* @version 1.0 +*/ +var LinkTokenApi = /*#__PURE__*/function () { + /** + * Constructs a new LinkTokenApi. + * @alias module:api/LinkTokenApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function LinkTokenApi(apiClient) { + _classCallCheck(this, LinkTokenApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the linkTokenCreate operation. + * @callback module:api/LinkTokenApi~linkTokenCreateCallback + * @param {String} error Error message, if any. + * @param {module:model/LinkToken} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Creates a link token to be used when linking a new end user. + * @param {module:model/EndUserDetailsRequest} end_user_details_request + * @param {module:api/LinkTokenApi~linkTokenCreateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/LinkToken} + */ + + + _createClass(LinkTokenApi, [{ + key: "linkTokenCreate", + value: function linkTokenCreate(end_user_details_request, callback) { + var postBody = end_user_details_request; // verify the required parameter 'end_user_details_request' is set + + if (end_user_details_request === undefined || end_user_details_request === null) { + throw new Error("Missing the required parameter 'end_user_details_request' when calling linkTokenCreate"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']; + var accepts = ['application/json']; + var returnType = _LinkToken["default"]; + return this.apiClient.callApi('/link-token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return LinkTokenApi; +}(); + +exports["default"] = LinkTokenApi; \ No newline at end of file diff --git a/dist/api/LinkedAccountsApi.js b/dist/api/LinkedAccountsApi.js new file mode 100644 index 0000000..6ea5b2f --- /dev/null +++ b/dist/api/LinkedAccountsApi.js @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _PaginatedAccountDetailsAndActionsList = _interopRequireDefault(require("../model/PaginatedAccountDetailsAndActionsList")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* LinkedAccounts service. +* @module api/LinkedAccountsApi +* @version 1.0 +*/ +var LinkedAccountsApi = /*#__PURE__*/function () { + /** + * Constructs a new LinkedAccountsApi. + * @alias module:api/LinkedAccountsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function LinkedAccountsApi(apiClient) { + _classCallCheck(this, LinkedAccountsApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the linkedAccountsList operation. + * @callback module:api/LinkedAccountsApi~linkedAccountsListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedAccountDetailsAndActionsList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * List linked accounts for your organization. + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.category + * @param {String} opts.cursor The pagination cursor value. + * @param {String} opts.end_user_email_address If provided, will only return linked accounts associated with the given email address. + * @param {String} opts.end_user_organization_name If provided, will only return linked accounts associated with the given organization name. + * @param {String} opts.end_user_origin_id If provided, will only return linked accounts associated with the given origin ID. + * @param {String} opts.end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. + * @param {String} opts.id + * @param {String} opts.ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. + * @param {String} opts.integration_name If provided, will only return linked accounts associated with the given integration name. + * @param {String} opts.is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts. + * @param {Number} opts.page_size Number of results to return per page. + * @param {String} opts.status Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED` + * @param {module:api/LinkedAccountsApi~linkedAccountsListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedAccountDetailsAndActionsList} + */ + + + _createClass(LinkedAccountsApi, [{ + key: "linkedAccountsList", + value: function linkedAccountsList(opts, callback) { + opts = opts || {}; + var postBody = null; + var pathParams = {}; + var queryParams = { + 'category': opts['category'], + 'cursor': opts['cursor'], + 'end_user_email_address': opts['end_user_email_address'], + 'end_user_organization_name': opts['end_user_organization_name'], + 'end_user_origin_id': opts['end_user_origin_id'], + 'end_user_origin_ids': opts['end_user_origin_ids'], + 'id': opts['id'], + 'ids': opts['ids'], + 'integration_name': opts['integration_name'], + 'is_test_account': opts['is_test_account'], + 'page_size': opts['page_size'], + 'status': opts['status'] + }; + var headerParams = {}; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedAccountDetailsAndActionsList["default"]; + return this.apiClient.callApi('/linked-accounts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return LinkedAccountsApi; +}(); + +exports["default"] = LinkedAccountsApi; \ No newline at end of file diff --git a/dist/api/LocationsApi.js b/dist/api/LocationsApi.js new file mode 100644 index 0000000..b9e9804 --- /dev/null +++ b/dist/api/LocationsApi.js @@ -0,0 +1,156 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Location = _interopRequireDefault(require("../model/Location")); + +var _PaginatedLocationList = _interopRequireDefault(require("../model/PaginatedLocationList")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* Locations service. +* @module api/LocationsApi +* @version 1.0 +*/ +var LocationsApi = /*#__PURE__*/function () { + /** + * Constructs a new LocationsApi. + * @alias module:api/LocationsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function LocationsApi(apiClient) { + _classCallCheck(this, LocationsApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the locationsList operation. + * @callback module:api/LocationsApi~locationsListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedLocationList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `Location` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {Number} opts.page_size Number of results to return per page. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {module:api/LocationsApi~locationsListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedLocationList} + */ + + + _createClass(LocationsApi, [{ + key: "locationsList", + value: function locationsList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling locationsList"); + } + + var pathParams = {}; + var queryParams = { + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'page_size': opts['page_size'], + 'remote_fields': opts['remote_fields'], + 'remote_id': opts['remote_id'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedLocationList["default"]; + return this.apiClient.callApi('/locations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the locationsRetrieve operation. + * @callback module:api/LocationsApi~locationsRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/Location} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a `Location` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {module:api/LocationsApi~locationsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/Location} + */ + + }, { + key: "locationsRetrieve", + value: function locationsRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling locationsRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling locationsRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'include_remote_data': opts['include_remote_data'], + 'remote_fields': opts['remote_fields'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _Location["default"]; + return this.apiClient.callApi('/locations/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return LocationsApi; +}(); + +exports["default"] = LocationsApi; \ No newline at end of file diff --git a/dist/api/PassthroughApi.js b/dist/api/PassthroughApi.js new file mode 100644 index 0000000..e199180 --- /dev/null +++ b/dist/api/PassthroughApi.js @@ -0,0 +1,88 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _DataPassthroughRequest = _interopRequireDefault(require("../model/DataPassthroughRequest")); + +var _RemoteResponse = _interopRequireDefault(require("../model/RemoteResponse")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* Passthrough service. +* @module api/PassthroughApi +* @version 1.0 +*/ +var PassthroughApi = /*#__PURE__*/function () { + /** + * Constructs a new PassthroughApi. + * @alias module:api/PassthroughApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function PassthroughApi(apiClient) { + _classCallCheck(this, PassthroughApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the passthroughCreate operation. + * @callback module:api/PassthroughApi~passthroughCreateCallback + * @param {String} error Error message, if any. + * @param {module:model/RemoteResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Pull data from an endpoint not currently supported by Merge. + * @param {String} x_account_token Token identifying the end user. + * @param {module:model/DataPassthroughRequest} data_passthrough_request + * @param {module:api/PassthroughApi~passthroughCreateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RemoteResponse} + */ + + + _createClass(PassthroughApi, [{ + key: "passthroughCreate", + value: function passthroughCreate(x_account_token, data_passthrough_request, callback) { + var postBody = data_passthrough_request; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling passthroughCreate"); + } // verify the required parameter 'data_passthrough_request' is set + + + if (data_passthrough_request === undefined || data_passthrough_request === null) { + throw new Error("Missing the required parameter 'data_passthrough_request' when calling passthroughCreate"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']; + var accepts = ['application/json']; + var returnType = _RemoteResponse["default"]; + return this.apiClient.callApi('/passthrough', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return PassthroughApi; +}(); + +exports["default"] = PassthroughApi; \ No newline at end of file diff --git a/dist/api/PayGroupsApi.js b/dist/api/PayGroupsApi.js new file mode 100644 index 0000000..74a68fa --- /dev/null +++ b/dist/api/PayGroupsApi.js @@ -0,0 +1,152 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _PaginatedPayGroupList = _interopRequireDefault(require("../model/PaginatedPayGroupList")); + +var _PayGroup = _interopRequireDefault(require("../model/PayGroup")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* PayGroups service. +* @module api/PayGroupsApi +* @version 1.0 +*/ +var PayGroupsApi = /*#__PURE__*/function () { + /** + * Constructs a new PayGroupsApi. + * @alias module:api/PayGroupsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function PayGroupsApi(apiClient) { + _classCallCheck(this, PayGroupsApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the payGroupsList operation. + * @callback module:api/PayGroupsApi~payGroupsListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedPayGroupList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `PayGroup` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {Number} opts.page_size Number of results to return per page. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {module:api/PayGroupsApi~payGroupsListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedPayGroupList} + */ + + + _createClass(PayGroupsApi, [{ + key: "payGroupsList", + value: function payGroupsList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling payGroupsList"); + } + + var pathParams = {}; + var queryParams = { + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'page_size': opts['page_size'], + 'remote_id': opts['remote_id'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedPayGroupList["default"]; + return this.apiClient.callApi('/pay-groups', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the payGroupsRetrieve operation. + * @callback module:api/PayGroupsApi~payGroupsRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/PayGroup} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a `PayGroup` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:api/PayGroupsApi~payGroupsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PayGroup} + */ + + }, { + key: "payGroupsRetrieve", + value: function payGroupsRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling payGroupsRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling payGroupsRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'include_remote_data': opts['include_remote_data'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PayGroup["default"]; + return this.apiClient.callApi('/pay-groups/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return PayGroupsApi; +}(); + +exports["default"] = PayGroupsApi; \ No newline at end of file diff --git a/dist/api/PayrollRunsApi.js b/dist/api/PayrollRunsApi.js new file mode 100644 index 0000000..3d273a8 --- /dev/null +++ b/dist/api/PayrollRunsApi.js @@ -0,0 +1,166 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _PaginatedPayrollRunList = _interopRequireDefault(require("../model/PaginatedPayrollRunList")); + +var _PayrollRun = _interopRequireDefault(require("../model/PayrollRun")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* PayrollRuns service. +* @module api/PayrollRunsApi +* @version 1.0 +*/ +var PayrollRunsApi = /*#__PURE__*/function () { + /** + * Constructs a new PayrollRunsApi. + * @alias module:api/PayrollRunsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function PayrollRunsApi(apiClient) { + _classCallCheck(this, PayrollRunsApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the payrollRunsList operation. + * @callback module:api/PayrollRunsApi~payrollRunsListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedPayrollRunList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `PayrollRun` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {Date} opts.ended_after If provided, will only return payroll runs ended after this datetime. + * @param {Date} opts.ended_before If provided, will only return payroll runs ended before this datetime. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {Number} opts.page_size Number of results to return per page. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {module:model/String} opts.run_type If provided, will only return PayrollRun's with this status. Options: ('REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS') + * @param {Date} opts.started_after If provided, will only return payroll runs started after this datetime. + * @param {Date} opts.started_before If provided, will only return payroll runs started before this datetime. + * @param {module:api/PayrollRunsApi~payrollRunsListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedPayrollRunList} + */ + + + _createClass(PayrollRunsApi, [{ + key: "payrollRunsList", + value: function payrollRunsList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling payrollRunsList"); + } + + var pathParams = {}; + var queryParams = { + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'ended_after': opts['ended_after'], + 'ended_before': opts['ended_before'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'page_size': opts['page_size'], + 'remote_fields': opts['remote_fields'], + 'remote_id': opts['remote_id'], + 'run_type': opts['run_type'], + 'started_after': opts['started_after'], + 'started_before': opts['started_before'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedPayrollRunList["default"]; + return this.apiClient.callApi('/payroll-runs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the payrollRunsRetrieve operation. + * @callback module:api/PayrollRunsApi~payrollRunsRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/PayrollRun} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a `PayrollRun` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {module:api/PayrollRunsApi~payrollRunsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PayrollRun} + */ + + }, { + key: "payrollRunsRetrieve", + value: function payrollRunsRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling payrollRunsRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling payrollRunsRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'include_remote_data': opts['include_remote_data'], + 'remote_fields': opts['remote_fields'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PayrollRun["default"]; + return this.apiClient.callApi('/payroll-runs/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return PayrollRunsApi; +}(); + +exports["default"] = PayrollRunsApi; \ No newline at end of file diff --git a/dist/api/RegenerateKeyApi.js b/dist/api/RegenerateKeyApi.js new file mode 100644 index 0000000..50c8f53 --- /dev/null +++ b/dist/api/RegenerateKeyApi.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _RemoteKey = _interopRequireDefault(require("../model/RemoteKey")); + +var _RemoteKeyForRegenerationRequest = _interopRequireDefault(require("../model/RemoteKeyForRegenerationRequest")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* RegenerateKey service. +* @module api/RegenerateKeyApi +* @version 1.0 +*/ +var RegenerateKeyApi = /*#__PURE__*/function () { + /** + * Constructs a new RegenerateKeyApi. + * @alias module:api/RegenerateKeyApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function RegenerateKeyApi(apiClient) { + _classCallCheck(this, RegenerateKeyApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the regenerateKeyCreate operation. + * @callback module:api/RegenerateKeyApi~regenerateKeyCreateCallback + * @param {String} error Error message, if any. + * @param {module:model/RemoteKey} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Exchange remote keys. + * @param {module:model/RemoteKeyForRegenerationRequest} remote_key_for_regeneration_request + * @param {module:api/RegenerateKeyApi~regenerateKeyCreateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RemoteKey} + */ + + + _createClass(RegenerateKeyApi, [{ + key: "regenerateKeyCreate", + value: function regenerateKeyCreate(remote_key_for_regeneration_request, callback) { + var postBody = remote_key_for_regeneration_request; // verify the required parameter 'remote_key_for_regeneration_request' is set + + if (remote_key_for_regeneration_request === undefined || remote_key_for_regeneration_request === null) { + throw new Error("Missing the required parameter 'remote_key_for_regeneration_request' when calling regenerateKeyCreate"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']; + var accepts = ['application/json']; + var returnType = _RemoteKey["default"]; + return this.apiClient.callApi('/regenerate-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return RegenerateKeyApi; +}(); + +exports["default"] = RegenerateKeyApi; \ No newline at end of file diff --git a/dist/api/SyncStatusApi.js b/dist/api/SyncStatusApi.js new file mode 100644 index 0000000..e9a1512 --- /dev/null +++ b/dist/api/SyncStatusApi.js @@ -0,0 +1,87 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _PaginatedSyncStatusList = _interopRequireDefault(require("../model/PaginatedSyncStatusList")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* SyncStatus service. +* @module api/SyncStatusApi +* @version 1.0 +*/ +var SyncStatusApi = /*#__PURE__*/function () { + /** + * Constructs a new SyncStatusApi. + * @alias module:api/SyncStatusApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function SyncStatusApi(apiClient) { + _classCallCheck(this, SyncStatusApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the syncStatusList operation. + * @callback module:api/SyncStatusApi~syncStatusListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedSyncStatusList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING` + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {String} opts.cursor The pagination cursor value. + * @param {Number} opts.page_size Number of results to return per page. + * @param {module:api/SyncStatusApi~syncStatusListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedSyncStatusList} + */ + + + _createClass(SyncStatusApi, [{ + key: "syncStatusList", + value: function syncStatusList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling syncStatusList"); + } + + var pathParams = {}; + var queryParams = { + 'cursor': opts['cursor'], + 'page_size': opts['page_size'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedSyncStatusList["default"]; + return this.apiClient.callApi('/sync-status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return SyncStatusApi; +}(); + +exports["default"] = SyncStatusApi; \ No newline at end of file diff --git a/dist/api/TeamsApi.js b/dist/api/TeamsApi.js new file mode 100644 index 0000000..40124bb --- /dev/null +++ b/dist/api/TeamsApi.js @@ -0,0 +1,158 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _PaginatedTeamList = _interopRequireDefault(require("../model/PaginatedTeamList")); + +var _Team = _interopRequireDefault(require("../model/Team")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* Teams service. +* @module api/TeamsApi +* @version 1.0 +*/ +var TeamsApi = /*#__PURE__*/function () { + /** + * Constructs a new TeamsApi. + * @alias module:api/TeamsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function TeamsApi(apiClient) { + _classCallCheck(this, TeamsApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the teamsList operation. + * @callback module:api/TeamsApi~teamsListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedTeamList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `Team` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {Number} opts.page_size Number of results to return per page. + * @param {String} opts.parent_team_id If provided, will only return teams with this parent team. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {module:api/TeamsApi~teamsListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedTeamList} + */ + + + _createClass(TeamsApi, [{ + key: "teamsList", + value: function teamsList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling teamsList"); + } + + var pathParams = {}; + var queryParams = { + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'expand': opts['expand'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'page_size': opts['page_size'], + 'parent_team_id': opts['parent_team_id'], + 'remote_id': opts['remote_id'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedTeamList["default"]; + return this.apiClient.callApi('/teams', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the teamsRetrieve operation. + * @callback module:api/TeamsApi~teamsRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/Team} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a `Team` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:api/TeamsApi~teamsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/Team} + */ + + }, { + key: "teamsRetrieve", + value: function teamsRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling teamsRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling teamsRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'expand': opts['expand'], + 'include_remote_data': opts['include_remote_data'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _Team["default"]; + return this.apiClient.callApi('/teams/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return TeamsApi; +}(); + +exports["default"] = TeamsApi; \ No newline at end of file diff --git a/dist/api/TimeOffApi.js b/dist/api/TimeOffApi.js new file mode 100644 index 0000000..5c0df4a --- /dev/null +++ b/dist/api/TimeOffApi.js @@ -0,0 +1,259 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _MetaResponse = _interopRequireDefault(require("../model/MetaResponse")); + +var _PaginatedTimeOffList = _interopRequireDefault(require("../model/PaginatedTimeOffList")); + +var _TimeOff = _interopRequireDefault(require("../model/TimeOff")); + +var _TimeOffEndpointRequest = _interopRequireDefault(require("../model/TimeOffEndpointRequest")); + +var _TimeOffResponse = _interopRequireDefault(require("../model/TimeOffResponse")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* TimeOff service. +* @module api/TimeOffApi +* @version 1.0 +*/ +var TimeOffApi = /*#__PURE__*/function () { + /** + * Constructs a new TimeOffApi. + * @alias module:api/TimeOffApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function TimeOffApi(apiClient) { + _classCallCheck(this, TimeOffApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the timeOffCreate operation. + * @callback module:api/TimeOffApi~timeOffCreateCallback + * @param {String} error Error message, if any. + * @param {module:model/TimeOffResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Creates a `TimeOff` object with the given values. + * @param {String} x_account_token Token identifying the end user. + * @param {module:model/TimeOffEndpointRequest} time_off_endpoint_request + * @param {Object} opts Optional parameters + * @param {Boolean} opts.is_debug_mode Whether to include debug fields (such as log file links) in the response. + * @param {Boolean} opts.run_async Whether or not third-party updates should be run asynchronously. + * @param {module:api/TimeOffApi~timeOffCreateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/TimeOffResponse} + */ + + + _createClass(TimeOffApi, [{ + key: "timeOffCreate", + value: function timeOffCreate(x_account_token, time_off_endpoint_request, opts, callback) { + opts = opts || {}; + var postBody = time_off_endpoint_request; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling timeOffCreate"); + } // verify the required parameter 'time_off_endpoint_request' is set + + + if (time_off_endpoint_request === undefined || time_off_endpoint_request === null) { + throw new Error("Missing the required parameter 'time_off_endpoint_request' when calling timeOffCreate"); + } + + var pathParams = {}; + var queryParams = { + 'is_debug_mode': opts['is_debug_mode'], + 'run_async': opts['run_async'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']; + var accepts = ['application/json']; + var returnType = _TimeOffResponse["default"]; + return this.apiClient.callApi('/time-off', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the timeOffList operation. + * @callback module:api/TimeOffApi~timeOffListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedTimeOffList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `TimeOff` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {String} opts.approver_id If provided, will only return time off for this approver. + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {String} opts.employee_id If provided, will only return time off for this employee. + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {Number} opts.page_size Number of results to return per page. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {module:model/String} opts.request_type If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') + * @param {module:model/String} opts.status If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED') + * @param {module:api/TimeOffApi~timeOffListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedTimeOffList} + */ + + }, { + key: "timeOffList", + value: function timeOffList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling timeOffList"); + } + + var pathParams = {}; + var queryParams = { + 'approver_id': opts['approver_id'], + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'employee_id': opts['employee_id'], + 'expand': opts['expand'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'page_size': opts['page_size'], + 'remote_fields': opts['remote_fields'], + 'remote_id': opts['remote_id'], + 'request_type': opts['request_type'], + 'status': opts['status'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedTimeOffList["default"]; + return this.apiClient.callApi('/time-off', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the timeOffMetaPostRetrieve operation. + * @callback module:api/TimeOffApi~timeOffMetaPostRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/MetaResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns metadata for `TimeOff` POSTs. + * @param {String} x_account_token Token identifying the end user. + * @param {module:api/TimeOffApi~timeOffMetaPostRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/MetaResponse} + */ + + }, { + key: "timeOffMetaPostRetrieve", + value: function timeOffMetaPostRetrieve(x_account_token, callback) { + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling timeOffMetaPostRetrieve"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _MetaResponse["default"]; + return this.apiClient.callApi('/time-off/meta/post', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the timeOffRetrieve operation. + * @callback module:api/TimeOffApi~timeOffRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/TimeOff} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a `TimeOff` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {module:api/TimeOffApi~timeOffRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/TimeOff} + */ + + }, { + key: "timeOffRetrieve", + value: function timeOffRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling timeOffRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling timeOffRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'expand': opts['expand'], + 'include_remote_data': opts['include_remote_data'], + 'remote_fields': opts['remote_fields'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _TimeOff["default"]; + return this.apiClient.callApi('/time-off/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return TimeOffApi; +}(); + +exports["default"] = TimeOffApi; \ No newline at end of file diff --git a/dist/api/TimeOffBalanceApi.js b/dist/api/TimeOffBalanceApi.js new file mode 100644 index 0000000..7342a36 --- /dev/null +++ b/dist/api/TimeOffBalanceApi.js @@ -0,0 +1,158 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _PaginatedTimeOffBalanceList = _interopRequireDefault(require("../model/PaginatedTimeOffBalanceList")); + +var _TimeOffBalance = _interopRequireDefault(require("../model/TimeOffBalance")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* TimeOffBalance service. +* @module api/TimeOffBalanceApi +* @version 1.0 +*/ +var TimeOffBalanceApi = /*#__PURE__*/function () { + /** + * Constructs a new TimeOffBalanceApi. + * @alias module:api/TimeOffBalanceApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function TimeOffBalanceApi(apiClient) { + _classCallCheck(this, TimeOffBalanceApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the timeOffBalanceList operation. + * @callback module:api/TimeOffBalanceApi~timeOffBalanceListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedTimeOffBalanceList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `TimeOffBalance` objects. + * @param {String} xAccountToken Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {Date} opts.createdAfter If provided, will only return objects created after this datetime. + * @param {Date} opts.createdBefore If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {String} opts.employeeId If provided, will only return time off balances for this employee. + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.includeRemoteData Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modifiedAfter If provided, will only return objects modified after this datetime. + * @param {Date} opts.modifiedBefore If provided, will only return objects modified before this datetime. + * @param {Number} opts.pageSize Number of results to return per page. + * @param {module:model/String} opts.policyType If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') + * @param {String} opts.remoteId The API provider's ID for the given object. + * @param {module:api/TimeOffBalanceApi~timeOffBalanceListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedTimeOffBalanceList} + */ + + + _createClass(TimeOffBalanceApi, [{ + key: "timeOffBalanceList", + value: function timeOffBalanceList(xAccountToken, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'xAccountToken' is set + + if (xAccountToken === undefined || xAccountToken === null) { + throw new Error("Missing the required parameter 'xAccountToken' when calling timeOffBalanceList"); + } + + var pathParams = {}; + var queryParams = { + 'created_after': opts['createdAfter'], + 'created_before': opts['createdBefore'], + 'cursor': opts['cursor'], + 'employee_id': opts['employeeId'], + 'expand': opts['expand'], + 'include_remote_data': opts['includeRemoteData'], + 'modified_after': opts['modifiedAfter'], + 'modified_before': opts['modifiedBefore'], + 'page_size': opts['pageSize'], + 'policy_type': opts['policyType'], + 'remote_id': opts['remoteId'] + }; + var headerParams = { + 'X-Account-Token': xAccountToken + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedTimeOffBalanceList["default"]; + return this.apiClient.callApi('/time-off-balance', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the timeOffBalanceRetrieve operation. + * @callback module:api/TimeOffBalanceApi~timeOffBalanceRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/TimeOffBalance} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a `TimeOffBalance` object with the given `id`. + * @param {String} xAccountToken Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.includeRemoteData Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:api/TimeOffBalanceApi~timeOffBalanceRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/TimeOffBalance} + */ + + }, { + key: "timeOffBalanceRetrieve", + value: function timeOffBalanceRetrieve(xAccountToken, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'xAccountToken' is set + + if (xAccountToken === undefined || xAccountToken === null) { + throw new Error("Missing the required parameter 'xAccountToken' when calling timeOffBalanceRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling timeOffBalanceRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'expand': opts['expand'], + 'include_remote_data': opts['includeRemoteData'] + }; + var headerParams = { + 'X-Account-Token': xAccountToken + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _TimeOffBalance["default"]; + return this.apiClient.callApi('/time-off-balance/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return TimeOffBalanceApi; +}(); + +exports["default"] = TimeOffBalanceApi; \ No newline at end of file diff --git a/dist/api/TimeOffBalancesApi.js b/dist/api/TimeOffBalancesApi.js new file mode 100644 index 0000000..81655f0 --- /dev/null +++ b/dist/api/TimeOffBalancesApi.js @@ -0,0 +1,164 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _PaginatedTimeOffBalanceList = _interopRequireDefault(require("../model/PaginatedTimeOffBalanceList")); + +var _TimeOffBalance = _interopRequireDefault(require("../model/TimeOffBalance")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* TimeOffBalances service. +* @module api/TimeOffBalancesApi +* @version 1.0 +*/ +var TimeOffBalancesApi = /*#__PURE__*/function () { + /** + * Constructs a new TimeOffBalancesApi. + * @alias module:api/TimeOffBalancesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function TimeOffBalancesApi(apiClient) { + _classCallCheck(this, TimeOffBalancesApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the timeOffBalancesList operation. + * @callback module:api/TimeOffBalancesApi~timeOffBalancesListCallback + * @param {String} error Error message, if any. + * @param {module:model/PaginatedTimeOffBalanceList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `TimeOffBalance` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {Object} opts Optional parameters + * @param {Date} opts.created_after If provided, will only return objects created after this datetime. + * @param {Date} opts.created_before If provided, will only return objects created before this datetime. + * @param {String} opts.cursor The pagination cursor value. + * @param {String} opts.employee_id If provided, will only return time off balances for this employee. + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_deleted_data Whether to include data that was marked as deleted by third party webhooks. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {Date} opts.modified_after If provided, will only return objects modified after this datetime. + * @param {Date} opts.modified_before If provided, will only return objects modified before this datetime. + * @param {Number} opts.page_size Number of results to return per page. + * @param {module:model/String} opts.policy_type If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {String} opts.remote_id The API provider's ID for the given object. + * @param {module:api/TimeOffBalancesApi~timeOffBalancesListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PaginatedTimeOffBalanceList} + */ + + + _createClass(TimeOffBalancesApi, [{ + key: "timeOffBalancesList", + value: function timeOffBalancesList(x_account_token, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling timeOffBalancesList"); + } + + var pathParams = {}; + var queryParams = { + 'created_after': opts['created_after'], + 'created_before': opts['created_before'], + 'cursor': opts['cursor'], + 'employee_id': opts['employee_id'], + 'expand': opts['expand'], + 'include_deleted_data': opts['include_deleted_data'], + 'include_remote_data': opts['include_remote_data'], + 'modified_after': opts['modified_after'], + 'modified_before': opts['modified_before'], + 'page_size': opts['page_size'], + 'policy_type': opts['policy_type'], + 'remote_fields': opts['remote_fields'], + 'remote_id': opts['remote_id'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _PaginatedTimeOffBalanceList["default"]; + return this.apiClient.callApi('/time-off-balances', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the timeOffBalancesRetrieve operation. + * @callback module:api/TimeOffBalancesApi~timeOffBalancesRetrieveCallback + * @param {String} error Error message, if any. + * @param {module:model/TimeOffBalance} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a `TimeOffBalance` object with the given `id`. + * @param {String} x_account_token Token identifying the end user. + * @param {String} id + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + * @param {Boolean} opts.include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models. + * @param {module:model/String} opts.remote_fields Which fields should be returned in non-normalized form. + * @param {module:api/TimeOffBalancesApi~timeOffBalancesRetrieveCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/TimeOffBalance} + */ + + }, { + key: "timeOffBalancesRetrieve", + value: function timeOffBalancesRetrieve(x_account_token, id, opts, callback) { + opts = opts || {}; + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling timeOffBalancesRetrieve"); + } // verify the required parameter 'id' is set + + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling timeOffBalancesRetrieve"); + } + + var pathParams = { + 'id': id + }; + var queryParams = { + 'expand': opts['expand'], + 'include_remote_data': opts['include_remote_data'], + 'remote_fields': opts['remote_fields'] + }; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _TimeOffBalance["default"]; + return this.apiClient.callApi('/time-off-balances/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return TimeOffBalancesApi; +}(); + +exports["default"] = TimeOffBalancesApi; \ No newline at end of file diff --git a/dist/api/WebhookReceiversApi.js b/dist/api/WebhookReceiversApi.js new file mode 100644 index 0000000..e58172b --- /dev/null +++ b/dist/api/WebhookReceiversApi.js @@ -0,0 +1,124 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _WebhookReceiver = _interopRequireDefault(require("../model/WebhookReceiver")); + +var _WebhookReceiverRequest = _interopRequireDefault(require("../model/WebhookReceiverRequest")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* WebhookReceivers service. +* @module api/WebhookReceiversApi +* @version 1.0 +*/ +var WebhookReceiversApi = /*#__PURE__*/function () { + /** + * Constructs a new WebhookReceiversApi. + * @alias module:api/WebhookReceiversApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function WebhookReceiversApi(apiClient) { + _classCallCheck(this, WebhookReceiversApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Callback function to receive the result of the webhookReceiversCreate operation. + * @callback module:api/WebhookReceiversApi~webhookReceiversCreateCallback + * @param {String} error Error message, if any. + * @param {module:model/WebhookReceiver} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Creates a `WebhookReceiver` object with the given values. + * @param {String} x_account_token Token identifying the end user. + * @param {module:model/WebhookReceiverRequest} webhook_receiver_request + * @param {module:api/WebhookReceiversApi~webhookReceiversCreateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/WebhookReceiver} + */ + + + _createClass(WebhookReceiversApi, [{ + key: "webhookReceiversCreate", + value: function webhookReceiversCreate(x_account_token, webhook_receiver_request, callback) { + var postBody = webhook_receiver_request; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling webhookReceiversCreate"); + } // verify the required parameter 'webhook_receiver_request' is set + + + if (webhook_receiver_request === undefined || webhook_receiver_request === null) { + throw new Error("Missing the required parameter 'webhook_receiver_request' when calling webhookReceiversCreate"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']; + var accepts = ['application/json']; + var returnType = _WebhookReceiver["default"]; + return this.apiClient.callApi('/webhook-receivers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + /** + * Callback function to receive the result of the webhookReceiversList operation. + * @callback module:api/WebhookReceiversApi~webhookReceiversListCallback + * @param {String} error Error message, if any. + * @param {Array.} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Returns a list of `WebhookReceiver` objects. + * @param {String} x_account_token Token identifying the end user. + * @param {module:api/WebhookReceiversApi~webhookReceiversListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Array.} + */ + + }, { + key: "webhookReceiversList", + value: function webhookReceiversList(x_account_token, callback) { + var postBody = null; // verify the required parameter 'x_account_token' is set + + if (x_account_token === undefined || x_account_token === null) { + throw new Error("Missing the required parameter 'x_account_token' when calling webhookReceiversList"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = { + 'X-Account-Token': x_account_token + }; + var formParams = {}; + var authNames = ['tokenAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = [_WebhookReceiver["default"]]; + return this.apiClient.callApi('/webhook-receivers', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); + } + }]); + + return WebhookReceiversApi; +}(); + +exports["default"] = WebhookReceiversApi; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..34b930c --- /dev/null +++ b/dist/index.js @@ -0,0 +1,1007 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "ApiClient", { + enumerable: true, + get: function get() { + return _ApiClient["default"]; + } +}); +Object.defineProperty(exports, "AccountDetails", { + enumerable: true, + get: function get() { + return _AccountDetails["default"]; + } +}); +Object.defineProperty(exports, "AccountDetailsAndActions", { + enumerable: true, + get: function get() { + return _AccountDetailsAndActions["default"]; + } +}); +Object.defineProperty(exports, "AccountDetailsAndActionsIntegration", { + enumerable: true, + get: function get() { + return _AccountDetailsAndActionsIntegration["default"]; + } +}); +Object.defineProperty(exports, "AccountDetailsAndActionsStatusEnum", { + enumerable: true, + get: function get() { + return _AccountDetailsAndActionsStatusEnum["default"]; + } +}); +Object.defineProperty(exports, "AccountIntegration", { + enumerable: true, + get: function get() { + return _AccountIntegration["default"]; + } +}); +Object.defineProperty(exports, "AccountToken", { + enumerable: true, + get: function get() { + return _AccountToken["default"]; + } +}); +Object.defineProperty(exports, "AccountTypeEnum", { + enumerable: true, + get: function get() { + return _AccountTypeEnum["default"]; + } +}); +Object.defineProperty(exports, "AvailableActions", { + enumerable: true, + get: function get() { + return _AvailableActions["default"]; + } +}); +Object.defineProperty(exports, "BankInfo", { + enumerable: true, + get: function get() { + return _BankInfo["default"]; + } +}); +Object.defineProperty(exports, "Benefit", { + enumerable: true, + get: function get() { + return _Benefit["default"]; + } +}); +Object.defineProperty(exports, "CategoriesEnum", { + enumerable: true, + get: function get() { + return _CategoriesEnum["default"]; + } +}); +Object.defineProperty(exports, "CategoryEnum", { + enumerable: true, + get: function get() { + return _CategoryEnum["default"]; + } +}); +Object.defineProperty(exports, "Company", { + enumerable: true, + get: function get() { + return _Company["default"]; + } +}); +Object.defineProperty(exports, "CountryEnum", { + enumerable: true, + get: function get() { + return _CountryEnum["default"]; + } +}); +Object.defineProperty(exports, "DataPassthroughRequest", { + enumerable: true, + get: function get() { + return _DataPassthroughRequest["default"]; + } +}); +Object.defineProperty(exports, "DebugModeLog", { + enumerable: true, + get: function get() { + return _DebugModeLog["default"]; + } +}); +Object.defineProperty(exports, "DebugModelLogSummary", { + enumerable: true, + get: function get() { + return _DebugModelLogSummary["default"]; + } +}); +Object.defineProperty(exports, "Deduction", { + enumerable: true, + get: function get() { + return _Deduction["default"]; + } +}); +Object.defineProperty(exports, "Earning", { + enumerable: true, + get: function get() { + return _Earning["default"]; + } +}); +Object.defineProperty(exports, "EarningTypeEnum", { + enumerable: true, + get: function get() { + return _EarningTypeEnum["default"]; + } +}); +Object.defineProperty(exports, "Employee", { + enumerable: true, + get: function get() { + return _Employee["default"]; + } +}); +Object.defineProperty(exports, "EmployeeEndpointRequest", { + enumerable: true, + get: function get() { + return _EmployeeEndpointRequest["default"]; + } +}); +Object.defineProperty(exports, "EmployeePayrollRun", { + enumerable: true, + get: function get() { + return _EmployeePayrollRun["default"]; + } +}); +Object.defineProperty(exports, "EmployeeRequest", { + enumerable: true, + get: function get() { + return _EmployeeRequest["default"]; + } +}); +Object.defineProperty(exports, "EmployeeResponse", { + enumerable: true, + get: function get() { + return _EmployeeResponse["default"]; + } +}); +Object.defineProperty(exports, "Employment", { + enumerable: true, + get: function get() { + return _Employment["default"]; + } +}); +Object.defineProperty(exports, "EmploymentStatusEnum", { + enumerable: true, + get: function get() { + return _EmploymentStatusEnum["default"]; + } +}); +Object.defineProperty(exports, "EmploymentTypeEnum", { + enumerable: true, + get: function get() { + return _EmploymentTypeEnum["default"]; + } +}); +Object.defineProperty(exports, "EncodingEnum", { + enumerable: true, + get: function get() { + return _EncodingEnum["default"]; + } +}); +Object.defineProperty(exports, "EndUserDetailsRequest", { + enumerable: true, + get: function get() { + return _EndUserDetailsRequest["default"]; + } +}); +Object.defineProperty(exports, "ErrorValidationProblem", { + enumerable: true, + get: function get() { + return _ErrorValidationProblem["default"]; + } +}); +Object.defineProperty(exports, "EthnicityEnum", { + enumerable: true, + get: function get() { + return _EthnicityEnum["default"]; + } +}); +Object.defineProperty(exports, "FlsaStatusEnum", { + enumerable: true, + get: function get() { + return _FlsaStatusEnum["default"]; + } +}); +Object.defineProperty(exports, "GenderEnum", { + enumerable: true, + get: function get() { + return _GenderEnum["default"]; + } +}); +Object.defineProperty(exports, "GenerateRemoteKeyRequest", { + enumerable: true, + get: function get() { + return _GenerateRemoteKeyRequest["default"]; + } +}); +Object.defineProperty(exports, "Group", { + enumerable: true, + get: function get() { + return _Group["default"]; + } +}); +Object.defineProperty(exports, "GroupTypeEnum", { + enumerable: true, + get: function get() { + return _GroupTypeEnum["default"]; + } +}); +Object.defineProperty(exports, "IgnoreCommonModel", { + enumerable: true, + get: function get() { + return _IgnoreCommonModel["default"]; + } +}); +Object.defineProperty(exports, "IgnoreCommonModelRequest", { + enumerable: true, + get: function get() { + return _IgnoreCommonModelRequest["default"]; + } +}); +Object.defineProperty(exports, "Issue", { + enumerable: true, + get: function get() { + return _Issue["default"]; + } +}); +Object.defineProperty(exports, "IssueStatusEnum", { + enumerable: true, + get: function get() { + return _IssueStatusEnum["default"]; + } +}); +Object.defineProperty(exports, "LinkToken", { + enumerable: true, + get: function get() { + return _LinkToken["default"]; + } +}); +Object.defineProperty(exports, "LinkedAccountStatus", { + enumerable: true, + get: function get() { + return _LinkedAccountStatus["default"]; + } +}); +Object.defineProperty(exports, "Location", { + enumerable: true, + get: function get() { + return _Location["default"]; + } +}); +Object.defineProperty(exports, "LocationTypeEnum", { + enumerable: true, + get: function get() { + return _LocationTypeEnum["default"]; + } +}); +Object.defineProperty(exports, "MaritalStatusEnum", { + enumerable: true, + get: function get() { + return _MaritalStatusEnum["default"]; + } +}); +Object.defineProperty(exports, "MetaResponse", { + enumerable: true, + get: function get() { + return _MetaResponse["default"]; + } +}); +Object.defineProperty(exports, "MethodEnum", { + enumerable: true, + get: function get() { + return _MethodEnum["default"]; + } +}); +Object.defineProperty(exports, "ModelOperation", { + enumerable: true, + get: function get() { + return _ModelOperation["default"]; + } +}); +Object.defineProperty(exports, "MultipartFormFieldRequest", { + enumerable: true, + get: function get() { + return _MultipartFormFieldRequest["default"]; + } +}); +Object.defineProperty(exports, "PaginatedAccountDetailsAndActionsList", { + enumerable: true, + get: function get() { + return _PaginatedAccountDetailsAndActionsList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedBankInfoList", { + enumerable: true, + get: function get() { + return _PaginatedBankInfoList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedBenefitList", { + enumerable: true, + get: function get() { + return _PaginatedBenefitList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedCompanyList", { + enumerable: true, + get: function get() { + return _PaginatedCompanyList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedDeductionList", { + enumerable: true, + get: function get() { + return _PaginatedDeductionList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedEmployeeList", { + enumerable: true, + get: function get() { + return _PaginatedEmployeeList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedEmployeePayrollRunList", { + enumerable: true, + get: function get() { + return _PaginatedEmployeePayrollRunList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedEmploymentList", { + enumerable: true, + get: function get() { + return _PaginatedEmploymentList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedGroupList", { + enumerable: true, + get: function get() { + return _PaginatedGroupList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedIssueList", { + enumerable: true, + get: function get() { + return _PaginatedIssueList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedLocationList", { + enumerable: true, + get: function get() { + return _PaginatedLocationList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedPayGroupList", { + enumerable: true, + get: function get() { + return _PaginatedPayGroupList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedPayrollRunList", { + enumerable: true, + get: function get() { + return _PaginatedPayrollRunList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedSyncStatusList", { + enumerable: true, + get: function get() { + return _PaginatedSyncStatusList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedTeamList", { + enumerable: true, + get: function get() { + return _PaginatedTeamList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedTimeOffBalanceList", { + enumerable: true, + get: function get() { + return _PaginatedTimeOffBalanceList["default"]; + } +}); +Object.defineProperty(exports, "PaginatedTimeOffList", { + enumerable: true, + get: function get() { + return _PaginatedTimeOffList["default"]; + } +}); +Object.defineProperty(exports, "PayCurrencyEnum", { + enumerable: true, + get: function get() { + return _PayCurrencyEnum["default"]; + } +}); +Object.defineProperty(exports, "PayFrequencyEnum", { + enumerable: true, + get: function get() { + return _PayFrequencyEnum["default"]; + } +}); +Object.defineProperty(exports, "PayGroup", { + enumerable: true, + get: function get() { + return _PayGroup["default"]; + } +}); +Object.defineProperty(exports, "PayPeriodEnum", { + enumerable: true, + get: function get() { + return _PayPeriodEnum["default"]; + } +}); +Object.defineProperty(exports, "PayrollRun", { + enumerable: true, + get: function get() { + return _PayrollRun["default"]; + } +}); +Object.defineProperty(exports, "PolicyTypeEnum", { + enumerable: true, + get: function get() { + return _PolicyTypeEnum["default"]; + } +}); +Object.defineProperty(exports, "ReasonEnum", { + enumerable: true, + get: function get() { + return _ReasonEnum["default"]; + } +}); +Object.defineProperty(exports, "RemoteData", { + enumerable: true, + get: function get() { + return _RemoteData["default"]; + } +}); +Object.defineProperty(exports, "RemoteKey", { + enumerable: true, + get: function get() { + return _RemoteKey["default"]; + } +}); +Object.defineProperty(exports, "RemoteKeyForRegenerationRequest", { + enumerable: true, + get: function get() { + return _RemoteKeyForRegenerationRequest["default"]; + } +}); +Object.defineProperty(exports, "RemoteResponse", { + enumerable: true, + get: function get() { + return _RemoteResponse["default"]; + } +}); +Object.defineProperty(exports, "RequestFormatEnum", { + enumerable: true, + get: function get() { + return _RequestFormatEnum["default"]; + } +}); +Object.defineProperty(exports, "RequestTypeEnum", { + enumerable: true, + get: function get() { + return _RequestTypeEnum["default"]; + } +}); +Object.defineProperty(exports, "RunStateEnum", { + enumerable: true, + get: function get() { + return _RunStateEnum["default"]; + } +}); +Object.defineProperty(exports, "RunTypeEnum", { + enumerable: true, + get: function get() { + return _RunTypeEnum["default"]; + } +}); +Object.defineProperty(exports, "SyncStatus", { + enumerable: true, + get: function get() { + return _SyncStatus["default"]; + } +}); +Object.defineProperty(exports, "SyncStatusStatusEnum", { + enumerable: true, + get: function get() { + return _SyncStatusStatusEnum["default"]; + } +}); +Object.defineProperty(exports, "Tax", { + enumerable: true, + get: function get() { + return _Tax["default"]; + } +}); +Object.defineProperty(exports, "Team", { + enumerable: true, + get: function get() { + return _Team["default"]; + } +}); +Object.defineProperty(exports, "TimeOff", { + enumerable: true, + get: function get() { + return _TimeOff["default"]; + } +}); +Object.defineProperty(exports, "TimeOffBalance", { + enumerable: true, + get: function get() { + return _TimeOffBalance["default"]; + } +}); +Object.defineProperty(exports, "TimeOffEndpointRequest", { + enumerable: true, + get: function get() { + return _TimeOffEndpointRequest["default"]; + } +}); +Object.defineProperty(exports, "TimeOffRequest", { + enumerable: true, + get: function get() { + return _TimeOffRequest["default"]; + } +}); +Object.defineProperty(exports, "TimeOffResponse", { + enumerable: true, + get: function get() { + return _TimeOffResponse["default"]; + } +}); +Object.defineProperty(exports, "TimeOffStatusEnum", { + enumerable: true, + get: function get() { + return _TimeOffStatusEnum["default"]; + } +}); +Object.defineProperty(exports, "UnitsEnum", { + enumerable: true, + get: function get() { + return _UnitsEnum["default"]; + } +}); +Object.defineProperty(exports, "ValidationProblemSource", { + enumerable: true, + get: function get() { + return _ValidationProblemSource["default"]; + } +}); +Object.defineProperty(exports, "WarningValidationProblem", { + enumerable: true, + get: function get() { + return _WarningValidationProblem["default"]; + } +}); +Object.defineProperty(exports, "WebhookReceiver", { + enumerable: true, + get: function get() { + return _WebhookReceiver["default"]; + } +}); +Object.defineProperty(exports, "WebhookReceiverRequest", { + enumerable: true, + get: function get() { + return _WebhookReceiverRequest["default"]; + } +}); +Object.defineProperty(exports, "AccountDetailsApi", { + enumerable: true, + get: function get() { + return _AccountDetailsApi["default"]; + } +}); +Object.defineProperty(exports, "AccountTokenApi", { + enumerable: true, + get: function get() { + return _AccountTokenApi["default"]; + } +}); +Object.defineProperty(exports, "AvailableActionsApi", { + enumerable: true, + get: function get() { + return _AvailableActionsApi["default"]; + } +}); +Object.defineProperty(exports, "BankInfoApi", { + enumerable: true, + get: function get() { + return _BankInfoApi["default"]; + } +}); +Object.defineProperty(exports, "BenefitsApi", { + enumerable: true, + get: function get() { + return _BenefitsApi["default"]; + } +}); +Object.defineProperty(exports, "CompaniesApi", { + enumerable: true, + get: function get() { + return _CompaniesApi["default"]; + } +}); +Object.defineProperty(exports, "DeductionsApi", { + enumerable: true, + get: function get() { + return _DeductionsApi["default"]; + } +}); +Object.defineProperty(exports, "DeleteAccountApi", { + enumerable: true, + get: function get() { + return _DeleteAccountApi["default"]; + } +}); +Object.defineProperty(exports, "EmployeePayrollRunsApi", { + enumerable: true, + get: function get() { + return _EmployeePayrollRunsApi["default"]; + } +}); +Object.defineProperty(exports, "EmployeesApi", { + enumerable: true, + get: function get() { + return _EmployeesApi["default"]; + } +}); +Object.defineProperty(exports, "EmploymentsApi", { + enumerable: true, + get: function get() { + return _EmploymentsApi["default"]; + } +}); +Object.defineProperty(exports, "ForceResyncApi", { + enumerable: true, + get: function get() { + return _ForceResyncApi["default"]; + } +}); +Object.defineProperty(exports, "GenerateKeyApi", { + enumerable: true, + get: function get() { + return _GenerateKeyApi["default"]; + } +}); +Object.defineProperty(exports, "GroupsApi", { + enumerable: true, + get: function get() { + return _GroupsApi["default"]; + } +}); +Object.defineProperty(exports, "IssuesApi", { + enumerable: true, + get: function get() { + return _IssuesApi["default"]; + } +}); +Object.defineProperty(exports, "LinkTokenApi", { + enumerable: true, + get: function get() { + return _LinkTokenApi["default"]; + } +}); +Object.defineProperty(exports, "LinkedAccountsApi", { + enumerable: true, + get: function get() { + return _LinkedAccountsApi["default"]; + } +}); +Object.defineProperty(exports, "LocationsApi", { + enumerable: true, + get: function get() { + return _LocationsApi["default"]; + } +}); +Object.defineProperty(exports, "PassthroughApi", { + enumerable: true, + get: function get() { + return _PassthroughApi["default"]; + } +}); +Object.defineProperty(exports, "PayGroupsApi", { + enumerable: true, + get: function get() { + return _PayGroupsApi["default"]; + } +}); +Object.defineProperty(exports, "PayrollRunsApi", { + enumerable: true, + get: function get() { + return _PayrollRunsApi["default"]; + } +}); +Object.defineProperty(exports, "RegenerateKeyApi", { + enumerable: true, + get: function get() { + return _RegenerateKeyApi["default"]; + } +}); +Object.defineProperty(exports, "SyncStatusApi", { + enumerable: true, + get: function get() { + return _SyncStatusApi["default"]; + } +}); +Object.defineProperty(exports, "TeamsApi", { + enumerable: true, + get: function get() { + return _TeamsApi["default"]; + } +}); +Object.defineProperty(exports, "TimeOffApi", { + enumerable: true, + get: function get() { + return _TimeOffApi["default"]; + } +}); +Object.defineProperty(exports, "TimeOffBalancesApi", { + enumerable: true, + get: function get() { + return _TimeOffBalancesApi["default"]; + } +}); +Object.defineProperty(exports, "WebhookReceiversApi", { + enumerable: true, + get: function get() { + return _WebhookReceiversApi["default"]; + } +}); + +var _ApiClient = _interopRequireDefault(require("./ApiClient")); + +var _AccountDetails = _interopRequireDefault(require("./model/AccountDetails")); + +var _AccountDetailsAndActions = _interopRequireDefault(require("./model/AccountDetailsAndActions")); + +var _AccountDetailsAndActionsIntegration = _interopRequireDefault(require("./model/AccountDetailsAndActionsIntegration")); + +var _AccountDetailsAndActionsStatusEnum = _interopRequireDefault(require("./model/AccountDetailsAndActionsStatusEnum")); + +var _AccountIntegration = _interopRequireDefault(require("./model/AccountIntegration")); + +var _AccountToken = _interopRequireDefault(require("./model/AccountToken")); + +var _AccountTypeEnum = _interopRequireDefault(require("./model/AccountTypeEnum")); + +var _AvailableActions = _interopRequireDefault(require("./model/AvailableActions")); + +var _BankInfo = _interopRequireDefault(require("./model/BankInfo")); + +var _Benefit = _interopRequireDefault(require("./model/Benefit")); + +var _CategoriesEnum = _interopRequireDefault(require("./model/CategoriesEnum")); + +var _CategoryEnum = _interopRequireDefault(require("./model/CategoryEnum")); + +var _Company = _interopRequireDefault(require("./model/Company")); + +var _CountryEnum = _interopRequireDefault(require("./model/CountryEnum")); + +var _DataPassthroughRequest = _interopRequireDefault(require("./model/DataPassthroughRequest")); + +var _DebugModeLog = _interopRequireDefault(require("./model/DebugModeLog")); + +var _DebugModelLogSummary = _interopRequireDefault(require("./model/DebugModelLogSummary")); + +var _Deduction = _interopRequireDefault(require("./model/Deduction")); + +var _Earning = _interopRequireDefault(require("./model/Earning")); + +var _EarningTypeEnum = _interopRequireDefault(require("./model/EarningTypeEnum")); + +var _Employee = _interopRequireDefault(require("./model/Employee")); + +var _EmployeeEndpointRequest = _interopRequireDefault(require("./model/EmployeeEndpointRequest")); + +var _EmployeePayrollRun = _interopRequireDefault(require("./model/EmployeePayrollRun")); + +var _EmployeeRequest = _interopRequireDefault(require("./model/EmployeeRequest")); + +var _EmployeeResponse = _interopRequireDefault(require("./model/EmployeeResponse")); + +var _Employment = _interopRequireDefault(require("./model/Employment")); + +var _EmploymentStatusEnum = _interopRequireDefault(require("./model/EmploymentStatusEnum")); + +var _EmploymentTypeEnum = _interopRequireDefault(require("./model/EmploymentTypeEnum")); + +var _EncodingEnum = _interopRequireDefault(require("./model/EncodingEnum")); + +var _EndUserDetailsRequest = _interopRequireDefault(require("./model/EndUserDetailsRequest")); + +var _ErrorValidationProblem = _interopRequireDefault(require("./model/ErrorValidationProblem")); + +var _EthnicityEnum = _interopRequireDefault(require("./model/EthnicityEnum")); + +var _FlsaStatusEnum = _interopRequireDefault(require("./model/FlsaStatusEnum")); + +var _GenderEnum = _interopRequireDefault(require("./model/GenderEnum")); + +var _GenerateRemoteKeyRequest = _interopRequireDefault(require("./model/GenerateRemoteKeyRequest")); + +var _Group = _interopRequireDefault(require("./model/Group")); + +var _GroupTypeEnum = _interopRequireDefault(require("./model/GroupTypeEnum")); + +var _IgnoreCommonModel = _interopRequireDefault(require("./model/IgnoreCommonModel")); + +var _IgnoreCommonModelRequest = _interopRequireDefault(require("./model/IgnoreCommonModelRequest")); + +var _Issue = _interopRequireDefault(require("./model/Issue")); + +var _IssueStatusEnum = _interopRequireDefault(require("./model/IssueStatusEnum")); + +var _LinkToken = _interopRequireDefault(require("./model/LinkToken")); + +var _LinkedAccountStatus = _interopRequireDefault(require("./model/LinkedAccountStatus")); + +var _Location = _interopRequireDefault(require("./model/Location")); + +var _LocationTypeEnum = _interopRequireDefault(require("./model/LocationTypeEnum")); + +var _MaritalStatusEnum = _interopRequireDefault(require("./model/MaritalStatusEnum")); + +var _MetaResponse = _interopRequireDefault(require("./model/MetaResponse")); + +var _MethodEnum = _interopRequireDefault(require("./model/MethodEnum")); + +var _ModelOperation = _interopRequireDefault(require("./model/ModelOperation")); + +var _MultipartFormFieldRequest = _interopRequireDefault(require("./model/MultipartFormFieldRequest")); + +var _PaginatedAccountDetailsAndActionsList = _interopRequireDefault(require("./model/PaginatedAccountDetailsAndActionsList")); + +var _PaginatedBankInfoList = _interopRequireDefault(require("./model/PaginatedBankInfoList")); + +var _PaginatedBenefitList = _interopRequireDefault(require("./model/PaginatedBenefitList")); + +var _PaginatedCompanyList = _interopRequireDefault(require("./model/PaginatedCompanyList")); + +var _PaginatedDeductionList = _interopRequireDefault(require("./model/PaginatedDeductionList")); + +var _PaginatedEmployeeList = _interopRequireDefault(require("./model/PaginatedEmployeeList")); + +var _PaginatedEmployeePayrollRunList = _interopRequireDefault(require("./model/PaginatedEmployeePayrollRunList")); + +var _PaginatedEmploymentList = _interopRequireDefault(require("./model/PaginatedEmploymentList")); + +var _PaginatedGroupList = _interopRequireDefault(require("./model/PaginatedGroupList")); + +var _PaginatedIssueList = _interopRequireDefault(require("./model/PaginatedIssueList")); + +var _PaginatedLocationList = _interopRequireDefault(require("./model/PaginatedLocationList")); + +var _PaginatedPayGroupList = _interopRequireDefault(require("./model/PaginatedPayGroupList")); + +var _PaginatedPayrollRunList = _interopRequireDefault(require("./model/PaginatedPayrollRunList")); + +var _PaginatedSyncStatusList = _interopRequireDefault(require("./model/PaginatedSyncStatusList")); + +var _PaginatedTeamList = _interopRequireDefault(require("./model/PaginatedTeamList")); + +var _PaginatedTimeOffBalanceList = _interopRequireDefault(require("./model/PaginatedTimeOffBalanceList")); + +var _PaginatedTimeOffList = _interopRequireDefault(require("./model/PaginatedTimeOffList")); + +var _PayCurrencyEnum = _interopRequireDefault(require("./model/PayCurrencyEnum")); + +var _PayFrequencyEnum = _interopRequireDefault(require("./model/PayFrequencyEnum")); + +var _PayGroup = _interopRequireDefault(require("./model/PayGroup")); + +var _PayPeriodEnum = _interopRequireDefault(require("./model/PayPeriodEnum")); + +var _PayrollRun = _interopRequireDefault(require("./model/PayrollRun")); + +var _PolicyTypeEnum = _interopRequireDefault(require("./model/PolicyTypeEnum")); + +var _ReasonEnum = _interopRequireDefault(require("./model/ReasonEnum")); + +var _RemoteData = _interopRequireDefault(require("./model/RemoteData")); + +var _RemoteKey = _interopRequireDefault(require("./model/RemoteKey")); + +var _RemoteKeyForRegenerationRequest = _interopRequireDefault(require("./model/RemoteKeyForRegenerationRequest")); + +var _RemoteResponse = _interopRequireDefault(require("./model/RemoteResponse")); + +var _RequestFormatEnum = _interopRequireDefault(require("./model/RequestFormatEnum")); + +var _RequestTypeEnum = _interopRequireDefault(require("./model/RequestTypeEnum")); + +var _RunStateEnum = _interopRequireDefault(require("./model/RunStateEnum")); + +var _RunTypeEnum = _interopRequireDefault(require("./model/RunTypeEnum")); + +var _SyncStatus = _interopRequireDefault(require("./model/SyncStatus")); + +var _SyncStatusStatusEnum = _interopRequireDefault(require("./model/SyncStatusStatusEnum")); + +var _Tax = _interopRequireDefault(require("./model/Tax")); + +var _Team = _interopRequireDefault(require("./model/Team")); + +var _TimeOff = _interopRequireDefault(require("./model/TimeOff")); + +var _TimeOffBalance = _interopRequireDefault(require("./model/TimeOffBalance")); + +var _TimeOffEndpointRequest = _interopRequireDefault(require("./model/TimeOffEndpointRequest")); + +var _TimeOffRequest = _interopRequireDefault(require("./model/TimeOffRequest")); + +var _TimeOffResponse = _interopRequireDefault(require("./model/TimeOffResponse")); + +var _TimeOffStatusEnum = _interopRequireDefault(require("./model/TimeOffStatusEnum")); + +var _UnitsEnum = _interopRequireDefault(require("./model/UnitsEnum")); + +var _ValidationProblemSource = _interopRequireDefault(require("./model/ValidationProblemSource")); + +var _WarningValidationProblem = _interopRequireDefault(require("./model/WarningValidationProblem")); + +var _WebhookReceiver = _interopRequireDefault(require("./model/WebhookReceiver")); + +var _WebhookReceiverRequest = _interopRequireDefault(require("./model/WebhookReceiverRequest")); + +var _AccountDetailsApi = _interopRequireDefault(require("./api/AccountDetailsApi")); + +var _AccountTokenApi = _interopRequireDefault(require("./api/AccountTokenApi")); + +var _AvailableActionsApi = _interopRequireDefault(require("./api/AvailableActionsApi")); + +var _BankInfoApi = _interopRequireDefault(require("./api/BankInfoApi")); + +var _BenefitsApi = _interopRequireDefault(require("./api/BenefitsApi")); + +var _CompaniesApi = _interopRequireDefault(require("./api/CompaniesApi")); + +var _DeductionsApi = _interopRequireDefault(require("./api/DeductionsApi")); + +var _DeleteAccountApi = _interopRequireDefault(require("./api/DeleteAccountApi")); + +var _EmployeePayrollRunsApi = _interopRequireDefault(require("./api/EmployeePayrollRunsApi")); + +var _EmployeesApi = _interopRequireDefault(require("./api/EmployeesApi")); + +var _EmploymentsApi = _interopRequireDefault(require("./api/EmploymentsApi")); + +var _ForceResyncApi = _interopRequireDefault(require("./api/ForceResyncApi")); + +var _GenerateKeyApi = _interopRequireDefault(require("./api/GenerateKeyApi")); + +var _GroupsApi = _interopRequireDefault(require("./api/GroupsApi")); + +var _IssuesApi = _interopRequireDefault(require("./api/IssuesApi")); + +var _LinkTokenApi = _interopRequireDefault(require("./api/LinkTokenApi")); + +var _LinkedAccountsApi = _interopRequireDefault(require("./api/LinkedAccountsApi")); + +var _LocationsApi = _interopRequireDefault(require("./api/LocationsApi")); + +var _PassthroughApi = _interopRequireDefault(require("./api/PassthroughApi")); + +var _PayGroupsApi = _interopRequireDefault(require("./api/PayGroupsApi")); + +var _PayrollRunsApi = _interopRequireDefault(require("./api/PayrollRunsApi")); + +var _RegenerateKeyApi = _interopRequireDefault(require("./api/RegenerateKeyApi")); + +var _SyncStatusApi = _interopRequireDefault(require("./api/SyncStatusApi")); + +var _TeamsApi = _interopRequireDefault(require("./api/TeamsApi")); + +var _TimeOffApi = _interopRequireDefault(require("./api/TimeOffApi")); + +var _TimeOffBalancesApi = _interopRequireDefault(require("./api/TimeOffBalancesApi")); + +var _WebhookReceiversApi = _interopRequireDefault(require("./api/WebhookReceiversApi")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } \ No newline at end of file diff --git a/dist/model/AccountDetails.js b/dist/model/AccountDetails.js new file mode 100644 index 0000000..79c02b0 --- /dev/null +++ b/dist/model/AccountDetails.js @@ -0,0 +1,149 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _CategoryEnum = _interopRequireDefault(require("./CategoryEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AccountDetails model module. + * @module model/AccountDetails + * @version 1.0 + */ +var AccountDetails = /*#__PURE__*/function () { + /** + * Constructs a new AccountDetails. + * @alias module:model/AccountDetails + */ + function AccountDetails() { + _classCallCheck(this, AccountDetails); + + AccountDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AccountDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AccountDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountDetails} obj Optional instance to populate. + * @return {module:model/AccountDetails} The populated AccountDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountDetails(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('integration')) { + obj['integration'] = _ApiClient["default"].convertToType(data['integration'], 'String'); + } + + if (data.hasOwnProperty('integration_slug')) { + obj['integration_slug'] = _ApiClient["default"].convertToType(data['integration_slug'], 'String'); + } + + if (data.hasOwnProperty('category')) { + obj['category'] = _ApiClient["default"].convertToType(data['category'], _CategoryEnum["default"]); + } + + if (data.hasOwnProperty('end_user_origin_id')) { + obj['end_user_origin_id'] = _ApiClient["default"].convertToType(data['end_user_origin_id'], 'String'); + } + + if (data.hasOwnProperty('end_user_organization_name')) { + obj['end_user_organization_name'] = _ApiClient["default"].convertToType(data['end_user_organization_name'], 'String'); + } + + if (data.hasOwnProperty('end_user_email_address')) { + obj['end_user_email_address'] = _ApiClient["default"].convertToType(data['end_user_email_address'], 'String'); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); + } + + if (data.hasOwnProperty('webhook_listener_url')) { + obj['webhook_listener_url'] = _ApiClient["default"].convertToType(data['webhook_listener_url'], 'String'); + } + } + + return obj; + } + }]); + + return AccountDetails; +}(); +/** + * @member {String} id + */ + + +AccountDetails.prototype['id'] = undefined; +/** + * @member {String} integration + */ + +AccountDetails.prototype['integration'] = undefined; +/** + * @member {String} integration_slug + */ + +AccountDetails.prototype['integration_slug'] = undefined; +/** + * @member {module:model/CategoryEnum} category + */ + +AccountDetails.prototype['category'] = undefined; +/** + * @member {String} end_user_origin_id + */ + +AccountDetails.prototype['end_user_origin_id'] = undefined; +/** + * @member {String} end_user_organization_name + */ + +AccountDetails.prototype['end_user_organization_name'] = undefined; +/** + * @member {String} end_user_email_address + */ + +AccountDetails.prototype['end_user_email_address'] = undefined; +/** + * @member {String} status + */ + +AccountDetails.prototype['status'] = undefined; +/** + * @member {String} webhook_listener_url + */ + +AccountDetails.prototype['webhook_listener_url'] = undefined; +var _default = AccountDetails; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AccountDetailsAndActions.js b/dist/model/AccountDetailsAndActions.js new file mode 100644 index 0000000..3e17429 --- /dev/null +++ b/dist/model/AccountDetailsAndActions.js @@ -0,0 +1,165 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AccountDetailsAndActionsIntegration = _interopRequireDefault(require("./AccountDetailsAndActionsIntegration")); + +var _AccountDetailsAndActionsStatusEnum = _interopRequireDefault(require("./AccountDetailsAndActionsStatusEnum")); + +var _CategoryEnum = _interopRequireDefault(require("./CategoryEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AccountDetailsAndActions model module. + * @module model/AccountDetailsAndActions + * @version 1.0 + */ +var AccountDetailsAndActions = /*#__PURE__*/function () { + /** + * Constructs a new AccountDetailsAndActions. + * # The LinkedAccount Object ### Description The `LinkedAccount` object is used to represent an end user's link with a specific integration. ### Usage Example View a list of your organization's `LinkedAccount` objects. + * @alias module:model/AccountDetailsAndActions + * @param id {String} + * @param status {module:model/AccountDetailsAndActionsStatusEnum} + * @param end_user_organization_name {String} + * @param end_user_email_address {String} + * @param webhook_listener_url {String} + */ + function AccountDetailsAndActions(id, status, end_user_organization_name, end_user_email_address, webhook_listener_url) { + _classCallCheck(this, AccountDetailsAndActions); + + AccountDetailsAndActions.initialize(this, id, status, end_user_organization_name, end_user_email_address, webhook_listener_url); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AccountDetailsAndActions, null, [{ + key: "initialize", + value: function initialize(obj, id, status, end_user_organization_name, end_user_email_address, webhook_listener_url) { + obj['id'] = id; + obj['status'] = status; + obj['end_user_organization_name'] = end_user_organization_name; + obj['end_user_email_address'] = end_user_email_address; + obj['webhook_listener_url'] = webhook_listener_url; + } + /** + * Constructs a AccountDetailsAndActions from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountDetailsAndActions} obj Optional instance to populate. + * @return {module:model/AccountDetailsAndActions} The populated AccountDetailsAndActions instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountDetailsAndActions(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('category')) { + obj['category'] = _ApiClient["default"].convertToType(data['category'], _CategoryEnum["default"]); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], _AccountDetailsAndActionsStatusEnum["default"]); + } + + if (data.hasOwnProperty('status_detail')) { + obj['status_detail'] = _ApiClient["default"].convertToType(data['status_detail'], 'String'); + } + + if (data.hasOwnProperty('end_user_origin_id')) { + obj['end_user_origin_id'] = _ApiClient["default"].convertToType(data['end_user_origin_id'], 'String'); + } + + if (data.hasOwnProperty('end_user_organization_name')) { + obj['end_user_organization_name'] = _ApiClient["default"].convertToType(data['end_user_organization_name'], 'String'); + } + + if (data.hasOwnProperty('end_user_email_address')) { + obj['end_user_email_address'] = _ApiClient["default"].convertToType(data['end_user_email_address'], 'String'); + } + + if (data.hasOwnProperty('webhook_listener_url')) { + obj['webhook_listener_url'] = _ApiClient["default"].convertToType(data['webhook_listener_url'], 'String'); + } + + if (data.hasOwnProperty('integration')) { + obj['integration'] = _AccountDetailsAndActionsIntegration["default"].constructFromObject(data['integration']); + } + } + + return obj; + } + }]); + + return AccountDetailsAndActions; +}(); +/** + * @member {String} id + */ + + +AccountDetailsAndActions.prototype['id'] = undefined; +/** + * @member {module:model/CategoryEnum} category + */ + +AccountDetailsAndActions.prototype['category'] = undefined; +/** + * @member {module:model/AccountDetailsAndActionsStatusEnum} status + */ + +AccountDetailsAndActions.prototype['status'] = undefined; +/** + * @member {String} status_detail + */ + +AccountDetailsAndActions.prototype['status_detail'] = undefined; +/** + * @member {String} end_user_origin_id + */ + +AccountDetailsAndActions.prototype['end_user_origin_id'] = undefined; +/** + * @member {String} end_user_organization_name + */ + +AccountDetailsAndActions.prototype['end_user_organization_name'] = undefined; +/** + * @member {String} end_user_email_address + */ + +AccountDetailsAndActions.prototype['end_user_email_address'] = undefined; +/** + * @member {String} webhook_listener_url + */ + +AccountDetailsAndActions.prototype['webhook_listener_url'] = undefined; +/** + * @member {module:model/AccountDetailsAndActionsIntegration} integration + */ + +AccountDetailsAndActions.prototype['integration'] = undefined; +var _default = AccountDetailsAndActions; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AccountDetailsAndActionsIntegration.js b/dist/model/AccountDetailsAndActionsIntegration.js new file mode 100644 index 0000000..a32ae51 --- /dev/null +++ b/dist/model/AccountDetailsAndActionsIntegration.js @@ -0,0 +1,153 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _CategoriesEnum = _interopRequireDefault(require("./CategoriesEnum")); + +var _ModelOperation = _interopRequireDefault(require("./ModelOperation")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AccountDetailsAndActionsIntegration model module. + * @module model/AccountDetailsAndActionsIntegration + * @version 1.0 + */ +var AccountDetailsAndActionsIntegration = /*#__PURE__*/function () { + /** + * Constructs a new AccountDetailsAndActionsIntegration. + * @alias module:model/AccountDetailsAndActionsIntegration + * @param name {String} + * @param categories {Array.} + * @param color {String} + * @param slug {String} + * @param passthrough_available {Boolean} + */ + function AccountDetailsAndActionsIntegration(name, categories, color, slug, passthrough_available) { + _classCallCheck(this, AccountDetailsAndActionsIntegration); + + AccountDetailsAndActionsIntegration.initialize(this, name, categories, color, slug, passthrough_available); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AccountDetailsAndActionsIntegration, null, [{ + key: "initialize", + value: function initialize(obj, name, categories, color, slug, passthrough_available) { + obj['name'] = name; + obj['categories'] = categories; + obj['color'] = color; + obj['slug'] = slug; + obj['passthrough_available'] = passthrough_available; + } + /** + * Constructs a AccountDetailsAndActionsIntegration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountDetailsAndActionsIntegration} obj Optional instance to populate. + * @return {module:model/AccountDetailsAndActionsIntegration} The populated AccountDetailsAndActionsIntegration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountDetailsAndActionsIntegration(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('categories')) { + obj['categories'] = _ApiClient["default"].convertToType(data['categories'], [_CategoriesEnum["default"]]); + } + + if (data.hasOwnProperty('image')) { + obj['image'] = _ApiClient["default"].convertToType(data['image'], 'String'); + } + + if (data.hasOwnProperty('square_image')) { + obj['square_image'] = _ApiClient["default"].convertToType(data['square_image'], 'String'); + } + + if (data.hasOwnProperty('color')) { + obj['color'] = _ApiClient["default"].convertToType(data['color'], 'String'); + } + + if (data.hasOwnProperty('slug')) { + obj['slug'] = _ApiClient["default"].convertToType(data['slug'], 'String'); + } + + if (data.hasOwnProperty('passthrough_available')) { + obj['passthrough_available'] = _ApiClient["default"].convertToType(data['passthrough_available'], 'Boolean'); + } + + if (data.hasOwnProperty('available_model_operations')) { + obj['available_model_operations'] = _ApiClient["default"].convertToType(data['available_model_operations'], [_ModelOperation["default"]]); + } + } + + return obj; + } + }]); + + return AccountDetailsAndActionsIntegration; +}(); +/** + * @member {String} name + */ + + +AccountDetailsAndActionsIntegration.prototype['name'] = undefined; +/** + * @member {Array.} categories + */ + +AccountDetailsAndActionsIntegration.prototype['categories'] = undefined; +/** + * @member {String} image + */ + +AccountDetailsAndActionsIntegration.prototype['image'] = undefined; +/** + * @member {String} square_image + */ + +AccountDetailsAndActionsIntegration.prototype['square_image'] = undefined; +/** + * @member {String} color + */ + +AccountDetailsAndActionsIntegration.prototype['color'] = undefined; +/** + * @member {String} slug + */ + +AccountDetailsAndActionsIntegration.prototype['slug'] = undefined; +/** + * @member {Boolean} passthrough_available + */ + +AccountDetailsAndActionsIntegration.prototype['passthrough_available'] = undefined; +/** + * @member {Array.} available_model_operations + */ + +AccountDetailsAndActionsIntegration.prototype['available_model_operations'] = undefined; +var _default = AccountDetailsAndActionsIntegration; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AccountDetailsAndActionsStatusEnum.js b/dist/model/AccountDetailsAndActionsStatusEnum.js new file mode 100644 index 0000000..c816406 --- /dev/null +++ b/dist/model/AccountDetailsAndActionsStatusEnum.js @@ -0,0 +1,52 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class AccountDetailsAndActionsStatusEnum. +* @enum {} +* @readonly +*/ +var AccountDetailsAndActionsStatusEnum = /*#__PURE__*/function () { + function AccountDetailsAndActionsStatusEnum() { + _classCallCheck(this, AccountDetailsAndActionsStatusEnum); + + _defineProperty(this, "COMPLETE", "COMPLETE"); + + _defineProperty(this, "INCOMPLETE", "INCOMPLETE"); + + _defineProperty(this, "RELINK_NEEDED", "RELINK_NEEDED"); + } + + _createClass(AccountDetailsAndActionsStatusEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a AccountDetailsAndActionsStatusEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/AccountDetailsAndActionsStatusEnum} The enum AccountDetailsAndActionsStatusEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return AccountDetailsAndActionsStatusEnum; +}(); + +exports["default"] = AccountDetailsAndActionsStatusEnum; \ No newline at end of file diff --git a/dist/model/AccountIntegration.js b/dist/model/AccountIntegration.js new file mode 100644 index 0000000..bb0168b --- /dev/null +++ b/dist/model/AccountIntegration.js @@ -0,0 +1,130 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _CategoriesEnum = _interopRequireDefault(require("./CategoriesEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AccountIntegration model module. + * @module model/AccountIntegration + * @version 1.0 + */ +var AccountIntegration = /*#__PURE__*/function () { + /** + * Constructs a new AccountIntegration. + * @alias module:model/AccountIntegration + * @param name {String} Company name. + */ + function AccountIntegration(name) { + _classCallCheck(this, AccountIntegration); + + AccountIntegration.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AccountIntegration, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a AccountIntegration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountIntegration} obj Optional instance to populate. + * @return {module:model/AccountIntegration} The populated AccountIntegration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountIntegration(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('categories')) { + obj['categories'] = _ApiClient["default"].convertToType(data['categories'], [_CategoriesEnum["default"]]); + } + + if (data.hasOwnProperty('image')) { + obj['image'] = _ApiClient["default"].convertToType(data['image'], 'String'); + } + + if (data.hasOwnProperty('square_image')) { + obj['square_image'] = _ApiClient["default"].convertToType(data['square_image'], 'String'); + } + + if (data.hasOwnProperty('color')) { + obj['color'] = _ApiClient["default"].convertToType(data['color'], 'String'); + } + + if (data.hasOwnProperty('slug')) { + obj['slug'] = _ApiClient["default"].convertToType(data['slug'], 'String'); + } + } + + return obj; + } + }]); + + return AccountIntegration; +}(); +/** + * Company name. + * @member {String} name + */ + + +AccountIntegration.prototype['name'] = undefined; +/** + * Category or categories this integration belongs to. Multiple categories should be comma separated.

Example: For [ats, hris], enter ats,hris + * @member {Array.} categories + */ + +AccountIntegration.prototype['categories'] = undefined; +/** + * Company logo in rectangular shape. Upload an image with a clear background. + * @member {String} image + */ + +AccountIntegration.prototype['image'] = undefined; +/** + * Company logo in square shape. Upload an image with a white background. + * @member {String} square_image + */ + +AccountIntegration.prototype['square_image'] = undefined; +/** + * The color of this integration used for buttons and text throughout the app and landing pages. Choose a darker, saturated color. + * @member {String} color + */ + +AccountIntegration.prototype['color'] = undefined; +/** + * @member {String} slug + */ + +AccountIntegration.prototype['slug'] = undefined; +var _default = AccountIntegration; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AccountToken.js b/dist/model/AccountToken.js new file mode 100644 index 0000000..7b5b796 --- /dev/null +++ b/dist/model/AccountToken.js @@ -0,0 +1,91 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AccountIntegration = _interopRequireDefault(require("./AccountIntegration")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AccountToken model module. + * @module model/AccountToken + * @version 1.0 + */ +var AccountToken = /*#__PURE__*/function () { + /** + * Constructs a new AccountToken. + * @alias module:model/AccountToken + * @param account_token {String} + * @param integration {module:model/AccountIntegration} + */ + function AccountToken(account_token, integration) { + _classCallCheck(this, AccountToken); + + AccountToken.initialize(this, account_token, integration); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AccountToken, null, [{ + key: "initialize", + value: function initialize(obj, account_token, integration) { + obj['account_token'] = account_token; + obj['integration'] = integration; + } + /** + * Constructs a AccountToken from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountToken} obj Optional instance to populate. + * @return {module:model/AccountToken} The populated AccountToken instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountToken(); + + if (data.hasOwnProperty('account_token')) { + obj['account_token'] = _ApiClient["default"].convertToType(data['account_token'], 'String'); + } + + if (data.hasOwnProperty('integration')) { + obj['integration'] = _AccountIntegration["default"].constructFromObject(data['integration']); + } + } + + return obj; + } + }]); + + return AccountToken; +}(); +/** + * @member {String} account_token + */ + + +AccountToken.prototype['account_token'] = undefined; +/** + * @member {module:model/AccountIntegration} integration + */ + +AccountToken.prototype['integration'] = undefined; +var _default = AccountToken; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AccountTypeEnum.js b/dist/model/AccountTypeEnum.js new file mode 100644 index 0000000..5517ce3 --- /dev/null +++ b/dist/model/AccountTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class AccountTypeEnum. +* @enum {} +* @readonly +*/ +var AccountTypeEnum = /*#__PURE__*/function () { + function AccountTypeEnum() { + _classCallCheck(this, AccountTypeEnum); + + _defineProperty(this, "SAVINGS", "SAVINGS"); + + _defineProperty(this, "CHECKING", "CHECKING"); + } + + _createClass(AccountTypeEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a AccountTypeEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/AccountTypeEnum} The enum AccountTypeEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return AccountTypeEnum; +}(); + +exports["default"] = AccountTypeEnum; \ No newline at end of file diff --git a/dist/model/AvailableActions.js b/dist/model/AvailableActions.js new file mode 100644 index 0000000..bd379b1 --- /dev/null +++ b/dist/model/AvailableActions.js @@ -0,0 +1,103 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AccountIntegration = _interopRequireDefault(require("./AccountIntegration")); + +var _ModelOperation = _interopRequireDefault(require("./ModelOperation")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AvailableActions model module. + * @module model/AvailableActions + * @version 1.0 + */ +var AvailableActions = /*#__PURE__*/function () { + /** + * Constructs a new AvailableActions. + * # The AvailableActions Object ### Description The `Activity` object is used to see all available model/operation combinations for an integration. ### Usage Example Fetch all the actions available for the `Zenefits` integration. + * @alias module:model/AvailableActions + * @param integration {module:model/AccountIntegration} + * @param passthrough_available {Boolean} + */ + function AvailableActions(integration, passthrough_available) { + _classCallCheck(this, AvailableActions); + + AvailableActions.initialize(this, integration, passthrough_available); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AvailableActions, null, [{ + key: "initialize", + value: function initialize(obj, integration, passthrough_available) { + obj['integration'] = integration; + obj['passthrough_available'] = passthrough_available; + } + /** + * Constructs a AvailableActions from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AvailableActions} obj Optional instance to populate. + * @return {module:model/AvailableActions} The populated AvailableActions instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AvailableActions(); + + if (data.hasOwnProperty('integration')) { + obj['integration'] = _AccountIntegration["default"].constructFromObject(data['integration']); + } + + if (data.hasOwnProperty('passthrough_available')) { + obj['passthrough_available'] = _ApiClient["default"].convertToType(data['passthrough_available'], 'Boolean'); + } + + if (data.hasOwnProperty('available_model_operations')) { + obj['available_model_operations'] = _ApiClient["default"].convertToType(data['available_model_operations'], [_ModelOperation["default"]]); + } + } + + return obj; + } + }]); + + return AvailableActions; +}(); +/** + * @member {module:model/AccountIntegration} integration + */ + + +AvailableActions.prototype['integration'] = undefined; +/** + * @member {Boolean} passthrough_available + */ + +AvailableActions.prototype['passthrough_available'] = undefined; +/** + * @member {Array.} available_model_operations + */ + +AvailableActions.prototype['available_model_operations'] = undefined; +var _default = AvailableActions; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/BankInfo.js b/dist/model/BankInfo.js new file mode 100644 index 0000000..9abe914 --- /dev/null +++ b/dist/model/BankInfo.js @@ -0,0 +1,172 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Utils = _interopRequireDefault(require("../Utils")); + +var _AccountTypeEnum = _interopRequireDefault(require("./AccountTypeEnum")); + +var _Employee = _interopRequireDefault(require("./Employee")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The BankInfo model module. + * @module model/BankInfo + * @version 1.0 + */ +var BankInfo = /*#__PURE__*/function () { + /** + * Constructs a new BankInfo. + * # The BankInfo Object ### Description The `BankInfo` object is used to represent the Bank Account information for an Employee. This is often referenced with an Employee object. ### Usage Example Fetch from the `LIST BankInfo` endpoint and filter by `ID` to show all bank information. + * @alias module:model/BankInfo + */ + function BankInfo() { + _classCallCheck(this, BankInfo); + + BankInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(BankInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a BankInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BankInfo} obj Optional instance to populate. + * @return {module:model/BankInfo} The populated BankInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new BankInfo(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('employee')) { + obj['employee'] = (0, _Utils["default"])(data['employee'], _Employee["default"]); + } + + if (data.hasOwnProperty('account_number')) { + obj['account_number'] = _ApiClient["default"].convertToType(data['account_number'], 'String'); + } + + if (data.hasOwnProperty('routing_number')) { + obj['routing_number'] = _ApiClient["default"].convertToType(data['routing_number'], 'String'); + } + + if (data.hasOwnProperty('bank_name')) { + obj['bank_name'] = _ApiClient["default"].convertToType(data['bank_name'], 'String'); + } + + if (data.hasOwnProperty('account_type')) { + obj['account_type'] = _ApiClient["default"].convertToType(data['account_type'], _AccountTypeEnum["default"]); + } + + if (data.hasOwnProperty('remote_created_at')) { + obj['remote_created_at'] = _ApiClient["default"].convertToType(data['remote_created_at'], 'Date'); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return BankInfo; +}(); +/** + * @member {String} id + */ + + +BankInfo.prototype['id'] = undefined; +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + +BankInfo.prototype['remote_id'] = undefined; +/** + * @member {String} employee + */ + +BankInfo.prototype['employee'] = undefined; +/** + * The account number. + * @member {String} account_number + */ + +BankInfo.prototype['account_number'] = undefined; +/** + * The routing number. + * @member {String} routing_number + */ + +BankInfo.prototype['routing_number'] = undefined; +/** + * The bank name. + * @member {String} bank_name + */ + +BankInfo.prototype['bank_name'] = undefined; +/** + * The bank account type + * @member {module:model/AccountTypeEnum} account_type + */ + +BankInfo.prototype['account_type'] = undefined; +/** + * When the matching bank object was created in the third party system. + * @member {Date} remote_created_at + */ + +BankInfo.prototype['remote_created_at'] = undefined; +/** + * @member {Array.} remote_data + */ + +BankInfo.prototype['remote_data'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +BankInfo.prototype['remote_was_deleted'] = undefined; +var _default = BankInfo; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/Benefit.js b/dist/model/Benefit.js new file mode 100644 index 0000000..bc01b72 --- /dev/null +++ b/dist/model/Benefit.js @@ -0,0 +1,160 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Utils = _interopRequireDefault(require("../Utils")); + +var _Employee = _interopRequireDefault(require("./Employee")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Benefit model module. + * @module model/Benefit + * @version 1.0 + */ +var Benefit = /*#__PURE__*/function () { + /** + * Constructs a new Benefit. + * # The Benefit Object ### Description The `Benefit` object is used to represent a Benefit for an employee. ### Usage Example Fetch from the `LIST Benefits` endpoint and filter by `ID` to show all benefits. + * @alias module:model/Benefit + */ + function Benefit() { + _classCallCheck(this, Benefit); + + Benefit.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Benefit, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Benefit from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Benefit} obj Optional instance to populate. + * @return {module:model/Benefit} The populated Benefit instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Benefit(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('employee')) { + obj['employee'] = (0, _Utils["default"])(data['employee'], _Employee["default"]); + } + + if (data.hasOwnProperty('provider_name')) { + obj['provider_name'] = _ApiClient["default"].convertToType(data['provider_name'], 'String'); + } + + if (data.hasOwnProperty('benefit_plan_type')) { + obj['benefit_plan_type'] = _ApiClient["default"].convertToType(data['benefit_plan_type'], 'String'); + } + + if (data.hasOwnProperty('employee_contribution')) { + obj['employee_contribution'] = _ApiClient["default"].convertToType(data['employee_contribution'], 'Number'); + } + + if (data.hasOwnProperty('company_contribution')) { + obj['company_contribution'] = _ApiClient["default"].convertToType(data['company_contribution'], 'Number'); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return Benefit; +}(); +/** + * @member {String} id + */ + + +Benefit.prototype['id'] = undefined; +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + +Benefit.prototype['remote_id'] = undefined; +/** + * @member {String} employee + */ + +Benefit.prototype['employee'] = undefined; +/** + * The name of the benefit provider. + * @member {String} provider_name + */ + +Benefit.prototype['provider_name'] = undefined; +/** + * The type of benefit plan + * @member {String} benefit_plan_type + */ + +Benefit.prototype['benefit_plan_type'] = undefined; +/** + * The employee's contribution. + * @member {Number} employee_contribution + */ + +Benefit.prototype['employee_contribution'] = undefined; +/** + * The company's contribution. + * @member {Number} company_contribution + */ + +Benefit.prototype['company_contribution'] = undefined; +/** + * @member {Array.} remote_data + */ + +Benefit.prototype['remote_data'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +Benefit.prototype['remote_was_deleted'] = undefined; +var _default = Benefit; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/BenefitPlanTypeEnum.js b/dist/model/BenefitPlanTypeEnum.js new file mode 100644 index 0000000..89369a5 --- /dev/null +++ b/dist/model/BenefitPlanTypeEnum.js @@ -0,0 +1,90 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class BenefitPlanTypeEnum. +* @enum {} +* @readonly +*/ +var BenefitPlanTypeEnum = /*#__PURE__*/function () { + function BenefitPlanTypeEnum() { + _classCallCheck(this, BenefitPlanTypeEnum); + + _defineProperty(this, "MEDICAL", "MEDICAL"); + + _defineProperty(this, "DENTAL", "DENTAL"); + + _defineProperty(this, "VISION", "VISION"); + + _defineProperty(this, "HSA", "HSA"); + + _defineProperty(this, "FSA_MEDICAL", "FSA_MEDICAL"); + + _defineProperty(this, "FSA_DEPENDENT_CARE", "FSA_DEPENDENT_CARE"); + + _defineProperty(this, "SIMPLE_IRA", "SIMPLE_IRA"); + + _defineProperty(this, "_401K", "_401K"); + + _defineProperty(this, "ROTH_401K", "ROTH_401K"); + + _defineProperty(this, "OTHER_NON_TAXABLE", "OTHER_NON_TAXABLE"); + + _defineProperty(this, "COMMUTER_TRANSIT", "COMMUTER_TRANSIT"); + + _defineProperty(this, "COMMUTER_PARKING", "COMMUTER_PARKING"); + + _defineProperty(this, "_401K_LOAN_PAYMENT", "_401K_LOAN_PAYMENT"); + + _defineProperty(this, "SHORT_DISABILITY", "SHORT_DISABILITY"); + + _defineProperty(this, "LONG_DISABILITY", "LONG_DISABILITY"); + + _defineProperty(this, "LIFE", "LIFE"); + + _defineProperty(this, "SEP_IRA", "SEP_IRA"); + + _defineProperty(this, "SARSEP", "SARSEP"); + + _defineProperty(this, "CUSTOM_TAXABLE", "CUSTOM_TAXABLE"); + + _defineProperty(this, "_403B", "_403B"); + + _defineProperty(this, "ROTH_403B", "ROTH_403B"); + + _defineProperty(this, "STUDENT_LOAN", "STUDENT_LOAN"); + } + + _createClass(BenefitPlanTypeEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a BenefitPlanTypeEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/BenefitPlanTypeEnum} The enum BenefitPlanTypeEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return BenefitPlanTypeEnum; +}(); + +exports["default"] = BenefitPlanTypeEnum; \ No newline at end of file diff --git a/dist/model/BenefitRequest.js b/dist/model/BenefitRequest.js new file mode 100644 index 0000000..a280b34 --- /dev/null +++ b/dist/model/BenefitRequest.js @@ -0,0 +1,129 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _BenefitPlanTypeEnum = _interopRequireDefault(require("./BenefitPlanTypeEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The BenefitRequest model module. + * @module model/BenefitRequest + * @version 1.0 + */ +var BenefitRequest = /*#__PURE__*/function () { + /** + * Constructs a new BenefitRequest. + * # The Benefit Object ### Description The `Benefit` object is used to represent a Benefit for an employee. ### Usage Example Fetch from the `LIST Benefits` endpoint and filter by `ID` to show all benefits. + * @alias module:model/BenefitRequest + */ + function BenefitRequest() { + _classCallCheck(this, BenefitRequest); + + BenefitRequest.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(BenefitRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a BenefitRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BenefitRequest} obj Optional instance to populate. + * @return {module:model/BenefitRequest} The populated BenefitRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new BenefitRequest(); + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('employee')) { + obj['employee'] = _ApiClient["default"].convertToType(data['employee'], 'String'); + } + + if (data.hasOwnProperty('provider_name')) { + obj['provider_name'] = _ApiClient["default"].convertToType(data['provider_name'], 'String'); + } + + if (data.hasOwnProperty('benefit_plan_type')) { + obj['benefit_plan_type'] = _ApiClient["default"].convertToType(data['benefit_plan_type'], _BenefitPlanTypeEnum["default"]); + } + + if (data.hasOwnProperty('employee_contribution')) { + obj['employee_contribution'] = _ApiClient["default"].convertToType(data['employee_contribution'], 'Number'); + } + + if (data.hasOwnProperty('company_contribution')) { + obj['company_contribution'] = _ApiClient["default"].convertToType(data['company_contribution'], 'Number'); + } + } + + return obj; + } + }]); + + return BenefitRequest; +}(); +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + + +BenefitRequest.prototype['remote_id'] = undefined; +/** + * The employee on the plan. + * @member {String} employee + */ + +BenefitRequest.prototype['employee'] = undefined; +/** + * The name of the benefit provider. + * @member {String} provider_name + */ + +BenefitRequest.prototype['provider_name'] = undefined; +/** + * The type of benefit plan + * @member {module:model/BenefitPlanTypeEnum} benefit_plan_type + */ + +BenefitRequest.prototype['benefit_plan_type'] = undefined; +/** + * The employee's contribution. + * @member {Number} employee_contribution + */ + +BenefitRequest.prototype['employee_contribution'] = undefined; +/** + * The company's contribution. + * @member {Number} company_contribution + */ + +BenefitRequest.prototype['company_contribution'] = undefined; +var _default = BenefitRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CategoriesEnum.js b/dist/model/CategoriesEnum.js new file mode 100644 index 0000000..7f72fcb --- /dev/null +++ b/dist/model/CategoriesEnum.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class CategoriesEnum. +* @enum {} +* @readonly +*/ +var CategoriesEnum = /*#__PURE__*/function () { + function CategoriesEnum() { + _classCallCheck(this, CategoriesEnum); + + _defineProperty(this, "hris", "hris"); + + _defineProperty(this, "ats", "ats"); + + _defineProperty(this, "accounting", "accounting"); + + _defineProperty(this, "ticketing", "ticketing"); + + _defineProperty(this, "crm", "crm"); + } + + _createClass(CategoriesEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a CategoriesEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/CategoriesEnum} The enum CategoriesEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return CategoriesEnum; +}(); + +exports["default"] = CategoriesEnum; \ No newline at end of file diff --git a/dist/model/CategoryEnum.js b/dist/model/CategoryEnum.js new file mode 100644 index 0000000..46fa8d1 --- /dev/null +++ b/dist/model/CategoryEnum.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class CategoryEnum. +* @enum {} +* @readonly +*/ +var CategoryEnum = /*#__PURE__*/function () { + function CategoryEnum() { + _classCallCheck(this, CategoryEnum); + + _defineProperty(this, "hris", "hris"); + + _defineProperty(this, "ats", "ats"); + + _defineProperty(this, "accounting", "accounting"); + + _defineProperty(this, "ticketing", "ticketing"); + + _defineProperty(this, "crm", "crm"); + } + + _createClass(CategoryEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a CategoryEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/CategoryEnum} The enum CategoryEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return CategoryEnum; +}(); + +exports["default"] = CategoryEnum; \ No newline at end of file diff --git a/dist/model/Company.js b/dist/model/Company.js new file mode 100644 index 0000000..99a1a5c --- /dev/null +++ b/dist/model/Company.js @@ -0,0 +1,137 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Company model module. + * @module model/Company + * @version 1.0 + */ +var Company = /*#__PURE__*/function () { + /** + * Constructs a new Company. + * # The Company Object ### Description The `Company` object is used to represent a Company within the HRIS / Payroll system. ### Usage Example Fetch from the `LIST Companies` endpoint and filter by `ID` to show all companies. + * @alias module:model/Company + */ + function Company() { + _classCallCheck(this, Company); + + Company.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Company, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Company from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Company} obj Optional instance to populate. + * @return {module:model/Company} The populated Company instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Company(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('legal_name')) { + obj['legal_name'] = _ApiClient["default"].convertToType(data['legal_name'], 'String'); + } + + if (data.hasOwnProperty('display_name')) { + obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String'); + } + + if (data.hasOwnProperty('eins')) { + obj['eins'] = _ApiClient["default"].convertToType(data['eins'], ['String']); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return Company; +}(); +/** + * @member {String} id + */ + + +Company.prototype['id'] = undefined; +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + +Company.prototype['remote_id'] = undefined; +/** + * The company's legal name. + * @member {String} legal_name + */ + +Company.prototype['legal_name'] = undefined; +/** + * The company's display name. + * @member {String} display_name + */ + +Company.prototype['display_name'] = undefined; +/** + * The company's Employer Identification Numbers. + * @member {Array.} eins + */ + +Company.prototype['eins'] = undefined; +/** + * @member {Array.} remote_data + */ + +Company.prototype['remote_data'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +Company.prototype['remote_was_deleted'] = undefined; +var _default = Company; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CountryEnum.js b/dist/model/CountryEnum.js new file mode 100644 index 0000000..9ab052f --- /dev/null +++ b/dist/model/CountryEnum.js @@ -0,0 +1,544 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class CountryEnum. +* @enum {} +* @readonly +*/ +var CountryEnum = /*#__PURE__*/function () { + function CountryEnum() { + _classCallCheck(this, CountryEnum); + + _defineProperty(this, "AF", "AF"); + + _defineProperty(this, "AX", "AX"); + + _defineProperty(this, "AL", "AL"); + + _defineProperty(this, "DZ", "DZ"); + + _defineProperty(this, "AS", "AS"); + + _defineProperty(this, "AD", "AD"); + + _defineProperty(this, "AO", "AO"); + + _defineProperty(this, "AI", "AI"); + + _defineProperty(this, "AQ", "AQ"); + + _defineProperty(this, "AG", "AG"); + + _defineProperty(this, "AR", "AR"); + + _defineProperty(this, "AM", "AM"); + + _defineProperty(this, "AW", "AW"); + + _defineProperty(this, "AU", "AU"); + + _defineProperty(this, "AT", "AT"); + + _defineProperty(this, "AZ", "AZ"); + + _defineProperty(this, "BS", "BS"); + + _defineProperty(this, "BH", "BH"); + + _defineProperty(this, "BD", "BD"); + + _defineProperty(this, "BB", "BB"); + + _defineProperty(this, "BY", "BY"); + + _defineProperty(this, "BE", "BE"); + + _defineProperty(this, "BZ", "BZ"); + + _defineProperty(this, "BJ", "BJ"); + + _defineProperty(this, "BM", "BM"); + + _defineProperty(this, "BT", "BT"); + + _defineProperty(this, "BO", "BO"); + + _defineProperty(this, "BQ", "BQ"); + + _defineProperty(this, "BA", "BA"); + + _defineProperty(this, "BW", "BW"); + + _defineProperty(this, "BV", "BV"); + + _defineProperty(this, "BR", "BR"); + + _defineProperty(this, "IO", "IO"); + + _defineProperty(this, "BN", "BN"); + + _defineProperty(this, "BG", "BG"); + + _defineProperty(this, "BF", "BF"); + + _defineProperty(this, "BI", "BI"); + + _defineProperty(this, "CV", "CV"); + + _defineProperty(this, "KH", "KH"); + + _defineProperty(this, "CM", "CM"); + + _defineProperty(this, "CA", "CA"); + + _defineProperty(this, "KY", "KY"); + + _defineProperty(this, "CF", "CF"); + + _defineProperty(this, "TD", "TD"); + + _defineProperty(this, "CL", "CL"); + + _defineProperty(this, "CN", "CN"); + + _defineProperty(this, "CX", "CX"); + + _defineProperty(this, "CC", "CC"); + + _defineProperty(this, "CO", "CO"); + + _defineProperty(this, "KM", "KM"); + + _defineProperty(this, "CG", "CG"); + + _defineProperty(this, "CD", "CD"); + + _defineProperty(this, "CK", "CK"); + + _defineProperty(this, "CR", "CR"); + + _defineProperty(this, "CI", "CI"); + + _defineProperty(this, "HR", "HR"); + + _defineProperty(this, "CU", "CU"); + + _defineProperty(this, "CW", "CW"); + + _defineProperty(this, "CY", "CY"); + + _defineProperty(this, "CZ", "CZ"); + + _defineProperty(this, "DK", "DK"); + + _defineProperty(this, "DJ", "DJ"); + + _defineProperty(this, "DM", "DM"); + + _defineProperty(this, "DO", "DO"); + + _defineProperty(this, "EC", "EC"); + + _defineProperty(this, "EG", "EG"); + + _defineProperty(this, "SV", "SV"); + + _defineProperty(this, "GQ", "GQ"); + + _defineProperty(this, "ER", "ER"); + + _defineProperty(this, "EE", "EE"); + + _defineProperty(this, "SZ", "SZ"); + + _defineProperty(this, "ET", "ET"); + + _defineProperty(this, "FK", "FK"); + + _defineProperty(this, "FO", "FO"); + + _defineProperty(this, "FJ", "FJ"); + + _defineProperty(this, "FI", "FI"); + + _defineProperty(this, "FR", "FR"); + + _defineProperty(this, "GF", "GF"); + + _defineProperty(this, "PF", "PF"); + + _defineProperty(this, "TF", "TF"); + + _defineProperty(this, "GA", "GA"); + + _defineProperty(this, "GM", "GM"); + + _defineProperty(this, "GE", "GE"); + + _defineProperty(this, "DE", "DE"); + + _defineProperty(this, "GH", "GH"); + + _defineProperty(this, "GI", "GI"); + + _defineProperty(this, "GR", "GR"); + + _defineProperty(this, "GL", "GL"); + + _defineProperty(this, "GD", "GD"); + + _defineProperty(this, "GP", "GP"); + + _defineProperty(this, "GU", "GU"); + + _defineProperty(this, "GT", "GT"); + + _defineProperty(this, "GG", "GG"); + + _defineProperty(this, "GN", "GN"); + + _defineProperty(this, "GW", "GW"); + + _defineProperty(this, "GY", "GY"); + + _defineProperty(this, "HT", "HT"); + + _defineProperty(this, "HM", "HM"); + + _defineProperty(this, "VA", "VA"); + + _defineProperty(this, "HN", "HN"); + + _defineProperty(this, "HK", "HK"); + + _defineProperty(this, "HU", "HU"); + + _defineProperty(this, "IS", "IS"); + + _defineProperty(this, "IN", "IN"); + + _defineProperty(this, "ID", "ID"); + + _defineProperty(this, "IR", "IR"); + + _defineProperty(this, "IQ", "IQ"); + + _defineProperty(this, "IE", "IE"); + + _defineProperty(this, "IM", "IM"); + + _defineProperty(this, "IL", "IL"); + + _defineProperty(this, "IT", "IT"); + + _defineProperty(this, "JM", "JM"); + + _defineProperty(this, "JP", "JP"); + + _defineProperty(this, "JE", "JE"); + + _defineProperty(this, "JO", "JO"); + + _defineProperty(this, "KZ", "KZ"); + + _defineProperty(this, "KE", "KE"); + + _defineProperty(this, "KI", "KI"); + + _defineProperty(this, "KW", "KW"); + + _defineProperty(this, "KG", "KG"); + + _defineProperty(this, "LA", "LA"); + + _defineProperty(this, "LV", "LV"); + + _defineProperty(this, "LB", "LB"); + + _defineProperty(this, "LS", "LS"); + + _defineProperty(this, "LR", "LR"); + + _defineProperty(this, "LY", "LY"); + + _defineProperty(this, "LI", "LI"); + + _defineProperty(this, "LT", "LT"); + + _defineProperty(this, "LU", "LU"); + + _defineProperty(this, "MO", "MO"); + + _defineProperty(this, "MG", "MG"); + + _defineProperty(this, "MW", "MW"); + + _defineProperty(this, "MY", "MY"); + + _defineProperty(this, "MV", "MV"); + + _defineProperty(this, "ML", "ML"); + + _defineProperty(this, "MT", "MT"); + + _defineProperty(this, "MH", "MH"); + + _defineProperty(this, "MQ", "MQ"); + + _defineProperty(this, "MR", "MR"); + + _defineProperty(this, "MU", "MU"); + + _defineProperty(this, "YT", "YT"); + + _defineProperty(this, "MX", "MX"); + + _defineProperty(this, "FM", "FM"); + + _defineProperty(this, "MD", "MD"); + + _defineProperty(this, "MC", "MC"); + + _defineProperty(this, "MN", "MN"); + + _defineProperty(this, "ME", "ME"); + + _defineProperty(this, "MS", "MS"); + + _defineProperty(this, "MA", "MA"); + + _defineProperty(this, "MZ", "MZ"); + + _defineProperty(this, "MM", "MM"); + + _defineProperty(this, "NA", "NA"); + + _defineProperty(this, "NR", "NR"); + + _defineProperty(this, "NP", "NP"); + + _defineProperty(this, "NL", "NL"); + + _defineProperty(this, "NC", "NC"); + + _defineProperty(this, "NZ", "NZ"); + + _defineProperty(this, "NI", "NI"); + + _defineProperty(this, "NE", "NE"); + + _defineProperty(this, "NG", "NG"); + + _defineProperty(this, "NU", "NU"); + + _defineProperty(this, "NF", "NF"); + + _defineProperty(this, "KP", "KP"); + + _defineProperty(this, "MK", "MK"); + + _defineProperty(this, "MP", "MP"); + + _defineProperty(this, "NO", "NO"); + + _defineProperty(this, "OM", "OM"); + + _defineProperty(this, "PK", "PK"); + + _defineProperty(this, "PW", "PW"); + + _defineProperty(this, "PS", "PS"); + + _defineProperty(this, "PA", "PA"); + + _defineProperty(this, "PG", "PG"); + + _defineProperty(this, "PY", "PY"); + + _defineProperty(this, "PE", "PE"); + + _defineProperty(this, "PH", "PH"); + + _defineProperty(this, "PN", "PN"); + + _defineProperty(this, "PL", "PL"); + + _defineProperty(this, "PT", "PT"); + + _defineProperty(this, "PR", "PR"); + + _defineProperty(this, "QA", "QA"); + + _defineProperty(this, "RE", "RE"); + + _defineProperty(this, "RO", "RO"); + + _defineProperty(this, "RU", "RU"); + + _defineProperty(this, "RW", "RW"); + + _defineProperty(this, "BL", "BL"); + + _defineProperty(this, "SH", "SH"); + + _defineProperty(this, "KN", "KN"); + + _defineProperty(this, "LC", "LC"); + + _defineProperty(this, "MF", "MF"); + + _defineProperty(this, "PM", "PM"); + + _defineProperty(this, "VC", "VC"); + + _defineProperty(this, "WS", "WS"); + + _defineProperty(this, "SM", "SM"); + + _defineProperty(this, "ST", "ST"); + + _defineProperty(this, "SA", "SA"); + + _defineProperty(this, "SN", "SN"); + + _defineProperty(this, "RS", "RS"); + + _defineProperty(this, "SC", "SC"); + + _defineProperty(this, "SL", "SL"); + + _defineProperty(this, "SG", "SG"); + + _defineProperty(this, "SX", "SX"); + + _defineProperty(this, "SK", "SK"); + + _defineProperty(this, "SI", "SI"); + + _defineProperty(this, "SB", "SB"); + + _defineProperty(this, "SO", "SO"); + + _defineProperty(this, "ZA", "ZA"); + + _defineProperty(this, "GS", "GS"); + + _defineProperty(this, "KR", "KR"); + + _defineProperty(this, "SS", "SS"); + + _defineProperty(this, "ES", "ES"); + + _defineProperty(this, "LK", "LK"); + + _defineProperty(this, "SD", "SD"); + + _defineProperty(this, "SR", "SR"); + + _defineProperty(this, "SJ", "SJ"); + + _defineProperty(this, "SE", "SE"); + + _defineProperty(this, "CH", "CH"); + + _defineProperty(this, "SY", "SY"); + + _defineProperty(this, "TW", "TW"); + + _defineProperty(this, "TJ", "TJ"); + + _defineProperty(this, "TZ", "TZ"); + + _defineProperty(this, "TH", "TH"); + + _defineProperty(this, "TL", "TL"); + + _defineProperty(this, "TG", "TG"); + + _defineProperty(this, "TK", "TK"); + + _defineProperty(this, "TO", "TO"); + + _defineProperty(this, "TT", "TT"); + + _defineProperty(this, "TN", "TN"); + + _defineProperty(this, "TR", "TR"); + + _defineProperty(this, "TM", "TM"); + + _defineProperty(this, "TC", "TC"); + + _defineProperty(this, "TV", "TV"); + + _defineProperty(this, "UG", "UG"); + + _defineProperty(this, "UA", "UA"); + + _defineProperty(this, "AE", "AE"); + + _defineProperty(this, "GB", "GB"); + + _defineProperty(this, "UM", "UM"); + + _defineProperty(this, "US", "US"); + + _defineProperty(this, "UY", "UY"); + + _defineProperty(this, "UZ", "UZ"); + + _defineProperty(this, "VU", "VU"); + + _defineProperty(this, "VE", "VE"); + + _defineProperty(this, "VN", "VN"); + + _defineProperty(this, "VG", "VG"); + + _defineProperty(this, "VI", "VI"); + + _defineProperty(this, "WF", "WF"); + + _defineProperty(this, "EH", "EH"); + + _defineProperty(this, "YE", "YE"); + + _defineProperty(this, "ZM", "ZM"); + + _defineProperty(this, "ZW", "ZW"); + } + + _createClass(CountryEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a CountryEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/CountryEnum} The enum CountryEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return CountryEnum; +}(); + +exports["default"] = CountryEnum; \ No newline at end of file diff --git a/dist/model/DataPassthroughRequest.js b/dist/model/DataPassthroughRequest.js new file mode 100644 index 0000000..92dc9cf --- /dev/null +++ b/dist/model/DataPassthroughRequest.js @@ -0,0 +1,154 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _MethodEnum = _interopRequireDefault(require("./MethodEnum")); + +var _MultipartFormFieldRequest = _interopRequireDefault(require("./MultipartFormFieldRequest")); + +var _RequestFormatEnum = _interopRequireDefault(require("./RequestFormatEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DataPassthroughRequest model module. + * @module model/DataPassthroughRequest + * @version 1.0 + */ +var DataPassthroughRequest = /*#__PURE__*/function () { + /** + * Constructs a new DataPassthroughRequest. + * # The DataPassthrough Object ### Description The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. ### Usage Example Create a `DataPassthrough` to get team hierarchies from your Rippling integration. + * @alias module:model/DataPassthroughRequest + * @param method {module:model/MethodEnum} + * @param path {String} + */ + function DataPassthroughRequest(method, path) { + _classCallCheck(this, DataPassthroughRequest); + + DataPassthroughRequest.initialize(this, method, path); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DataPassthroughRequest, null, [{ + key: "initialize", + value: function initialize(obj, method, path) { + obj['method'] = method; + obj['path'] = path; + } + /** + * Constructs a DataPassthroughRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DataPassthroughRequest} obj Optional instance to populate. + * @return {module:model/DataPassthroughRequest} The populated DataPassthroughRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DataPassthroughRequest(); + + if (data.hasOwnProperty('method')) { + obj['method'] = _ApiClient["default"].convertToType(data['method'], _MethodEnum["default"]); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('base_url_override')) { + obj['base_url_override'] = _ApiClient["default"].convertToType(data['base_url_override'], 'String'); + } + + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + + if (data.hasOwnProperty('multipart_form_data')) { + obj['multipart_form_data'] = _ApiClient["default"].convertToType(data['multipart_form_data'], [_MultipartFormFieldRequest["default"]]); + } + + if (data.hasOwnProperty('headers')) { + obj['headers'] = _ApiClient["default"].convertToType(data['headers'], { + 'String': Object + }); + } + + if (data.hasOwnProperty('request_format')) { + obj['request_format'] = _ApiClient["default"].convertToType(data['request_format'], _RequestFormatEnum["default"]); + } + + if (data.hasOwnProperty('normalize_response')) { + obj['normalize_response'] = _ApiClient["default"].convertToType(data['normalize_response'], 'Boolean'); + } + } + + return obj; + } + }]); + + return DataPassthroughRequest; +}(); +/** + * @member {module:model/MethodEnum} method + */ + + +DataPassthroughRequest.prototype['method'] = undefined; +/** + * @member {String} path + */ + +DataPassthroughRequest.prototype['path'] = undefined; +/** + * @member {String} base_url_override + */ + +DataPassthroughRequest.prototype['base_url_override'] = undefined; +/** + * @member {String} data + */ + +DataPassthroughRequest.prototype['data'] = undefined; +/** + * Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. + * @member {Array.} multipart_form_data + */ + +DataPassthroughRequest.prototype['multipart_form_data'] = undefined; +/** + * The headers to use for the request (Merge will handle the account's authorization headers). `Content-Type` header is required for passthrough. Choose content type corresponding to expected format of receiving server. + * @member {Object.} headers + */ + +DataPassthroughRequest.prototype['headers'] = undefined; +/** + * @member {module:model/RequestFormatEnum} request_format + */ + +DataPassthroughRequest.prototype['request_format'] = undefined; +/** + * @member {Boolean} normalize_response + */ + +DataPassthroughRequest.prototype['normalize_response'] = undefined; +var _default = DataPassthroughRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/DebugModeLog.js b/dist/model/DebugModeLog.js new file mode 100644 index 0000000..9848d98 --- /dev/null +++ b/dist/model/DebugModeLog.js @@ -0,0 +1,102 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _DebugModelLogSummary = _interopRequireDefault(require("./DebugModelLogSummary")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DebugModeLog model module. + * @module model/DebugModeLog + * @version 1.0 + */ +var DebugModeLog = /*#__PURE__*/function () { + /** + * Constructs a new DebugModeLog. + * @alias module:model/DebugModeLog + * @param log_id {String} + * @param dashboard_view {String} + * @param log_summary {module:model/DebugModelLogSummary} + */ + function DebugModeLog(log_id, dashboard_view, log_summary) { + _classCallCheck(this, DebugModeLog); + + DebugModeLog.initialize(this, log_id, dashboard_view, log_summary); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DebugModeLog, null, [{ + key: "initialize", + value: function initialize(obj, log_id, dashboard_view, log_summary) { + obj['log_id'] = log_id; + obj['dashboard_view'] = dashboard_view; + obj['log_summary'] = log_summary; + } + /** + * Constructs a DebugModeLog from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DebugModeLog} obj Optional instance to populate. + * @return {module:model/DebugModeLog} The populated DebugModeLog instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DebugModeLog(); + + if (data.hasOwnProperty('log_id')) { + obj['log_id'] = _ApiClient["default"].convertToType(data['log_id'], 'String'); + } + + if (data.hasOwnProperty('dashboard_view')) { + obj['dashboard_view'] = _ApiClient["default"].convertToType(data['dashboard_view'], 'String'); + } + + if (data.hasOwnProperty('log_summary')) { + obj['log_summary'] = _DebugModelLogSummary["default"].constructFromObject(data['log_summary']); + } + } + + return obj; + } + }]); + + return DebugModeLog; +}(); +/** + * @member {String} log_id + */ + + +DebugModeLog.prototype['log_id'] = undefined; +/** + * @member {String} dashboard_view + */ + +DebugModeLog.prototype['dashboard_view'] = undefined; +/** + * @member {module:model/DebugModelLogSummary} log_summary + */ + +DebugModeLog.prototype['log_summary'] = undefined; +var _default = DebugModeLog; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/DebugModelLogSummary.js b/dist/model/DebugModelLogSummary.js new file mode 100644 index 0000000..82a1931 --- /dev/null +++ b/dist/model/DebugModelLogSummary.js @@ -0,0 +1,100 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DebugModelLogSummary model module. + * @module model/DebugModelLogSummary + * @version 1.0 + */ +var DebugModelLogSummary = /*#__PURE__*/function () { + /** + * Constructs a new DebugModelLogSummary. + * @alias module:model/DebugModelLogSummary + * @param url {String} + * @param method {String} + * @param status_code {Number} + */ + function DebugModelLogSummary(url, method, status_code) { + _classCallCheck(this, DebugModelLogSummary); + + DebugModelLogSummary.initialize(this, url, method, status_code); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DebugModelLogSummary, null, [{ + key: "initialize", + value: function initialize(obj, url, method, status_code) { + obj['url'] = url; + obj['method'] = method; + obj['status_code'] = status_code; + } + /** + * Constructs a DebugModelLogSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DebugModelLogSummary} obj Optional instance to populate. + * @return {module:model/DebugModelLogSummary} The populated DebugModelLogSummary instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DebugModelLogSummary(); + + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + + if (data.hasOwnProperty('method')) { + obj['method'] = _ApiClient["default"].convertToType(data['method'], 'String'); + } + + if (data.hasOwnProperty('status_code')) { + obj['status_code'] = _ApiClient["default"].convertToType(data['status_code'], 'Number'); + } + } + + return obj; + } + }]); + + return DebugModelLogSummary; +}(); +/** + * @member {String} url + */ + + +DebugModelLogSummary.prototype['url'] = undefined; +/** + * @member {String} method + */ + +DebugModelLogSummary.prototype['method'] = undefined; +/** + * @member {Number} status_code + */ + +DebugModelLogSummary.prototype['status_code'] = undefined; +var _default = DebugModelLogSummary; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/Deduction.js b/dist/model/Deduction.js new file mode 100644 index 0000000..5c06793 --- /dev/null +++ b/dist/model/Deduction.js @@ -0,0 +1,136 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Deduction model module. + * @module model/Deduction + * @version 1.0 + */ +var Deduction = /*#__PURE__*/function () { + /** + * Constructs a new Deduction. + * # The Deduction Object ### Description The `Deduction` object is used to represent a deduction for a given employee's payroll run. One run could include several deductions. ### Usage Example Fetch from the `LIST Deductions` endpoint and filter by `ID` to show all deductions. + * @alias module:model/Deduction + */ + function Deduction() { + _classCallCheck(this, Deduction); + + Deduction.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Deduction, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Deduction from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Deduction} obj Optional instance to populate. + * @return {module:model/Deduction} The populated Deduction instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Deduction(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('employee_payroll_run')) { + obj['employee_payroll_run'] = _ApiClient["default"].convertToType(data['employee_payroll_run'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('employee_deduction')) { + obj['employee_deduction'] = _ApiClient["default"].convertToType(data['employee_deduction'], 'Number'); + } + + if (data.hasOwnProperty('company_deduction')) { + obj['company_deduction'] = _ApiClient["default"].convertToType(data['company_deduction'], 'Number'); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return Deduction; +}(); +/** + * @member {String} id + */ + + +Deduction.prototype['id'] = undefined; +/** + * @member {String} employee_payroll_run + */ + +Deduction.prototype['employee_payroll_run'] = undefined; +/** + * The deduction's name. + * @member {String} name + */ + +Deduction.prototype['name'] = undefined; +/** + * The amount the employee is deducting. + * @member {Number} employee_deduction + */ + +Deduction.prototype['employee_deduction'] = undefined; +/** + * The amount the company is deducting. + * @member {Number} company_deduction + */ + +Deduction.prototype['company_deduction'] = undefined; +/** + * @member {Array.} remote_data + */ + +Deduction.prototype['remote_data'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +Deduction.prototype['remote_was_deleted'] = undefined; +var _default = Deduction; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/DeductionRequest.js b/dist/model/DeductionRequest.js new file mode 100644 index 0000000..c4bba62 --- /dev/null +++ b/dist/model/DeductionRequest.js @@ -0,0 +1,118 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeductionRequest model module. + * @module model/DeductionRequest + * @version 1.0 + */ +var DeductionRequest = /*#__PURE__*/function () { + /** + * Constructs a new DeductionRequest. + * # The Deduction Object ### Description The `Deduction` object is used to represent a deduction for a given employee's payroll run. One run could include several deductions. ### Usage Example Fetch from the `LIST Deductions` endpoint and filter by `ID` to show all deductions. + * @alias module:model/DeductionRequest + */ + function DeductionRequest() { + _classCallCheck(this, DeductionRequest); + + DeductionRequest.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeductionRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeductionRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeductionRequest} obj Optional instance to populate. + * @return {module:model/DeductionRequest} The populated DeductionRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeductionRequest(); + + if (data.hasOwnProperty('employee_payroll_run')) { + obj['employee_payroll_run'] = _ApiClient["default"].convertToType(data['employee_payroll_run'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('employee_deduction')) { + obj['employee_deduction'] = _ApiClient["default"].convertToType(data['employee_deduction'], 'Number'); + } + + if (data.hasOwnProperty('company_deduction')) { + obj['company_deduction'] = _ApiClient["default"].convertToType(data['company_deduction'], 'Number'); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [{ + 'String': Object + }]); + } + } + + return obj; + } + }]); + + return DeductionRequest; +}(); +/** + * The deduction's employee payroll run. + * @member {String} employee_payroll_run + */ + + +DeductionRequest.prototype['employee_payroll_run'] = undefined; +/** + * The deduction's name. + * @member {String} name + */ + +DeductionRequest.prototype['name'] = undefined; +/** + * The amount the employee is deducting. + * @member {Number} employee_deduction + */ + +DeductionRequest.prototype['employee_deduction'] = undefined; +/** + * The amount the company is deducting. + * @member {Number} company_deduction + */ + +DeductionRequest.prototype['company_deduction'] = undefined; +/** + * @member {Array.>} remote_data + */ + +DeductionRequest.prototype['remote_data'] = undefined; +var _default = DeductionRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/Earning.js b/dist/model/Earning.js new file mode 100644 index 0000000..4213363 --- /dev/null +++ b/dist/model/Earning.js @@ -0,0 +1,117 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EarningTypeEnum = _interopRequireDefault(require("./EarningTypeEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Earning model module. + * @module model/Earning + * @version 1.0 + */ +var Earning = /*#__PURE__*/function () { + /** + * Constructs a new Earning. + * # The Earning Object ### Description The `Earning` object is used to represent an earning for a given employee's payroll run. One run could include several earnings. ### Usage Example Fetch from the `LIST Earnings` endpoint and filter by `ID` to show all earnings. + * @alias module:model/Earning + */ + function Earning() { + _classCallCheck(this, Earning); + + Earning.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Earning, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Earning from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Earning} obj Optional instance to populate. + * @return {module:model/Earning} The populated Earning instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Earning(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('employee_payroll_run')) { + obj['employee_payroll_run'] = _ApiClient["default"].convertToType(data['employee_payroll_run'], 'String'); + } + + if (data.hasOwnProperty('amount')) { + obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'Number'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], _EarningTypeEnum["default"]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return Earning; +}(); +/** + * @member {String} id + */ + + +Earning.prototype['id'] = undefined; +/** + * @member {String} employee_payroll_run + */ + +Earning.prototype['employee_payroll_run'] = undefined; +/** + * The amount earned. + * @member {Number} amount + */ + +Earning.prototype['amount'] = undefined; +/** + * The type of earning. + * @member {module:model/EarningTypeEnum} type + */ + +Earning.prototype['type'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +Earning.prototype['remote_was_deleted'] = undefined; +var _default = Earning; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/EarningTypeEnum.js b/dist/model/EarningTypeEnum.js new file mode 100644 index 0000000..5fb57b9 --- /dev/null +++ b/dist/model/EarningTypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class EarningTypeEnum. +* @enum {} +* @readonly +*/ +var EarningTypeEnum = /*#__PURE__*/function () { + function EarningTypeEnum() { + _classCallCheck(this, EarningTypeEnum); + + _defineProperty(this, "SALARY", "SALARY"); + + _defineProperty(this, "REIMBURSEMENT", "REIMBURSEMENT"); + + _defineProperty(this, "OVERTIME", "OVERTIME"); + + _defineProperty(this, "BONUS", "BONUS"); + } + + _createClass(EarningTypeEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a EarningTypeEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/EarningTypeEnum} The enum EarningTypeEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return EarningTypeEnum; +}(); + +exports["default"] = EarningTypeEnum; \ No newline at end of file diff --git a/dist/model/Employee.js b/dist/model/Employee.js new file mode 100644 index 0000000..5d77288 --- /dev/null +++ b/dist/model/Employee.js @@ -0,0 +1,413 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Company = _interopRequireDefault(require("./Company")); + +var _Utils = _interopRequireDefault(require("../Utils")); + +var _Employment = _interopRequireDefault(require("./Employment")); + +var _EmploymentStatusEnum = _interopRequireDefault(require("./EmploymentStatusEnum")); + +var _EthnicityEnum = _interopRequireDefault(require("./EthnicityEnum")); + +var _GenderEnum = _interopRequireDefault(require("./GenderEnum")); + +var _Location = _interopRequireDefault(require("./Location")); + +var _MaritalStatusEnum = _interopRequireDefault(require("./MaritalStatusEnum")); + +var _PayGroup = _interopRequireDefault(require("./PayGroup")); + +var _Team = _interopRequireDefault(require("./Team")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Employee model module. + * @module model/Employee + * @version 1.0 + */ +var Employee = /*#__PURE__*/function () { + /** + * Constructs a new Employee. + * # The Employee Object ### Description The `Employee` object is used to represent an Employee for a company. ### Usage Example Fetch from the `LIST Employee` endpoint and filter by `ID` to show all employees. + * @alias module:model/Employee + */ + function Employee() { + _classCallCheck(this, Employee); + + Employee.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Employee, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Employee from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Employee} obj Optional instance to populate. + * @return {module:model/Employee} The populated Employee instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Employee(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('employee_number')) { + obj['employee_number'] = _ApiClient["default"].convertToType(data['employee_number'], 'String'); + } + + if (data.hasOwnProperty('company')) { + obj['company'] = (0, _Utils["default"])(data['company'], _Company["default"]); + } + + if (data.hasOwnProperty('first_name')) { + obj['first_name'] = _ApiClient["default"].convertToType(data['first_name'], 'String'); + } + + if (data.hasOwnProperty('last_name')) { + obj['last_name'] = _ApiClient["default"].convertToType(data['last_name'], 'String'); + } + + if (data.hasOwnProperty('display_full_name')) { + obj['display_full_name'] = _ApiClient["default"].convertToType(data['display_full_name'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + + if (data.hasOwnProperty('groups')) { + obj['groups'] = _ApiClient["default"].convertToType(data['groups'], ['String']); + } + + if (data.hasOwnProperty('work_email')) { + obj['work_email'] = _ApiClient["default"].convertToType(data['work_email'], 'String'); + } + + if (data.hasOwnProperty('personal_email')) { + obj['personal_email'] = _ApiClient["default"].convertToType(data['personal_email'], 'String'); + } + + if (data.hasOwnProperty('mobile_phone_number')) { + obj['mobile_phone_number'] = _ApiClient["default"].convertToType(data['mobile_phone_number'], 'String'); + } + + if (data.hasOwnProperty('employments')) { + obj['employments'] = (0, _Utils["default"])(data['employments'], _Employment["default"]); + } + + if (data.hasOwnProperty('home_location')) { + obj['home_location'] = (0, _Utils["default"])(data['home_location'], _Location["default"]); + } + + if (data.hasOwnProperty('work_location')) { + obj['work_location'] = (0, _Utils["default"])(data['work_location'], _Location["default"]); + } + + if (data.hasOwnProperty('manager')) { + obj['manager'] = (0, _Utils["default"])(data['manager'], Employee); + } + + if (data.hasOwnProperty('team')) { + obj['team'] = (0, _Utils["default"])(data['team'], _Team["default"]); + } + + if (data.hasOwnProperty('pay_group')) { + obj['pay_group'] = (0, _Utils["default"])(data['pay_group'], _PayGroup["default"]); + } + + if (data.hasOwnProperty('ssn')) { + obj['ssn'] = _ApiClient["default"].convertToType(data['ssn'], 'String'); + } + + if (data.hasOwnProperty('gender')) { + obj['gender'] = _ApiClient["default"].convertToType(data['gender'], _GenderEnum["default"]); + } + + if (data.hasOwnProperty('ethnicity')) { + obj['ethnicity'] = _ApiClient["default"].convertToType(data['ethnicity'], _EthnicityEnum["default"]); + } + + if (data.hasOwnProperty('marital_status')) { + obj['marital_status'] = _ApiClient["default"].convertToType(data['marital_status'], _MaritalStatusEnum["default"]); + } + + if (data.hasOwnProperty('date_of_birth')) { + obj['date_of_birth'] = _ApiClient["default"].convertToType(data['date_of_birth'], 'Date'); + } + + if (data.hasOwnProperty('hire_date')) { + obj['hire_date'] = _ApiClient["default"].convertToType(data['hire_date'], 'Date'); + } + + if (data.hasOwnProperty('start_date')) { + obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date'); + } + + if (data.hasOwnProperty('remote_created_at')) { + obj['remote_created_at'] = _ApiClient["default"].convertToType(data['remote_created_at'], 'Date'); + } + + if (data.hasOwnProperty('employment_status')) { + obj['employment_status'] = _ApiClient["default"].convertToType(data['employment_status'], _EmploymentStatusEnum["default"]); + } + + if (data.hasOwnProperty('termination_date')) { + obj['termination_date'] = _ApiClient["default"].convertToType(data['termination_date'], 'Date'); + } + + if (data.hasOwnProperty('avatar')) { + obj['avatar'] = _ApiClient["default"].convertToType(data['avatar'], 'String'); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('field_mappings')) { + obj['field_mappings'] = _ApiClient["default"].convertToType(data['field_mappings'], { + 'String': Object + }); + } + + if (data.hasOwnProperty('custom_fields')) { + obj['custom_fields'] = _ApiClient["default"].convertToType(data['custom_fields'], { + 'String': Object + }); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return Employee; +}(); +/** + * @member {String} id + */ + + +Employee.prototype['id'] = undefined; +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + +Employee.prototype['remote_id'] = undefined; +/** + * The employee's number that appears in the remote UI. Note: This is distinct from the remote_id field, which is a unique identifier for the employee set by the remote API, and is not exposed to the user. This value can also change in many API providers. + * @member {String} employee_number + */ + +Employee.prototype['employee_number'] = undefined; +/** + * @member {String} company + */ + +Employee.prototype['company'] = undefined; +/** + * The employee's first name. + * @member {String} first_name + */ + +Employee.prototype['first_name'] = undefined; +/** + * The employee's last name. + * @member {String} last_name + */ + +Employee.prototype['last_name'] = undefined; +/** + * The employee's full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name. + * @member {String} display_full_name + */ + +Employee.prototype['display_full_name'] = undefined; +/** + * The employee's username that appears in the remote UI. + * @member {String} username + */ + +Employee.prototype['username'] = undefined; +/** + * @member {Array.} groups + */ + +Employee.prototype['groups'] = undefined; +/** + * The employee's work email. + * @member {String} work_email + */ + +Employee.prototype['work_email'] = undefined; +/** + * The employee's personal email. + * @member {String} personal_email + */ + +Employee.prototype['personal_email'] = undefined; +/** + * The employee's mobile phone number. + * @member {String} mobile_phone_number + */ + +Employee.prototype['mobile_phone_number'] = undefined; +/** + * Array of `Employment` IDs for this Employee. + * @member {Array.} employments + */ + +Employee.prototype['employments'] = undefined; +/** + * @member {String} home_location + */ + +Employee.prototype['home_location'] = undefined; +/** + * @member {String} work_location + */ + +Employee.prototype['work_location'] = undefined; +/** + * @member {String} manager + */ + +Employee.prototype['manager'] = undefined; +/** + * @member {String} team + */ + +Employee.prototype['team'] = undefined; +/** + * @member {String} pay_group + */ + +Employee.prototype['pay_group'] = undefined; +/** + * The employee's social security number. + * @member {String} ssn + */ + +Employee.prototype['ssn'] = undefined; +/** + * The employee's gender. + * @member {module:model/GenderEnum} gender + */ + +Employee.prototype['gender'] = undefined; +/** + * The employee's ethnicity. + * @member {module:model/EthnicityEnum} ethnicity + */ + +Employee.prototype['ethnicity'] = undefined; +/** + * The employee's marital status. + * @member {module:model/MaritalStatusEnum} marital_status + */ + +Employee.prototype['marital_status'] = undefined; +/** + * The employee's date of birth. + * @member {Date} date_of_birth + */ + +Employee.prototype['date_of_birth'] = undefined; +/** + * The date that the employee was hired, usually the day that an offer letter is signed. If an employee has multiple hire dates from previous employments, this represents the most recent hire date. Note: If you're looking for the employee's start date, refer to the start_date field. + * @member {Date} hire_date + */ + +Employee.prototype['hire_date'] = undefined; +/** + * The date that the employee started working. If an employee has multiple start dates from previous employments, this represents the most recent start date. + * @member {Date} start_date + */ + +Employee.prototype['start_date'] = undefined; +/** + * When the third party's employee was created. + * @member {Date} remote_created_at + */ + +Employee.prototype['remote_created_at'] = undefined; +/** + * The employment status of the employee. + * @member {module:model/EmploymentStatusEnum} employment_status + */ + +Employee.prototype['employment_status'] = undefined; +/** + * The employee's termination date. + * @member {Date} termination_date + */ + +Employee.prototype['termination_date'] = undefined; +/** + * The URL of the employee's avatar image. + * @member {String} avatar + */ + +Employee.prototype['avatar'] = undefined; +/** + * @member {Array.} remote_data + */ + +Employee.prototype['remote_data'] = undefined; +/** + * The field mappings for the employee configured in Field Mappings Dashboard. + * @member {Object.} field_mappings + */ + +Employee.prototype['field_mappings'] = undefined; +/** + * Custom fields configured for a given model. + * @member {Object.} custom_fields + */ + +Employee.prototype['custom_fields'] = undefined; +/** + * @member {Boolean} remote_was_deleted + */ + +Employee.prototype['remote_was_deleted'] = undefined; +var _default = Employee; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/EmployeeEndpointRequest.js b/dist/model/EmployeeEndpointRequest.js new file mode 100644 index 0000000..ecf8656 --- /dev/null +++ b/dist/model/EmployeeEndpointRequest.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EmployeeRequest = _interopRequireDefault(require("./EmployeeRequest")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EmployeeEndpointRequest model module. + * @module model/EmployeeEndpointRequest + * @version 1.0 + */ +var EmployeeEndpointRequest = /*#__PURE__*/function () { + /** + * Constructs a new EmployeeEndpointRequest. + * @alias module:model/EmployeeEndpointRequest + * @param model {module:model/EmployeeRequest} + */ + function EmployeeEndpointRequest(model) { + _classCallCheck(this, EmployeeEndpointRequest); + + EmployeeEndpointRequest.initialize(this, model); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EmployeeEndpointRequest, null, [{ + key: "initialize", + value: function initialize(obj, model) { + obj['model'] = model; + } + /** + * Constructs a EmployeeEndpointRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EmployeeEndpointRequest} obj Optional instance to populate. + * @return {module:model/EmployeeEndpointRequest} The populated EmployeeEndpointRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EmployeeEndpointRequest(); + + if (data.hasOwnProperty('model')) { + obj['model'] = _EmployeeRequest["default"].constructFromObject(data['model']); + } + } + + return obj; + } + }]); + + return EmployeeEndpointRequest; +}(); +/** + * @member {module:model/EmployeeRequest} model + */ + + +EmployeeEndpointRequest.prototype['model'] = undefined; +var _default = EmployeeEndpointRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/EmployeePayrollRun.js b/dist/model/EmployeePayrollRun.js new file mode 100644 index 0000000..9f84d1f --- /dev/null +++ b/dist/model/EmployeePayrollRun.js @@ -0,0 +1,214 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Utils = _interopRequireDefault(require("../Utils")); + +var _Deduction = _interopRequireDefault(require("./Deduction")); + +var _Earning = _interopRequireDefault(require("./Earning")); + +var _Employee = _interopRequireDefault(require("./Employee")); + +var _PayrollRun = _interopRequireDefault(require("./PayrollRun")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +var _Tax = _interopRequireDefault(require("./Tax")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EmployeePayrollRun model module. + * @module model/EmployeePayrollRun + * @version 1.0 + */ +var EmployeePayrollRun = /*#__PURE__*/function () { + /** + * Constructs a new EmployeePayrollRun. + * # The EmployeePayrollRun Object ### Description The `EmployeePayrollRun` object is used to represent a payroll run for a specific employee. ### Usage Example Fetch from the `LIST EmployeePayrollRun` endpoint and filter by `ID` to show all employee payroll runs. + * @alias module:model/EmployeePayrollRun + */ + function EmployeePayrollRun() { + _classCallCheck(this, EmployeePayrollRun); + + EmployeePayrollRun.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EmployeePayrollRun, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EmployeePayrollRun from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EmployeePayrollRun} obj Optional instance to populate. + * @return {module:model/EmployeePayrollRun} The populated EmployeePayrollRun instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EmployeePayrollRun(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('employee')) { + obj['employee'] = (0, _Utils["default"])(data['employee'], _Employee["default"]); + } + + if (data.hasOwnProperty('payroll_run')) { + obj['payroll_run'] = (0, _Utils["default"])(data['payroll_run'], _PayrollRun["default"]); + } + + if (data.hasOwnProperty('gross_pay')) { + obj['gross_pay'] = _ApiClient["default"].convertToType(data['gross_pay'], 'Number'); + } + + if (data.hasOwnProperty('net_pay')) { + obj['net_pay'] = _ApiClient["default"].convertToType(data['net_pay'], 'Number'); + } + + if (data.hasOwnProperty('start_date')) { + obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date'); + } + + if (data.hasOwnProperty('end_date')) { + obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'Date'); + } + + if (data.hasOwnProperty('check_date')) { + obj['check_date'] = _ApiClient["default"].convertToType(data['check_date'], 'Date'); + } + + if (data.hasOwnProperty('earnings')) { + obj['earnings'] = _ApiClient["default"].convertToType(data['earnings'], [_Earning["default"]]); + } + + if (data.hasOwnProperty('deductions')) { + obj['deductions'] = _ApiClient["default"].convertToType(data['deductions'], [_Deduction["default"]]); + } + + if (data.hasOwnProperty('taxes')) { + obj['taxes'] = _ApiClient["default"].convertToType(data['taxes'], [_Tax["default"]]); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return EmployeePayrollRun; +}(); +/** + * @member {String} id + */ + + +EmployeePayrollRun.prototype['id'] = undefined; +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + +EmployeePayrollRun.prototype['remote_id'] = undefined; +/** + * @member {String} employee + */ + +EmployeePayrollRun.prototype['employee'] = undefined; +/** + * @member {String} payroll_run + */ + +EmployeePayrollRun.prototype['payroll_run'] = undefined; +/** + * The gross pay from the run. + * @member {Number} gross_pay + */ + +EmployeePayrollRun.prototype['gross_pay'] = undefined; +/** + * The net pay from the run. + * @member {Number} net_pay + */ + +EmployeePayrollRun.prototype['net_pay'] = undefined; +/** + * The day and time the payroll run started. + * @member {Date} start_date + */ + +EmployeePayrollRun.prototype['start_date'] = undefined; +/** + * The day and time the payroll run ended. + * @member {Date} end_date + */ + +EmployeePayrollRun.prototype['end_date'] = undefined; +/** + * The day and time the payroll run was checked. + * @member {Date} check_date + */ + +EmployeePayrollRun.prototype['check_date'] = undefined; +/** + * @member {Array.} earnings + */ + +EmployeePayrollRun.prototype['earnings'] = undefined; +/** + * @member {Array.} deductions + */ + +EmployeePayrollRun.prototype['deductions'] = undefined; +/** + * @member {Array.} taxes + */ + +EmployeePayrollRun.prototype['taxes'] = undefined; +/** + * @member {Array.} remote_data + */ + +EmployeePayrollRun.prototype['remote_data'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +EmployeePayrollRun.prototype['remote_was_deleted'] = undefined; +var _default = EmployeePayrollRun; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/EmployeeRequest.js b/dist/model/EmployeeRequest.js new file mode 100644 index 0000000..033098c --- /dev/null +++ b/dist/model/EmployeeRequest.js @@ -0,0 +1,360 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EmploymentStatusEnum = _interopRequireDefault(require("./EmploymentStatusEnum")); + +var _EthnicityEnum = _interopRequireDefault(require("./EthnicityEnum")); + +var _GenderEnum = _interopRequireDefault(require("./GenderEnum")); + +var _MaritalStatusEnum = _interopRequireDefault(require("./MaritalStatusEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EmployeeRequest model module. + * @module model/EmployeeRequest + * @version 1.0 + */ +var EmployeeRequest = /*#__PURE__*/function () { + /** + * Constructs a new EmployeeRequest. + * # The Employee Object ### Description The `Employee` object is used to represent an Employee for a company. ### Usage Example Fetch from the `LIST Employee` endpoint and filter by `ID` to show all employees. + * @alias module:model/EmployeeRequest + */ + function EmployeeRequest() { + _classCallCheck(this, EmployeeRequest); + + EmployeeRequest.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EmployeeRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EmployeeRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EmployeeRequest} obj Optional instance to populate. + * @return {module:model/EmployeeRequest} The populated EmployeeRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EmployeeRequest(); + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('employee_number')) { + obj['employee_number'] = _ApiClient["default"].convertToType(data['employee_number'], 'String'); + } + + if (data.hasOwnProperty('company')) { + obj['company'] = _ApiClient["default"].convertToType(data['company'], 'String'); + } + + if (data.hasOwnProperty('first_name')) { + obj['first_name'] = _ApiClient["default"].convertToType(data['first_name'], 'String'); + } + + if (data.hasOwnProperty('last_name')) { + obj['last_name'] = _ApiClient["default"].convertToType(data['last_name'], 'String'); + } + + if (data.hasOwnProperty('display_full_name')) { + obj['display_full_name'] = _ApiClient["default"].convertToType(data['display_full_name'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + + if (data.hasOwnProperty('groups')) { + obj['groups'] = _ApiClient["default"].convertToType(data['groups'], ['String']); + } + + if (data.hasOwnProperty('work_email')) { + obj['work_email'] = _ApiClient["default"].convertToType(data['work_email'], 'String'); + } + + if (data.hasOwnProperty('personal_email')) { + obj['personal_email'] = _ApiClient["default"].convertToType(data['personal_email'], 'String'); + } + + if (data.hasOwnProperty('mobile_phone_number')) { + obj['mobile_phone_number'] = _ApiClient["default"].convertToType(data['mobile_phone_number'], 'String'); + } + + if (data.hasOwnProperty('employments')) { + obj['employments'] = _ApiClient["default"].convertToType(data['employments'], ['String']); + } + + if (data.hasOwnProperty('home_location')) { + obj['home_location'] = _ApiClient["default"].convertToType(data['home_location'], 'String'); + } + + if (data.hasOwnProperty('work_location')) { + obj['work_location'] = _ApiClient["default"].convertToType(data['work_location'], 'String'); + } + + if (data.hasOwnProperty('manager')) { + obj['manager'] = _ApiClient["default"].convertToType(data['manager'], 'String'); + } + + if (data.hasOwnProperty('team')) { + obj['team'] = _ApiClient["default"].convertToType(data['team'], 'String'); + } + + if (data.hasOwnProperty('pay_group')) { + obj['pay_group'] = _ApiClient["default"].convertToType(data['pay_group'], 'String'); + } + + if (data.hasOwnProperty('ssn')) { + obj['ssn'] = _ApiClient["default"].convertToType(data['ssn'], 'String'); + } + + if (data.hasOwnProperty('gender')) { + obj['gender'] = _ApiClient["default"].convertToType(data['gender'], _GenderEnum["default"]); + } + + if (data.hasOwnProperty('ethnicity')) { + obj['ethnicity'] = _ApiClient["default"].convertToType(data['ethnicity'], _EthnicityEnum["default"]); + } + + if (data.hasOwnProperty('marital_status')) { + obj['marital_status'] = _ApiClient["default"].convertToType(data['marital_status'], _MaritalStatusEnum["default"]); + } + + if (data.hasOwnProperty('date_of_birth')) { + obj['date_of_birth'] = _ApiClient["default"].convertToType(data['date_of_birth'], 'Date'); + } + + if (data.hasOwnProperty('hire_date')) { + obj['hire_date'] = _ApiClient["default"].convertToType(data['hire_date'], 'Date'); + } + + if (data.hasOwnProperty('start_date')) { + obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date'); + } + + if (data.hasOwnProperty('remote_created_at')) { + obj['remote_created_at'] = _ApiClient["default"].convertToType(data['remote_created_at'], 'Date'); + } + + if (data.hasOwnProperty('employment_status')) { + obj['employment_status'] = _ApiClient["default"].convertToType(data['employment_status'], _EmploymentStatusEnum["default"]); + } + + if (data.hasOwnProperty('termination_date')) { + obj['termination_date'] = _ApiClient["default"].convertToType(data['termination_date'], 'Date'); + } + + if (data.hasOwnProperty('avatar')) { + obj['avatar'] = _ApiClient["default"].convertToType(data['avatar'], 'String'); + } + + if (data.hasOwnProperty('custom_fields')) { + obj['custom_fields'] = _ApiClient["default"].convertToType(data['custom_fields'], { + 'String': Object + }); + } + } + + return obj; + } + }]); + + return EmployeeRequest; +}(); +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + + +EmployeeRequest.prototype['remote_id'] = undefined; +/** + * The employee's number that appears in the remote UI. Note: This is distinct from the remote_id field, which is a unique identifier for the employee set by the remote API, and is not exposed to the user. This value can also change in many API providers. + * @member {String} employee_number + */ + +EmployeeRequest.prototype['employee_number'] = undefined; +/** + * @member {String} company + */ + +EmployeeRequest.prototype['company'] = undefined; +/** + * The employee's first name. + * @member {String} first_name + */ + +EmployeeRequest.prototype['first_name'] = undefined; +/** + * The employee's last name. + * @member {String} last_name + */ + +EmployeeRequest.prototype['last_name'] = undefined; +/** + * The employee's full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name. + * @member {String} display_full_name + */ + +EmployeeRequest.prototype['display_full_name'] = undefined; +/** + * The employee's username that appears in the remote UI. + * @member {String} username + */ + +EmployeeRequest.prototype['username'] = undefined; +/** + * @member {Array.} groups + */ + +EmployeeRequest.prototype['groups'] = undefined; +/** + * The employee's work email. + * @member {String} work_email + */ + +EmployeeRequest.prototype['work_email'] = undefined; +/** + * The employee's personal email. + * @member {String} personal_email + */ + +EmployeeRequest.prototype['personal_email'] = undefined; +/** + * The employee's mobile phone number. + * @member {String} mobile_phone_number + */ + +EmployeeRequest.prototype['mobile_phone_number'] = undefined; +/** + * Array of `Employment` IDs for this Employee. + * @member {Array.} employments + */ + +EmployeeRequest.prototype['employments'] = undefined; +/** + * @member {String} home_location + */ + +EmployeeRequest.prototype['home_location'] = undefined; +/** + * @member {String} work_location + */ + +EmployeeRequest.prototype['work_location'] = undefined; +/** + * @member {String} manager + */ + +EmployeeRequest.prototype['manager'] = undefined; +/** + * @member {String} team + */ + +EmployeeRequest.prototype['team'] = undefined; +/** + * @member {String} pay_group + */ + +EmployeeRequest.prototype['pay_group'] = undefined; +/** + * The employee's social security number. + * @member {String} ssn + */ + +EmployeeRequest.prototype['ssn'] = undefined; +/** + * The employee's gender. + * @member {module:model/GenderEnum} gender + */ + +EmployeeRequest.prototype['gender'] = undefined; +/** + * The employee's ethnicity. + * @member {module:model/EthnicityEnum} ethnicity + */ + +EmployeeRequest.prototype['ethnicity'] = undefined; +/** + * The employee's marital status. + * @member {module:model/MaritalStatusEnum} marital_status + */ + +EmployeeRequest.prototype['marital_status'] = undefined; +/** + * The employee's date of birth. + * @member {Date} date_of_birth + */ + +EmployeeRequest.prototype['date_of_birth'] = undefined; +/** + * The date that the employee was hired, usually the day that an offer letter is signed. If an employee has multiple hire dates from previous employments, this represents the most recent hire date. Note: If you're looking for the employee's start date, refer to the start_date field. + * @member {Date} hire_date + */ + +EmployeeRequest.prototype['hire_date'] = undefined; +/** + * The date that the employee started working. If an employee has multiple start dates from previous employments, this represents the most recent start date. + * @member {Date} start_date + */ + +EmployeeRequest.prototype['start_date'] = undefined; +/** + * When the third party's employee was created. + * @member {Date} remote_created_at + */ + +EmployeeRequest.prototype['remote_created_at'] = undefined; +/** + * The employment status of the employee. + * @member {module:model/EmploymentStatusEnum} employment_status + */ + +EmployeeRequest.prototype['employment_status'] = undefined; +/** + * The employee's termination date. + * @member {Date} termination_date + */ + +EmployeeRequest.prototype['termination_date'] = undefined; +/** + * The URL of the employee's avatar image. + * @member {String} avatar + */ + +EmployeeRequest.prototype['avatar'] = undefined; +/** + * Custom fields configured for a given model. + * @member {Object.} custom_fields + */ + +EmployeeRequest.prototype['custom_fields'] = undefined; +var _default = EmployeeRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/EmployeeResponse.js b/dist/model/EmployeeResponse.js new file mode 100644 index 0000000..25e786f --- /dev/null +++ b/dist/model/EmployeeResponse.js @@ -0,0 +1,117 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _DebugModeLog = _interopRequireDefault(require("./DebugModeLog")); + +var _Employee = _interopRequireDefault(require("./Employee")); + +var _ErrorValidationProblem = _interopRequireDefault(require("./ErrorValidationProblem")); + +var _WarningValidationProblem = _interopRequireDefault(require("./WarningValidationProblem")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EmployeeResponse model module. + * @module model/EmployeeResponse + * @version 1.0 + */ +var EmployeeResponse = /*#__PURE__*/function () { + /** + * Constructs a new EmployeeResponse. + * @alias module:model/EmployeeResponse + * @param model {module:model/Employee} + * @param warnings {Array.} + * @param errors {Array.} + */ + function EmployeeResponse(model, warnings, errors) { + _classCallCheck(this, EmployeeResponse); + + EmployeeResponse.initialize(this, model, warnings, errors); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EmployeeResponse, null, [{ + key: "initialize", + value: function initialize(obj, model, warnings, errors) { + obj['model'] = model; + obj['warnings'] = warnings; + obj['errors'] = errors; + } + /** + * Constructs a EmployeeResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EmployeeResponse} obj Optional instance to populate. + * @return {module:model/EmployeeResponse} The populated EmployeeResponse instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EmployeeResponse(); + + if (data.hasOwnProperty('model')) { + obj['model'] = _Employee["default"].constructFromObject(data['model']); + } + + if (data.hasOwnProperty('warnings')) { + obj['warnings'] = _ApiClient["default"].convertToType(data['warnings'], [_WarningValidationProblem["default"]]); + } + + if (data.hasOwnProperty('errors')) { + obj['errors'] = _ApiClient["default"].convertToType(data['errors'], [_ErrorValidationProblem["default"]]); + } + + if (data.hasOwnProperty('logs')) { + obj['logs'] = _ApiClient["default"].convertToType(data['logs'], [_DebugModeLog["default"]]); + } + } + + return obj; + } + }]); + + return EmployeeResponse; +}(); +/** + * @member {module:model/Employee} model + */ + + +EmployeeResponse.prototype['model'] = undefined; +/** + * @member {Array.} warnings + */ + +EmployeeResponse.prototype['warnings'] = undefined; +/** + * @member {Array.} errors + */ + +EmployeeResponse.prototype['errors'] = undefined; +/** + * @member {Array.} logs + */ + +EmployeeResponse.prototype['logs'] = undefined; +var _default = EmployeeResponse; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/Employment.js b/dist/model/Employment.js new file mode 100644 index 0000000..08a5ba0 --- /dev/null +++ b/dist/model/Employment.js @@ -0,0 +1,219 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Utils = _interopRequireDefault(require("../Utils")); + +var _Employee = _interopRequireDefault(require("./Employee")); + +var _EmploymentTypeEnum = _interopRequireDefault(require("./EmploymentTypeEnum")); + +var _FlsaStatusEnum = _interopRequireDefault(require("./FlsaStatusEnum")); + +var _PayCurrencyEnum = _interopRequireDefault(require("./PayCurrencyEnum")); + +var _PayFrequencyEnum = _interopRequireDefault(require("./PayFrequencyEnum")); + +var _PayPeriodEnum = _interopRequireDefault(require("./PayPeriodEnum")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Employment model module. + * @module model/Employment + * @version 1.0 + */ +var Employment = /*#__PURE__*/function () { + /** + * Constructs a new Employment. + * # The Employment Object ### Description The `Employment` object is used to represent an employment position at a company. These are associated with the employee filling the role. Please note: Employment objects are constructed if the object does not exist in the remote system. ### Usage Example Fetch from the `LIST Employments` endpoint and filter by `ID` to show all employees. + * @alias module:model/Employment + */ + function Employment() { + _classCallCheck(this, Employment); + + Employment.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Employment, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Employment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Employment} obj Optional instance to populate. + * @return {module:model/Employment} The populated Employment instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Employment(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('employee')) { + obj['employee'] = (0, _Utils["default"])(data['employee'], _Employee["default"]); + } + + if (data.hasOwnProperty('job_title')) { + obj['job_title'] = _ApiClient["default"].convertToType(data['job_title'], 'String'); + } + + if (data.hasOwnProperty('pay_rate')) { + obj['pay_rate'] = _ApiClient["default"].convertToType(data['pay_rate'], 'Number'); + } + + if (data.hasOwnProperty('pay_period')) { + obj['pay_period'] = _ApiClient["default"].convertToType(data['pay_period'], _PayPeriodEnum["default"]); + } + + if (data.hasOwnProperty('pay_frequency')) { + obj['pay_frequency'] = _ApiClient["default"].convertToType(data['pay_frequency'], _PayFrequencyEnum["default"]); + } + + if (data.hasOwnProperty('pay_currency')) { + obj['pay_currency'] = _ApiClient["default"].convertToType(data['pay_currency'], _PayCurrencyEnum["default"]); + } + + if (data.hasOwnProperty('pay_group')) { + obj['pay_group'] = _ApiClient["default"].convertToType(data['pay_group'], 'String'); + } + + if (data.hasOwnProperty('flsa_status')) { + obj['flsa_status'] = _ApiClient["default"].convertToType(data['flsa_status'], _FlsaStatusEnum["default"]); + } + + if (data.hasOwnProperty('effective_date')) { + obj['effective_date'] = _ApiClient["default"].convertToType(data['effective_date'], 'Date'); + } + + if (data.hasOwnProperty('employment_type')) { + obj['employment_type'] = _ApiClient["default"].convertToType(data['employment_type'], _EmploymentTypeEnum["default"]); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return Employment; +}(); +/** + * @member {String} id + */ + + +Employment.prototype['id'] = undefined; +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + +Employment.prototype['remote_id'] = undefined; +/** + * @member {String} employee + */ + +Employment.prototype['employee'] = undefined; +/** + * The position's title. + * @member {String} job_title + */ + +Employment.prototype['job_title'] = undefined; +/** + * The position's pay rate in dollars. + * @member {Number} pay_rate + */ + +Employment.prototype['pay_rate'] = undefined; +/** + * The time period this pay rate encompasses. + * @member {module:model/PayPeriodEnum} pay_period + */ + +Employment.prototype['pay_period'] = undefined; +/** + * The position's pay frequency. + * @member {module:model/PayFrequencyEnum} pay_frequency + */ + +Employment.prototype['pay_frequency'] = undefined; +/** + * The position's currency code. + * @member {module:model/PayCurrencyEnum} pay_currency + */ + +Employment.prototype['pay_currency'] = undefined; +/** + * @member {String} pay_group + */ + +Employment.prototype['pay_group'] = undefined; +/** + * The position's FLSA status. + * @member {module:model/FlsaStatusEnum} flsa_status + */ + +Employment.prototype['flsa_status'] = undefined; +/** + * The position's effective date. + * @member {Date} effective_date + */ + +Employment.prototype['effective_date'] = undefined; +/** + * The position's type of employment. + * @member {module:model/EmploymentTypeEnum} employment_type + */ + +Employment.prototype['employment_type'] = undefined; +/** + * @member {Array.} remote_data + */ + +Employment.prototype['remote_data'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +Employment.prototype['remote_was_deleted'] = undefined; +var _default = Employment; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/EmploymentRequest.js b/dist/model/EmploymentRequest.js new file mode 100644 index 0000000..ce2b2cc --- /dev/null +++ b/dist/model/EmploymentRequest.js @@ -0,0 +1,167 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EmploymentTypeEnum = _interopRequireDefault(require("./EmploymentTypeEnum")); + +var _FlsaStatusEnum = _interopRequireDefault(require("./FlsaStatusEnum")); + +var _PayCurrencyEnum = _interopRequireDefault(require("./PayCurrencyEnum")); + +var _PayFrequencyEnum = _interopRequireDefault(require("./PayFrequencyEnum")); + +var _PayPeriodEnum = _interopRequireDefault(require("./PayPeriodEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EmploymentRequest model module. + * @module model/EmploymentRequest + * @version 1.0 + */ +var EmploymentRequest = /*#__PURE__*/function () { + /** + * Constructs a new EmploymentRequest. + * # The Employment Object ### Description The `Employment` object is used to represent an employment position at a company. These are associated with the employee filling the role. ### Usage Example Fetch from the `LIST Employments` endpoint and filter by `ID` to show all employees. + * @alias module:model/EmploymentRequest + */ + function EmploymentRequest() { + _classCallCheck(this, EmploymentRequest); + + EmploymentRequest.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EmploymentRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EmploymentRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EmploymentRequest} obj Optional instance to populate. + * @return {module:model/EmploymentRequest} The populated EmploymentRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EmploymentRequest(); + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('job_title')) { + obj['job_title'] = _ApiClient["default"].convertToType(data['job_title'], 'String'); + } + + if (data.hasOwnProperty('pay_rate')) { + obj['pay_rate'] = _ApiClient["default"].convertToType(data['pay_rate'], 'Number'); + } + + if (data.hasOwnProperty('pay_period')) { + obj['pay_period'] = _ApiClient["default"].convertToType(data['pay_period'], _PayPeriodEnum["default"]); + } + + if (data.hasOwnProperty('pay_frequency')) { + obj['pay_frequency'] = _ApiClient["default"].convertToType(data['pay_frequency'], _PayFrequencyEnum["default"]); + } + + if (data.hasOwnProperty('pay_currency')) { + obj['pay_currency'] = _ApiClient["default"].convertToType(data['pay_currency'], _PayCurrencyEnum["default"]); + } + + if (data.hasOwnProperty('flsa_status')) { + obj['flsa_status'] = _ApiClient["default"].convertToType(data['flsa_status'], _FlsaStatusEnum["default"]); + } + + if (data.hasOwnProperty('effective_date')) { + obj['effective_date'] = _ApiClient["default"].convertToType(data['effective_date'], 'Date'); + } + + if (data.hasOwnProperty('employment_type')) { + obj['employment_type'] = _ApiClient["default"].convertToType(data['employment_type'], _EmploymentTypeEnum["default"]); + } + } + + return obj; + } + }]); + + return EmploymentRequest; +}(); +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + + +EmploymentRequest.prototype['remote_id'] = undefined; +/** + * The position's title. + * @member {String} job_title + */ + +EmploymentRequest.prototype['job_title'] = undefined; +/** + * The position's pay rate in dollars. + * @member {Number} pay_rate + */ + +EmploymentRequest.prototype['pay_rate'] = undefined; +/** + * The time period this pay rate encompasses. + * @member {module:model/PayPeriodEnum} pay_period + */ + +EmploymentRequest.prototype['pay_period'] = undefined; +/** + * The position's pay frequency. + * @member {module:model/PayFrequencyEnum} pay_frequency + */ + +EmploymentRequest.prototype['pay_frequency'] = undefined; +/** + * The position's currency code. + * @member {module:model/PayCurrencyEnum} pay_currency + */ + +EmploymentRequest.prototype['pay_currency'] = undefined; +/** + * The position's FLSA status. + * @member {module:model/FlsaStatusEnum} flsa_status + */ + +EmploymentRequest.prototype['flsa_status'] = undefined; +/** + * The position's effective date. + * @member {Date} effective_date + */ + +EmploymentRequest.prototype['effective_date'] = undefined; +/** + * The position's type of employment. + * @member {module:model/EmploymentTypeEnum} employment_type + */ + +EmploymentRequest.prototype['employment_type'] = undefined; +var _default = EmploymentRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/EmploymentStatusEnum.js b/dist/model/EmploymentStatusEnum.js new file mode 100644 index 0000000..3f11394 --- /dev/null +++ b/dist/model/EmploymentStatusEnum.js @@ -0,0 +1,52 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class EmploymentStatusEnum. +* @enum {} +* @readonly +*/ +var EmploymentStatusEnum = /*#__PURE__*/function () { + function EmploymentStatusEnum() { + _classCallCheck(this, EmploymentStatusEnum); + + _defineProperty(this, "ACTIVE", "ACTIVE"); + + _defineProperty(this, "PENDING", "PENDING"); + + _defineProperty(this, "INACTIVE", "INACTIVE"); + } + + _createClass(EmploymentStatusEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a EmploymentStatusEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/EmploymentStatusEnum} The enum EmploymentStatusEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return EmploymentStatusEnum; +}(); + +exports["default"] = EmploymentStatusEnum; \ No newline at end of file diff --git a/dist/model/EmploymentTypeEnum.js b/dist/model/EmploymentTypeEnum.js new file mode 100644 index 0000000..3f6310e --- /dev/null +++ b/dist/model/EmploymentTypeEnum.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class EmploymentTypeEnum. +* @enum {} +* @readonly +*/ +var EmploymentTypeEnum = /*#__PURE__*/function () { + function EmploymentTypeEnum() { + _classCallCheck(this, EmploymentTypeEnum); + + _defineProperty(this, "FULL_TIME", "FULL_TIME"); + + _defineProperty(this, "PART_TIME", "PART_TIME"); + + _defineProperty(this, "INTERN", "INTERN"); + + _defineProperty(this, "CONTRACTOR", "CONTRACTOR"); + + _defineProperty(this, "FREELANCE", "FREELANCE"); + } + + _createClass(EmploymentTypeEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a EmploymentTypeEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/EmploymentTypeEnum} The enum EmploymentTypeEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return EmploymentTypeEnum; +}(); + +exports["default"] = EmploymentTypeEnum; \ No newline at end of file diff --git a/dist/model/EncodingEnum.js b/dist/model/EncodingEnum.js new file mode 100644 index 0000000..87f9190 --- /dev/null +++ b/dist/model/EncodingEnum.js @@ -0,0 +1,52 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class EncodingEnum. +* @enum {} +* @readonly +*/ +var EncodingEnum = /*#__PURE__*/function () { + function EncodingEnum() { + _classCallCheck(this, EncodingEnum); + + _defineProperty(this, "RAW", "RAW"); + + _defineProperty(this, "BASE64", "BASE64"); + + _defineProperty(this, "GZIP_BASE64", "GZIP_BASE64"); + } + + _createClass(EncodingEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a EncodingEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/EncodingEnum} The enum EncodingEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return EncodingEnum; +}(); + +exports["default"] = EncodingEnum; \ No newline at end of file diff --git a/dist/model/EndUserDetailsRequest.js b/dist/model/EndUserDetailsRequest.js new file mode 100644 index 0000000..d07f0fc --- /dev/null +++ b/dist/model/EndUserDetailsRequest.js @@ -0,0 +1,145 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _CategoriesEnum = _interopRequireDefault(require("./CategoriesEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EndUserDetailsRequest model module. + * @module model/EndUserDetailsRequest + * @version 1.0 + */ +var EndUserDetailsRequest = /*#__PURE__*/function () { + /** + * Constructs a new EndUserDetailsRequest. + * @alias module:model/EndUserDetailsRequest + * @param end_user_email_address {String} + * @param end_user_organization_name {String} + * @param end_user_origin_id {String} + * @param categories {Array.} + */ + function EndUserDetailsRequest(end_user_email_address, end_user_organization_name, end_user_origin_id, categories) { + _classCallCheck(this, EndUserDetailsRequest); + + EndUserDetailsRequest.initialize(this, end_user_email_address, end_user_organization_name, end_user_origin_id, categories); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EndUserDetailsRequest, null, [{ + key: "initialize", + value: function initialize(obj, end_user_email_address, end_user_organization_name, end_user_origin_id, categories) { + obj['end_user_email_address'] = end_user_email_address; + obj['end_user_organization_name'] = end_user_organization_name; + obj['end_user_origin_id'] = end_user_origin_id; + obj['categories'] = categories; + } + /** + * Constructs a EndUserDetailsRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EndUserDetailsRequest} obj Optional instance to populate. + * @return {module:model/EndUserDetailsRequest} The populated EndUserDetailsRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EndUserDetailsRequest(); + + if (data.hasOwnProperty('end_user_email_address')) { + obj['end_user_email_address'] = _ApiClient["default"].convertToType(data['end_user_email_address'], 'String'); + } + + if (data.hasOwnProperty('end_user_organization_name')) { + obj['end_user_organization_name'] = _ApiClient["default"].convertToType(data['end_user_organization_name'], 'String'); + } + + if (data.hasOwnProperty('end_user_origin_id')) { + obj['end_user_origin_id'] = _ApiClient["default"].convertToType(data['end_user_origin_id'], 'String'); + } + + if (data.hasOwnProperty('categories')) { + obj['categories'] = _ApiClient["default"].convertToType(data['categories'], [_CategoriesEnum["default"]]); + } + + if (data.hasOwnProperty('integration')) { + obj['integration'] = _ApiClient["default"].convertToType(data['integration'], 'String'); + } + + if (data.hasOwnProperty('link_expiry_mins')) { + obj['link_expiry_mins'] = _ApiClient["default"].convertToType(data['link_expiry_mins'], 'Number'); + } + + if (data.hasOwnProperty('should_create_magic_link_url')) { + obj['should_create_magic_link_url'] = _ApiClient["default"].convertToType(data['should_create_magic_link_url'], 'Boolean'); + } + } + + return obj; + } + }]); + + return EndUserDetailsRequest; +}(); +/** + * @member {String} end_user_email_address + */ + + +EndUserDetailsRequest.prototype['end_user_email_address'] = undefined; +/** + * @member {String} end_user_organization_name + */ + +EndUserDetailsRequest.prototype['end_user_organization_name'] = undefined; +/** + * @member {String} end_user_origin_id + */ + +EndUserDetailsRequest.prototype['end_user_origin_id'] = undefined; +/** + * @member {Array.} categories + */ + +EndUserDetailsRequest.prototype['categories'] = undefined; +/** + * The slug of a specific pre-selected integration for this linking flow token, for examples of slugs see https://www.merge.dev/docs/basics/integration-metadata + * @member {String} integration + */ + +EndUserDetailsRequest.prototype['integration'] = undefined; +/** + * An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30 + * @member {Number} link_expiry_mins + * @default 30 + */ + +EndUserDetailsRequest.prototype['link_expiry_mins'] = 30; +/** + * Whether to generate a Magic Link URL. Defaults to false + * @member {Boolean} should_create_magic_link_url + * @default false + */ + +EndUserDetailsRequest.prototype['should_create_magic_link_url'] = false; +var _default = EndUserDetailsRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ErrorValidationProblem.js b/dist/model/ErrorValidationProblem.js new file mode 100644 index 0000000..c2b2d6a --- /dev/null +++ b/dist/model/ErrorValidationProblem.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ValidationProblemSource = _interopRequireDefault(require("./ValidationProblemSource")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ErrorValidationProblem model module. + * @module model/ErrorValidationProblem + * @version 1.0 + */ +var ErrorValidationProblem = /*#__PURE__*/function () { + /** + * Constructs a new ErrorValidationProblem. + * @alias module:model/ErrorValidationProblem + * @param title {String} + * @param detail {String} + * @param problem_type {String} + */ + function ErrorValidationProblem(title, detail, problem_type) { + _classCallCheck(this, ErrorValidationProblem); + + ErrorValidationProblem.initialize(this, title, detail, problem_type); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ErrorValidationProblem, null, [{ + key: "initialize", + value: function initialize(obj, title, detail, problem_type) { + obj['title'] = title; + obj['detail'] = detail; + obj['problem_type'] = problem_type; + } + /** + * Constructs a ErrorValidationProblem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ErrorValidationProblem} obj Optional instance to populate. + * @return {module:model/ErrorValidationProblem} The populated ErrorValidationProblem instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ErrorValidationProblem(); + + if (data.hasOwnProperty('source')) { + obj['source'] = _ValidationProblemSource["default"].constructFromObject(data['source']); + } + + if (data.hasOwnProperty('title')) { + obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String'); + } + + if (data.hasOwnProperty('detail')) { + obj['detail'] = _ApiClient["default"].convertToType(data['detail'], 'String'); + } + + if (data.hasOwnProperty('problem_type')) { + obj['problem_type'] = _ApiClient["default"].convertToType(data['problem_type'], 'String'); + } + } + + return obj; + } + }]); + + return ErrorValidationProblem; +}(); +/** + * @member {module:model/ValidationProblemSource} source + */ + + +ErrorValidationProblem.prototype['source'] = undefined; +/** + * @member {String} title + */ + +ErrorValidationProblem.prototype['title'] = undefined; +/** + * @member {String} detail + */ + +ErrorValidationProblem.prototype['detail'] = undefined; +/** + * @member {String} problem_type + */ + +ErrorValidationProblem.prototype['problem_type'] = undefined; +var _default = ErrorValidationProblem; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/EthnicityEnum.js b/dist/model/EthnicityEnum.js new file mode 100644 index 0000000..163f42a --- /dev/null +++ b/dist/model/EthnicityEnum.js @@ -0,0 +1,62 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class EthnicityEnum. +* @enum {} +* @readonly +*/ +var EthnicityEnum = /*#__PURE__*/function () { + function EthnicityEnum() { + _classCallCheck(this, EthnicityEnum); + + _defineProperty(this, "AMERICAN_INDIAN_OR_ALASKA_NATIVE", "AMERICAN_INDIAN_OR_ALASKA_NATIVE"); + + _defineProperty(this, "ASIAN_OR_INDIAN_SUBCONTINENT", "ASIAN_OR_INDIAN_SUBCONTINENT"); + + _defineProperty(this, "BLACK_OR_AFRICAN_AMERICAN", "BLACK_OR_AFRICAN_AMERICAN"); + + _defineProperty(this, "HISPANIC_OR_LATINO", "HISPANIC_OR_LATINO"); + + _defineProperty(this, "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER", "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER"); + + _defineProperty(this, "TWO_OR_MORE_RACES", "TWO_OR_MORE_RACES"); + + _defineProperty(this, "WHITE", "WHITE"); + + _defineProperty(this, "PREFER_NOT_TO_DISCLOSE", "PREFER_NOT_TO_DISCLOSE"); + } + + _createClass(EthnicityEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a EthnicityEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/EthnicityEnum} The enum EthnicityEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return EthnicityEnum; +}(); + +exports["default"] = EthnicityEnum; \ No newline at end of file diff --git a/dist/model/FlsaStatusEnum.js b/dist/model/FlsaStatusEnum.js new file mode 100644 index 0000000..ff26707 --- /dev/null +++ b/dist/model/FlsaStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class FlsaStatusEnum. +* @enum {} +* @readonly +*/ +var FlsaStatusEnum = /*#__PURE__*/function () { + function FlsaStatusEnum() { + _classCallCheck(this, FlsaStatusEnum); + + _defineProperty(this, "EXEMPT", "EXEMPT"); + + _defineProperty(this, "SALARIED_NONEXEMPT", "SALARIED_NONEXEMPT"); + + _defineProperty(this, "NONEXEMPT", "NONEXEMPT"); + + _defineProperty(this, "OWNER", "OWNER"); + } + + _createClass(FlsaStatusEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a FlsaStatusEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/FlsaStatusEnum} The enum FlsaStatusEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return FlsaStatusEnum; +}(); + +exports["default"] = FlsaStatusEnum; \ No newline at end of file diff --git a/dist/model/GenderEnum.js b/dist/model/GenderEnum.js new file mode 100644 index 0000000..a46b016 --- /dev/null +++ b/dist/model/GenderEnum.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class GenderEnum. +* @enum {} +* @readonly +*/ +var GenderEnum = /*#__PURE__*/function () { + function GenderEnum() { + _classCallCheck(this, GenderEnum); + + _defineProperty(this, "MALE", "MALE"); + + _defineProperty(this, "FEMALE", "FEMALE"); + + _defineProperty(this, "NON-BINARY", "NON-BINARY"); + + _defineProperty(this, "OTHER", "OTHER"); + + _defineProperty(this, "PREFER_NOT_TO_DISCLOSE", "PREFER_NOT_TO_DISCLOSE"); + } + + _createClass(GenderEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a GenderEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/GenderEnum} The enum GenderEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return GenderEnum; +}(); + +exports["default"] = GenderEnum; \ No newline at end of file diff --git a/dist/model/GenerateRemoteKeyRequest.js b/dist/model/GenerateRemoteKeyRequest.js new file mode 100644 index 0000000..60f9d73 --- /dev/null +++ b/dist/model/GenerateRemoteKeyRequest.js @@ -0,0 +1,79 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GenerateRemoteKeyRequest model module. + * @module model/GenerateRemoteKeyRequest + * @version 1.0 + */ +var GenerateRemoteKeyRequest = /*#__PURE__*/function () { + /** + * Constructs a new GenerateRemoteKeyRequest. + * # The GenerateRemoteKey Object ### Description The `GenerateRemoteKey` object is used to represent a request for a new remote key. ### Usage Example Post a `GenerateRemoteKey` to create a new remote key. + * @alias module:model/GenerateRemoteKeyRequest + * @param name {String} + */ + function GenerateRemoteKeyRequest(name) { + _classCallCheck(this, GenerateRemoteKeyRequest); + + GenerateRemoteKeyRequest.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GenerateRemoteKeyRequest, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GenerateRemoteKeyRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GenerateRemoteKeyRequest} obj Optional instance to populate. + * @return {module:model/GenerateRemoteKeyRequest} The populated GenerateRemoteKeyRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GenerateRemoteKeyRequest(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return GenerateRemoteKeyRequest; +}(); +/** + * @member {String} name + */ + + +GenerateRemoteKeyRequest.prototype['name'] = undefined; +var _default = GenerateRemoteKeyRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/Group.js b/dist/model/Group.js new file mode 100644 index 0000000..4de3113 --- /dev/null +++ b/dist/model/Group.js @@ -0,0 +1,139 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _GroupTypeEnum = _interopRequireDefault(require("./GroupTypeEnum")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Group model module. + * @module model/Group + * @version 1.0 + */ +var Group = /*#__PURE__*/function () { + /** + * Constructs a new Group. + * # The Group Object ### Description The `Group` object is used to represent Group information that employees belong to. This is often referenced with an Employee object. Please note: The teams object will fulfill most use cases. The Groups object is for power-users that want all types of groups at a company and the optionality of pulling multiple groups for an employee. ### Usage Example Fetch from the `LIST Employee` endpoint and expand groups to view an employee's groups. + * @alias module:model/Group + */ + function Group() { + _classCallCheck(this, Group); + + Group.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Group, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Group from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Group} obj Optional instance to populate. + * @return {module:model/Group} The populated Group instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Group(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('parent_group')) { + obj['parent_group'] = _ApiClient["default"].convertToType(data['parent_group'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], _GroupTypeEnum["default"]); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return Group; +}(); +/** + * @member {String} id + */ + + +Group.prototype['id'] = undefined; +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + +Group.prototype['remote_id'] = undefined; +/** + * The parent group for this group. + * @member {String} parent_group + */ + +Group.prototype['parent_group'] = undefined; +/** + * The group name. + * @member {String} name + */ + +Group.prototype['name'] = undefined; +/** + * The group type + * @member {module:model/GroupTypeEnum} type + */ + +Group.prototype['type'] = undefined; +/** + * @member {Array.} remote_data + */ + +Group.prototype['remote_data'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +Group.prototype['remote_was_deleted'] = undefined; +var _default = Group; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GroupTypeEnum.js b/dist/model/GroupTypeEnum.js new file mode 100644 index 0000000..3285430 --- /dev/null +++ b/dist/model/GroupTypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class GroupTypeEnum. +* @enum {} +* @readonly +*/ +var GroupTypeEnum = /*#__PURE__*/function () { + function GroupTypeEnum() { + _classCallCheck(this, GroupTypeEnum); + + _defineProperty(this, "TEAM", "TEAM"); + + _defineProperty(this, "DEPARTMENT", "DEPARTMENT"); + + _defineProperty(this, "COST_CENTER", "COST_CENTER"); + + _defineProperty(this, "BUSINESS_UNIT", "BUSINESS_UNIT"); + } + + _createClass(GroupTypeEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a GroupTypeEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/GroupTypeEnum} The enum GroupTypeEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return GroupTypeEnum; +}(); + +exports["default"] = GroupTypeEnum; \ No newline at end of file diff --git a/dist/model/IgnoreCommonModel.js b/dist/model/IgnoreCommonModel.js new file mode 100644 index 0000000..68cd5c9 --- /dev/null +++ b/dist/model/IgnoreCommonModel.js @@ -0,0 +1,89 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ReasonEnum = _interopRequireDefault(require("./ReasonEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The IgnoreCommonModel model module. + * @module model/IgnoreCommonModel + * @version 1.0 + */ +var IgnoreCommonModel = /*#__PURE__*/function () { + /** + * Constructs a new IgnoreCommonModel. + * @alias module:model/IgnoreCommonModel + * @param reason {module:model/ReasonEnum} + */ + function IgnoreCommonModel(reason) { + _classCallCheck(this, IgnoreCommonModel); + + IgnoreCommonModel.initialize(this, reason); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(IgnoreCommonModel, null, [{ + key: "initialize", + value: function initialize(obj, reason) { + obj['reason'] = reason; + } + /** + * Constructs a IgnoreCommonModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IgnoreCommonModel} obj Optional instance to populate. + * @return {module:model/IgnoreCommonModel} The populated IgnoreCommonModel instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IgnoreCommonModel(); + + if (data.hasOwnProperty('reason')) { + obj['reason'] = _ApiClient["default"].convertToType(data['reason'], _ReasonEnum["default"]); + } + + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + } + + return obj; + } + }]); + + return IgnoreCommonModel; +}(); +/** + * @member {module:model/ReasonEnum} reason + */ + + +IgnoreCommonModel.prototype['reason'] = undefined; +/** + * @member {String} message + */ + +IgnoreCommonModel.prototype['message'] = undefined; +var _default = IgnoreCommonModel; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/IgnoreCommonModelRequest.js b/dist/model/IgnoreCommonModelRequest.js new file mode 100644 index 0000000..add6762 --- /dev/null +++ b/dist/model/IgnoreCommonModelRequest.js @@ -0,0 +1,89 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ReasonEnum = _interopRequireDefault(require("./ReasonEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The IgnoreCommonModelRequest model module. + * @module model/IgnoreCommonModelRequest + * @version 1.0 + */ +var IgnoreCommonModelRequest = /*#__PURE__*/function () { + /** + * Constructs a new IgnoreCommonModelRequest. + * @alias module:model/IgnoreCommonModelRequest + * @param reason {module:model/ReasonEnum} + */ + function IgnoreCommonModelRequest(reason) { + _classCallCheck(this, IgnoreCommonModelRequest); + + IgnoreCommonModelRequest.initialize(this, reason); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(IgnoreCommonModelRequest, null, [{ + key: "initialize", + value: function initialize(obj, reason) { + obj['reason'] = reason; + } + /** + * Constructs a IgnoreCommonModelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IgnoreCommonModelRequest} obj Optional instance to populate. + * @return {module:model/IgnoreCommonModelRequest} The populated IgnoreCommonModelRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IgnoreCommonModelRequest(); + + if (data.hasOwnProperty('reason')) { + obj['reason'] = _ApiClient["default"].convertToType(data['reason'], _ReasonEnum["default"]); + } + + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + } + + return obj; + } + }]); + + return IgnoreCommonModelRequest; +}(); +/** + * @member {module:model/ReasonEnum} reason + */ + + +IgnoreCommonModelRequest.prototype['reason'] = undefined; +/** + * @member {String} message + */ + +IgnoreCommonModelRequest.prototype['message'] = undefined; +var _default = IgnoreCommonModelRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/Issue.js b/dist/model/Issue.js new file mode 100644 index 0000000..3342e91 --- /dev/null +++ b/dist/model/Issue.js @@ -0,0 +1,136 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _IssueStatusEnum = _interopRequireDefault(require("./IssueStatusEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Issue model module. + * @module model/Issue + * @version 1.0 + */ +var Issue = /*#__PURE__*/function () { + /** + * Constructs a new Issue. + * @alias module:model/Issue + * @param error_description {String} + */ + function Issue(error_description) { + _classCallCheck(this, Issue); + + Issue.initialize(this, error_description); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Issue, null, [{ + key: "initialize", + value: function initialize(obj, error_description) { + obj['error_description'] = error_description; + } + /** + * Constructs a Issue from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Issue} obj Optional instance to populate. + * @return {module:model/Issue} The populated Issue instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Issue(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _IssueStatusEnum["default"].constructFromObject(data['status']); + } + + if (data.hasOwnProperty('error_description')) { + obj['error_description'] = _ApiClient["default"].convertToType(data['error_description'], 'String'); + } + + if (data.hasOwnProperty('end_user')) { + obj['end_user'] = _ApiClient["default"].convertToType(data['end_user'], { + 'String': Object + }); + } + + if (data.hasOwnProperty('first_incident_time')) { + obj['first_incident_time'] = _ApiClient["default"].convertToType(data['first_incident_time'], 'Date'); + } + + if (data.hasOwnProperty('last_incident_time')) { + obj['last_incident_time'] = _ApiClient["default"].convertToType(data['last_incident_time'], 'Date'); + } + + if (data.hasOwnProperty('is_muted')) { + obj['is_muted'] = _ApiClient["default"].convertToType(data['is_muted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return Issue; +}(); +/** + * @member {String} id + */ + + +Issue.prototype['id'] = undefined; +/** + * @member {module:model/IssueStatusEnum} status + */ + +Issue.prototype['status'] = undefined; +/** + * @member {String} error_description + */ + +Issue.prototype['error_description'] = undefined; +/** + * @member {Object.} end_user + */ + +Issue.prototype['end_user'] = undefined; +/** + * @member {Date} first_incident_time + */ + +Issue.prototype['first_incident_time'] = undefined; +/** + * @member {Date} last_incident_time + */ + +Issue.prototype['last_incident_time'] = undefined; +/** + * @member {Boolean} is_muted + */ + +Issue.prototype['is_muted'] = undefined; +var _default = Issue; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/IssueStatusEnum.js b/dist/model/IssueStatusEnum.js new file mode 100644 index 0000000..58944b9 --- /dev/null +++ b/dist/model/IssueStatusEnum.js @@ -0,0 +1,50 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class IssueStatusEnum. +* @enum {} +* @readonly +*/ +var IssueStatusEnum = /*#__PURE__*/function () { + function IssueStatusEnum() { + _classCallCheck(this, IssueStatusEnum); + + _defineProperty(this, "ONGOING", "ONGOING"); + + _defineProperty(this, "RESOLVED", "RESOLVED"); + } + + _createClass(IssueStatusEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a IssueStatusEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/IssueStatusEnum} The enum IssueStatusEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return IssueStatusEnum; +}(); + +exports["default"] = IssueStatusEnum; \ No newline at end of file diff --git a/dist/model/LinkToken.js b/dist/model/LinkToken.js new file mode 100644 index 0000000..243df1a --- /dev/null +++ b/dist/model/LinkToken.js @@ -0,0 +1,98 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The LinkToken model module. + * @module model/LinkToken + * @version 1.0 + */ +var LinkToken = /*#__PURE__*/function () { + /** + * Constructs a new LinkToken. + * @alias module:model/LinkToken + * @param link_token {String} + * @param integration_name {String} + */ + function LinkToken(link_token, integration_name) { + _classCallCheck(this, LinkToken); + + LinkToken.initialize(this, link_token, integration_name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LinkToken, null, [{ + key: "initialize", + value: function initialize(obj, link_token, integration_name) { + obj['link_token'] = link_token; + obj['integration_name'] = integration_name; + } + /** + * Constructs a LinkToken from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LinkToken} obj Optional instance to populate. + * @return {module:model/LinkToken} The populated LinkToken instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LinkToken(); + + if (data.hasOwnProperty('link_token')) { + obj['link_token'] = _ApiClient["default"].convertToType(data['link_token'], 'String'); + } + + if (data.hasOwnProperty('integration_name')) { + obj['integration_name'] = _ApiClient["default"].convertToType(data['integration_name'], 'String'); + } + + if (data.hasOwnProperty('magic_link_url')) { + obj['magic_link_url'] = _ApiClient["default"].convertToType(data['magic_link_url'], 'String'); + } + } + + return obj; + } + }]); + + return LinkToken; +}(); +/** + * @member {String} link_token + */ + + +LinkToken.prototype['link_token'] = undefined; +/** + * @member {String} integration_name + */ + +LinkToken.prototype['integration_name'] = undefined; +/** + * @member {String} magic_link_url + */ + +LinkToken.prototype['magic_link_url'] = undefined; +var _default = LinkToken; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/LinkedAccountStatus.js b/dist/model/LinkedAccountStatus.js new file mode 100644 index 0000000..f27c5a9 --- /dev/null +++ b/dist/model/LinkedAccountStatus.js @@ -0,0 +1,89 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The LinkedAccountStatus model module. + * @module model/LinkedAccountStatus + * @version 1.0 + */ +var LinkedAccountStatus = /*#__PURE__*/function () { + /** + * Constructs a new LinkedAccountStatus. + * @alias module:model/LinkedAccountStatus + * @param linked_account_status {String} + * @param can_make_request {Boolean} + */ + function LinkedAccountStatus(linked_account_status, can_make_request) { + _classCallCheck(this, LinkedAccountStatus); + + LinkedAccountStatus.initialize(this, linked_account_status, can_make_request); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LinkedAccountStatus, null, [{ + key: "initialize", + value: function initialize(obj, linked_account_status, can_make_request) { + obj['linked_account_status'] = linked_account_status; + obj['can_make_request'] = can_make_request; + } + /** + * Constructs a LinkedAccountStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LinkedAccountStatus} obj Optional instance to populate. + * @return {module:model/LinkedAccountStatus} The populated LinkedAccountStatus instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LinkedAccountStatus(); + + if (data.hasOwnProperty('linked_account_status')) { + obj['linked_account_status'] = _ApiClient["default"].convertToType(data['linked_account_status'], 'String'); + } + + if (data.hasOwnProperty('can_make_request')) { + obj['can_make_request'] = _ApiClient["default"].convertToType(data['can_make_request'], 'Boolean'); + } + } + + return obj; + } + }]); + + return LinkedAccountStatus; +}(); +/** + * @member {String} linked_account_status + */ + + +LinkedAccountStatus.prototype['linked_account_status'] = undefined; +/** + * @member {Boolean} can_make_request + */ + +LinkedAccountStatus.prototype['can_make_request'] = undefined; +var _default = LinkedAccountStatus; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/Location.js b/dist/model/Location.js new file mode 100644 index 0000000..63749ed --- /dev/null +++ b/dist/model/Location.js @@ -0,0 +1,201 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _CountryEnum = _interopRequireDefault(require("./CountryEnum")); + +var _LocationTypeEnum = _interopRequireDefault(require("./LocationTypeEnum")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Location model module. + * @module model/Location + * @version 1.0 + */ +var Location = /*#__PURE__*/function () { + /** + * Constructs a new Location. + * # The Location Object ### Description The `Location` object is used to represent a Location for a Company or Employee address. This is shared across many models and is referenced whenever a location is stored. ### Usage Example Fetch from the `LIST Locations` endpoint and filter by `ID` to show all office locations. + * @alias module:model/Location + */ + function Location() { + _classCallCheck(this, Location); + + Location.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Location, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Location from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Location} obj Optional instance to populate. + * @return {module:model/Location} The populated Location instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Location(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('phone_number')) { + obj['phone_number'] = _ApiClient["default"].convertToType(data['phone_number'], 'String'); + } + + if (data.hasOwnProperty('street_1')) { + obj['street_1'] = _ApiClient["default"].convertToType(data['street_1'], 'String'); + } + + if (data.hasOwnProperty('street_2')) { + obj['street_2'] = _ApiClient["default"].convertToType(data['street_2'], 'String'); + } + + if (data.hasOwnProperty('city')) { + obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String'); + } + + if (data.hasOwnProperty('state')) { + obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); + } + + if (data.hasOwnProperty('zip_code')) { + obj['zip_code'] = _ApiClient["default"].convertToType(data['zip_code'], 'String'); + } + + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], _CountryEnum["default"]); + } + + if (data.hasOwnProperty('location_type')) { + obj['location_type'] = _ApiClient["default"].convertToType(data['location_type'], _LocationTypeEnum["default"]); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return Location; +}(); +/** + * @member {String} id + */ + + +Location.prototype['id'] = undefined; +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + +Location.prototype['remote_id'] = undefined; +/** + * The location's name. + * @member {String} name + */ + +Location.prototype['name'] = undefined; +/** + * The location's phone number. + * @member {String} phone_number + */ + +Location.prototype['phone_number'] = undefined; +/** + * Line 1 of the location's street address. + * @member {String} street_1 + */ + +Location.prototype['street_1'] = undefined; +/** + * Line 2 of the location's street address. + * @member {String} street_2 + */ + +Location.prototype['street_2'] = undefined; +/** + * The location's city. + * @member {String} city + */ + +Location.prototype['city'] = undefined; +/** + * The location's state. Represents a region if outside of the US. + * @member {String} state + */ + +Location.prototype['state'] = undefined; +/** + * The location's zip code or postal code. + * @member {String} zip_code + */ + +Location.prototype['zip_code'] = undefined; +/** + * The location's country. + * @member {module:model/CountryEnum} country + */ + +Location.prototype['country'] = undefined; +/** + * The location's type. Can be either WORK or HOME + * @member {module:model/LocationTypeEnum} location_type + */ + +Location.prototype['location_type'] = undefined; +/** + * @member {Array.} remote_data + */ + +Location.prototype['remote_data'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +Location.prototype['remote_was_deleted'] = undefined; +var _default = Location; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/LocationTypeEnum.js b/dist/model/LocationTypeEnum.js new file mode 100644 index 0000000..d73c75e --- /dev/null +++ b/dist/model/LocationTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class LocationTypeEnum. +* @enum {} +* @readonly +*/ +var LocationTypeEnum = /*#__PURE__*/function () { + function LocationTypeEnum() { + _classCallCheck(this, LocationTypeEnum); + + _defineProperty(this, "HOME", "HOME"); + + _defineProperty(this, "WORK", "WORK"); + } + + _createClass(LocationTypeEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a LocationTypeEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/LocationTypeEnum} The enum LocationTypeEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return LocationTypeEnum; +}(); + +exports["default"] = LocationTypeEnum; \ No newline at end of file diff --git a/dist/model/MaritalStatusEnum.js b/dist/model/MaritalStatusEnum.js new file mode 100644 index 0000000..1021272 --- /dev/null +++ b/dist/model/MaritalStatusEnum.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class MaritalStatusEnum. +* @enum {} +* @readonly +*/ +var MaritalStatusEnum = /*#__PURE__*/function () { + function MaritalStatusEnum() { + _classCallCheck(this, MaritalStatusEnum); + + _defineProperty(this, "SINGLE", "SINGLE"); + + _defineProperty(this, "MARRIED_FILING_JOINTLY", "MARRIED_FILING_JOINTLY"); + + _defineProperty(this, "MARRIED_FILING_SEPARATELY", "MARRIED_FILING_SEPARATELY"); + + _defineProperty(this, "HEAD_OF_HOUSEHOLD", "HEAD_OF_HOUSEHOLD"); + + _defineProperty(this, "QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD", "QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD"); + } + + _createClass(MaritalStatusEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a MaritalStatusEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/MaritalStatusEnum} The enum MaritalStatusEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return MaritalStatusEnum; +}(); + +exports["default"] = MaritalStatusEnum; \ No newline at end of file diff --git a/dist/model/MetaResponse.js b/dist/model/MetaResponse.js new file mode 100644 index 0000000..ae3f66b --- /dev/null +++ b/dist/model/MetaResponse.js @@ -0,0 +1,113 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _LinkedAccountStatus = _interopRequireDefault(require("./LinkedAccountStatus")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The MetaResponse model module. + * @module model/MetaResponse + * @version 1.0 + */ +var MetaResponse = /*#__PURE__*/function () { + /** + * Constructs a new MetaResponse. + * @alias module:model/MetaResponse + * @param request_schema {Object.} + * @param has_conditional_params {Boolean} + * @param has_required_linked_account_params {Boolean} + */ + function MetaResponse(request_schema, has_conditional_params, has_required_linked_account_params) { + _classCallCheck(this, MetaResponse); + + MetaResponse.initialize(this, request_schema, has_conditional_params, has_required_linked_account_params); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(MetaResponse, null, [{ + key: "initialize", + value: function initialize(obj, request_schema, has_conditional_params, has_required_linked_account_params) { + obj['request_schema'] = request_schema; + obj['has_conditional_params'] = has_conditional_params; + obj['has_required_linked_account_params'] = has_required_linked_account_params; + } + /** + * Constructs a MetaResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MetaResponse} obj Optional instance to populate. + * @return {module:model/MetaResponse} The populated MetaResponse instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MetaResponse(); + + if (data.hasOwnProperty('request_schema')) { + obj['request_schema'] = _ApiClient["default"].convertToType(data['request_schema'], { + 'String': Object + }); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _LinkedAccountStatus["default"].constructFromObject(data['status']); + } + + if (data.hasOwnProperty('has_conditional_params')) { + obj['has_conditional_params'] = _ApiClient["default"].convertToType(data['has_conditional_params'], 'Boolean'); + } + + if (data.hasOwnProperty('has_required_linked_account_params')) { + obj['has_required_linked_account_params'] = _ApiClient["default"].convertToType(data['has_required_linked_account_params'], 'Boolean'); + } + } + + return obj; + } + }]); + + return MetaResponse; +}(); +/** + * @member {Object.} request_schema + */ + + +MetaResponse.prototype['request_schema'] = undefined; +/** + * @member {module:model/LinkedAccountStatus} status + */ + +MetaResponse.prototype['status'] = undefined; +/** + * @member {Boolean} has_conditional_params + */ + +MetaResponse.prototype['has_conditional_params'] = undefined; +/** + * @member {Boolean} has_required_linked_account_params + */ + +MetaResponse.prototype['has_required_linked_account_params'] = undefined; +var _default = MetaResponse; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/MethodEnum.js b/dist/model/MethodEnum.js new file mode 100644 index 0000000..68b011f --- /dev/null +++ b/dist/model/MethodEnum.js @@ -0,0 +1,60 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class MethodEnum. +* @enum {} +* @readonly +*/ +var MethodEnum = /*#__PURE__*/function () { + function MethodEnum() { + _classCallCheck(this, MethodEnum); + + _defineProperty(this, "GET", "GET"); + + _defineProperty(this, "OPTIONS", "OPTIONS"); + + _defineProperty(this, "HEAD", "HEAD"); + + _defineProperty(this, "POST", "POST"); + + _defineProperty(this, "PUT", "PUT"); + + _defineProperty(this, "PATCH", "PATCH"); + + _defineProperty(this, "DELETE", "DELETE"); + } + + _createClass(MethodEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a MethodEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/MethodEnum} The enum MethodEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return MethodEnum; +}(); + +exports["default"] = MethodEnum; \ No newline at end of file diff --git a/dist/model/ModelOperation.js b/dist/model/ModelOperation.js new file mode 100644 index 0000000..4e901b5 --- /dev/null +++ b/dist/model/ModelOperation.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ModelOperation model module. + * @module model/ModelOperation + * @version 1.0 + */ +var ModelOperation = /*#__PURE__*/function () { + /** + * Constructs a new ModelOperation. + * # The ModelOperation Object ### Description The `ModelOperation` object is used to represent the operations that are currently supported for a given model. ### Usage Example View what operations are supported for the `Candidate` endpoint. + * @alias module:model/ModelOperation + * @param model_name {String} + * @param available_operations {Array.} + * @param required_post_parameters {Array.} + * @param supported_fields {Array.} + */ + function ModelOperation(model_name, available_operations, required_post_parameters, supported_fields) { + _classCallCheck(this, ModelOperation); + + ModelOperation.initialize(this, model_name, available_operations, required_post_parameters, supported_fields); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ModelOperation, null, [{ + key: "initialize", + value: function initialize(obj, model_name, available_operations, required_post_parameters, supported_fields) { + obj['model_name'] = model_name; + obj['available_operations'] = available_operations; + obj['required_post_parameters'] = required_post_parameters; + obj['supported_fields'] = supported_fields; + } + /** + * Constructs a ModelOperation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ModelOperation} obj Optional instance to populate. + * @return {module:model/ModelOperation} The populated ModelOperation instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ModelOperation(); + + if (data.hasOwnProperty('model_name')) { + obj['model_name'] = _ApiClient["default"].convertToType(data['model_name'], 'String'); + } + + if (data.hasOwnProperty('available_operations')) { + obj['available_operations'] = _ApiClient["default"].convertToType(data['available_operations'], ['String']); + } + + if (data.hasOwnProperty('required_post_parameters')) { + obj['required_post_parameters'] = _ApiClient["default"].convertToType(data['required_post_parameters'], ['String']); + } + + if (data.hasOwnProperty('supported_fields')) { + obj['supported_fields'] = _ApiClient["default"].convertToType(data['supported_fields'], ['String']); + } + } + + return obj; + } + }]); + + return ModelOperation; +}(); +/** + * @member {String} model_name + */ + + +ModelOperation.prototype['model_name'] = undefined; +/** + * @member {Array.} available_operations + */ + +ModelOperation.prototype['available_operations'] = undefined; +/** + * @member {Array.} required_post_parameters + */ + +ModelOperation.prototype['required_post_parameters'] = undefined; +/** + * @member {Array.} supported_fields + */ + +ModelOperation.prototype['supported_fields'] = undefined; +var _default = ModelOperation; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/MultipartFormFieldRequest.js b/dist/model/MultipartFormFieldRequest.js new file mode 100644 index 0000000..723156e --- /dev/null +++ b/dist/model/MultipartFormFieldRequest.js @@ -0,0 +1,124 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EncodingEnum = _interopRequireDefault(require("./EncodingEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The MultipartFormFieldRequest model module. + * @module model/MultipartFormFieldRequest + * @version 1.0 + */ +var MultipartFormFieldRequest = /*#__PURE__*/function () { + /** + * Constructs a new MultipartFormFieldRequest. + * # The MultipartFormField Object ### Description The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. ### Usage Example Create a `MultipartFormField` to define a multipart form entry. + * @alias module:model/MultipartFormFieldRequest + * @param name {String} The name of the form field + * @param data {String} The data for the form field. + */ + function MultipartFormFieldRequest(name, data) { + _classCallCheck(this, MultipartFormFieldRequest); + + MultipartFormFieldRequest.initialize(this, name, data); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(MultipartFormFieldRequest, null, [{ + key: "initialize", + value: function initialize(obj, name, data) { + obj['name'] = name; + obj['data'] = data; + } + /** + * Constructs a MultipartFormFieldRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MultipartFormFieldRequest} obj Optional instance to populate. + * @return {module:model/MultipartFormFieldRequest} The populated MultipartFormFieldRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MultipartFormFieldRequest(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + + if (data.hasOwnProperty('encoding')) { + obj['encoding'] = _ApiClient["default"].convertToType(data['encoding'], _EncodingEnum["default"]); + } + + if (data.hasOwnProperty('file_name')) { + obj['file_name'] = _ApiClient["default"].convertToType(data['file_name'], 'String'); + } + + if (data.hasOwnProperty('content_type')) { + obj['content_type'] = _ApiClient["default"].convertToType(data['content_type'], 'String'); + } + } + + return obj; + } + }]); + + return MultipartFormFieldRequest; +}(); +/** + * The name of the form field + * @member {String} name + */ + + +MultipartFormFieldRequest.prototype['name'] = undefined; +/** + * The data for the form field. + * @member {String} data + */ + +MultipartFormFieldRequest.prototype['data'] = undefined; +/** + * The encoding of the value of `data`. Defaults to `RAW` if not defined. + * @member {module:model/EncodingEnum} encoding + */ + +MultipartFormFieldRequest.prototype['encoding'] = undefined; +/** + * The file name of the form field, if the field is for a file. + * @member {String} file_name + */ + +MultipartFormFieldRequest.prototype['file_name'] = undefined; +/** + * The MIME type of the file, if the field is for a file. + * @member {String} content_type + */ + +MultipartFormFieldRequest.prototype['content_type'] = undefined; +var _default = MultipartFormFieldRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedAccountDetailsAndActionsList.js b/dist/model/PaginatedAccountDetailsAndActionsList.js new file mode 100644 index 0000000..f95ba29 --- /dev/null +++ b/dist/model/PaginatedAccountDetailsAndActionsList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AccountDetailsAndActions = _interopRequireDefault(require("./AccountDetailsAndActions")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedAccountDetailsAndActionsList model module. + * @module model/PaginatedAccountDetailsAndActionsList + * @version 1.0 + */ +var PaginatedAccountDetailsAndActionsList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedAccountDetailsAndActionsList. + * @alias module:model/PaginatedAccountDetailsAndActionsList + */ + function PaginatedAccountDetailsAndActionsList() { + _classCallCheck(this, PaginatedAccountDetailsAndActionsList); + + PaginatedAccountDetailsAndActionsList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedAccountDetailsAndActionsList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedAccountDetailsAndActionsList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedAccountDetailsAndActionsList} obj Optional instance to populate. + * @return {module:model/PaginatedAccountDetailsAndActionsList} The populated PaginatedAccountDetailsAndActionsList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedAccountDetailsAndActionsList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_AccountDetailsAndActions["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedAccountDetailsAndActionsList; +}(); +/** + * @member {String} next + */ + + +PaginatedAccountDetailsAndActionsList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedAccountDetailsAndActionsList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedAccountDetailsAndActionsList.prototype['results'] = undefined; +var _default = PaginatedAccountDetailsAndActionsList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedBankInfoList.js b/dist/model/PaginatedBankInfoList.js new file mode 100644 index 0000000..f50154e --- /dev/null +++ b/dist/model/PaginatedBankInfoList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _BankInfo = _interopRequireDefault(require("./BankInfo")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedBankInfoList model module. + * @module model/PaginatedBankInfoList + * @version 1.0 + */ +var PaginatedBankInfoList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedBankInfoList. + * @alias module:model/PaginatedBankInfoList + */ + function PaginatedBankInfoList() { + _classCallCheck(this, PaginatedBankInfoList); + + PaginatedBankInfoList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedBankInfoList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedBankInfoList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedBankInfoList} obj Optional instance to populate. + * @return {module:model/PaginatedBankInfoList} The populated PaginatedBankInfoList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedBankInfoList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_BankInfo["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedBankInfoList; +}(); +/** + * @member {String} next + */ + + +PaginatedBankInfoList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedBankInfoList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedBankInfoList.prototype['results'] = undefined; +var _default = PaginatedBankInfoList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedBenefitList.js b/dist/model/PaginatedBenefitList.js new file mode 100644 index 0000000..04fb77e --- /dev/null +++ b/dist/model/PaginatedBenefitList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Benefit = _interopRequireDefault(require("./Benefit")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedBenefitList model module. + * @module model/PaginatedBenefitList + * @version 1.0 + */ +var PaginatedBenefitList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedBenefitList. + * @alias module:model/PaginatedBenefitList + */ + function PaginatedBenefitList() { + _classCallCheck(this, PaginatedBenefitList); + + PaginatedBenefitList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedBenefitList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedBenefitList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedBenefitList} obj Optional instance to populate. + * @return {module:model/PaginatedBenefitList} The populated PaginatedBenefitList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedBenefitList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_Benefit["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedBenefitList; +}(); +/** + * @member {String} next + */ + + +PaginatedBenefitList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedBenefitList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedBenefitList.prototype['results'] = undefined; +var _default = PaginatedBenefitList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedCompanyList.js b/dist/model/PaginatedCompanyList.js new file mode 100644 index 0000000..638b34b --- /dev/null +++ b/dist/model/PaginatedCompanyList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Company = _interopRequireDefault(require("./Company")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedCompanyList model module. + * @module model/PaginatedCompanyList + * @version 1.0 + */ +var PaginatedCompanyList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedCompanyList. + * @alias module:model/PaginatedCompanyList + */ + function PaginatedCompanyList() { + _classCallCheck(this, PaginatedCompanyList); + + PaginatedCompanyList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedCompanyList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedCompanyList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedCompanyList} obj Optional instance to populate. + * @return {module:model/PaginatedCompanyList} The populated PaginatedCompanyList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedCompanyList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_Company["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedCompanyList; +}(); +/** + * @member {String} next + */ + + +PaginatedCompanyList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedCompanyList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedCompanyList.prototype['results'] = undefined; +var _default = PaginatedCompanyList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedDeductionList.js b/dist/model/PaginatedDeductionList.js new file mode 100644 index 0000000..dc74a3a --- /dev/null +++ b/dist/model/PaginatedDeductionList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Deduction = _interopRequireDefault(require("./Deduction")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedDeductionList model module. + * @module model/PaginatedDeductionList + * @version 1.0 + */ +var PaginatedDeductionList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedDeductionList. + * @alias module:model/PaginatedDeductionList + */ + function PaginatedDeductionList() { + _classCallCheck(this, PaginatedDeductionList); + + PaginatedDeductionList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedDeductionList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedDeductionList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedDeductionList} obj Optional instance to populate. + * @return {module:model/PaginatedDeductionList} The populated PaginatedDeductionList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedDeductionList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_Deduction["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedDeductionList; +}(); +/** + * @member {String} next + */ + + +PaginatedDeductionList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedDeductionList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedDeductionList.prototype['results'] = undefined; +var _default = PaginatedDeductionList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedEmployeeList.js b/dist/model/PaginatedEmployeeList.js new file mode 100644 index 0000000..590919b --- /dev/null +++ b/dist/model/PaginatedEmployeeList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Employee = _interopRequireDefault(require("./Employee")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedEmployeeList model module. + * @module model/PaginatedEmployeeList + * @version 1.0 + */ +var PaginatedEmployeeList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedEmployeeList. + * @alias module:model/PaginatedEmployeeList + */ + function PaginatedEmployeeList() { + _classCallCheck(this, PaginatedEmployeeList); + + PaginatedEmployeeList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedEmployeeList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedEmployeeList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedEmployeeList} obj Optional instance to populate. + * @return {module:model/PaginatedEmployeeList} The populated PaginatedEmployeeList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedEmployeeList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_Employee["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedEmployeeList; +}(); +/** + * @member {String} next + */ + + +PaginatedEmployeeList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedEmployeeList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedEmployeeList.prototype['results'] = undefined; +var _default = PaginatedEmployeeList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedEmployeePayrollRunList.js b/dist/model/PaginatedEmployeePayrollRunList.js new file mode 100644 index 0000000..c6dd110 --- /dev/null +++ b/dist/model/PaginatedEmployeePayrollRunList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EmployeePayrollRun = _interopRequireDefault(require("./EmployeePayrollRun")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedEmployeePayrollRunList model module. + * @module model/PaginatedEmployeePayrollRunList + * @version 1.0 + */ +var PaginatedEmployeePayrollRunList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedEmployeePayrollRunList. + * @alias module:model/PaginatedEmployeePayrollRunList + */ + function PaginatedEmployeePayrollRunList() { + _classCallCheck(this, PaginatedEmployeePayrollRunList); + + PaginatedEmployeePayrollRunList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedEmployeePayrollRunList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedEmployeePayrollRunList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedEmployeePayrollRunList} obj Optional instance to populate. + * @return {module:model/PaginatedEmployeePayrollRunList} The populated PaginatedEmployeePayrollRunList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedEmployeePayrollRunList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_EmployeePayrollRun["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedEmployeePayrollRunList; +}(); +/** + * @member {String} next + */ + + +PaginatedEmployeePayrollRunList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedEmployeePayrollRunList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedEmployeePayrollRunList.prototype['results'] = undefined; +var _default = PaginatedEmployeePayrollRunList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedEmploymentList.js b/dist/model/PaginatedEmploymentList.js new file mode 100644 index 0000000..15dd984 --- /dev/null +++ b/dist/model/PaginatedEmploymentList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Employment = _interopRequireDefault(require("./Employment")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedEmploymentList model module. + * @module model/PaginatedEmploymentList + * @version 1.0 + */ +var PaginatedEmploymentList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedEmploymentList. + * @alias module:model/PaginatedEmploymentList + */ + function PaginatedEmploymentList() { + _classCallCheck(this, PaginatedEmploymentList); + + PaginatedEmploymentList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedEmploymentList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedEmploymentList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedEmploymentList} obj Optional instance to populate. + * @return {module:model/PaginatedEmploymentList} The populated PaginatedEmploymentList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedEmploymentList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_Employment["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedEmploymentList; +}(); +/** + * @member {String} next + */ + + +PaginatedEmploymentList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedEmploymentList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedEmploymentList.prototype['results'] = undefined; +var _default = PaginatedEmploymentList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedGroupList.js b/dist/model/PaginatedGroupList.js new file mode 100644 index 0000000..e547f8a --- /dev/null +++ b/dist/model/PaginatedGroupList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Group = _interopRequireDefault(require("./Group")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedGroupList model module. + * @module model/PaginatedGroupList + * @version 1.0 + */ +var PaginatedGroupList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedGroupList. + * @alias module:model/PaginatedGroupList + */ + function PaginatedGroupList() { + _classCallCheck(this, PaginatedGroupList); + + PaginatedGroupList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedGroupList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedGroupList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedGroupList} obj Optional instance to populate. + * @return {module:model/PaginatedGroupList} The populated PaginatedGroupList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedGroupList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_Group["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedGroupList; +}(); +/** + * @member {String} next + */ + + +PaginatedGroupList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedGroupList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedGroupList.prototype['results'] = undefined; +var _default = PaginatedGroupList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedIssueList.js b/dist/model/PaginatedIssueList.js new file mode 100644 index 0000000..cc0f62d --- /dev/null +++ b/dist/model/PaginatedIssueList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Issue = _interopRequireDefault(require("./Issue")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedIssueList model module. + * @module model/PaginatedIssueList + * @version 1.0 + */ +var PaginatedIssueList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedIssueList. + * @alias module:model/PaginatedIssueList + */ + function PaginatedIssueList() { + _classCallCheck(this, PaginatedIssueList); + + PaginatedIssueList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedIssueList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedIssueList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedIssueList} obj Optional instance to populate. + * @return {module:model/PaginatedIssueList} The populated PaginatedIssueList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedIssueList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_Issue["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedIssueList; +}(); +/** + * @member {String} next + */ + + +PaginatedIssueList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedIssueList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedIssueList.prototype['results'] = undefined; +var _default = PaginatedIssueList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedLocationList.js b/dist/model/PaginatedLocationList.js new file mode 100644 index 0000000..efe9340 --- /dev/null +++ b/dist/model/PaginatedLocationList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Location = _interopRequireDefault(require("./Location")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedLocationList model module. + * @module model/PaginatedLocationList + * @version 1.0 + */ +var PaginatedLocationList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedLocationList. + * @alias module:model/PaginatedLocationList + */ + function PaginatedLocationList() { + _classCallCheck(this, PaginatedLocationList); + + PaginatedLocationList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedLocationList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedLocationList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedLocationList} obj Optional instance to populate. + * @return {module:model/PaginatedLocationList} The populated PaginatedLocationList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedLocationList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_Location["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedLocationList; +}(); +/** + * @member {String} next + */ + + +PaginatedLocationList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedLocationList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedLocationList.prototype['results'] = undefined; +var _default = PaginatedLocationList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedPayGroupList.js b/dist/model/PaginatedPayGroupList.js new file mode 100644 index 0000000..823db8b --- /dev/null +++ b/dist/model/PaginatedPayGroupList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _PayGroup = _interopRequireDefault(require("./PayGroup")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedPayGroupList model module. + * @module model/PaginatedPayGroupList + * @version 1.0 + */ +var PaginatedPayGroupList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedPayGroupList. + * @alias module:model/PaginatedPayGroupList + */ + function PaginatedPayGroupList() { + _classCallCheck(this, PaginatedPayGroupList); + + PaginatedPayGroupList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedPayGroupList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedPayGroupList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedPayGroupList} obj Optional instance to populate. + * @return {module:model/PaginatedPayGroupList} The populated PaginatedPayGroupList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedPayGroupList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_PayGroup["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedPayGroupList; +}(); +/** + * @member {String} next + */ + + +PaginatedPayGroupList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedPayGroupList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedPayGroupList.prototype['results'] = undefined; +var _default = PaginatedPayGroupList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedPayrollRunList.js b/dist/model/PaginatedPayrollRunList.js new file mode 100644 index 0000000..7a5f086 --- /dev/null +++ b/dist/model/PaginatedPayrollRunList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _PayrollRun = _interopRequireDefault(require("./PayrollRun")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedPayrollRunList model module. + * @module model/PaginatedPayrollRunList + * @version 1.0 + */ +var PaginatedPayrollRunList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedPayrollRunList. + * @alias module:model/PaginatedPayrollRunList + */ + function PaginatedPayrollRunList() { + _classCallCheck(this, PaginatedPayrollRunList); + + PaginatedPayrollRunList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedPayrollRunList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedPayrollRunList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedPayrollRunList} obj Optional instance to populate. + * @return {module:model/PaginatedPayrollRunList} The populated PaginatedPayrollRunList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedPayrollRunList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_PayrollRun["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedPayrollRunList; +}(); +/** + * @member {String} next + */ + + +PaginatedPayrollRunList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedPayrollRunList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedPayrollRunList.prototype['results'] = undefined; +var _default = PaginatedPayrollRunList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedSyncStatusList.js b/dist/model/PaginatedSyncStatusList.js new file mode 100644 index 0000000..77f7168 --- /dev/null +++ b/dist/model/PaginatedSyncStatusList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _SyncStatus = _interopRequireDefault(require("./SyncStatus")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedSyncStatusList model module. + * @module model/PaginatedSyncStatusList + * @version 1.0 + */ +var PaginatedSyncStatusList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedSyncStatusList. + * @alias module:model/PaginatedSyncStatusList + */ + function PaginatedSyncStatusList() { + _classCallCheck(this, PaginatedSyncStatusList); + + PaginatedSyncStatusList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedSyncStatusList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedSyncStatusList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedSyncStatusList} obj Optional instance to populate. + * @return {module:model/PaginatedSyncStatusList} The populated PaginatedSyncStatusList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedSyncStatusList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_SyncStatus["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedSyncStatusList; +}(); +/** + * @member {String} next + */ + + +PaginatedSyncStatusList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedSyncStatusList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedSyncStatusList.prototype['results'] = undefined; +var _default = PaginatedSyncStatusList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedTeamList.js b/dist/model/PaginatedTeamList.js new file mode 100644 index 0000000..54e2c39 --- /dev/null +++ b/dist/model/PaginatedTeamList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Team = _interopRequireDefault(require("./Team")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedTeamList model module. + * @module model/PaginatedTeamList + * @version 1.0 + */ +var PaginatedTeamList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedTeamList. + * @alias module:model/PaginatedTeamList + */ + function PaginatedTeamList() { + _classCallCheck(this, PaginatedTeamList); + + PaginatedTeamList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedTeamList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedTeamList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedTeamList} obj Optional instance to populate. + * @return {module:model/PaginatedTeamList} The populated PaginatedTeamList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedTeamList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_Team["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedTeamList; +}(); +/** + * @member {String} next + */ + + +PaginatedTeamList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedTeamList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedTeamList.prototype['results'] = undefined; +var _default = PaginatedTeamList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedTimeOffBalanceList.js b/dist/model/PaginatedTimeOffBalanceList.js new file mode 100644 index 0000000..9d6cb7c --- /dev/null +++ b/dist/model/PaginatedTimeOffBalanceList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _TimeOffBalance = _interopRequireDefault(require("./TimeOffBalance")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedTimeOffBalanceList model module. + * @module model/PaginatedTimeOffBalanceList + * @version 1.0 + */ +var PaginatedTimeOffBalanceList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedTimeOffBalanceList. + * @alias module:model/PaginatedTimeOffBalanceList + */ + function PaginatedTimeOffBalanceList() { + _classCallCheck(this, PaginatedTimeOffBalanceList); + + PaginatedTimeOffBalanceList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedTimeOffBalanceList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedTimeOffBalanceList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedTimeOffBalanceList} obj Optional instance to populate. + * @return {module:model/PaginatedTimeOffBalanceList} The populated PaginatedTimeOffBalanceList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedTimeOffBalanceList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_TimeOffBalance["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedTimeOffBalanceList; +}(); +/** + * @member {String} next + */ + + +PaginatedTimeOffBalanceList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedTimeOffBalanceList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedTimeOffBalanceList.prototype['results'] = undefined; +var _default = PaginatedTimeOffBalanceList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PaginatedTimeOffList.js b/dist/model/PaginatedTimeOffList.js new file mode 100644 index 0000000..3c65732 --- /dev/null +++ b/dist/model/PaginatedTimeOffList.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _TimeOff = _interopRequireDefault(require("./TimeOff")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PaginatedTimeOffList model module. + * @module model/PaginatedTimeOffList + * @version 1.0 + */ +var PaginatedTimeOffList = /*#__PURE__*/function () { + /** + * Constructs a new PaginatedTimeOffList. + * @alias module:model/PaginatedTimeOffList + */ + function PaginatedTimeOffList() { + _classCallCheck(this, PaginatedTimeOffList); + + PaginatedTimeOffList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PaginatedTimeOffList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PaginatedTimeOffList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaginatedTimeOffList} obj Optional instance to populate. + * @return {module:model/PaginatedTimeOffList} The populated PaginatedTimeOffList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PaginatedTimeOffList(); + + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + + if (data.hasOwnProperty('previous')) { + obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String'); + } + + if (data.hasOwnProperty('results')) { + obj['results'] = _ApiClient["default"].convertToType(data['results'], [_TimeOff["default"]]); + } + } + + return obj; + } + }]); + + return PaginatedTimeOffList; +}(); +/** + * @member {String} next + */ + + +PaginatedTimeOffList.prototype['next'] = undefined; +/** + * @member {String} previous + */ + +PaginatedTimeOffList.prototype['previous'] = undefined; +/** + * @member {Array.} results + */ + +PaginatedTimeOffList.prototype['results'] = undefined; +var _default = PaginatedTimeOffList; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PayCurrencyEnum.js b/dist/model/PayCurrencyEnum.js new file mode 100644 index 0000000..a055a5d --- /dev/null +++ b/dist/model/PayCurrencyEnum.js @@ -0,0 +1,658 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class PayCurrencyEnum. +* @enum {} +* @readonly +*/ +var PayCurrencyEnum = /*#__PURE__*/function () { + function PayCurrencyEnum() { + _classCallCheck(this, PayCurrencyEnum); + + _defineProperty(this, "XUA", "XUA"); + + _defineProperty(this, "AFN", "AFN"); + + _defineProperty(this, "AFA", "AFA"); + + _defineProperty(this, "ALL", "ALL"); + + _defineProperty(this, "ALK", "ALK"); + + _defineProperty(this, "DZD", "DZD"); + + _defineProperty(this, "ADP", "ADP"); + + _defineProperty(this, "AOA", "AOA"); + + _defineProperty(this, "AOK", "AOK"); + + _defineProperty(this, "AON", "AON"); + + _defineProperty(this, "AOR", "AOR"); + + _defineProperty(this, "ARA", "ARA"); + + _defineProperty(this, "ARS", "ARS"); + + _defineProperty(this, "ARM", "ARM"); + + _defineProperty(this, "ARP", "ARP"); + + _defineProperty(this, "ARL", "ARL"); + + _defineProperty(this, "AMD", "AMD"); + + _defineProperty(this, "AWG", "AWG"); + + _defineProperty(this, "AUD", "AUD"); + + _defineProperty(this, "ATS", "ATS"); + + _defineProperty(this, "AZN", "AZN"); + + _defineProperty(this, "AZM", "AZM"); + + _defineProperty(this, "BSD", "BSD"); + + _defineProperty(this, "BHD", "BHD"); + + _defineProperty(this, "BDT", "BDT"); + + _defineProperty(this, "BBD", "BBD"); + + _defineProperty(this, "BYN", "BYN"); + + _defineProperty(this, "BYB", "BYB"); + + _defineProperty(this, "BYR", "BYR"); + + _defineProperty(this, "BEF", "BEF"); + + _defineProperty(this, "BEC", "BEC"); + + _defineProperty(this, "BEL", "BEL"); + + _defineProperty(this, "BZD", "BZD"); + + _defineProperty(this, "BMD", "BMD"); + + _defineProperty(this, "BTN", "BTN"); + + _defineProperty(this, "BOB", "BOB"); + + _defineProperty(this, "BOL", "BOL"); + + _defineProperty(this, "BOV", "BOV"); + + _defineProperty(this, "BOP", "BOP"); + + _defineProperty(this, "BAM", "BAM"); + + _defineProperty(this, "BAD", "BAD"); + + _defineProperty(this, "BAN", "BAN"); + + _defineProperty(this, "BWP", "BWP"); + + _defineProperty(this, "BRC", "BRC"); + + _defineProperty(this, "BRZ", "BRZ"); + + _defineProperty(this, "BRE", "BRE"); + + _defineProperty(this, "BRR", "BRR"); + + _defineProperty(this, "BRN", "BRN"); + + _defineProperty(this, "BRB", "BRB"); + + _defineProperty(this, "BRL", "BRL"); + + _defineProperty(this, "GBP", "GBP"); + + _defineProperty(this, "BND", "BND"); + + _defineProperty(this, "BGL", "BGL"); + + _defineProperty(this, "BGN", "BGN"); + + _defineProperty(this, "BGO", "BGO"); + + _defineProperty(this, "BGM", "BGM"); + + _defineProperty(this, "BUK", "BUK"); + + _defineProperty(this, "BIF", "BIF"); + + _defineProperty(this, "XPF", "XPF"); + + _defineProperty(this, "KHR", "KHR"); + + _defineProperty(this, "CAD", "CAD"); + + _defineProperty(this, "CVE", "CVE"); + + _defineProperty(this, "KYD", "KYD"); + + _defineProperty(this, "XAF", "XAF"); + + _defineProperty(this, "CLE", "CLE"); + + _defineProperty(this, "CLP", "CLP"); + + _defineProperty(this, "CLF", "CLF"); + + _defineProperty(this, "CNX", "CNX"); + + _defineProperty(this, "CNY", "CNY"); + + _defineProperty(this, "CNH", "CNH"); + + _defineProperty(this, "COP", "COP"); + + _defineProperty(this, "COU", "COU"); + + _defineProperty(this, "KMF", "KMF"); + + _defineProperty(this, "CDF", "CDF"); + + _defineProperty(this, "CRC", "CRC"); + + _defineProperty(this, "HRD", "HRD"); + + _defineProperty(this, "HRK", "HRK"); + + _defineProperty(this, "CUC", "CUC"); + + _defineProperty(this, "CUP", "CUP"); + + _defineProperty(this, "CYP", "CYP"); + + _defineProperty(this, "CZK", "CZK"); + + _defineProperty(this, "CSK", "CSK"); + + _defineProperty(this, "DKK", "DKK"); + + _defineProperty(this, "DJF", "DJF"); + + _defineProperty(this, "DOP", "DOP"); + + _defineProperty(this, "NLG", "NLG"); + + _defineProperty(this, "XCD", "XCD"); + + _defineProperty(this, "DDM", "DDM"); + + _defineProperty(this, "ECS", "ECS"); + + _defineProperty(this, "ECV", "ECV"); + + _defineProperty(this, "EGP", "EGP"); + + _defineProperty(this, "GQE", "GQE"); + + _defineProperty(this, "ERN", "ERN"); + + _defineProperty(this, "EEK", "EEK"); + + _defineProperty(this, "ETB", "ETB"); + + _defineProperty(this, "EUR", "EUR"); + + _defineProperty(this, "XBA", "XBA"); + + _defineProperty(this, "XEU", "XEU"); + + _defineProperty(this, "XBB", "XBB"); + + _defineProperty(this, "XBC", "XBC"); + + _defineProperty(this, "XBD", "XBD"); + + _defineProperty(this, "FKP", "FKP"); + + _defineProperty(this, "FJD", "FJD"); + + _defineProperty(this, "FIM", "FIM"); + + _defineProperty(this, "FRF", "FRF"); + + _defineProperty(this, "XFO", "XFO"); + + _defineProperty(this, "XFU", "XFU"); + + _defineProperty(this, "GMD", "GMD"); + + _defineProperty(this, "GEK", "GEK"); + + _defineProperty(this, "GEL", "GEL"); + + _defineProperty(this, "DEM", "DEM"); + + _defineProperty(this, "GHS", "GHS"); + + _defineProperty(this, "GHC", "GHC"); + + _defineProperty(this, "GIP", "GIP"); + + _defineProperty(this, "XAU", "XAU"); + + _defineProperty(this, "GRD", "GRD"); + + _defineProperty(this, "GTQ", "GTQ"); + + _defineProperty(this, "GWP", "GWP"); + + _defineProperty(this, "GNF", "GNF"); + + _defineProperty(this, "GNS", "GNS"); + + _defineProperty(this, "GYD", "GYD"); + + _defineProperty(this, "HTG", "HTG"); + + _defineProperty(this, "HNL", "HNL"); + + _defineProperty(this, "HKD", "HKD"); + + _defineProperty(this, "HUF", "HUF"); + + _defineProperty(this, "IMP", "IMP"); + + _defineProperty(this, "ISK", "ISK"); + + _defineProperty(this, "ISJ", "ISJ"); + + _defineProperty(this, "INR", "INR"); + + _defineProperty(this, "IDR", "IDR"); + + _defineProperty(this, "IRR", "IRR"); + + _defineProperty(this, "IQD", "IQD"); + + _defineProperty(this, "IEP", "IEP"); + + _defineProperty(this, "ILS", "ILS"); + + _defineProperty(this, "ILP", "ILP"); + + _defineProperty(this, "ILR", "ILR"); + + _defineProperty(this, "ITL", "ITL"); + + _defineProperty(this, "JMD", "JMD"); + + _defineProperty(this, "JPY", "JPY"); + + _defineProperty(this, "JOD", "JOD"); + + _defineProperty(this, "KZT", "KZT"); + + _defineProperty(this, "KES", "KES"); + + _defineProperty(this, "KWD", "KWD"); + + _defineProperty(this, "KGS", "KGS"); + + _defineProperty(this, "LAK", "LAK"); + + _defineProperty(this, "LVL", "LVL"); + + _defineProperty(this, "LVR", "LVR"); + + _defineProperty(this, "LBP", "LBP"); + + _defineProperty(this, "LSL", "LSL"); + + _defineProperty(this, "LRD", "LRD"); + + _defineProperty(this, "LYD", "LYD"); + + _defineProperty(this, "LTL", "LTL"); + + _defineProperty(this, "LTT", "LTT"); + + _defineProperty(this, "LUL", "LUL"); + + _defineProperty(this, "LUC", "LUC"); + + _defineProperty(this, "LUF", "LUF"); + + _defineProperty(this, "MOP", "MOP"); + + _defineProperty(this, "MKD", "MKD"); + + _defineProperty(this, "MKN", "MKN"); + + _defineProperty(this, "MGA", "MGA"); + + _defineProperty(this, "MGF", "MGF"); + + _defineProperty(this, "MWK", "MWK"); + + _defineProperty(this, "MYR", "MYR"); + + _defineProperty(this, "MVR", "MVR"); + + _defineProperty(this, "MVP", "MVP"); + + _defineProperty(this, "MLF", "MLF"); + + _defineProperty(this, "MTL", "MTL"); + + _defineProperty(this, "MTP", "MTP"); + + _defineProperty(this, "MRU", "MRU"); + + _defineProperty(this, "MRO", "MRO"); + + _defineProperty(this, "MUR", "MUR"); + + _defineProperty(this, "MXV", "MXV"); + + _defineProperty(this, "MXN", "MXN"); + + _defineProperty(this, "MXP", "MXP"); + + _defineProperty(this, "MDC", "MDC"); + + _defineProperty(this, "MDL", "MDL"); + + _defineProperty(this, "MCF", "MCF"); + + _defineProperty(this, "MNT", "MNT"); + + _defineProperty(this, "MAD", "MAD"); + + _defineProperty(this, "MAF", "MAF"); + + _defineProperty(this, "MZE", "MZE"); + + _defineProperty(this, "MZN", "MZN"); + + _defineProperty(this, "MZM", "MZM"); + + _defineProperty(this, "MMK", "MMK"); + + _defineProperty(this, "NAD", "NAD"); + + _defineProperty(this, "NPR", "NPR"); + + _defineProperty(this, "ANG", "ANG"); + + _defineProperty(this, "TWD", "TWD"); + + _defineProperty(this, "NZD", "NZD"); + + _defineProperty(this, "NIO", "NIO"); + + _defineProperty(this, "NIC", "NIC"); + + _defineProperty(this, "NGN", "NGN"); + + _defineProperty(this, "KPW", "KPW"); + + _defineProperty(this, "NOK", "NOK"); + + _defineProperty(this, "OMR", "OMR"); + + _defineProperty(this, "PKR", "PKR"); + + _defineProperty(this, "XPD", "XPD"); + + _defineProperty(this, "PAB", "PAB"); + + _defineProperty(this, "PGK", "PGK"); + + _defineProperty(this, "PYG", "PYG"); + + _defineProperty(this, "PEI", "PEI"); + + _defineProperty(this, "PEN", "PEN"); + + _defineProperty(this, "PES", "PES"); + + _defineProperty(this, "PHP", "PHP"); + + _defineProperty(this, "XPT", "XPT"); + + _defineProperty(this, "PLN", "PLN"); + + _defineProperty(this, "PLZ", "PLZ"); + + _defineProperty(this, "PTE", "PTE"); + + _defineProperty(this, "GWE", "GWE"); + + _defineProperty(this, "QAR", "QAR"); + + _defineProperty(this, "XRE", "XRE"); + + _defineProperty(this, "RHD", "RHD"); + + _defineProperty(this, "RON", "RON"); + + _defineProperty(this, "ROL", "ROL"); + + _defineProperty(this, "RUB", "RUB"); + + _defineProperty(this, "RUR", "RUR"); + + _defineProperty(this, "RWF", "RWF"); + + _defineProperty(this, "SVC", "SVC"); + + _defineProperty(this, "WST", "WST"); + + _defineProperty(this, "SAR", "SAR"); + + _defineProperty(this, "RSD", "RSD"); + + _defineProperty(this, "CSD", "CSD"); + + _defineProperty(this, "SCR", "SCR"); + + _defineProperty(this, "SLL", "SLL"); + + _defineProperty(this, "XAG", "XAG"); + + _defineProperty(this, "SGD", "SGD"); + + _defineProperty(this, "SKK", "SKK"); + + _defineProperty(this, "SIT", "SIT"); + + _defineProperty(this, "SBD", "SBD"); + + _defineProperty(this, "SOS", "SOS"); + + _defineProperty(this, "ZAR", "ZAR"); + + _defineProperty(this, "ZAL", "ZAL"); + + _defineProperty(this, "KRH", "KRH"); + + _defineProperty(this, "KRW", "KRW"); + + _defineProperty(this, "KRO", "KRO"); + + _defineProperty(this, "SSP", "SSP"); + + _defineProperty(this, "SUR", "SUR"); + + _defineProperty(this, "ESP", "ESP"); + + _defineProperty(this, "ESA", "ESA"); + + _defineProperty(this, "ESB", "ESB"); + + _defineProperty(this, "XDR", "XDR"); + + _defineProperty(this, "LKR", "LKR"); + + _defineProperty(this, "SHP", "SHP"); + + _defineProperty(this, "XSU", "XSU"); + + _defineProperty(this, "SDD", "SDD"); + + _defineProperty(this, "SDG", "SDG"); + + _defineProperty(this, "SDP", "SDP"); + + _defineProperty(this, "SRD", "SRD"); + + _defineProperty(this, "SRG", "SRG"); + + _defineProperty(this, "SZL", "SZL"); + + _defineProperty(this, "SEK", "SEK"); + + _defineProperty(this, "CHF", "CHF"); + + _defineProperty(this, "SYP", "SYP"); + + _defineProperty(this, "STN", "STN"); + + _defineProperty(this, "STD", "STD"); + + _defineProperty(this, "TVD", "TVD"); + + _defineProperty(this, "TJR", "TJR"); + + _defineProperty(this, "TJS", "TJS"); + + _defineProperty(this, "TZS", "TZS"); + + _defineProperty(this, "XTS", "XTS"); + + _defineProperty(this, "THB", "THB"); + + _defineProperty(this, "XXX", "XXX"); + + _defineProperty(this, "TPE", "TPE"); + + _defineProperty(this, "TOP", "TOP"); + + _defineProperty(this, "TTD", "TTD"); + + _defineProperty(this, "TND", "TND"); + + _defineProperty(this, "TRY", "TRY"); + + _defineProperty(this, "TRL", "TRL"); + + _defineProperty(this, "TMT", "TMT"); + + _defineProperty(this, "TMM", "TMM"); + + _defineProperty(this, "USD", "USD"); + + _defineProperty(this, "USN", "USN"); + + _defineProperty(this, "USS", "USS"); + + _defineProperty(this, "UGX", "UGX"); + + _defineProperty(this, "UGS", "UGS"); + + _defineProperty(this, "UAH", "UAH"); + + _defineProperty(this, "UAK", "UAK"); + + _defineProperty(this, "AED", "AED"); + + _defineProperty(this, "UYW", "UYW"); + + _defineProperty(this, "UYU", "UYU"); + + _defineProperty(this, "UYP", "UYP"); + + _defineProperty(this, "UYI", "UYI"); + + _defineProperty(this, "UZS", "UZS"); + + _defineProperty(this, "VUV", "VUV"); + + _defineProperty(this, "VES", "VES"); + + _defineProperty(this, "VEB", "VEB"); + + _defineProperty(this, "VEF", "VEF"); + + _defineProperty(this, "VND", "VND"); + + _defineProperty(this, "VNN", "VNN"); + + _defineProperty(this, "CHE", "CHE"); + + _defineProperty(this, "CHW", "CHW"); + + _defineProperty(this, "XOF", "XOF"); + + _defineProperty(this, "YDD", "YDD"); + + _defineProperty(this, "YER", "YER"); + + _defineProperty(this, "YUN", "YUN"); + + _defineProperty(this, "YUD", "YUD"); + + _defineProperty(this, "YUM", "YUM"); + + _defineProperty(this, "YUR", "YUR"); + + _defineProperty(this, "ZWN", "ZWN"); + + _defineProperty(this, "ZRN", "ZRN"); + + _defineProperty(this, "ZRZ", "ZRZ"); + + _defineProperty(this, "ZMW", "ZMW"); + + _defineProperty(this, "ZMK", "ZMK"); + + _defineProperty(this, "ZWD", "ZWD"); + + _defineProperty(this, "ZWR", "ZWR"); + + _defineProperty(this, "ZWL", "ZWL"); + } + + _createClass(PayCurrencyEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a PayCurrencyEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/PayCurrencyEnum} The enum PayCurrencyEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return PayCurrencyEnum; +}(); + +exports["default"] = PayCurrencyEnum; \ No newline at end of file diff --git a/dist/model/PayFrequencyEnum.js b/dist/model/PayFrequencyEnum.js new file mode 100644 index 0000000..f42f379 --- /dev/null +++ b/dist/model/PayFrequencyEnum.js @@ -0,0 +1,62 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class PayFrequencyEnum. +* @enum {} +* @readonly +*/ +var PayFrequencyEnum = /*#__PURE__*/function () { + function PayFrequencyEnum() { + _classCallCheck(this, PayFrequencyEnum); + + _defineProperty(this, "WEEKLY", "WEEKLY"); + + _defineProperty(this, "BIWEEKLY", "BIWEEKLY"); + + _defineProperty(this, "MONTHLY", "MONTHLY"); + + _defineProperty(this, "QUARTERLY", "QUARTERLY"); + + _defineProperty(this, "SEMIANNUALLY", "SEMIANNUALLY"); + + _defineProperty(this, "ANNUALLY", "ANNUALLY"); + + _defineProperty(this, "THIRTEEN-MONTHLY", "THIRTEEN-MONTHLY"); + + _defineProperty(this, "PRO_RATA", "PRO_RATA"); + } + + _createClass(PayFrequencyEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a PayFrequencyEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/PayFrequencyEnum} The enum PayFrequencyEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return PayFrequencyEnum; +}(); + +exports["default"] = PayFrequencyEnum; \ No newline at end of file diff --git a/dist/model/PayGroup.js b/dist/model/PayGroup.js new file mode 100644 index 0000000..a875263 --- /dev/null +++ b/dist/model/PayGroup.js @@ -0,0 +1,117 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PayGroup model module. + * @module model/PayGroup + * @version 1.0 + */ +var PayGroup = /*#__PURE__*/function () { + /** + * Constructs a new PayGroup. + * # The PayGroup Object ### Description The `PayGroup` object is used to represent Pay Group information that employees belong to. This is often referenced with an Employee object. ### Usage Example Fetch from the `LIST PayGroup` endpoint and filter by `ID` to show all pay group information. + * @alias module:model/PayGroup + */ + function PayGroup() { + _classCallCheck(this, PayGroup); + + PayGroup.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PayGroup, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PayGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayGroup} obj Optional instance to populate. + * @return {module:model/PayGroup} The populated PayGroup instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PayGroup(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('pay_group_name')) { + obj['pay_group_name'] = _ApiClient["default"].convertToType(data['pay_group_name'], 'String'); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return PayGroup; +}(); +/** + * @member {String} id + */ + + +PayGroup.prototype['id'] = undefined; +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + +PayGroup.prototype['remote_id'] = undefined; +/** + * The pay group name. + * @member {String} pay_group_name + */ + +PayGroup.prototype['pay_group_name'] = undefined; +/** + * @member {Array.} remote_data + */ + +PayGroup.prototype['remote_data'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +PayGroup.prototype['remote_was_deleted'] = undefined; +var _default = PayGroup; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PayPeriodEnum.js b/dist/model/PayPeriodEnum.js new file mode 100644 index 0000000..65eae5d --- /dev/null +++ b/dist/model/PayPeriodEnum.js @@ -0,0 +1,62 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class PayPeriodEnum. +* @enum {} +* @readonly +*/ +var PayPeriodEnum = /*#__PURE__*/function () { + function PayPeriodEnum() { + _classCallCheck(this, PayPeriodEnum); + + _defineProperty(this, "HOUR", "HOUR"); + + _defineProperty(this, "DAY", "DAY"); + + _defineProperty(this, "WEEK", "WEEK"); + + _defineProperty(this, "EVERY_TWO_WEEKS", "EVERY_TWO_WEEKS"); + + _defineProperty(this, "MONTH", "MONTH"); + + _defineProperty(this, "QUARTER", "QUARTER"); + + _defineProperty(this, "EVERY_SIX_MONTHS", "EVERY_SIX_MONTHS"); + + _defineProperty(this, "YEAR", "YEAR"); + } + + _createClass(PayPeriodEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a PayPeriodEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/PayPeriodEnum} The enum PayPeriodEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return PayPeriodEnum; +}(); + +exports["default"] = PayPeriodEnum; \ No newline at end of file diff --git a/dist/model/PayrollRun.js b/dist/model/PayrollRun.js new file mode 100644 index 0000000..37f0d8e --- /dev/null +++ b/dist/model/PayrollRun.js @@ -0,0 +1,161 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +var _RunStateEnum = _interopRequireDefault(require("./RunStateEnum")); + +var _RunTypeEnum = _interopRequireDefault(require("./RunTypeEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The PayrollRun model module. + * @module model/PayrollRun + * @version 1.0 + */ +var PayrollRun = /*#__PURE__*/function () { + /** + * Constructs a new PayrollRun. + * # The PayrollRun Object ### Description The `PayrollRun` object is used to represent a payroll run. This payroll run is not specific to an employee. ### Usage Example Fetch from the `LIST PayrollRuns` endpoint and filter by `ID` to show all payroll runs. + * @alias module:model/PayrollRun + */ + function PayrollRun() { + _classCallCheck(this, PayrollRun); + + PayrollRun.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PayrollRun, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a PayrollRun from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayrollRun} obj Optional instance to populate. + * @return {module:model/PayrollRun} The populated PayrollRun instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PayrollRun(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('run_state')) { + obj['run_state'] = _ApiClient["default"].convertToType(data['run_state'], _RunStateEnum["default"]); + } + + if (data.hasOwnProperty('run_type')) { + obj['run_type'] = _ApiClient["default"].convertToType(data['run_type'], _RunTypeEnum["default"]); + } + + if (data.hasOwnProperty('start_date')) { + obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date'); + } + + if (data.hasOwnProperty('end_date')) { + obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'Date'); + } + + if (data.hasOwnProperty('check_date')) { + obj['check_date'] = _ApiClient["default"].convertToType(data['check_date'], 'Date'); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return PayrollRun; +}(); +/** + * @member {String} id + */ + + +PayrollRun.prototype['id'] = undefined; +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + +PayrollRun.prototype['remote_id'] = undefined; +/** + * The state of the payroll run + * @member {module:model/RunStateEnum} run_state + */ + +PayrollRun.prototype['run_state'] = undefined; +/** + * The type of the payroll run + * @member {module:model/RunTypeEnum} run_type + */ + +PayrollRun.prototype['run_type'] = undefined; +/** + * The day and time the payroll run started. + * @member {Date} start_date + */ + +PayrollRun.prototype['start_date'] = undefined; +/** + * The day and time the payroll run ended. + * @member {Date} end_date + */ + +PayrollRun.prototype['end_date'] = undefined; +/** + * The day and time the payroll run was checked. + * @member {Date} check_date + */ + +PayrollRun.prototype['check_date'] = undefined; +/** + * @member {Array.} remote_data + */ + +PayrollRun.prototype['remote_data'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +PayrollRun.prototype['remote_was_deleted'] = undefined; +var _default = PayrollRun; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/PolicyTypeEnum.js b/dist/model/PolicyTypeEnum.js new file mode 100644 index 0000000..45202a5 --- /dev/null +++ b/dist/model/PolicyTypeEnum.js @@ -0,0 +1,58 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class PolicyTypeEnum. +* @enum {} +* @readonly +*/ +var PolicyTypeEnum = /*#__PURE__*/function () { + function PolicyTypeEnum() { + _classCallCheck(this, PolicyTypeEnum); + + _defineProperty(this, "VACATION", "VACATION"); + + _defineProperty(this, "SICK", "SICK"); + + _defineProperty(this, "PERSONAL", "PERSONAL"); + + _defineProperty(this, "JURY_DUTY", "JURY_DUTY"); + + _defineProperty(this, "VOLUNTEER", "VOLUNTEER"); + + _defineProperty(this, "BEREAVEMENT", "BEREAVEMENT"); + } + + _createClass(PolicyTypeEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a PolicyTypeEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/PolicyTypeEnum} The enum PolicyTypeEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return PolicyTypeEnum; +}(); + +exports["default"] = PolicyTypeEnum; \ No newline at end of file diff --git a/dist/model/ReasonEnum.js b/dist/model/ReasonEnum.js new file mode 100644 index 0000000..c741435 --- /dev/null +++ b/dist/model/ReasonEnum.js @@ -0,0 +1,52 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class ReasonEnum. +* @enum {} +* @readonly +*/ +var ReasonEnum = /*#__PURE__*/function () { + function ReasonEnum() { + _classCallCheck(this, ReasonEnum); + + _defineProperty(this, "GENERAL_CUSTOMER_REQUEST", "GENERAL_CUSTOMER_REQUEST"); + + _defineProperty(this, "GDPR", "GDPR"); + + _defineProperty(this, "OTHER", "OTHER"); + } + + _createClass(ReasonEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a ReasonEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ReasonEnum} The enum ReasonEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return ReasonEnum; +}(); + +exports["default"] = ReasonEnum; \ No newline at end of file diff --git a/dist/model/RemoteData.js b/dist/model/RemoteData.js new file mode 100644 index 0000000..7abce7d --- /dev/null +++ b/dist/model/RemoteData.js @@ -0,0 +1,89 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RemoteData model module. + * @module model/RemoteData + * @version 1.0 + */ +var RemoteData = /*#__PURE__*/function () { + /** + * Constructs a new RemoteData. + * @alias module:model/RemoteData + * @param path {String} + */ + function RemoteData(path) { + _classCallCheck(this, RemoteData); + + RemoteData.initialize(this, path); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RemoteData, null, [{ + key: "initialize", + value: function initialize(obj, path) { + obj['path'] = path; + } + /** + * Constructs a RemoteData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RemoteData} obj Optional instance to populate. + * @return {module:model/RemoteData} The populated RemoteData instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RemoteData(); + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], { + 'String': Object + }); + } + } + + return obj; + } + }]); + + return RemoteData; +}(); +/** + * @member {String} path + */ + + +RemoteData.prototype['path'] = undefined; +/** + * @member {Object.} data + */ + +RemoteData.prototype['data'] = undefined; +var _default = RemoteData; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RemoteDataRequest.js b/dist/model/RemoteDataRequest.js new file mode 100644 index 0000000..ea28b7d --- /dev/null +++ b/dist/model/RemoteDataRequest.js @@ -0,0 +1,89 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RemoteDataRequest model module. + * @module model/RemoteDataRequest + * @version 1.0 + */ +var RemoteDataRequest = /*#__PURE__*/function () { + /** + * Constructs a new RemoteDataRequest. + * @alias module:model/RemoteDataRequest + * @param path {String} + */ + function RemoteDataRequest(path) { + _classCallCheck(this, RemoteDataRequest); + + RemoteDataRequest.initialize(this, path); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RemoteDataRequest, null, [{ + key: "initialize", + value: function initialize(obj, path) { + obj['path'] = path; + } + /** + * Constructs a RemoteDataRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RemoteDataRequest} obj Optional instance to populate. + * @return {module:model/RemoteDataRequest} The populated RemoteDataRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RemoteDataRequest(); + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], { + 'String': Object + }); + } + } + + return obj; + } + }]); + + return RemoteDataRequest; +}(); +/** + * @member {String} path + */ + + +RemoteDataRequest.prototype['path'] = undefined; +/** + * @member {Object.} data + */ + +RemoteDataRequest.prototype['data'] = undefined; +var _default = RemoteDataRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RemoteKey.js b/dist/model/RemoteKey.js new file mode 100644 index 0000000..f1a7526 --- /dev/null +++ b/dist/model/RemoteKey.js @@ -0,0 +1,90 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RemoteKey model module. + * @module model/RemoteKey + * @version 1.0 + */ +var RemoteKey = /*#__PURE__*/function () { + /** + * Constructs a new RemoteKey. + * # The RemoteKey Object ### Description The `RemoteKey` object is used to represent a request for a new remote key. ### Usage Example Post a `GenerateRemoteKey` to receive a new `RemoteKey`. + * @alias module:model/RemoteKey + * @param name {String} + * @param key {String} + */ + function RemoteKey(name, key) { + _classCallCheck(this, RemoteKey); + + RemoteKey.initialize(this, name, key); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RemoteKey, null, [{ + key: "initialize", + value: function initialize(obj, name, key) { + obj['name'] = name; + obj['key'] = key; + } + /** + * Constructs a RemoteKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RemoteKey} obj Optional instance to populate. + * @return {module:model/RemoteKey} The populated RemoteKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RemoteKey(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + } + + return obj; + } + }]); + + return RemoteKey; +}(); +/** + * @member {String} name + */ + + +RemoteKey.prototype['name'] = undefined; +/** + * @member {String} key + */ + +RemoteKey.prototype['key'] = undefined; +var _default = RemoteKey; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RemoteKeyForRegenerationRequest.js b/dist/model/RemoteKeyForRegenerationRequest.js new file mode 100644 index 0000000..adb0323 --- /dev/null +++ b/dist/model/RemoteKeyForRegenerationRequest.js @@ -0,0 +1,79 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RemoteKeyForRegenerationRequest model module. + * @module model/RemoteKeyForRegenerationRequest + * @version 1.0 + */ +var RemoteKeyForRegenerationRequest = /*#__PURE__*/function () { + /** + * Constructs a new RemoteKeyForRegenerationRequest. + * # The RemoteKeyForRegeneration Object ### Description The `RemoteKeyForRegeneration` object is used to exchange an old remote key for a new one ### Usage Example Post a `RemoteKeyForRegeneration` to swap out an old remote key for a new one + * @alias module:model/RemoteKeyForRegenerationRequest + * @param name {String} + */ + function RemoteKeyForRegenerationRequest(name) { + _classCallCheck(this, RemoteKeyForRegenerationRequest); + + RemoteKeyForRegenerationRequest.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RemoteKeyForRegenerationRequest, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a RemoteKeyForRegenerationRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RemoteKeyForRegenerationRequest} obj Optional instance to populate. + * @return {module:model/RemoteKeyForRegenerationRequest} The populated RemoteKeyForRegenerationRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RemoteKeyForRegenerationRequest(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return RemoteKeyForRegenerationRequest; +}(); +/** + * @member {String} name + */ + + +RemoteKeyForRegenerationRequest.prototype['name'] = undefined; +var _default = RemoteKeyForRegenerationRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RemoteResponse.js b/dist/model/RemoteResponse.js new file mode 100644 index 0000000..4cb0e78 --- /dev/null +++ b/dist/model/RemoteResponse.js @@ -0,0 +1,136 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RemoteResponse model module. + * @module model/RemoteResponse + * @version 1.0 + */ +var RemoteResponse = /*#__PURE__*/function () { + /** + * Constructs a new RemoteResponse. + * # The RemoteResponse Object ### Description The `RemoteResponse` object is used to represent information returned from a third-party endpoint. ### Usage Example View the `RemoteResponse` returned from your `DataPassthrough`. + * @alias module:model/RemoteResponse + * @param method {String} + * @param path {String} + * @param status {Number} + * @param response {Object.} + */ + function RemoteResponse(method, path, status, response) { + _classCallCheck(this, RemoteResponse); + + RemoteResponse.initialize(this, method, path, status, response); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RemoteResponse, null, [{ + key: "initialize", + value: function initialize(obj, method, path, status, response) { + obj['method'] = method; + obj['path'] = path; + obj['status'] = status; + obj['response'] = response; + } + /** + * Constructs a RemoteResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RemoteResponse} obj Optional instance to populate. + * @return {module:model/RemoteResponse} The populated RemoteResponse instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RemoteResponse(); + + if (data.hasOwnProperty('method')) { + obj['method'] = _ApiClient["default"].convertToType(data['method'], 'String'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Number'); + } + + if (data.hasOwnProperty('response')) { + obj['response'] = _ApiClient["default"].convertToType(data['response'], { + 'String': Object + }); + } + + if (data.hasOwnProperty('response_headers')) { + obj['response_headers'] = _ApiClient["default"].convertToType(data['response_headers'], { + 'String': Object + }); + } + + if (data.hasOwnProperty('headers')) { + obj['headers'] = _ApiClient["default"].convertToType(data['headers'], { + 'String': Object + }); + } + } + + return obj; + } + }]); + + return RemoteResponse; +}(); +/** + * @member {String} method + */ + + +RemoteResponse.prototype['method'] = undefined; +/** + * @member {String} path + */ + +RemoteResponse.prototype['path'] = undefined; +/** + * @member {Number} status + */ + +RemoteResponse.prototype['status'] = undefined; +/** + * @member {Object.} response + */ + +RemoteResponse.prototype['response'] = undefined; +/** + * @member {Object.} response_headers + */ + +RemoteResponse.prototype['response_headers'] = undefined; +/** + * @member {Object.} headers + */ + +RemoteResponse.prototype['headers'] = undefined; +var _default = RemoteResponse; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RequestFormatEnum.js b/dist/model/RequestFormatEnum.js new file mode 100644 index 0000000..a1f8b33 --- /dev/null +++ b/dist/model/RequestFormatEnum.js @@ -0,0 +1,52 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class RequestFormatEnum. +* @enum {} +* @readonly +*/ +var RequestFormatEnum = /*#__PURE__*/function () { + function RequestFormatEnum() { + _classCallCheck(this, RequestFormatEnum); + + _defineProperty(this, "JSON", "JSON"); + + _defineProperty(this, "XML", "XML"); + + _defineProperty(this, "MULTIPART", "MULTIPART"); + } + + _createClass(RequestFormatEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a RequestFormatEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/RequestFormatEnum} The enum RequestFormatEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return RequestFormatEnum; +}(); + +exports["default"] = RequestFormatEnum; \ No newline at end of file diff --git a/dist/model/RequestTypeEnum.js b/dist/model/RequestTypeEnum.js new file mode 100644 index 0000000..6a173a2 --- /dev/null +++ b/dist/model/RequestTypeEnum.js @@ -0,0 +1,58 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class RequestTypeEnum. +* @enum {} +* @readonly +*/ +var RequestTypeEnum = /*#__PURE__*/function () { + function RequestTypeEnum() { + _classCallCheck(this, RequestTypeEnum); + + _defineProperty(this, "VACATION", "VACATION"); + + _defineProperty(this, "SICK", "SICK"); + + _defineProperty(this, "PERSONAL", "PERSONAL"); + + _defineProperty(this, "JURY_DUTY", "JURY_DUTY"); + + _defineProperty(this, "VOLUNTEER", "VOLUNTEER"); + + _defineProperty(this, "BEREAVEMENT", "BEREAVEMENT"); + } + + _createClass(RequestTypeEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a RequestTypeEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/RequestTypeEnum} The enum RequestTypeEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return RequestTypeEnum; +}(); + +exports["default"] = RequestTypeEnum; \ No newline at end of file diff --git a/dist/model/RunStateEnum.js b/dist/model/RunStateEnum.js new file mode 100644 index 0000000..6832c59 --- /dev/null +++ b/dist/model/RunStateEnum.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class RunStateEnum. +* @enum {} +* @readonly +*/ +var RunStateEnum = /*#__PURE__*/function () { + function RunStateEnum() { + _classCallCheck(this, RunStateEnum); + + _defineProperty(this, "PAID", "PAID"); + + _defineProperty(this, "DRAFT", "DRAFT"); + + _defineProperty(this, "APPROVED", "APPROVED"); + + _defineProperty(this, "FAILED", "FAILED"); + + _defineProperty(this, "CLOSED", "CLOSED"); + } + + _createClass(RunStateEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a RunStateEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/RunStateEnum} The enum RunStateEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return RunStateEnum; +}(); + +exports["default"] = RunStateEnum; \ No newline at end of file diff --git a/dist/model/RunTypeEnum.js b/dist/model/RunTypeEnum.js new file mode 100644 index 0000000..9009212 --- /dev/null +++ b/dist/model/RunTypeEnum.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class RunTypeEnum. +* @enum {} +* @readonly +*/ +var RunTypeEnum = /*#__PURE__*/function () { + function RunTypeEnum() { + _classCallCheck(this, RunTypeEnum); + + _defineProperty(this, "REGULAR", "REGULAR"); + + _defineProperty(this, "OFF_CYCLE", "OFF_CYCLE"); + + _defineProperty(this, "CORRECTION", "CORRECTION"); + + _defineProperty(this, "TERMINATION", "TERMINATION"); + + _defineProperty(this, "SIGN_ON_BONUS", "SIGN_ON_BONUS"); + } + + _createClass(RunTypeEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a RunTypeEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/RunTypeEnum} The enum RunTypeEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return RunTypeEnum; +}(); + +exports["default"] = RunTypeEnum; \ No newline at end of file diff --git a/dist/model/StateEnum.js b/dist/model/StateEnum.js new file mode 100644 index 0000000..fcf3cf8 --- /dev/null +++ b/dist/model/StateEnum.js @@ -0,0 +1,164 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class StateEnum. +* @enum {} +* @readonly +*/ +var StateEnum = /*#__PURE__*/function () { + function StateEnum() { + _classCallCheck(this, StateEnum); + + _defineProperty(this, "AL", "AL"); + + _defineProperty(this, "AK", "AK"); + + _defineProperty(this, "AS", "AS"); + + _defineProperty(this, "AZ", "AZ"); + + _defineProperty(this, "AR", "AR"); + + _defineProperty(this, "AA", "AA"); + + _defineProperty(this, "AE", "AE"); + + _defineProperty(this, "AP", "AP"); + + _defineProperty(this, "CA", "CA"); + + _defineProperty(this, "CO", "CO"); + + _defineProperty(this, "CT", "CT"); + + _defineProperty(this, "DE", "DE"); + + _defineProperty(this, "DC", "DC"); + + _defineProperty(this, "FL", "FL"); + + _defineProperty(this, "GA", "GA"); + + _defineProperty(this, "GU", "GU"); + + _defineProperty(this, "HI", "HI"); + + _defineProperty(this, "ID", "ID"); + + _defineProperty(this, "IL", "IL"); + + _defineProperty(this, "IN", "IN"); + + _defineProperty(this, "IA", "IA"); + + _defineProperty(this, "KS", "KS"); + + _defineProperty(this, "KY", "KY"); + + _defineProperty(this, "LA", "LA"); + + _defineProperty(this, "ME", "ME"); + + _defineProperty(this, "MD", "MD"); + + _defineProperty(this, "MA", "MA"); + + _defineProperty(this, "MI", "MI"); + + _defineProperty(this, "MN", "MN"); + + _defineProperty(this, "MS", "MS"); + + _defineProperty(this, "MO", "MO"); + + _defineProperty(this, "MT", "MT"); + + _defineProperty(this, "NE", "NE"); + + _defineProperty(this, "NV", "NV"); + + _defineProperty(this, "NH", "NH"); + + _defineProperty(this, "NJ", "NJ"); + + _defineProperty(this, "NM", "NM"); + + _defineProperty(this, "NY", "NY"); + + _defineProperty(this, "NC", "NC"); + + _defineProperty(this, "ND", "ND"); + + _defineProperty(this, "MP", "MP"); + + _defineProperty(this, "OH", "OH"); + + _defineProperty(this, "OK", "OK"); + + _defineProperty(this, "OR", "OR"); + + _defineProperty(this, "PA", "PA"); + + _defineProperty(this, "PR", "PR"); + + _defineProperty(this, "RI", "RI"); + + _defineProperty(this, "SC", "SC"); + + _defineProperty(this, "SD", "SD"); + + _defineProperty(this, "TN", "TN"); + + _defineProperty(this, "TX", "TX"); + + _defineProperty(this, "UT", "UT"); + + _defineProperty(this, "VT", "VT"); + + _defineProperty(this, "VI", "VI"); + + _defineProperty(this, "VA", "VA"); + + _defineProperty(this, "WA", "WA"); + + _defineProperty(this, "WV", "WV"); + + _defineProperty(this, "WI", "WI"); + + _defineProperty(this, "WY", "WY"); + } + + _createClass(StateEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a StateEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/StateEnum} The enum StateEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return StateEnum; +}(); + +exports["default"] = StateEnum; \ No newline at end of file diff --git a/dist/model/SyncStatus.js b/dist/model/SyncStatus.js new file mode 100644 index 0000000..9bbf16e --- /dev/null +++ b/dist/model/SyncStatus.js @@ -0,0 +1,136 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _SyncStatusStatusEnum = _interopRequireDefault(require("./SyncStatusStatusEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The SyncStatus model module. + * @module model/SyncStatus + * @version 1.0 + */ +var SyncStatus = /*#__PURE__*/function () { + /** + * Constructs a new SyncStatus. + * # The SyncStatus Object ### Description The `SyncStatus` object is used to represent the syncing state of an account ### Usage Example View the `SyncStatus` for an account to see how recently its models were synced. + * @alias module:model/SyncStatus + * @param model_name {String} + * @param model_id {String} + * @param last_sync_start {Date} + * @param next_sync_start {Date} + * @param status {module:model/SyncStatusStatusEnum} + * @param is_initial_sync {Boolean} + */ + function SyncStatus(model_name, model_id, last_sync_start, next_sync_start, status, is_initial_sync) { + _classCallCheck(this, SyncStatus); + + SyncStatus.initialize(this, model_name, model_id, last_sync_start, next_sync_start, status, is_initial_sync); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(SyncStatus, null, [{ + key: "initialize", + value: function initialize(obj, model_name, model_id, last_sync_start, next_sync_start, status, is_initial_sync) { + obj['model_name'] = model_name; + obj['model_id'] = model_id; + obj['last_sync_start'] = last_sync_start; + obj['next_sync_start'] = next_sync_start; + obj['status'] = status; + obj['is_initial_sync'] = is_initial_sync; + } + /** + * Constructs a SyncStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SyncStatus} obj Optional instance to populate. + * @return {module:model/SyncStatus} The populated SyncStatus instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SyncStatus(); + + if (data.hasOwnProperty('model_name')) { + obj['model_name'] = _ApiClient["default"].convertToType(data['model_name'], 'String'); + } + + if (data.hasOwnProperty('model_id')) { + obj['model_id'] = _ApiClient["default"].convertToType(data['model_id'], 'String'); + } + + if (data.hasOwnProperty('last_sync_start')) { + obj['last_sync_start'] = _ApiClient["default"].convertToType(data['last_sync_start'], 'Date'); + } + + if (data.hasOwnProperty('next_sync_start')) { + obj['next_sync_start'] = _ApiClient["default"].convertToType(data['next_sync_start'], 'Date'); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], _SyncStatusStatusEnum["default"]); + } + + if (data.hasOwnProperty('is_initial_sync')) { + obj['is_initial_sync'] = _ApiClient["default"].convertToType(data['is_initial_sync'], 'Boolean'); + } + } + + return obj; + } + }]); + + return SyncStatus; +}(); +/** + * @member {String} model_name + */ + + +SyncStatus.prototype['model_name'] = undefined; +/** + * @member {String} model_id + */ + +SyncStatus.prototype['model_id'] = undefined; +/** + * @member {Date} last_sync_start + */ + +SyncStatus.prototype['last_sync_start'] = undefined; +/** + * @member {Date} next_sync_start + */ + +SyncStatus.prototype['next_sync_start'] = undefined; +/** + * @member {module:model/SyncStatusStatusEnum} status + */ + +SyncStatus.prototype['status'] = undefined; +/** + * @member {Boolean} is_initial_sync + */ + +SyncStatus.prototype['is_initial_sync'] = undefined; +var _default = SyncStatus; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SyncStatusStatusEnum.js b/dist/model/SyncStatusStatusEnum.js new file mode 100644 index 0000000..ef57fbc --- /dev/null +++ b/dist/model/SyncStatusStatusEnum.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class SyncStatusStatusEnum. +* @enum {} +* @readonly +*/ +var SyncStatusStatusEnum = /*#__PURE__*/function () { + function SyncStatusStatusEnum() { + _classCallCheck(this, SyncStatusStatusEnum); + + _defineProperty(this, "SYNCING", "SYNCING"); + + _defineProperty(this, "DONE", "DONE"); + + _defineProperty(this, "FAILED", "FAILED"); + + _defineProperty(this, "DISABLED", "DISABLED"); + + _defineProperty(this, "PAUSED", "PAUSED"); + } + + _createClass(SyncStatusStatusEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a SyncStatusStatusEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/SyncStatusStatusEnum} The enum SyncStatusStatusEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return SyncStatusStatusEnum; +}(); + +exports["default"] = SyncStatusStatusEnum; \ No newline at end of file diff --git a/dist/model/Tax.js b/dist/model/Tax.js new file mode 100644 index 0000000..bbc45d8 --- /dev/null +++ b/dist/model/Tax.js @@ -0,0 +1,125 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Tax model module. + * @module model/Tax + * @version 1.0 + */ +var Tax = /*#__PURE__*/function () { + /** + * Constructs a new Tax. + * # The Tax Object ### Description The `Tax` object is used to represent a tax for a given employee's payroll run. One run could include several taxes. ### Usage Example Fetch from the `LIST Taxes` endpoint and filter by `ID` to show all taxes. + * @alias module:model/Tax + */ + function Tax() { + _classCallCheck(this, Tax); + + Tax.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Tax, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Tax from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Tax} obj Optional instance to populate. + * @return {module:model/Tax} The populated Tax instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Tax(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('employee_payroll_run')) { + obj['employee_payroll_run'] = _ApiClient["default"].convertToType(data['employee_payroll_run'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('amount')) { + obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'Number'); + } + + if (data.hasOwnProperty('employer_tax')) { + obj['employer_tax'] = _ApiClient["default"].convertToType(data['employer_tax'], 'Boolean'); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return Tax; +}(); +/** + * @member {String} id + */ + + +Tax.prototype['id'] = undefined; +/** + * @member {String} employee_payroll_run + */ + +Tax.prototype['employee_payroll_run'] = undefined; +/** + * The tax's name. + * @member {String} name + */ + +Tax.prototype['name'] = undefined; +/** + * The tax amount. + * @member {Number} amount + */ + +Tax.prototype['amount'] = undefined; +/** + * Whether or not the employer is responsible for paying the tax. + * @member {Boolean} employer_tax + */ + +Tax.prototype['employer_tax'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +Tax.prototype['remote_was_deleted'] = undefined; +var _default = Tax; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/Team.js b/dist/model/Team.js new file mode 100644 index 0000000..92ec0b1 --- /dev/null +++ b/dist/model/Team.js @@ -0,0 +1,128 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Utils = _interopRequireDefault(require("../Utils")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Team model module. + * @module model/Team + * @version 1.0 + */ +var Team = /*#__PURE__*/function () { + /** + * Constructs a new Team. + * # The Team Object ### Description The `Team` object is used to represent a Team within a company. `Employee` objects are often grouped this way. Note that in the Merge HRIS API, company subdivisions are all represented with `Teams`, rather than `Teams` and `Departments`. ### Usage Example If you're building a way to filter by `Team`, you'd hit the `GET Teams` endpoint to fetch the `Teams`, and then use the `ID` of the team your user selects to filter the `GET Employees` endpoint. + * @alias module:model/Team + */ + function Team() { + _classCallCheck(this, Team); + + Team.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Team, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Team from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Team} obj Optional instance to populate. + * @return {module:model/Team} The populated Team instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Team(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('parent_team')) { + obj['parent_team'] = (0, _Utils["default"])(data['parent_team'], Team); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return Team; +}(); +/** + * @member {String} id + */ + + +Team.prototype['id'] = undefined; +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + +Team.prototype['remote_id'] = undefined; +/** + * The team's name. + * @member {String} name + */ + +Team.prototype['name'] = undefined; +/** + * @member {String} parent_team + */ + +Team.prototype['parent_team'] = undefined; +/** + * @member {Array.} remote_data + */ + +Team.prototype['remote_data'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +Team.prototype['remote_was_deleted'] = undefined; +var _default = Team; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/TimeOff.js b/dist/model/TimeOff.js new file mode 100644 index 0000000..124e05d --- /dev/null +++ b/dist/model/TimeOff.js @@ -0,0 +1,204 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _Utils = _interopRequireDefault(require("../Utils")); + +var _Employee = _interopRequireDefault(require("./Employee")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +var _RequestTypeEnum = _interopRequireDefault(require("./RequestTypeEnum")); + +var _TimeOffStatusEnum = _interopRequireDefault(require("./TimeOffStatusEnum")); + +var _UnitsEnum = _interopRequireDefault(require("./UnitsEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The TimeOff model module. + * @module model/TimeOff + * @version 1.0 + */ +var TimeOff = /*#__PURE__*/function () { + /** + * Constructs a new TimeOff. + * # The TimeOff Object ### Description The `TimeOff` object is used to represent a Time Off Request filed by an employee. ### Usage Example Fetch from the `LIST TimeOffs` endpoint and filter by `ID` to show all time off requests. + * @alias module:model/TimeOff + */ + function TimeOff() { + _classCallCheck(this, TimeOff); + + TimeOff.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(TimeOff, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a TimeOff from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TimeOff} obj Optional instance to populate. + * @return {module:model/TimeOff} The populated TimeOff instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TimeOff(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('employee')) { + obj['employee'] = (0, _Utils["default"])(data['employee'], _Employee["default"]); + } + + if (data.hasOwnProperty('approver')) { + obj['approver'] = (0, _Utils["default"])(data['approver'], _Employee["default"]); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], _TimeOffStatusEnum["default"]); + } + + if (data.hasOwnProperty('employee_note')) { + obj['employee_note'] = _ApiClient["default"].convertToType(data['employee_note'], 'String'); + } + + if (data.hasOwnProperty('units')) { + obj['units'] = _ApiClient["default"].convertToType(data['units'], _UnitsEnum["default"]); + } + + if (data.hasOwnProperty('amount')) { + obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'Number'); + } + + if (data.hasOwnProperty('request_type')) { + obj['request_type'] = _ApiClient["default"].convertToType(data['request_type'], _RequestTypeEnum["default"]); + } + + if (data.hasOwnProperty('start_time')) { + obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'Date'); + } + + if (data.hasOwnProperty('end_time')) { + obj['end_time'] = _ApiClient["default"].convertToType(data['end_time'], 'Date'); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return TimeOff; +}(); +/** + * @member {String} id + */ + + +TimeOff.prototype['id'] = undefined; +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + +TimeOff.prototype['remote_id'] = undefined; +/** + * @member {String} employee + */ + +TimeOff.prototype['employee'] = undefined; +/** + * @member {String} approver + */ + +TimeOff.prototype['approver'] = undefined; +/** + * The status of this time off request. + * @member {module:model/TimeOffStatusEnum} status + */ + +TimeOff.prototype['status'] = undefined; +/** + * The employee note for this time off request. + * @member {String} employee_note + */ + +TimeOff.prototype['employee_note'] = undefined; +/** + * The unit of time requested. + * @member {module:model/UnitsEnum} units + */ + +TimeOff.prototype['units'] = undefined; +/** + * The number of time off units requested. + * @member {Number} amount + */ + +TimeOff.prototype['amount'] = undefined; +/** + * The type of time off request. + * @member {module:model/RequestTypeEnum} request_type + */ + +TimeOff.prototype['request_type'] = undefined; +/** + * The day and time of the start of the time requested off. + * @member {Date} start_time + */ + +TimeOff.prototype['start_time'] = undefined; +/** + * The day and time of the end of the time requested off. + * @member {Date} end_time + */ + +TimeOff.prototype['end_time'] = undefined; +/** + * @member {Array.} remote_data + */ + +TimeOff.prototype['remote_data'] = undefined; +/** + * @member {Boolean} remote_was_deleted + */ + +TimeOff.prototype['remote_was_deleted'] = undefined; +var _default = TimeOff; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/TimeOffBalance.js b/dist/model/TimeOffBalance.js new file mode 100644 index 0000000..323f28d --- /dev/null +++ b/dist/model/TimeOffBalance.js @@ -0,0 +1,148 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _PolicyTypeEnum = _interopRequireDefault(require("./PolicyTypeEnum")); + +var _RemoteData = _interopRequireDefault(require("./RemoteData")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The TimeOffBalance model module. + * @module model/TimeOffBalance + * @version 1.0 + */ +var TimeOffBalance = /*#__PURE__*/function () { + /** + * Constructs a new TimeOffBalance. + * # The TimeOffBalance Object ### Description The `TimeOffBalance` object is used to represent a Time Off Balance for an employee. ### Usage Example Fetch from the `LIST TimeOffBalances` endpoint and filter by `ID` to show all time off balances. + * @alias module:model/TimeOffBalance + */ + function TimeOffBalance() { + _classCallCheck(this, TimeOffBalance); + + TimeOffBalance.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(TimeOffBalance, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a TimeOffBalance from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TimeOffBalance} obj Optional instance to populate. + * @return {module:model/TimeOffBalance} The populated TimeOffBalance instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TimeOffBalance(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('employee')) { + obj['employee'] = _ApiClient["default"].convertToType(data['employee'], 'String'); + } + + if (data.hasOwnProperty('balance')) { + obj['balance'] = _ApiClient["default"].convertToType(data['balance'], 'Number'); + } + + if (data.hasOwnProperty('used')) { + obj['used'] = _ApiClient["default"].convertToType(data['used'], 'Number'); + } + + if (data.hasOwnProperty('policy_type')) { + obj['policy_type'] = _ApiClient["default"].convertToType(data['policy_type'], _PolicyTypeEnum["default"]); + } + + if (data.hasOwnProperty('remote_data')) { + obj['remote_data'] = _ApiClient["default"].convertToType(data['remote_data'], [_RemoteData["default"]]); + } + + if (data.hasOwnProperty('remote_was_deleted')) { + obj['remote_was_deleted'] = _ApiClient["default"].convertToType(data['remote_was_deleted'], 'Boolean'); + } + } + + return obj; + } + }]); + + return TimeOffBalance; +}(); +/** + * @member {String} id + */ + + +TimeOffBalance.prototype['id'] = undefined; +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + +TimeOffBalance.prototype['remote_id'] = undefined; +/** + * @member {String} employee + */ + +TimeOffBalance.prototype['employee'] = undefined; +/** + * The current remaining PTO balance in terms of hours. This does not represent the starting PTO balance. If the API provider only provides PTO balance in terms of days, we estimate 8 hours per day. + * @member {Number} balance + */ + +TimeOffBalance.prototype['balance'] = undefined; +/** + * The amount of PTO used in terms of hours. + * @member {Number} used + */ + +TimeOffBalance.prototype['used'] = undefined; +/** + * The policy type of this time off balance. + * @member {module:model/PolicyTypeEnum} policy_type + */ + +TimeOffBalance.prototype['policy_type'] = undefined; +/** + * @member {Array.} remote_data + */ + +TimeOffBalance.prototype['remote_data'] = undefined; +/** + * Indicates whether or not this object has been deleted by third party webhooks. + * @member {Boolean} remote_was_deleted + */ + +TimeOffBalance.prototype['remote_was_deleted'] = undefined; +var _default = TimeOffBalance; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/TimeOffEndpointRequest.js b/dist/model/TimeOffEndpointRequest.js new file mode 100644 index 0000000..8010448 --- /dev/null +++ b/dist/model/TimeOffEndpointRequest.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _TimeOffRequest = _interopRequireDefault(require("./TimeOffRequest")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The TimeOffEndpointRequest model module. + * @module model/TimeOffEndpointRequest + * @version 1.0 + */ +var TimeOffEndpointRequest = /*#__PURE__*/function () { + /** + * Constructs a new TimeOffEndpointRequest. + * @alias module:model/TimeOffEndpointRequest + * @param model {module:model/TimeOffRequest} + */ + function TimeOffEndpointRequest(model) { + _classCallCheck(this, TimeOffEndpointRequest); + + TimeOffEndpointRequest.initialize(this, model); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(TimeOffEndpointRequest, null, [{ + key: "initialize", + value: function initialize(obj, model) { + obj['model'] = model; + } + /** + * Constructs a TimeOffEndpointRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TimeOffEndpointRequest} obj Optional instance to populate. + * @return {module:model/TimeOffEndpointRequest} The populated TimeOffEndpointRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TimeOffEndpointRequest(); + + if (data.hasOwnProperty('model')) { + obj['model'] = _TimeOffRequest["default"].constructFromObject(data['model']); + } + } + + return obj; + } + }]); + + return TimeOffEndpointRequest; +}(); +/** + * @member {module:model/TimeOffRequest} model + */ + + +TimeOffEndpointRequest.prototype['model'] = undefined; +var _default = TimeOffEndpointRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/TimeOffRequest.js b/dist/model/TimeOffRequest.js new file mode 100644 index 0000000..4978012 --- /dev/null +++ b/dist/model/TimeOffRequest.js @@ -0,0 +1,171 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _RequestTypeEnum = _interopRequireDefault(require("./RequestTypeEnum")); + +var _TimeOffStatusEnum = _interopRequireDefault(require("./TimeOffStatusEnum")); + +var _UnitsEnum = _interopRequireDefault(require("./UnitsEnum")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The TimeOffRequest model module. + * @module model/TimeOffRequest + * @version 1.0 + */ +var TimeOffRequest = /*#__PURE__*/function () { + /** + * Constructs a new TimeOffRequest. + * # The TimeOff Object ### Description The `TimeOff` object is used to represent a Time Off Request filed by an employee. ### Usage Example Fetch from the `LIST TimeOffs` endpoint and filter by `ID` to show all time off requests. + * @alias module:model/TimeOffRequest + */ + function TimeOffRequest() { + _classCallCheck(this, TimeOffRequest); + + TimeOffRequest.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(TimeOffRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a TimeOffRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TimeOffRequest} obj Optional instance to populate. + * @return {module:model/TimeOffRequest} The populated TimeOffRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TimeOffRequest(); + + if (data.hasOwnProperty('remote_id')) { + obj['remote_id'] = _ApiClient["default"].convertToType(data['remote_id'], 'String'); + } + + if (data.hasOwnProperty('employee')) { + obj['employee'] = _ApiClient["default"].convertToType(data['employee'], 'String'); + } + + if (data.hasOwnProperty('approver')) { + obj['approver'] = _ApiClient["default"].convertToType(data['approver'], 'String'); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], _TimeOffStatusEnum["default"]); + } + + if (data.hasOwnProperty('employee_note')) { + obj['employee_note'] = _ApiClient["default"].convertToType(data['employee_note'], 'String'); + } + + if (data.hasOwnProperty('units')) { + obj['units'] = _ApiClient["default"].convertToType(data['units'], _UnitsEnum["default"]); + } + + if (data.hasOwnProperty('amount')) { + obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'Number'); + } + + if (data.hasOwnProperty('request_type')) { + obj['request_type'] = _ApiClient["default"].convertToType(data['request_type'], _RequestTypeEnum["default"]); + } + + if (data.hasOwnProperty('start_time')) { + obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'Date'); + } + + if (data.hasOwnProperty('end_time')) { + obj['end_time'] = _ApiClient["default"].convertToType(data['end_time'], 'Date'); + } + } + + return obj; + } + }]); + + return TimeOffRequest; +}(); +/** + * The third-party API ID of the matching object. + * @member {String} remote_id + */ + + +TimeOffRequest.prototype['remote_id'] = undefined; +/** + * @member {String} employee + */ + +TimeOffRequest.prototype['employee'] = undefined; +/** + * @member {String} approver + */ + +TimeOffRequest.prototype['approver'] = undefined; +/** + * The status of this time off request. + * @member {module:model/TimeOffStatusEnum} status + */ + +TimeOffRequest.prototype['status'] = undefined; +/** + * The employee note for this time off request. + * @member {String} employee_note + */ + +TimeOffRequest.prototype['employee_note'] = undefined; +/** + * The unit of time requested. + * @member {module:model/UnitsEnum} units + */ + +TimeOffRequest.prototype['units'] = undefined; +/** + * The number of time off units requested. + * @member {Number} amount + */ + +TimeOffRequest.prototype['amount'] = undefined; +/** + * The type of time off request. + * @member {module:model/RequestTypeEnum} request_type + */ + +TimeOffRequest.prototype['request_type'] = undefined; +/** + * The day and time of the start of the time requested off. + * @member {Date} start_time + */ + +TimeOffRequest.prototype['start_time'] = undefined; +/** + * The day and time of the end of the time requested off. + * @member {Date} end_time + */ + +TimeOffRequest.prototype['end_time'] = undefined; +var _default = TimeOffRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/TimeOffResponse.js b/dist/model/TimeOffResponse.js new file mode 100644 index 0000000..3206e49 --- /dev/null +++ b/dist/model/TimeOffResponse.js @@ -0,0 +1,117 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _DebugModeLog = _interopRequireDefault(require("./DebugModeLog")); + +var _ErrorValidationProblem = _interopRequireDefault(require("./ErrorValidationProblem")); + +var _TimeOff = _interopRequireDefault(require("./TimeOff")); + +var _WarningValidationProblem = _interopRequireDefault(require("./WarningValidationProblem")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The TimeOffResponse model module. + * @module model/TimeOffResponse + * @version 1.0 + */ +var TimeOffResponse = /*#__PURE__*/function () { + /** + * Constructs a new TimeOffResponse. + * @alias module:model/TimeOffResponse + * @param model {module:model/TimeOff} + * @param warnings {Array.} + * @param errors {Array.} + */ + function TimeOffResponse(model, warnings, errors) { + _classCallCheck(this, TimeOffResponse); + + TimeOffResponse.initialize(this, model, warnings, errors); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(TimeOffResponse, null, [{ + key: "initialize", + value: function initialize(obj, model, warnings, errors) { + obj['model'] = model; + obj['warnings'] = warnings; + obj['errors'] = errors; + } + /** + * Constructs a TimeOffResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TimeOffResponse} obj Optional instance to populate. + * @return {module:model/TimeOffResponse} The populated TimeOffResponse instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TimeOffResponse(); + + if (data.hasOwnProperty('model')) { + obj['model'] = _TimeOff["default"].constructFromObject(data['model']); + } + + if (data.hasOwnProperty('warnings')) { + obj['warnings'] = _ApiClient["default"].convertToType(data['warnings'], [_WarningValidationProblem["default"]]); + } + + if (data.hasOwnProperty('errors')) { + obj['errors'] = _ApiClient["default"].convertToType(data['errors'], [_ErrorValidationProblem["default"]]); + } + + if (data.hasOwnProperty('logs')) { + obj['logs'] = _ApiClient["default"].convertToType(data['logs'], [_DebugModeLog["default"]]); + } + } + + return obj; + } + }]); + + return TimeOffResponse; +}(); +/** + * @member {module:model/TimeOff} model + */ + + +TimeOffResponse.prototype['model'] = undefined; +/** + * @member {Array.} warnings + */ + +TimeOffResponse.prototype['warnings'] = undefined; +/** + * @member {Array.} errors + */ + +TimeOffResponse.prototype['errors'] = undefined; +/** + * @member {Array.} logs + */ + +TimeOffResponse.prototype['logs'] = undefined; +var _default = TimeOffResponse; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/TimeOffStatusEnum.js b/dist/model/TimeOffStatusEnum.js new file mode 100644 index 0000000..b384bd9 --- /dev/null +++ b/dist/model/TimeOffStatusEnum.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class TimeOffStatusEnum. +* @enum {} +* @readonly +*/ +var TimeOffStatusEnum = /*#__PURE__*/function () { + function TimeOffStatusEnum() { + _classCallCheck(this, TimeOffStatusEnum); + + _defineProperty(this, "REQUESTED", "REQUESTED"); + + _defineProperty(this, "APPROVED", "APPROVED"); + + _defineProperty(this, "DECLINED", "DECLINED"); + + _defineProperty(this, "CANCELLED", "CANCELLED"); + + _defineProperty(this, "DELETED", "DELETED"); + } + + _createClass(TimeOffStatusEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a TimeOffStatusEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/TimeOffStatusEnum} The enum TimeOffStatusEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return TimeOffStatusEnum; +}(); + +exports["default"] = TimeOffStatusEnum; \ No newline at end of file diff --git a/dist/model/TypeEnum.js b/dist/model/TypeEnum.js new file mode 100644 index 0000000..db42ddc --- /dev/null +++ b/dist/model/TypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class TypeEnum. +* @enum {} +* @readonly +*/ +var TypeEnum = /*#__PURE__*/function () { + function TypeEnum() { + _classCallCheck(this, TypeEnum); + + _defineProperty(this, "SALARY", "SALARY"); + + _defineProperty(this, "REIMBURSEMENT", "REIMBURSEMENT"); + + _defineProperty(this, "OVERTIME", "OVERTIME"); + + _defineProperty(this, "BONUS", "BONUS"); + } + + _createClass(TypeEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a TypeEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/TypeEnum} The enum TypeEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return TypeEnum; +}(); + +exports["default"] = TypeEnum; \ No newline at end of file diff --git a/dist/model/UnitsEnum.js b/dist/model/UnitsEnum.js new file mode 100644 index 0000000..ae61598 --- /dev/null +++ b/dist/model/UnitsEnum.js @@ -0,0 +1,50 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class UnitsEnum. +* @enum {} +* @readonly +*/ +var UnitsEnum = /*#__PURE__*/function () { + function UnitsEnum() { + _classCallCheck(this, UnitsEnum); + + _defineProperty(this, "HOURS", "HOURS"); + + _defineProperty(this, "DAYS", "DAYS"); + } + + _createClass(UnitsEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a UnitsEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/UnitsEnum} The enum UnitsEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return UnitsEnum; +}(); + +exports["default"] = UnitsEnum; \ No newline at end of file diff --git a/dist/model/ValidationProblemSource.js b/dist/model/ValidationProblemSource.js new file mode 100644 index 0000000..65711d7 --- /dev/null +++ b/dist/model/ValidationProblemSource.js @@ -0,0 +1,78 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ValidationProblemSource model module. + * @module model/ValidationProblemSource + * @version 1.0 + */ +var ValidationProblemSource = /*#__PURE__*/function () { + /** + * Constructs a new ValidationProblemSource. + * @alias module:model/ValidationProblemSource + * @param pointer {String} + */ + function ValidationProblemSource(pointer) { + _classCallCheck(this, ValidationProblemSource); + + ValidationProblemSource.initialize(this, pointer); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ValidationProblemSource, null, [{ + key: "initialize", + value: function initialize(obj, pointer) { + obj['pointer'] = pointer; + } + /** + * Constructs a ValidationProblemSource from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ValidationProblemSource} obj Optional instance to populate. + * @return {module:model/ValidationProblemSource} The populated ValidationProblemSource instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ValidationProblemSource(); + + if (data.hasOwnProperty('pointer')) { + obj['pointer'] = _ApiClient["default"].convertToType(data['pointer'], 'String'); + } + } + + return obj; + } + }]); + + return ValidationProblemSource; +}(); +/** + * @member {String} pointer + */ + + +ValidationProblemSource.prototype['pointer'] = undefined; +var _default = ValidationProblemSource; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/WarningValidationProblem.js b/dist/model/WarningValidationProblem.js new file mode 100644 index 0000000..f08bcd4 --- /dev/null +++ b/dist/model/WarningValidationProblem.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ValidationProblemSource = _interopRequireDefault(require("./ValidationProblemSource")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The WarningValidationProblem model module. + * @module model/WarningValidationProblem + * @version 1.0 + */ +var WarningValidationProblem = /*#__PURE__*/function () { + /** + * Constructs a new WarningValidationProblem. + * @alias module:model/WarningValidationProblem + * @param title {String} + * @param detail {String} + * @param problem_type {String} + */ + function WarningValidationProblem(title, detail, problem_type) { + _classCallCheck(this, WarningValidationProblem); + + WarningValidationProblem.initialize(this, title, detail, problem_type); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(WarningValidationProblem, null, [{ + key: "initialize", + value: function initialize(obj, title, detail, problem_type) { + obj['title'] = title; + obj['detail'] = detail; + obj['problem_type'] = problem_type; + } + /** + * Constructs a WarningValidationProblem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WarningValidationProblem} obj Optional instance to populate. + * @return {module:model/WarningValidationProblem} The populated WarningValidationProblem instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new WarningValidationProblem(); + + if (data.hasOwnProperty('source')) { + obj['source'] = _ValidationProblemSource["default"].constructFromObject(data['source']); + } + + if (data.hasOwnProperty('title')) { + obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String'); + } + + if (data.hasOwnProperty('detail')) { + obj['detail'] = _ApiClient["default"].convertToType(data['detail'], 'String'); + } + + if (data.hasOwnProperty('problem_type')) { + obj['problem_type'] = _ApiClient["default"].convertToType(data['problem_type'], 'String'); + } + } + + return obj; + } + }]); + + return WarningValidationProblem; +}(); +/** + * @member {module:model/ValidationProblemSource} source + */ + + +WarningValidationProblem.prototype['source'] = undefined; +/** + * @member {String} title + */ + +WarningValidationProblem.prototype['title'] = undefined; +/** + * @member {String} detail + */ + +WarningValidationProblem.prototype['detail'] = undefined; +/** + * @member {String} problem_type + */ + +WarningValidationProblem.prototype['problem_type'] = undefined; +var _default = WarningValidationProblem; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/WebhookReceiver.js b/dist/model/WebhookReceiver.js new file mode 100644 index 0000000..c8e5409 --- /dev/null +++ b/dist/model/WebhookReceiver.js @@ -0,0 +1,98 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The WebhookReceiver model module. + * @module model/WebhookReceiver + * @version 1.0 + */ +var WebhookReceiver = /*#__PURE__*/function () { + /** + * Constructs a new WebhookReceiver. + * @alias module:model/WebhookReceiver + * @param event {String} + * @param is_active {Boolean} + */ + function WebhookReceiver(event, is_active) { + _classCallCheck(this, WebhookReceiver); + + WebhookReceiver.initialize(this, event, is_active); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(WebhookReceiver, null, [{ + key: "initialize", + value: function initialize(obj, event, is_active) { + obj['event'] = event; + obj['is_active'] = is_active; + } + /** + * Constructs a WebhookReceiver from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebhookReceiver} obj Optional instance to populate. + * @return {module:model/WebhookReceiver} The populated WebhookReceiver instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new WebhookReceiver(); + + if (data.hasOwnProperty('event')) { + obj['event'] = _ApiClient["default"].convertToType(data['event'], 'String'); + } + + if (data.hasOwnProperty('is_active')) { + obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + } + + return obj; + } + }]); + + return WebhookReceiver; +}(); +/** + * @member {String} event + */ + + +WebhookReceiver.prototype['event'] = undefined; +/** + * @member {Boolean} is_active + */ + +WebhookReceiver.prototype['is_active'] = undefined; +/** + * @member {String} key + */ + +WebhookReceiver.prototype['key'] = undefined; +var _default = WebhookReceiver; +exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/WebhookReceiverRequest.js b/dist/model/WebhookReceiverRequest.js new file mode 100644 index 0000000..9fc11b1 --- /dev/null +++ b/dist/model/WebhookReceiverRequest.js @@ -0,0 +1,98 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The WebhookReceiverRequest model module. + * @module model/WebhookReceiverRequest + * @version 1.0 + */ +var WebhookReceiverRequest = /*#__PURE__*/function () { + /** + * Constructs a new WebhookReceiverRequest. + * @alias module:model/WebhookReceiverRequest + * @param event {String} + * @param is_active {Boolean} + */ + function WebhookReceiverRequest(event, is_active) { + _classCallCheck(this, WebhookReceiverRequest); + + WebhookReceiverRequest.initialize(this, event, is_active); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(WebhookReceiverRequest, null, [{ + key: "initialize", + value: function initialize(obj, event, is_active) { + obj['event'] = event; + obj['is_active'] = is_active; + } + /** + * Constructs a WebhookReceiverRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebhookReceiverRequest} obj Optional instance to populate. + * @return {module:model/WebhookReceiverRequest} The populated WebhookReceiverRequest instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new WebhookReceiverRequest(); + + if (data.hasOwnProperty('event')) { + obj['event'] = _ApiClient["default"].convertToType(data['event'], 'String'); + } + + if (data.hasOwnProperty('is_active')) { + obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + } + + return obj; + } + }]); + + return WebhookReceiverRequest; +}(); +/** + * @member {String} event + */ + + +WebhookReceiverRequest.prototype['event'] = undefined; +/** + * @member {Boolean} is_active + */ + +WebhookReceiverRequest.prototype['is_active'] = undefined; +/** + * @member {String} key + */ + +WebhookReceiverRequest.prototype['key'] = undefined; +var _default = WebhookReceiverRequest; +exports["default"] = _default; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e72d8bd..e61d94c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mergeapi/merge_hris_api", - "version": "1.0.12", + "version": "1.0.13", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@mergeapi/merge_hris_api", - "version": "1.0.12", + "version": "1.0.13", "license": "Unlicense", "dependencies": { "@babel/cli": "^7.16.0", @@ -66,11 +66,16 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.13.tgz", - "integrity": "sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", "dependencies": { - "@babel/highlight": "^7.12.13" + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { @@ -130,21 +135,27 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/@babel/generator": { - "version": "7.13.9", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.13.9.tgz", - "integrity": "sha512-mHOOmY0Axl/JCTkxTU6Lf5sWOg/v8nUa+Xkt4zMTftX0wqmb6Sh7J8gvcehBw7q0AhrhAR+FDacKjCZ2X8K+Sw==", + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.3.tgz", + "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==", "dependencies": { - "@babel/types": "^7.13.0", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" + "@babel/parser": "^7.28.3", + "@babel/types": "^7.28.2", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/helper-annotate-as-pure": { @@ -181,9 +192,10 @@ } }, "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -260,10 +272,11 @@ "dev": true }, "node_modules/@babel/helper-define-polyfill-provider/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -281,6 +294,7 @@ "version": "7.12.13", "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.12.13.tgz", "integrity": "sha512-TZvmPn0UOqmvi5G4vvw0qZTpVptGkB1GL61R6lKvrSdIxGm5Pky7Q3fpKiIkQCAtRCBUwB0PaThlx9vebCDSwA==", + "dev": true, "dependencies": { "@babel/helper-get-function-arity": "^7.12.13", "@babel/template": "^7.12.13", @@ -291,10 +305,19 @@ "version": "7.12.13", "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.12.13.tgz", "integrity": "sha512-DjEVzQNz5LICkzN0REdpD5prGoidvbdYk1BVgRUOINaWJP2t6avB27X1guXK1kXNrX0WMfsrm1A/ZBthYuIMQg==", + "dev": true, "dependencies": { "@babel/types": "^7.12.13" } }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-hoist-variables": { "version": "7.13.0", "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.13.0.tgz", @@ -398,10 +421,21 @@ "@babel/types": "^7.12.13" } }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", - "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==" + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "engines": { + "node": ">=6.9.0" + } }, "node_modules/@babel/helper-validator-option": { "version": "7.12.17", @@ -430,20 +464,13 @@ "@babel/types": "^7.13.0" } }, - "node_modules/@babel/highlight": { - "version": "7.13.10", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.13.10.tgz", - "integrity": "sha512-5aPpe5XQPzflQrFwL1/QoeHkP2MsA4JCntcXHRhEsdsfPVkvPi2w7Qix4iV7t5S/oC9OodGrggd8aco1g3SZFg==", - "dependencies": { - "@babel/helper-validator-identifier": "^7.12.11", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, "node_modules/@babel/parser": { - "version": "7.13.10", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.13.10.tgz", - "integrity": "sha512-0s7Mlrw9uTWkYua7xWr99Wpk2bnGa0ANleKfksYAES8LpWH4gW1OUr42vqKNf0us5UQNfru2wPqMqRITzq/SIQ==", + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.3.tgz", + "integrity": "sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA==", + "dependencies": { + "@babel/types": "^7.28.2" + }, "bin": { "parser": "bin/babel-parser.js" }, @@ -1449,10 +1476,11 @@ } }, "node_modules/@babel/preset-env/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -1499,29 +1527,33 @@ } }, "node_modules/@babel/template": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.12.13.tgz", - "integrity": "sha512-/7xxiGA57xMo/P2GVvdEumr8ONhFOhfgq2ihK3h1e6THqzTAkHbkXgB0xI9yeTfIUoH3+oAeHhqm/I43OTbbjA==", + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", "dependencies": { - "@babel/code-frame": "^7.12.13", - "@babel/parser": "^7.12.13", - "@babel/types": "^7.12.13" + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.13.0", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.13.0.tgz", - "integrity": "sha512-xys5xi5JEhzC3RzEmSGrs/b3pJW/o87SypZ+G/PhaE7uqVQNv/jlmVIBXuoh5atqQ434LfXV+sf23Oxj0bchJQ==", - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@babel/generator": "^7.13.0", - "@babel/helper-function-name": "^7.12.13", - "@babel/helper-split-export-declaration": "^7.12.13", - "@babel/parser": "^7.13.0", - "@babel/types": "^7.13.0", - "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.19" + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.3.tgz", + "integrity": "sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ==", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.3", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.2", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/traverse/node_modules/debug": { @@ -1546,13 +1578,46 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/@babel/types": { - "version": "7.13.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.13.0.tgz", - "integrity": "sha512-hE+HE8rnG1Z6Wzo+MhaKE5lM5eMx71T4EHJgku2E3xIfaULhDcxiiRxUYgwX8qwP1BBSlag+TdGOt6JAidIZTA==", + "version": "7.28.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.2.tgz", + "integrity": "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==", "dependencies": { - "@babel/helper-validator-identifier": "^7.12.11", - "lodash": "^4.17.19", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.30", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz", + "integrity": "sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "node_modules/@nicolo-ribaudo/chokidar-2": { @@ -1621,17 +1686,6 @@ "node": ">=8" } }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -1673,10 +1727,11 @@ } }, "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -1711,6 +1766,15 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, + "node_modules/baseline-browser-mapping": { + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.6.tgz", + "integrity": "sha512-wrH5NNqren/QMtKUEEJf7z86YjfqW/2uw3IL3/xpqZUC95SSVIFXYQeeGjL6FT/X68IROu6RMehZQS5foy2BXw==", + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -1727,25 +1791,36 @@ "dev": true }, "node_modules/browserslist": { - "version": "4.18.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.18.1.tgz", - "integrity": "sha512-8ScCzdpPwR2wQh8IT82CA2VgDwjHyqMovPBZSNH54+tm4Jk2pCuv90gmAdH6J84OCRWi0b4gMe6O6XPXuJnjgQ==", + "version": "4.26.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.2.tgz", + "integrity": "sha512-ECFzp6uFOSB+dcZ5BK/IBaGWssbSYBHvuMeMt3MMFyhI0Z8SqGgEkBLARgpRH3hutIgPVsALcMwbDrJqPxQ65A==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001280", - "electron-to-chromium": "^1.3.896", - "escalade": "^3.1.1", - "node-releases": "^2.0.1", - "picocolors": "^1.0.0" + "baseline-browser-mapping": "^2.8.3", + "caniuse-lite": "^1.0.30001741", + "electron-to-chromium": "^1.5.218", + "node-releases": "^2.0.21", + "update-browserslist-db": "^1.1.3" }, "bin": { "browserslist": "cli.js" }, "engines": { "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" } }, "node_modules/buffer-from": { @@ -1767,6 +1842,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/camelcase": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", @@ -1780,26 +1867,24 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001286", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001286.tgz", - "integrity": "sha512-zaEMRH6xg8ESMi2eQ3R4eZ5qw/hJiVsO/HlLwniIwErij0JDr9P+8V4dtx1l+kLq6j3yy8l8W4fst1lBnat5wQ==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - } - }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } + "version": "1.0.30001745", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001745.tgz", + "integrity": "sha512-ywt6i8FzvdgrrrGbr1jZVObnVv6adj+0if2/omv9cmR2oiZs30zL4DIyaptKcbOrBdOIc74QTMoJvSE2QHh5UQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" }, "node_modules/chokidar": { "version": "3.5.2", @@ -1971,19 +2056,6 @@ "node": ">=8" } }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" - }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -2033,28 +2105,19 @@ "integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==" }, "node_modules/core-js-compat": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.9.1.tgz", - "integrity": "sha512-jXAirMQxrkbiiLsCx9bQPJFA6llDadKMpYrBJQJ3/c4/vsPP/fAf29h24tviRlvwUL6AmY5CHLu2GvjuYviQqA==", + "version": "3.45.1", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.45.1.tgz", + "integrity": "sha512-tqTt5T4PzsMIZ430XGviK4vzYSoeNJ6CXODi6c/voxOT6IZqBht5/EKaSNnYiEjjRYxjVz7DQIsOsY0XNi8PIA==", "dev": true, + "license": "MIT", "dependencies": { - "browserslist": "^4.16.3", - "semver": "7.0.0" + "browserslist": "^4.25.3" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" } }, - "node_modules/core-js-compat/node_modules/semver": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", - "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/decamelize": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", @@ -2096,10 +2159,24 @@ "node": ">=0.3.1" } }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/electron-to-chromium": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.15.tgz", - "integrity": "sha512-WDw2IUL3k4QpbzInV3JZK+Zd1NjWJPDZ28oUSchWb/kf6AVj7/niaAlgcJlvojFa1d7pJSyQ/KSZsEtq5W7aGQ==" + "version": "1.5.223", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.223.tgz", + "integrity": "sha512-qKm55ic6nbEmagFlTFczML33rF90aU+WtrJ9MdTCThrcvDNdUHN4p6QfVN78U06ZmguqXIyMPyYhw2TrbDUwPQ==", + "license": "ISC" }, "node_modules/emoji-regex": { "version": "8.0.0", @@ -2107,20 +2184,54 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "engines": { - "node": ">=6" + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" } }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", "engines": { - "node": ">=0.8.0" + "node": ">=6" } }, "node_modules/esutils": { @@ -2179,13 +2290,15 @@ } }, "node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.4.tgz", + "integrity": "sha512-f0cRzm6dkyVYV3nPoooP8XlccPQukegwhAnpoLcXy+X+A8KfpGOoXwDr9FLZd3wzgLaBGQBE3lY93Zm/i1JvIQ==", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.35" }, "engines": { "node": ">= 6" @@ -2225,10 +2338,12 @@ } }, "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/gensync": { "version": "1.0.0-beta.2", @@ -2248,19 +2363,40 @@ } }, "node_modules/get-intrinsic": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", - "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1" + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/glob": { "version": "7.1.7", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", @@ -2284,10 +2420,22 @@ "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, "engines": { "node": ">=4" } }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/growl": { "version": "1.10.5", "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", @@ -2313,15 +2461,29 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true, "engines": { "node": ">=4" } }, "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", - "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", - "dev": true, + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dependencies": { + "has-symbols": "^1.0.3" + }, "engines": { "node": ">= 0.4" }, @@ -2329,6 +2491,17 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -2430,14 +2603,14 @@ } }, "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "bin": { "jsesc": "bin/jsesc" }, "engines": { - "node": ">=4" + "node": ">=6" } }, "node_modules/json5": { @@ -2576,17 +2749,6 @@ "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==", "dev": true }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/make-dir": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", @@ -2599,6 +2761,14 @@ "node": ">=6" } }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", @@ -2619,19 +2789,19 @@ } }, "node_modules/mime-db": { - "version": "1.46.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.46.0.tgz", - "integrity": "sha512-svXaP8UQRZ5K7or+ZmfNhg2xX3yKDMUzqadsSqi4NCH/KomcH75MAMYAGVlvXn4+b/xOPhS3I2uHKRUzvjY7BQ==", + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "engines": { "node": ">= 0.6" } }, "node_modules/mime-types": { - "version": "2.1.29", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.29.tgz", - "integrity": "sha512-Y/jMt/S5sR9OaqteJtslsFZKWOIIqMACsJSiHghlCAyhf7jfVYjKBmLiX8OgpWeW+fjJ2b+Az69aPFPkUOY6xQ==", + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dependencies": { - "mime-db": "1.46.0" + "mime-db": "1.52.0" }, "engines": { "node": ">= 0.6" @@ -2649,9 +2819,12 @@ } }, "node_modules/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/mocha": { "version": "9.1.3", @@ -2875,9 +3048,10 @@ } }, "node_modules/node-releases": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.1.tgz", - "integrity": "sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==" + "version": "2.0.21", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.21.tgz", + "integrity": "sha512-5b0pgg78U3hwXkCM8Z9b2FJdPZlr9Psr9V2gQPESdGHqbntyFJKFW4r5TeWGFzafGY3hzs1JC62VEQMbl1JFkw==", + "license": "MIT" }, "node_modules/normalize-path": { "version": "3.0.0", @@ -2998,9 +3172,9 @@ "dev": true }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" }, "node_modules/picomatch": { "version": "2.3.0", @@ -3171,9 +3345,10 @@ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "license": "ISC", "bin": { "semver": "bin/semver" } @@ -3322,12 +3497,10 @@ } }, "node_modules/superagent/node_modules/semver": { - "version": "7.3.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", - "dependencies": { - "lru-cache": "^6.0.0" - }, + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -3339,6 +3512,7 @@ "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, "dependencies": { "has-flag": "^3.0.0" }, @@ -3346,14 +3520,6 @@ "node": ">=4" } }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "engines": { - "node": ">=4" - } - }, "node_modules/type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", @@ -3403,6 +3569,36 @@ "node": ">=4" } }, + "node_modules/update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -3528,11 +3724,6 @@ "node": ">=10" } }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", @@ -3641,11 +3832,13 @@ } }, "@babel/code-frame": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.13.tgz", - "integrity": "sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", "requires": { - "@babel/highlight": "^7.12.13" + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" } }, "@babel/compat-data": { @@ -3690,20 +3883,22 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==" } } }, "@babel/generator": { - "version": "7.13.9", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.13.9.tgz", - "integrity": "sha512-mHOOmY0Axl/JCTkxTU6Lf5sWOg/v8nUa+Xkt4zMTftX0wqmb6Sh7J8gvcehBw7q0AhrhAR+FDacKjCZ2X8K+Sw==", + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.3.tgz", + "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==", "requires": { - "@babel/types": "^7.13.0", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" + "@babel/parser": "^7.28.3", + "@babel/types": "^7.28.2", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" } }, "@babel/helper-annotate-as-pure": { @@ -3737,9 +3932,9 @@ }, "dependencies": { "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==" } } }, @@ -3798,9 +3993,9 @@ "dev": true }, "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true } } @@ -3818,6 +4013,7 @@ "version": "7.12.13", "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.12.13.tgz", "integrity": "sha512-TZvmPn0UOqmvi5G4vvw0qZTpVptGkB1GL61R6lKvrSdIxGm5Pky7Q3fpKiIkQCAtRCBUwB0PaThlx9vebCDSwA==", + "dev": true, "requires": { "@babel/helper-get-function-arity": "^7.12.13", "@babel/template": "^7.12.13", @@ -3828,10 +4024,16 @@ "version": "7.12.13", "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.12.13.tgz", "integrity": "sha512-DjEVzQNz5LICkzN0REdpD5prGoidvbdYk1BVgRUOINaWJP2t6avB27X1guXK1kXNrX0WMfsrm1A/ZBthYuIMQg==", + "dev": true, "requires": { "@babel/types": "^7.12.13" } }, + "@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==" + }, "@babel/helper-hoist-variables": { "version": "7.13.0", "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.13.0.tgz", @@ -3935,10 +4137,15 @@ "@babel/types": "^7.12.13" } }, + "@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==" + }, "@babel/helper-validator-identifier": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", - "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==" + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==" }, "@babel/helper-validator-option": { "version": "7.12.17", @@ -3967,21 +4174,14 @@ "@babel/types": "^7.13.0" } }, - "@babel/highlight": { - "version": "7.13.10", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.13.10.tgz", - "integrity": "sha512-5aPpe5XQPzflQrFwL1/QoeHkP2MsA4JCntcXHRhEsdsfPVkvPi2w7Qix4iV7t5S/oC9OodGrggd8aco1g3SZFg==", + "@babel/parser": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.3.tgz", + "integrity": "sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA==", "requires": { - "@babel/helper-validator-identifier": "^7.12.11", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "@babel/types": "^7.28.2" } }, - "@babel/parser": { - "version": "7.13.10", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.13.10.tgz", - "integrity": "sha512-0s7Mlrw9uTWkYua7xWr99Wpk2bnGa0ANleKfksYAES8LpWH4gW1OUr42vqKNf0us5UQNfru2wPqMqRITzq/SIQ==" - }, "@babel/plugin-proposal-async-generator-functions": { "version": "7.13.8", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.13.8.tgz", @@ -4758,9 +4958,9 @@ }, "dependencies": { "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true } } @@ -4801,29 +5001,27 @@ } }, "@babel/template": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.12.13.tgz", - "integrity": "sha512-/7xxiGA57xMo/P2GVvdEumr8ONhFOhfgq2ihK3h1e6THqzTAkHbkXgB0xI9yeTfIUoH3+oAeHhqm/I43OTbbjA==", + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", "requires": { - "@babel/code-frame": "^7.12.13", - "@babel/parser": "^7.12.13", - "@babel/types": "^7.12.13" + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" } }, "@babel/traverse": { - "version": "7.13.0", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.13.0.tgz", - "integrity": "sha512-xys5xi5JEhzC3RzEmSGrs/b3pJW/o87SypZ+G/PhaE7uqVQNv/jlmVIBXuoh5atqQ434LfXV+sf23Oxj0bchJQ==", + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.3.tgz", + "integrity": "sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ==", "requires": { - "@babel/code-frame": "^7.12.13", - "@babel/generator": "^7.13.0", - "@babel/helper-function-name": "^7.12.13", - "@babel/helper-split-export-declaration": "^7.12.13", - "@babel/parser": "^7.13.0", - "@babel/types": "^7.13.0", - "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.19" + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.3", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.2", + "debug": "^4.3.1" }, "dependencies": { "debug": { @@ -4842,13 +5040,40 @@ } }, "@babel/types": { - "version": "7.13.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.13.0.tgz", - "integrity": "sha512-hE+HE8rnG1Z6Wzo+MhaKE5lM5eMx71T4EHJgku2E3xIfaULhDcxiiRxUYgwX8qwP1BBSlag+TdGOt6JAidIZTA==", + "version": "7.28.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.2.tgz", + "integrity": "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==", "requires": { - "@babel/helper-validator-identifier": "^7.12.11", - "lodash": "^4.17.19", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + } + }, + "@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "requires": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==" + }, + "@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==" + }, + "@jridgewell/trace-mapping": { + "version": "0.3.30", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz", + "integrity": "sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==", + "requires": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "@nicolo-ribaudo/chokidar-2": { @@ -4911,14 +5136,6 @@ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "requires": { - "color-convert": "^1.9.0" - } - }, "argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -4957,9 +5174,9 @@ }, "dependencies": { "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true } } @@ -4988,6 +5205,11 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, + "baseline-browser-mapping": { + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.6.tgz", + "integrity": "sha512-wrH5NNqren/QMtKUEEJf7z86YjfqW/2uw3IL3/xpqZUC95SSVIFXYQeeGjL6FT/X68IROu6RMehZQS5foy2BXw==" + }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -5004,15 +5226,15 @@ "dev": true }, "browserslist": { - "version": "4.18.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.18.1.tgz", - "integrity": "sha512-8ScCzdpPwR2wQh8IT82CA2VgDwjHyqMovPBZSNH54+tm4Jk2pCuv90gmAdH6J84OCRWi0b4gMe6O6XPXuJnjgQ==", + "version": "4.26.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.2.tgz", + "integrity": "sha512-ECFzp6uFOSB+dcZ5BK/IBaGWssbSYBHvuMeMt3MMFyhI0Z8SqGgEkBLARgpRH3hutIgPVsALcMwbDrJqPxQ65A==", "requires": { - "caniuse-lite": "^1.0.30001280", - "electron-to-chromium": "^1.3.896", - "escalade": "^3.1.1", - "node-releases": "^2.0.1", - "picocolors": "^1.0.0" + "baseline-browser-mapping": "^2.8.3", + "caniuse-lite": "^1.0.30001741", + "electron-to-chromium": "^1.5.218", + "node-releases": "^2.0.21", + "update-browserslist-db": "^1.1.3" } }, "buffer-from": { @@ -5031,6 +5253,15 @@ "get-intrinsic": "^1.0.2" } }, + "call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "requires": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + } + }, "camelcase": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", @@ -5038,19 +5269,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001286", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001286.tgz", - "integrity": "sha512-zaEMRH6xg8ESMi2eQ3R4eZ5qw/hJiVsO/HlLwniIwErij0JDr9P+8V4dtx1l+kLq6j3yy8l8W4fst1lBnat5wQ==" - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } + "version": "1.0.30001745", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001745.tgz", + "integrity": "sha512-ywt6i8FzvdgrrrGbr1jZVObnVv6adj+0if2/omv9cmR2oiZs30zL4DIyaptKcbOrBdOIc74QTMoJvSE2QHh5UQ==" }, "chokidar": { "version": "3.5.2", @@ -5185,19 +5406,6 @@ } } }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" - }, "combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -5241,21 +5449,12 @@ "integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==" }, "core-js-compat": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.9.1.tgz", - "integrity": "sha512-jXAirMQxrkbiiLsCx9bQPJFA6llDadKMpYrBJQJ3/c4/vsPP/fAf29h24tviRlvwUL6AmY5CHLu2GvjuYviQqA==", + "version": "3.45.1", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.45.1.tgz", + "integrity": "sha512-tqTt5T4PzsMIZ430XGviK4vzYSoeNJ6CXODi6c/voxOT6IZqBht5/EKaSNnYiEjjRYxjVz7DQIsOsY0XNi8PIA==", "dev": true, "requires": { - "browserslist": "^4.16.3", - "semver": "7.0.0" - }, - "dependencies": { - "semver": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", - "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", - "dev": true - } + "browserslist": "^4.25.3" } }, "decamelize": { @@ -5284,10 +5483,20 @@ "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", "dev": true }, + "dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "requires": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + } + }, "electron-to-chromium": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.15.tgz", - "integrity": "sha512-WDw2IUL3k4QpbzInV3JZK+Zd1NjWJPDZ28oUSchWb/kf6AVj7/niaAlgcJlvojFa1d7pJSyQ/KSZsEtq5W7aGQ==" + "version": "1.5.223", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.223.tgz", + "integrity": "sha512-qKm55ic6nbEmagFlTFczML33rF90aU+WtrJ9MdTCThrcvDNdUHN4p6QfVN78U06ZmguqXIyMPyYhw2TrbDUwPQ==" }, "emoji-regex": { "version": "8.0.0", @@ -5295,15 +5504,39 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" + "es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==" + }, + "es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==" }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + "es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "requires": { + "es-errors": "^1.3.0" + } + }, + "es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "requires": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + } + }, + "escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==" }, "esutils": { "version": "2.0.3", @@ -5349,13 +5582,15 @@ "dev": true }, "form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.4.tgz", + "integrity": "sha512-f0cRzm6dkyVYV3nPoooP8XlccPQukegwhAnpoLcXy+X+A8KfpGOoXwDr9FLZd3wzgLaBGQBE3lY93Zm/i1JvIQ==", "requires": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.35" } }, "formidable": { @@ -5381,10 +5616,9 @@ "optional": true }, "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" }, "gensync": { "version": "1.0.0-beta.2", @@ -5398,14 +5632,29 @@ "dev": true }, "get-intrinsic": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", - "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", - "dev": true, + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "requires": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + } + }, + "get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1" + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" } }, "glob": { @@ -5424,7 +5673,13 @@ "globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + }, + "gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==" }, "growl": { "version": "1.10.5", @@ -5444,13 +5699,29 @@ "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true }, "has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==" + }, + "has-tostringtag": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", - "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", - "dev": true + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "requires": { + "has-symbols": "^1.0.3" + } + }, + "hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "requires": { + "function-bind": "^1.1.2" + } }, "he": { "version": "1.2.0", @@ -5529,9 +5800,9 @@ } }, "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==" }, "json5": { "version": "2.2.0", @@ -5635,14 +5906,6 @@ "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==", "dev": true }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" - } - }, "make-dir": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", @@ -5652,6 +5915,11 @@ "semver": "^5.6.0" } }, + "math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==" + }, "methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", @@ -5663,16 +5931,16 @@ "integrity": "sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg==" }, "mime-db": { - "version": "1.46.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.46.0.tgz", - "integrity": "sha512-svXaP8UQRZ5K7or+ZmfNhg2xX3yKDMUzqadsSqi4NCH/KomcH75MAMYAGVlvXn4+b/xOPhS3I2uHKRUzvjY7BQ==" + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" }, "mime-types": { - "version": "2.1.29", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.29.tgz", - "integrity": "sha512-Y/jMt/S5sR9OaqteJtslsFZKWOIIqMACsJSiHghlCAyhf7jfVYjKBmLiX8OgpWeW+fjJ2b+Az69aPFPkUOY6xQ==", + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "requires": { - "mime-db": "1.46.0" + "mime-db": "1.52.0" } }, "minimatch": { @@ -5684,9 +5952,9 @@ } }, "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" }, "mocha": { "version": "9.1.3", @@ -5846,9 +6114,9 @@ "dev": true }, "node-releases": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.1.tgz", - "integrity": "sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==" + "version": "2.0.21", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.21.tgz", + "integrity": "sha512-5b0pgg78U3hwXkCM8Z9b2FJdPZlr9Psr9V2gQPESdGHqbntyFJKFW4r5TeWGFzafGY3hzs1JC62VEQMbl1JFkw==" }, "normalize-path": { "version": "3.0.0", @@ -5941,9 +6209,9 @@ } }, "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" }, "picomatch": { "version": "2.3.0", @@ -6077,9 +6345,9 @@ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==" }, "serialize-javascript": { "version": "6.0.0", @@ -6197,12 +6465,9 @@ } }, "semver": { - "version": "7.3.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", - "requires": { - "lru-cache": "^6.0.0" - } + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==" } } }, @@ -6210,15 +6475,11 @@ "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, "requires": { "has-flag": "^3.0.0" } }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=" - }, "type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", @@ -6253,6 +6514,15 @@ "integrity": "sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==", "dev": true }, + "update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "requires": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + } + }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -6347,11 +6617,6 @@ "integrity": "sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg==", "dev": true }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", diff --git a/src/model/Employee.js b/src/model/Employee.js index 7343989..04634c4 100644 --- a/src/model/Employee.js +++ b/src/model/Employee.js @@ -149,6 +149,9 @@ class Employee { if (data.hasOwnProperty('remote_data')) { obj['remote_data'] = ApiClient.convertToType(data['remote_data'], [RemoteData]); } + if (data.hasOwnProperty('field_mappings')) { + obj['field_mappings'] = ApiClient.convertToType(data['field_mappings'], {'String': Object}); + } if (data.hasOwnProperty('custom_fields')) { obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], {'String': Object}); } @@ -333,6 +336,12 @@ Employee.prototype['avatar'] = undefined; */ Employee.prototype['remote_data'] = undefined; +/** + * The field mappings for the employee configured in Field Mappings Dashboard. + * @member {Object.} field_mappings + */ +Employee.prototype['field_mappings'] = undefined; + /** * Custom fields configured for a given model. * @member {Object.} custom_fields