UNPKG

@matech/thebigpos-sdk

Version:
1,062 lines 127 kB
/* eslint-disable */ /* tslint:disable */ /* * --------------------------------------------------------------- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## * ## ## * ## AUTHOR: acacode ## * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## * --------------------------------------------------------------- */ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; import axios from "axios"; export var ContentType; (function (ContentType) { ContentType["Json"] = "application/json"; ContentType["FormData"] = "multipart/form-data"; ContentType["UrlEncoded"] = "application/x-www-form-urlencoded"; ContentType["Text"] = "text/plain"; })(ContentType || (ContentType = {})); export class HttpClient { constructor(_a = {}) { var { securityWorker, secure, format } = _a, axiosConfig = __rest(_a, ["securityWorker", "secure", "format"]); this.securityData = null; this.setSecurityData = (data) => { this.securityData = data; }; this.request = (_a) => __awaiter(this, void 0, void 0, function* () { var { secure, path, type, query, format, body } = _a, params = __rest(_a, ["secure", "path", "type", "query", "format", "body"]); const secureParams = ((typeof secure === "boolean" ? secure : this.secure) && this.securityWorker && (yield this.securityWorker(this.securityData))) || {}; const requestParams = this.mergeRequestParams(params, secureParams); const responseFormat = format || this.format || undefined; if (type === ContentType.FormData && body && body !== null && typeof body === "object") { body = this.createFormData(body); } if (type === ContentType.Text && body && body !== null && typeof body !== "string") { body = JSON.stringify(body); } return this.instance.request(Object.assign(Object.assign({}, requestParams), { headers: Object.assign(Object.assign({}, (requestParams.headers || {})), (type ? { "Content-Type": type } : {})), params: query, responseType: responseFormat, data: body, url: path })); }); this.instance = axios.create(Object.assign(Object.assign({}, axiosConfig), { baseURL: axiosConfig.baseURL || "" })); this.secure = secure; this.format = format; this.securityWorker = securityWorker; } mergeRequestParams(params1, params2) { const method = params1.method || (params2 && params2.method); return Object.assign(Object.assign(Object.assign(Object.assign({}, this.instance.defaults), params1), (params2 || {})), { headers: Object.assign(Object.assign(Object.assign({}, ((method && this.instance.defaults.headers[method.toLowerCase()]) || {})), (params1.headers || {})), ((params2 && params2.headers) || {})) }); } stringifyFormItem(formItem) { if (typeof formItem === "object" && formItem !== null) { return JSON.stringify(formItem); } else { return `${formItem}`; } } createFormData(input) { if (input instanceof FormData) { return input; } return Object.keys(input || {}).reduce((formData, key) => { const property = input[key]; const propertyContent = property instanceof Array ? property : [property]; for (const formItem of propertyContent) { const isFileType = formItem instanceof Blob || formItem instanceof File; formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem)); } return formData; }, new FormData()); } } /** * @title The Big POS API * @version v2.15.4 * @termsOfService https://www.thebigpos.com/terms-of-use/ * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/) */ export class Api extends HttpClient { constructor() { super(...arguments); /** * No description * * @tags Saml * @name PostRoot * @request POST:/ * @secure */ this.postRoot = (params = {}) => this.request(Object.assign({ path: `/`, method: "POST", secure: true }, params)); this.api = { /** * No description * * @tags Account * @name GetMyAccount * @summary Get * @request GET:/api/account * @secure */ getMyAccount: (params = {}) => this.request(Object.assign({ path: `/api/account`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Account * @name ReplaceMyAccount * @summary Replace * @request PUT:/api/account * @secure */ replaceMyAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Account * @name GetSiteConfigurationByAccount * @summary Get Site Configuration * @request GET:/api/account/site-configurations * @secure */ getSiteConfigurationByAccount: (params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Account * @name UpdateSiteConfigurationForAccount * @summary Update Site Configuration * @request PUT:/api/account/site-configurations * @secure */ updateSiteConfigurationForAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Accounts * @name GetAccounts * @summary Get All * @request GET:/api/accounts * @secure */ getAccounts: (params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Accounts * @name CreateAccount * @summary Create * @request POST:/api/accounts * @secure */ createAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Accounts * @name GetAccount * @summary Get by ID * @request GET:/api/accounts/{id} * @secure */ getAccount: (id, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Accounts * @name DeleteAccount * @summary Delete * @request DELETE:/api/accounts/{id} * @secure */ deleteAccount: (id, query, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}`, method: "DELETE", query: query, secure: true, format: "json" }, params)), /** * No description * * @tags Accounts * @name UpdateLoansByAccount * @summary Update Loans * @request PUT:/api/accounts/{id}/loan * @secure */ updateLoansByAccount: (id, data, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/loan`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)), /** * No description * * @tags Accounts * @name GetLoansByAccount * @summary Get Loans * @request GET:/api/accounts/{id}/loan * @secure */ getLoansByAccount: (id, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/loan`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Authentication * @name GetTokenFromRefreshToken * @summary Generate Token From Refresh Token * @request POST:/api/refresh-token * @secure */ getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Authentication * @name GetToken * @summary Get Token * @request POST:/api/token * @secure */ getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Authentication * @name GetTokenFromChallengeCode * @summary Get Token From Challenge Code * @request POST:/api/token/code * @secure */ getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Authentication * @name GetSystemToken * @summary Get System Token * @request POST:/api/oauth2/token * @secure */ getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Authentication * @name GetSsoToken * @summary Get SSO Guid Token * @request POST:/api/token/sso * @secure */ getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Branches * @name GetBranches * @summary Get All * @request GET:/api/branches * @secure */ getBranches: (query, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "GET", query: query, secure: true, format: "json" }, params)), /** * No description * * @tags Branches * @name CreateBranch * @summary Create * @request POST:/api/branches * @secure */ createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Branches * @name SearchBranches * @summary Search * @request POST:/api/branches/search * @secure */ searchBranches: (data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Branches * @name GetBranch * @summary Get by ID * @request GET:/api/branches/{branchId} * @secure */ getBranch: (branchId, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Branches * @name ReplaceBranch * @summary Replace * @request PUT:/api/branches/{branchId} * @secure */ replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Branches * @name DeleteBranch * @summary Delete * @request DELETE:/api/branches/{branchId} * @secure */ deleteBranch: (branchId, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "DELETE", secure: true }, params)), /** * No description * * @tags Branches * @name RestoreBranch * @summary Restore * @request POST:/api/branches/{branchId}/restore * @secure */ restoreBranch: (branchId, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/restore`, method: "POST", secure: true }, params)), /** * No description * * @tags Branches * @name CreateBranchSiteConfiguration * @summary Create Branch Site Configuration * @request POST:/api/branches/{branchId}/site-configurations * @secure */ createBranchSiteConfiguration: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Branches * @name GetBranchSiteConfiguration * @summary Get Branch Site Configuration * @request GET:/api/branches/{branchId}/site-configurations/{siteConfigurationId} * @secure */ getBranchSiteConfiguration: (branchId, siteConfigurationId, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations/${siteConfigurationId}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Branches * @name ReplaceBranchSiteConfiguration * @summary Replace Branch Site Configuration * @request PUT:/api/branches/{branchId}/site-configurations/{siteConfigurationId} * @secure */ replaceBranchSiteConfiguration: (branchId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Branches * @name GetLoanOfficersByBranch * @summary Get Branch Loan Officers * @request GET:/api/branches/{branchId}/loan-officers * @secure */ getLoanOfficersByBranch: (branchId, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/loan-officers`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags BusinessRules * @name GetBusinessRules * @summary Get All * @request GET:/api/business-rules * @secure */ getBusinessRules: (query, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "GET", query: query, secure: true, format: "json" }, params)), /** * No description * * @tags BusinessRules * @name CreateBusinessRule * @summary Create * @request POST:/api/business-rules * @secure */ createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags BusinessRules * @name GetBusinessRule * @summary Get by ID * @request GET:/api/business-rules/{id} * @secure */ getBusinessRule: (id, params = {}) => this.request(Object.assign({ path: `/api/business-rules/${id}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags BusinessRules * @name ReplaceBusinessRule * @summary Replace * @request PUT:/api/business-rules/{id} * @secure */ replaceBusinessRule: (id, data, params = {}) => this.request(Object.assign({ path: `/api/business-rules/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags BusinessRules * @name DeleteBusinessRule * @summary Delete * @request DELETE:/api/business-rules/{id} * @secure */ deleteBusinessRule: (id, params = {}) => this.request(Object.assign({ path: `/api/business-rules/${id}`, method: "DELETE", secure: true }, params)), /** * No description * * @tags BusinessRules * @name RestoreBusinessRule * @summary Restore * @request POST:/api/business-rules/{id}/restore * @secure */ restoreBusinessRule: (id, params = {}) => this.request(Object.assign({ path: `/api/business-rules/${id}/restore`, method: "POST", secure: true, format: "json" }, params)), /** * No description * * @tags Corporates * @name GetCorporates * @summary Get All * @request GET:/api/corporates * @secure */ getCorporates: (query, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "GET", query: query, secure: true, format: "json" }, params)), /** * No description * * @tags Corporates * @name CreateCorporate * @summary Create * @request POST:/api/corporates * @secure */ createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Corporates * @name SearchCorporate * @summary Search * @request POST:/api/corporates/search * @secure */ searchCorporate: (data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Corporates * @name GetCorporate * @summary Get by ID * @request GET:/api/corporates/{id} * @secure */ getCorporate: (id, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Corporates * @name ReplaceCorporate * @summary Replace * @request PUT:/api/corporates/{id} * @secure */ replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Corporates * @name DeleteCorporate * @summary Delete * @request DELETE:/api/corporates/{id} * @secure */ deleteCorporate: (id, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "DELETE", secure: true }, params)), /** * No description * * @tags Corporates * @name RestoreCorporate * @summary Restore * @request POST:/api/corporates/{id}/restore * @secure */ restoreCorporate: (id, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}/restore`, method: "POST", secure: true }, params)), /** * No description * * @tags Corporates * @name CreateCorporateSiteConfiguration * @summary Create Site Configuration * @request POST:/api/corporates/{corporateId}/site-configurations * @secure */ createCorporateSiteConfiguration: (corporateId, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Corporates * @name GetCorporateSiteConfiguration * @summary Get Site Configuration * @request GET:/api/corporates/{corporateId}/site-configurations/{siteConfigurationId} * @secure */ getCorporateSiteConfiguration: (corporateId, siteConfigurationId, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations/${siteConfigurationId}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Corporates * @name ReplaceCorporateSiteConfiguration * @summary Replace Site Configuration * @request PUT:/api/corporates/{corporateId}/site-configurations/{siteConfigurationId} * @secure */ replaceCorporateSiteConfiguration: (corporateId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Corporates * @name GetBranchesByCorporate * @summary Get Branches * @request GET:/api/corporates/{id}/branches * @secure */ getBranchesByCorporate: (id, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}/branches`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Corporates * @name GetLoanOfficersByCorporate * @summary Get Loan Officers * @request GET:/api/corporates/{id}/loan-officers * @secure */ getLoanOfficersByCorporate: (id, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}/loan-officers`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Devices * @name GetDevices * @summary Get All * @request GET:/api/devices * @secure */ getDevices: (query, params = {}) => this.request(Object.assign({ path: `/api/devices`, method: "GET", query: query, secure: true, format: "json" }, params)), /** * No description * * @tags Devices * @name GetDevice * @summary Get by ID * @request GET:/api/devices/{id} * @secure */ getDevice: (id, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Devices * @name UpdateDevice * @summary Update * @request PUT:/api/devices/{id} * @secure */ updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Devices * @name GetDeviceBySerialNumber * @summary Get by Serial Number * @request GET:/api/devices/{sn}/profile * @secure */ getDeviceBySerialNumber: (sn, params = {}) => this.request(Object.assign({ path: `/api/devices/${sn}/profile`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Devices * @name CreateDeviceActionBySerialNumber * @summary Create Action by Serial Number * @request POST:/api/devices/{sn}/actions/{actionName} * @secure */ createDeviceActionBySerialNumber: (sn, actionName, params = {}) => this.request(Object.assign({ path: `/api/devices/${sn}/actions/${actionName}`, method: "POST", secure: true, format: "json" }, params)), /** * No description * * @tags DocumentBuckets * @name GetDocumentBuckets * @summary Get All * @request GET:/api/document-buckets * @secure */ getDocumentBuckets: (query, params = {}) => this.request(Object.assign({ path: `/api/document-buckets`, method: "GET", query: query, secure: true, format: "json" }, params)), /** * No description * * @tags DocumentTemplates * @name GetDocumentTemplates * @summary Get All * @request GET:/api/document-templates * @secure */ getDocumentTemplates: (query, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "GET", query: query, secure: true, format: "json" }, params)), /** * No description * * @tags DocumentTemplates * @name CreateDocumentTemplate * @summary Create * @request POST:/api/document-templates * @secure */ createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags DocumentTemplates * @name GetCustomDocumentTemplates * @summary Get Custom * @request GET:/api/document-templates/{type} * @secure */ getCustomDocumentTemplates: (type, query, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${type}`, method: "GET", query: query, secure: true, format: "json" }, params)), /** * No description * * @tags DocumentTemplates * @name GetDocumentTemplate * @summary Get By ID * @request GET:/api/document-templates/{id} * @secure */ getDocumentTemplate: (id, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${id}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags DocumentTemplates * @name ReplaceDocumentTemplate * @summary Replace * @request PUT:/api/document-templates/{id} * @secure */ replaceDocumentTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags DocumentTemplates * @name DeleteDocumentTemplate * @summary Delete * @request DELETE:/api/document-templates/{id} * @secure */ deleteDocumentTemplate: (id, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${id}`, method: "DELETE", secure: true }, params)), /** * No description * * @tags DocumentTemplates * @name RestoreDocumentTemplate * @summary Restore * @request POST:/api/document-templates/{id}/restore * @secure */ restoreDocumentTemplate: (id, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${id}/restore`, method: "POST", secure: true }, params)), /** * No description * * @tags DocumentTemplateVersions * @name GetDocumentTemplateVersions * @summary Get All * @request GET:/api/document-templates/{documentId}/versions * @secure */ getDocumentTemplateVersions: (documentId, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags DocumentTemplateVersions * @name CreateDocumentTemplateVersion * @summary Create * @request POST:/api/document-templates/{documentId}/versions * @secure */ createDocumentTemplateVersion: (documentId, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags DocumentTemplateVersions * @name GetDocumentTemplateVersion * @summary Get by ID * @request GET:/api/document-templates/{documentId}/versions/{id} * @secure */ getDocumentTemplateVersion: (documentId, id, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions/${id}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags DocumentTemplateVersions * @name ReplaceDocumentTemplateVersion * @summary Replace * @request PUT:/api/document-templates/{documentId}/versions/{id} * @secure */ replaceDocumentTemplateVersion: (documentId, id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags DocumentTemplateVersions * @name DeleteDocumentTemplateVersion * @summary Delete * @request DELETE:/api/document-templates/{documentId}/versions/{id} * @secure */ deleteDocumentTemplateVersion: (documentId, id, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions/${id}`, method: "DELETE", secure: true, format: "json" }, params)), /** * No description * * @tags Files * @name GetAllFiles * @summary Get All * @request GET:/api/files * @secure */ getAllFiles: (query, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "GET", query: query, secure: true, format: "json" }, params)), /** * No description * * @tags Files * @name UploadFile * @summary Upload * @request POST:/api/files * @secure */ uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)), /** * No description * * @tags Files * @name GetFileById * @summary Get By ID * @request GET:/api/files/{id} * @secure */ getFileById: (id, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Files * @name ReplaceFile * @summary Replace * @request PUT:/api/files/{id} * @secure */ replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Files * @name DeleteFile * @summary Delete * @request DELETE:/api/files/{id} * @secure */ deleteFile: (id, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "DELETE", secure: true }, params)), /** * No description * * @tags Files * @name SearchFiles * @summary Search * @request POST:/api/files/search * @secure */ searchFiles: (data, query, params = {}) => this.request(Object.assign({ path: `/api/files/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Forms * @name GetForms * @summary Get All * @request GET:/api/forms * @secure */ getForms: (query, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "GET", query: query, secure: true, format: "json" }, params)), /** * No description * * @tags Forms * @name CreateForm * @summary Create * @request POST:/api/forms * @secure */ createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Forms * @name GetForm * @summary Get By ID * @request GET:/api/forms/{id} * @secure */ getForm: (id, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags Forms * @name ReplaceForm * @summary Replace * @request PUT:/api/forms/{id} * @secure */ replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Forms * @name DeleteForm * @summary Delete * @request DELETE:/api/forms/{id} * @secure */ deleteForm: (id, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "DELETE", secure: true }, params)), /** * No description * * @tags Forms * @name RestoreForm * @summary Restore * @request POST:/api/forms/{id}/restore * @secure */ restoreForm: (id, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}/restore`, method: "POST", secure: true, format: "json" }, params)), /** * No description * * @tags Forms * @name AddFormToSiteConfiguration * @summary Add to Site Configuration * @request POST:/api/forms/{formId}/site-configurations/{siteConfigurationId} * @secure */ addFormToSiteConfiguration: (formId, siteConfigurationId, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/site-configurations/${siteConfigurationId}`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags Forms * @name RemoveFormFromSiteConfiguration * @summary Remove from Site Configuration * @request DELETE:/api/forms/{formId}/site-configurations/{siteConfigurationId} * @secure */ removeFormFromSiteConfiguration: (formId, siteConfigurationId, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/site-configurations/${siteConfigurationId}`, method: "DELETE", secure: true, format: "json" }, params)), /** * No description * * @tags Forms * @name GetSiteConfigurationsByForm * @summary Get Site Configurations by Form * @request GET:/api/forms/{formId}/site-configurations * @secure */ getSiteConfigurationsByForm: (formId, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/site-configurations`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags FormSubmissionFiles * @name AddFormSubmissionFile * @summary Add * @request POST:/api/form-submissions/{formSubmissionId}/files * @secure */ addFormSubmissionFile: (formSubmissionId, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${formSubmissionId}/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)), /** * No description * * @tags FormSubmissionFiles * @name DeleteFormSubmissionFile * @summary Delete * @request DELETE:/api/form-submissions/{formSubmissionId}/files/{formSubmissionFileId} * @secure */ deleteFormSubmissionFile: (formSubmissionFileId, formSubmissionId, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${formSubmissionId}/files/${formSubmissionFileId}`, method: "DELETE", secure: true }, params)), /** * No description * * @tags FormSubmissionFiles * @name DownloadFormSubmissionFile * @summary Download by Id * @request GET:/api/form-submissions/{formSubmissionId}/files/{formSubmissionFileId}/download * @secure */ downloadFormSubmissionFile: (formSubmissionFileId, formSubmissionId, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${formSubmissionId}/files/${formSubmissionFileId}/download`, method: "GET", query: query, secure: true, format: "json" }, params)), /** * No description * * @tags FormSubmissions * @name GetFormSubmissions * @summary Get All * @request GET:/api/form-submissions * @secure */ getFormSubmissions: (query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions`, method: "GET", query: query, secure: true, format: "json" }, params)), /** * No description * * @tags FormSubmissions * @name CreateFormSubmission * @summary Create * @request POST:/api/form-submissions * @secure */ createFormSubmission: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags FormSubmissions * @name GetFormSubmission * @summary Get by ID * @request GET:/api/form-submissions/{id} * @secure */ getFormSubmission: (id, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags FormSubmissions * @name ReplaceFormSubmission * @summary Replace * @request PUT:/api/form-submissions/{id} * @secure */ replaceFormSubmission: (id, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags FormSubmissions * @name DeleteFormSubmission * @summary Delete * @request DELETE:/api/form-submissions/{id} * @secure */ deleteFormSubmission: (id, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "DELETE", secure: true }, params)), /** * No description * * @tags FormSubmissions * @name SearchFormSubmissions * @summary Search * @request POST:/api/form-submissions/search * @secure */ searchFormSubmissions: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags FormVersions * @name GetFormVersions * @summary Get All * @request GET:/api/forms/{formId}/versions * @secure */ getFormVersions: (formId, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags FormVersions * @name CreateFormVersion * @summary Create * @request POST:/api/forms/{formId}/versions * @secure */ createFormVersion: (formId, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags FormVersions * @name GetFormVersion * @summary Get by ID * @request GET:/api/forms/{formId}/versions/{id} * @secure */ getFormVersion: (formId, id, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions/${id}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags FormVersions * @name ReplaceFormVersion * @summary Replace * @request PUT:/api/forms/{formId}/versions/{id} * @secure */ replaceFormVersion: (formId, id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags FormVersions * @name DeleteFormVersion * @summary Delete * @request DELETE:/api/forms/{formId}/versions/{id} * @secure */ deleteFormVersion: (formId, id, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions/${id}`, method: "DELETE", secure: true, format: "json" }, params)), /** * No description * * @tags LegacyLoan * @name GetLoanData * @summary Get By ID * @request GET:/api/los/loan/application/{loanID} * @secure */ getLoanData: (loanId, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "GET", secure: true, format: "json" }, params)), /** * No description * * @tags LegacyLoan * @name UpdateLoan * @summary Update Loan * @request PATCH:/api/los/loan/application/{loanID} * @secure */ updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags LegacyLoan * @name GetLoansReport * @summary Get Report * @request POST:/api/los/loan/reports * @secure */ getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)), /** * No description * * @tags LegacyLoan * @name CreateLoan * @summary Create Loan * @request POST:/api/los/loan/application * @secure */ createLoan: (data, params = {}) => this.request(Object.assign({