@emilgroup/document-sdk 1.12.2 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/docx-templates-api.ts +4 -4
- package/api/product-documents-api.ts +12 -210
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +196 -0
- package/dist/api/document-templates-api.d.ts +385 -0
- package/dist/api/document-templates-api.js +636 -0
- package/dist/api/documents-api.d.ts +488 -0
- package/dist/api/documents-api.js +817 -0
- package/dist/api/docx-templates-api.d.ts +432 -0
- package/dist/api/docx-templates-api.js +722 -0
- package/dist/api/layouts-api.d.ts +385 -0
- package/dist/api/layouts-api.js +638 -0
- package/dist/api/product-documents-api.d.ts +401 -0
- package/dist/api/product-documents-api.js +647 -0
- package/dist/api/search-keywords-api.d.ts +96 -0
- package/dist/api/search-keywords-api.js +225 -0
- package/dist/api/searchable-document-owners-api.d.ts +141 -0
- package/dist/api/searchable-document-owners-api.js +254 -0
- package/dist/api/searchable-documents-api.d.ts +114 -0
- package/dist/api/searchable-documents-api.js +239 -0
- package/dist/api.d.ts +20 -0
- package/dist/api.js +38 -0
- package/dist/base.d.ts +74 -0
- package/dist/base.js +298 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +276 -0
- package/dist/configuration.d.ts +83 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/create-doc-template-request-dto.d.ts +55 -0
- package/dist/models/create-doc-template-request-dto.js +15 -0
- package/dist/models/create-doc-template-response-class.d.ts +25 -0
- package/dist/models/create-doc-template-response-class.js +15 -0
- package/dist/models/create-document-request-dto.d.ts +173 -0
- package/dist/models/create-document-request-dto.js +70 -0
- package/dist/models/create-document-sync-response-class.d.ts +25 -0
- package/dist/models/create-document-sync-response-class.js +15 -0
- package/dist/models/create-html-template-dto.d.ts +24 -0
- package/dist/models/create-html-template-dto.js +15 -0
- package/dist/models/create-layout-request-dto.d.ts +49 -0
- package/dist/models/create-layout-request-dto.js +15 -0
- package/dist/models/create-layout-response-class.d.ts +25 -0
- package/dist/models/create-layout-response-class.js +15 -0
- package/dist/models/create-presigned-post-request-dto.d.ts +134 -0
- package/dist/models/create-presigned-post-request-dto.js +52 -0
- package/dist/models/create-presigned-post-response-class.d.ts +30 -0
- package/dist/models/create-presigned-post-response-class.js +15 -0
- package/dist/models/delete-layout-request-dto.d.ts +24 -0
- package/dist/models/delete-layout-request-dto.js +15 -0
- package/dist/models/delete-product-document-request-dto.d.ts +30 -0
- package/dist/models/delete-product-document-request-dto.js +15 -0
- package/dist/models/delete-request-dto.d.ts +24 -0
- package/dist/models/delete-request-dto.js +15 -0
- package/dist/models/delete-response-class.d.ts +24 -0
- package/dist/models/delete-response-class.js +15 -0
- package/dist/models/doc-template-class.d.ts +92 -0
- package/dist/models/doc-template-class.js +15 -0
- package/dist/models/document-class.d.ts +169 -0
- package/dist/models/document-class.js +62 -0
- package/dist/models/docx-template-class.d.ts +101 -0
- package/dist/models/docx-template-class.js +26 -0
- package/dist/models/download-document-request-dto.d.ts +30 -0
- package/dist/models/download-document-request-dto.js +15 -0
- package/dist/models/get-doc-template-request-dto.d.ts +30 -0
- package/dist/models/get-doc-template-request-dto.js +15 -0
- package/dist/models/get-doc-template-response-class.d.ts +25 -0
- package/dist/models/get-doc-template-response-class.js +15 -0
- package/dist/models/get-document-download-url-response-class.d.ts +24 -0
- package/dist/models/get-document-download-url-response-class.js +15 -0
- package/dist/models/get-docx-template-download-url-response-class.d.ts +24 -0
- package/dist/models/get-docx-template-download-url-response-class.js +15 -0
- package/dist/models/get-docx-template-response-class.d.ts +25 -0
- package/dist/models/get-docx-template-response-class.js +15 -0
- package/dist/models/get-layout-request-dto.d.ts +24 -0
- package/dist/models/get-layout-request-dto.js +15 -0
- package/dist/models/get-layout-response-class.d.ts +25 -0
- package/dist/models/get-layout-response-class.js +15 -0
- package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
- package/dist/models/get-product-document-download-url-response-class.js +15 -0
- package/dist/models/get-product-document-response-class.d.ts +25 -0
- package/dist/models/get-product-document-response-class.js +15 -0
- package/dist/models/get-signed-s3-key-url-response-class.d.ts +24 -0
- package/dist/models/get-signed-s3-key-url-response-class.js +15 -0
- package/dist/models/grpc-create-doc-template-request-dto.d.ts +55 -0
- package/dist/models/grpc-create-doc-template-request-dto.js +15 -0
- package/dist/models/grpc-update-doc-template-request-dto.d.ts +61 -0
- package/dist/models/grpc-update-doc-template-request-dto.js +15 -0
- package/dist/models/html-template-class.d.ts +66 -0
- package/dist/models/html-template-class.js +21 -0
- package/dist/models/index.d.ts +61 -0
- package/dist/models/index.js +77 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/layout-class.d.ts +79 -0
- package/dist/models/layout-class.js +15 -0
- package/dist/models/list-doc-template-request-dto.d.ts +54 -0
- package/dist/models/list-doc-template-request-dto.js +15 -0
- package/dist/models/list-doc-templates-response-class.d.ts +31 -0
- package/dist/models/list-doc-templates-response-class.js +15 -0
- package/dist/models/list-documents-response-class.d.ts +31 -0
- package/dist/models/list-documents-response-class.js +15 -0
- package/dist/models/list-docx-templates-response-class.d.ts +31 -0
- package/dist/models/list-docx-templates-response-class.js +15 -0
- package/dist/models/list-layouts-response-class.d.ts +31 -0
- package/dist/models/list-layouts-response-class.js +15 -0
- package/dist/models/list-product-documents-response-class.d.ts +31 -0
- package/dist/models/list-product-documents-response-class.js +15 -0
- package/dist/models/list-request-dto.d.ts +54 -0
- package/dist/models/list-request-dto.js +15 -0
- package/dist/models/list-search-keywords-request-dto.d.ts +24 -0
- package/dist/models/list-search-keywords-request-dto.js +15 -0
- package/dist/models/list-search-keywords-response-class.d.ts +24 -0
- package/dist/models/list-search-keywords-response-class.js +15 -0
- package/dist/models/list-searchable-document-owners-request-dto.d.ts +31 -0
- package/dist/models/list-searchable-document-owners-request-dto.js +22 -0
- package/dist/models/list-searchable-document-owners-response-class.d.ts +25 -0
- package/dist/models/list-searchable-document-owners-response-class.js +15 -0
- package/dist/models/list-searchable-documents-request-dto.d.ts +43 -0
- package/dist/models/list-searchable-documents-request-dto.js +22 -0
- package/dist/models/list-searchable-documents-response-class.d.ts +31 -0
- package/dist/models/list-searchable-documents-response-class.js +15 -0
- package/dist/models/product-document-class.d.ts +134 -0
- package/dist/models/product-document-class.js +46 -0
- package/dist/models/searchable-document-class.d.ts +66 -0
- package/dist/models/searchable-document-class.js +15 -0
- package/dist/models/searchable-document-owner-class.d.ts +30 -0
- package/dist/models/searchable-document-owner-class.js +15 -0
- package/dist/models/shared-update-docx-template-request-dto.d.ts +36 -0
- package/dist/models/shared-update-docx-template-request-dto.js +15 -0
- package/dist/models/update-doc-template-request-dto.d.ts +61 -0
- package/dist/models/update-doc-template-request-dto.js +15 -0
- package/dist/models/update-doc-template-response-class.d.ts +25 -0
- package/dist/models/update-doc-template-response-class.js +15 -0
- package/dist/models/update-document-request-dto.d.ts +54 -0
- package/dist/models/update-document-request-dto.js +15 -0
- package/dist/models/update-document-response-class.d.ts +25 -0
- package/dist/models/update-document-response-class.js +15 -0
- package/dist/models/update-docx-template-response-class.d.ts +25 -0
- package/dist/models/update-docx-template-response-class.js +15 -0
- package/dist/models/update-html-template-dto.d.ts +42 -0
- package/dist/models/update-html-template-dto.js +21 -0
- package/dist/models/update-layout-request-dto.d.ts +55 -0
- package/dist/models/update-layout-request-dto.js +15 -0
- package/dist/models/update-layout-response-class.d.ts +25 -0
- package/dist/models/update-layout-response-class.js +15 -0
- package/dist/models/upload-docx-template-request-dto.d.ts +54 -0
- package/dist/models/upload-docx-template-request-dto.js +15 -0
- package/dist/models/upload-docx-template-response-class.d.ts +30 -0
- package/dist/models/upload-docx-template-response-class.js +15 -0
- package/dist/models/upload-product-document-request-dto.d.ts +75 -0
- package/dist/models/upload-product-document-request-dto.js +24 -0
- package/models/create-document-request-dto.ts +13 -1
- package/models/document-class.ts +13 -1
- package/models/docx-template-class.ts +15 -1
- package/models/index.ts +1 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/product-document-class.ts +27 -9
- package/models/upload-docx-template-response-class.ts +36 -0
- package/package.json +1 -1
|
@@ -0,0 +1,638 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL DocumentService
|
|
6
|
+
* The EMIL DocumentService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.LayoutsApi = exports.LayoutsApiFactory = exports.LayoutsApiFp = exports.LayoutsApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
/**
|
|
89
|
+
* LayoutsApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
* This will create a layout.
|
|
97
|
+
* @summary Create the layout
|
|
98
|
+
* @param {CreateLayoutRequestDto} createLayoutRequestDto
|
|
99
|
+
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
createLayout: function (createLayoutRequestDto, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
// verify required parameter 'createLayoutRequestDto' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createLayout', 'createLayoutRequestDto', createLayoutRequestDto);
|
|
112
|
+
localVarPath = "/documentservice/v1/layouts";
|
|
113
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
|
+
if (configuration) {
|
|
115
|
+
baseOptions = configuration.baseOptions;
|
|
116
|
+
baseAccessToken = configuration.accessToken;
|
|
117
|
+
}
|
|
118
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
119
|
+
localVarHeaderParameter = {};
|
|
120
|
+
localVarQueryParameter = {};
|
|
121
|
+
// authentication bearer required
|
|
122
|
+
// http bearer authentication required
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
124
|
+
case 1:
|
|
125
|
+
// authentication bearer required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
|
+
}
|
|
131
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createLayoutRequestDto, localVarRequestOptions, configuration);
|
|
136
|
+
return [2 /*return*/, {
|
|
137
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
|
+
options: localVarRequestOptions,
|
|
139
|
+
}];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
},
|
|
144
|
+
/**
|
|
145
|
+
* Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
|
|
146
|
+
* @summary Delete the layout
|
|
147
|
+
* @param {number} id
|
|
148
|
+
* @param {string} [authorization] Bearer Token
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
deleteLayout: function (id, authorization, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
158
|
+
case 0:
|
|
159
|
+
// verify required parameter 'id' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('deleteLayout', 'id', id);
|
|
161
|
+
localVarPath = "/documentservice/v1/layouts/{id}"
|
|
162
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
163
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
|
+
if (configuration) {
|
|
165
|
+
baseOptions = configuration.baseOptions;
|
|
166
|
+
baseAccessToken = configuration.accessToken;
|
|
167
|
+
}
|
|
168
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
169
|
+
localVarHeaderParameter = {};
|
|
170
|
+
localVarQueryParameter = {};
|
|
171
|
+
// authentication bearer required
|
|
172
|
+
// http bearer authentication required
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
174
|
+
case 1:
|
|
175
|
+
// authentication bearer required
|
|
176
|
+
// http bearer authentication required
|
|
177
|
+
_a.sent();
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
180
|
+
}
|
|
181
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
return [2 /*return*/, {
|
|
185
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
186
|
+
options: localVarRequestOptions,
|
|
187
|
+
}];
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
},
|
|
192
|
+
/**
|
|
193
|
+
* Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information.
|
|
194
|
+
* @summary Retrieve the layout
|
|
195
|
+
* @param {string} id
|
|
196
|
+
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
197
|
+
* @param {string} [authorization] Bearer Token
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
getLayout: function (id, id2, authorization, options) {
|
|
202
|
+
if (options === void 0) { options = {}; }
|
|
203
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
204
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
205
|
+
return __generator(this, function (_a) {
|
|
206
|
+
switch (_a.label) {
|
|
207
|
+
case 0:
|
|
208
|
+
// verify required parameter 'id' is not null or undefined
|
|
209
|
+
(0, common_1.assertParamExists)('getLayout', 'id', id);
|
|
210
|
+
// verify required parameter 'id2' is not null or undefined
|
|
211
|
+
(0, common_1.assertParamExists)('getLayout', 'id2', id2);
|
|
212
|
+
localVarPath = "/documentservice/v1/layouts/{id}"
|
|
213
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
214
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
215
|
+
if (configuration) {
|
|
216
|
+
baseOptions = configuration.baseOptions;
|
|
217
|
+
baseAccessToken = configuration.accessToken;
|
|
218
|
+
}
|
|
219
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
220
|
+
localVarHeaderParameter = {};
|
|
221
|
+
localVarQueryParameter = {};
|
|
222
|
+
// authentication bearer required
|
|
223
|
+
// http bearer authentication required
|
|
224
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
225
|
+
case 1:
|
|
226
|
+
// authentication bearer required
|
|
227
|
+
// http bearer authentication required
|
|
228
|
+
_a.sent();
|
|
229
|
+
if (id2 !== undefined) {
|
|
230
|
+
localVarQueryParameter['id'] = id2;
|
|
231
|
+
}
|
|
232
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
233
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
234
|
+
}
|
|
235
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
236
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
237
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
238
|
+
return [2 /*return*/, {
|
|
239
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
240
|
+
options: localVarRequestOptions,
|
|
241
|
+
}];
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
},
|
|
246
|
+
/**
|
|
247
|
+
* Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
248
|
+
* @summary List layouts
|
|
249
|
+
* @param {string} [authorization] Bearer Token
|
|
250
|
+
* @param {number} [pageSize] Page size
|
|
251
|
+
* @param {string} [pageToken] Page token
|
|
252
|
+
* @param {string} [filter] List filter
|
|
253
|
+
* @param {string} [search] Search query
|
|
254
|
+
* @param {string} [order] Ordering criteria
|
|
255
|
+
* @param {string} [expand] Extra fields to fetch
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
*/
|
|
259
|
+
listLayouts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
260
|
+
if (options === void 0) { options = {}; }
|
|
261
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
262
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
263
|
+
return __generator(this, function (_a) {
|
|
264
|
+
switch (_a.label) {
|
|
265
|
+
case 0:
|
|
266
|
+
localVarPath = "/documentservice/v1/layouts";
|
|
267
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
268
|
+
if (configuration) {
|
|
269
|
+
baseOptions = configuration.baseOptions;
|
|
270
|
+
baseAccessToken = configuration.accessToken;
|
|
271
|
+
}
|
|
272
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
273
|
+
localVarHeaderParameter = {};
|
|
274
|
+
localVarQueryParameter = {};
|
|
275
|
+
// authentication bearer required
|
|
276
|
+
// http bearer authentication required
|
|
277
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
278
|
+
case 1:
|
|
279
|
+
// authentication bearer required
|
|
280
|
+
// http bearer authentication required
|
|
281
|
+
_a.sent();
|
|
282
|
+
if (pageSize !== undefined) {
|
|
283
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
284
|
+
}
|
|
285
|
+
if (pageToken !== undefined) {
|
|
286
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
287
|
+
}
|
|
288
|
+
if (filter !== undefined) {
|
|
289
|
+
localVarQueryParameter['filter'] = filter;
|
|
290
|
+
}
|
|
291
|
+
if (search !== undefined) {
|
|
292
|
+
localVarQueryParameter['search'] = search;
|
|
293
|
+
}
|
|
294
|
+
if (order !== undefined) {
|
|
295
|
+
localVarQueryParameter['order'] = order;
|
|
296
|
+
}
|
|
297
|
+
if (expand !== undefined) {
|
|
298
|
+
localVarQueryParameter['expand'] = expand;
|
|
299
|
+
}
|
|
300
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
301
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
302
|
+
}
|
|
303
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
304
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
305
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
306
|
+
return [2 /*return*/, {
|
|
307
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
308
|
+
options: localVarRequestOptions,
|
|
309
|
+
}];
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
});
|
|
313
|
+
},
|
|
314
|
+
/**
|
|
315
|
+
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
316
|
+
* @summary Update the layout
|
|
317
|
+
* @param {number} id
|
|
318
|
+
* @param {UpdateLayoutRequestDto} updateLayoutRequestDto
|
|
319
|
+
* @param {string} [authorization] Bearer Token
|
|
320
|
+
* @param {*} [options] Override http request option.
|
|
321
|
+
* @throws {RequiredError}
|
|
322
|
+
*/
|
|
323
|
+
updateLayout: function (id, updateLayoutRequestDto, authorization, options) {
|
|
324
|
+
if (options === void 0) { options = {}; }
|
|
325
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
326
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
327
|
+
return __generator(this, function (_a) {
|
|
328
|
+
switch (_a.label) {
|
|
329
|
+
case 0:
|
|
330
|
+
// verify required parameter 'id' is not null or undefined
|
|
331
|
+
(0, common_1.assertParamExists)('updateLayout', 'id', id);
|
|
332
|
+
// verify required parameter 'updateLayoutRequestDto' is not null or undefined
|
|
333
|
+
(0, common_1.assertParamExists)('updateLayout', 'updateLayoutRequestDto', updateLayoutRequestDto);
|
|
334
|
+
localVarPath = "/documentservice/v1/layouts/{id}"
|
|
335
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
336
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
337
|
+
if (configuration) {
|
|
338
|
+
baseOptions = configuration.baseOptions;
|
|
339
|
+
baseAccessToken = configuration.accessToken;
|
|
340
|
+
}
|
|
341
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
342
|
+
localVarHeaderParameter = {};
|
|
343
|
+
localVarQueryParameter = {};
|
|
344
|
+
// authentication bearer required
|
|
345
|
+
// http bearer authentication required
|
|
346
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
347
|
+
case 1:
|
|
348
|
+
// authentication bearer required
|
|
349
|
+
// http bearer authentication required
|
|
350
|
+
_a.sent();
|
|
351
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
352
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
353
|
+
}
|
|
354
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
355
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
356
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
357
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
358
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateLayoutRequestDto, localVarRequestOptions, configuration);
|
|
359
|
+
return [2 /*return*/, {
|
|
360
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
361
|
+
options: localVarRequestOptions,
|
|
362
|
+
}];
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
});
|
|
366
|
+
},
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
exports.LayoutsApiAxiosParamCreator = LayoutsApiAxiosParamCreator;
|
|
370
|
+
/**
|
|
371
|
+
* LayoutsApi - functional programming interface
|
|
372
|
+
* @export
|
|
373
|
+
*/
|
|
374
|
+
var LayoutsApiFp = function (configuration) {
|
|
375
|
+
var localVarAxiosParamCreator = (0, exports.LayoutsApiAxiosParamCreator)(configuration);
|
|
376
|
+
return {
|
|
377
|
+
/**
|
|
378
|
+
* This will create a layout.
|
|
379
|
+
* @summary Create the layout
|
|
380
|
+
* @param {CreateLayoutRequestDto} createLayoutRequestDto
|
|
381
|
+
* @param {string} [authorization] Bearer Token
|
|
382
|
+
* @param {*} [options] Override http request option.
|
|
383
|
+
* @throws {RequiredError}
|
|
384
|
+
*/
|
|
385
|
+
createLayout: function (createLayoutRequestDto, authorization, options) {
|
|
386
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
387
|
+
var localVarAxiosArgs;
|
|
388
|
+
return __generator(this, function (_a) {
|
|
389
|
+
switch (_a.label) {
|
|
390
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createLayout(createLayoutRequestDto, authorization, options)];
|
|
391
|
+
case 1:
|
|
392
|
+
localVarAxiosArgs = _a.sent();
|
|
393
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
394
|
+
}
|
|
395
|
+
});
|
|
396
|
+
});
|
|
397
|
+
},
|
|
398
|
+
/**
|
|
399
|
+
* Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
|
|
400
|
+
* @summary Delete the layout
|
|
401
|
+
* @param {number} id
|
|
402
|
+
* @param {string} [authorization] Bearer Token
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
*/
|
|
406
|
+
deleteLayout: function (id, authorization, options) {
|
|
407
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
408
|
+
var localVarAxiosArgs;
|
|
409
|
+
return __generator(this, function (_a) {
|
|
410
|
+
switch (_a.label) {
|
|
411
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteLayout(id, authorization, options)];
|
|
412
|
+
case 1:
|
|
413
|
+
localVarAxiosArgs = _a.sent();
|
|
414
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
});
|
|
418
|
+
},
|
|
419
|
+
/**
|
|
420
|
+
* Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information.
|
|
421
|
+
* @summary Retrieve the layout
|
|
422
|
+
* @param {string} id
|
|
423
|
+
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
424
|
+
* @param {string} [authorization] Bearer Token
|
|
425
|
+
* @param {*} [options] Override http request option.
|
|
426
|
+
* @throws {RequiredError}
|
|
427
|
+
*/
|
|
428
|
+
getLayout: function (id, id2, authorization, options) {
|
|
429
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
430
|
+
var localVarAxiosArgs;
|
|
431
|
+
return __generator(this, function (_a) {
|
|
432
|
+
switch (_a.label) {
|
|
433
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLayout(id, id2, authorization, options)];
|
|
434
|
+
case 1:
|
|
435
|
+
localVarAxiosArgs = _a.sent();
|
|
436
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
});
|
|
440
|
+
},
|
|
441
|
+
/**
|
|
442
|
+
* Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
443
|
+
* @summary List layouts
|
|
444
|
+
* @param {string} [authorization] Bearer Token
|
|
445
|
+
* @param {number} [pageSize] Page size
|
|
446
|
+
* @param {string} [pageToken] Page token
|
|
447
|
+
* @param {string} [filter] List filter
|
|
448
|
+
* @param {string} [search] Search query
|
|
449
|
+
* @param {string} [order] Ordering criteria
|
|
450
|
+
* @param {string} [expand] Extra fields to fetch
|
|
451
|
+
* @param {*} [options] Override http request option.
|
|
452
|
+
* @throws {RequiredError}
|
|
453
|
+
*/
|
|
454
|
+
listLayouts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
455
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
456
|
+
var localVarAxiosArgs;
|
|
457
|
+
return __generator(this, function (_a) {
|
|
458
|
+
switch (_a.label) {
|
|
459
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
460
|
+
case 1:
|
|
461
|
+
localVarAxiosArgs = _a.sent();
|
|
462
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
});
|
|
466
|
+
},
|
|
467
|
+
/**
|
|
468
|
+
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
469
|
+
* @summary Update the layout
|
|
470
|
+
* @param {number} id
|
|
471
|
+
* @param {UpdateLayoutRequestDto} updateLayoutRequestDto
|
|
472
|
+
* @param {string} [authorization] Bearer Token
|
|
473
|
+
* @param {*} [options] Override http request option.
|
|
474
|
+
* @throws {RequiredError}
|
|
475
|
+
*/
|
|
476
|
+
updateLayout: function (id, updateLayoutRequestDto, authorization, options) {
|
|
477
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
478
|
+
var localVarAxiosArgs;
|
|
479
|
+
return __generator(this, function (_a) {
|
|
480
|
+
switch (_a.label) {
|
|
481
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLayout(id, updateLayoutRequestDto, authorization, options)];
|
|
482
|
+
case 1:
|
|
483
|
+
localVarAxiosArgs = _a.sent();
|
|
484
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
});
|
|
488
|
+
},
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
exports.LayoutsApiFp = LayoutsApiFp;
|
|
492
|
+
/**
|
|
493
|
+
* LayoutsApi - factory interface
|
|
494
|
+
* @export
|
|
495
|
+
*/
|
|
496
|
+
var LayoutsApiFactory = function (configuration, basePath, axios) {
|
|
497
|
+
var localVarFp = (0, exports.LayoutsApiFp)(configuration);
|
|
498
|
+
return {
|
|
499
|
+
/**
|
|
500
|
+
* This will create a layout.
|
|
501
|
+
* @summary Create the layout
|
|
502
|
+
* @param {CreateLayoutRequestDto} createLayoutRequestDto
|
|
503
|
+
* @param {string} [authorization] Bearer Token
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
createLayout: function (createLayoutRequestDto, authorization, options) {
|
|
508
|
+
return localVarFp.createLayout(createLayoutRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
509
|
+
},
|
|
510
|
+
/**
|
|
511
|
+
* Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
|
|
512
|
+
* @summary Delete the layout
|
|
513
|
+
* @param {number} id
|
|
514
|
+
* @param {string} [authorization] Bearer Token
|
|
515
|
+
* @param {*} [options] Override http request option.
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
deleteLayout: function (id, authorization, options) {
|
|
519
|
+
return localVarFp.deleteLayout(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
520
|
+
},
|
|
521
|
+
/**
|
|
522
|
+
* Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information.
|
|
523
|
+
* @summary Retrieve the layout
|
|
524
|
+
* @param {string} id
|
|
525
|
+
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
526
|
+
* @param {string} [authorization] Bearer Token
|
|
527
|
+
* @param {*} [options] Override http request option.
|
|
528
|
+
* @throws {RequiredError}
|
|
529
|
+
*/
|
|
530
|
+
getLayout: function (id, id2, authorization, options) {
|
|
531
|
+
return localVarFp.getLayout(id, id2, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
532
|
+
},
|
|
533
|
+
/**
|
|
534
|
+
* Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
535
|
+
* @summary List layouts
|
|
536
|
+
* @param {string} [authorization] Bearer Token
|
|
537
|
+
* @param {number} [pageSize] Page size
|
|
538
|
+
* @param {string} [pageToken] Page token
|
|
539
|
+
* @param {string} [filter] List filter
|
|
540
|
+
* @param {string} [search] Search query
|
|
541
|
+
* @param {string} [order] Ordering criteria
|
|
542
|
+
* @param {string} [expand] Extra fields to fetch
|
|
543
|
+
* @param {*} [options] Override http request option.
|
|
544
|
+
* @throws {RequiredError}
|
|
545
|
+
*/
|
|
546
|
+
listLayouts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
547
|
+
return localVarFp.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
548
|
+
},
|
|
549
|
+
/**
|
|
550
|
+
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
551
|
+
* @summary Update the layout
|
|
552
|
+
* @param {number} id
|
|
553
|
+
* @param {UpdateLayoutRequestDto} updateLayoutRequestDto
|
|
554
|
+
* @param {string} [authorization] Bearer Token
|
|
555
|
+
* @param {*} [options] Override http request option.
|
|
556
|
+
* @throws {RequiredError}
|
|
557
|
+
*/
|
|
558
|
+
updateLayout: function (id, updateLayoutRequestDto, authorization, options) {
|
|
559
|
+
return localVarFp.updateLayout(id, updateLayoutRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
560
|
+
},
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
exports.LayoutsApiFactory = LayoutsApiFactory;
|
|
564
|
+
/**
|
|
565
|
+
* LayoutsApi - object-oriented interface
|
|
566
|
+
* @export
|
|
567
|
+
* @class LayoutsApi
|
|
568
|
+
* @extends {BaseAPI}
|
|
569
|
+
*/
|
|
570
|
+
var LayoutsApi = /** @class */ (function (_super) {
|
|
571
|
+
__extends(LayoutsApi, _super);
|
|
572
|
+
function LayoutsApi() {
|
|
573
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* This will create a layout.
|
|
577
|
+
* @summary Create the layout
|
|
578
|
+
* @param {LayoutsApiCreateLayoutRequest} requestParameters Request parameters.
|
|
579
|
+
* @param {*} [options] Override http request option.
|
|
580
|
+
* @throws {RequiredError}
|
|
581
|
+
* @memberof LayoutsApi
|
|
582
|
+
*/
|
|
583
|
+
LayoutsApi.prototype.createLayout = function (requestParameters, options) {
|
|
584
|
+
var _this = this;
|
|
585
|
+
return (0, exports.LayoutsApiFp)(this.configuration).createLayout(requestParameters.createLayoutRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
586
|
+
};
|
|
587
|
+
/**
|
|
588
|
+
* Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
|
|
589
|
+
* @summary Delete the layout
|
|
590
|
+
* @param {LayoutsApiDeleteLayoutRequest} requestParameters Request parameters.
|
|
591
|
+
* @param {*} [options] Override http request option.
|
|
592
|
+
* @throws {RequiredError}
|
|
593
|
+
* @memberof LayoutsApi
|
|
594
|
+
*/
|
|
595
|
+
LayoutsApi.prototype.deleteLayout = function (requestParameters, options) {
|
|
596
|
+
var _this = this;
|
|
597
|
+
return (0, exports.LayoutsApiFp)(this.configuration).deleteLayout(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
598
|
+
};
|
|
599
|
+
/**
|
|
600
|
+
* Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information.
|
|
601
|
+
* @summary Retrieve the layout
|
|
602
|
+
* @param {LayoutsApiGetLayoutRequest} requestParameters Request parameters.
|
|
603
|
+
* @param {*} [options] Override http request option.
|
|
604
|
+
* @throws {RequiredError}
|
|
605
|
+
* @memberof LayoutsApi
|
|
606
|
+
*/
|
|
607
|
+
LayoutsApi.prototype.getLayout = function (requestParameters, options) {
|
|
608
|
+
var _this = this;
|
|
609
|
+
return (0, exports.LayoutsApiFp)(this.configuration).getLayout(requestParameters.id, requestParameters.id2, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
610
|
+
};
|
|
611
|
+
/**
|
|
612
|
+
* Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
613
|
+
* @summary List layouts
|
|
614
|
+
* @param {LayoutsApiListLayoutsRequest} requestParameters Request parameters.
|
|
615
|
+
* @param {*} [options] Override http request option.
|
|
616
|
+
* @throws {RequiredError}
|
|
617
|
+
* @memberof LayoutsApi
|
|
618
|
+
*/
|
|
619
|
+
LayoutsApi.prototype.listLayouts = function (requestParameters, options) {
|
|
620
|
+
var _this = this;
|
|
621
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
622
|
+
return (0, exports.LayoutsApiFp)(this.configuration).listLayouts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
623
|
+
};
|
|
624
|
+
/**
|
|
625
|
+
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
626
|
+
* @summary Update the layout
|
|
627
|
+
* @param {LayoutsApiUpdateLayoutRequest} requestParameters Request parameters.
|
|
628
|
+
* @param {*} [options] Override http request option.
|
|
629
|
+
* @throws {RequiredError}
|
|
630
|
+
* @memberof LayoutsApi
|
|
631
|
+
*/
|
|
632
|
+
LayoutsApi.prototype.updateLayout = function (requestParameters, options) {
|
|
633
|
+
var _this = this;
|
|
634
|
+
return (0, exports.LayoutsApiFp)(this.configuration).updateLayout(requestParameters.id, requestParameters.updateLayoutRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
635
|
+
};
|
|
636
|
+
return LayoutsApi;
|
|
637
|
+
}(base_1.BaseAPI));
|
|
638
|
+
exports.LayoutsApi = LayoutsApi;
|