@kommerz/ts-client 1.188.0 → 1.190.0
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/dist/apis/AcceptancePortalDocumentsApi.d.ts +17 -27
- package/dist/apis/AcceptancePortalDocumentsApi.js +30 -75
- package/dist/apis/AttributeTypesApi.d.ts +121 -0
- package/dist/apis/AttributeTypesApi.js +387 -0
- package/dist/apis/FileDirectorySharesApi.d.ts +26 -10
- package/dist/apis/FileDirectorySharesApi.js +40 -20
- package/dist/apis/FormsPortalApi.d.ts +12 -4
- package/dist/apis/FormsPortalApi.js +20 -8
- package/dist/apis/InvoicePortalApi.d.ts +4 -18
- package/dist/apis/InvoicePortalApi.js +5 -62
- package/dist/apis/TenantPortalApi.d.ts +35 -0
- package/dist/apis/TenantPortalApi.js +138 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AttributeTypeDto.d.ts +51 -0
- package/dist/models/AttributeTypeDto.js +66 -0
- package/dist/models/CustomerDto.d.ts +8 -0
- package/dist/models/CustomerDto.js +4 -0
- package/dist/models/EntityAttributeDto.d.ts +49 -0
- package/dist/models/EntityAttributeDto.js +68 -0
- package/dist/models/EntityType.d.ts +1 -0
- package/dist/models/EntityType.js +1 -0
- package/dist/models/FileDetailsDto.d.ts +8 -0
- package/dist/models/FileDetailsDto.js +4 -0
- package/dist/models/GetAllAttributeTypes200Response.d.ts +42 -0
- package/dist/models/GetAllAttributeTypes200Response.js +59 -0
- package/dist/models/InvoicePortalDocumentDto.d.ts +5 -0
- package/dist/models/InvoicePortalDocumentDto.js +3 -0
- package/dist/models/Permissions.d.ts +4 -0
- package/dist/models/Permissions.js +4 -0
- package/dist/models/ProductDto.d.ts +8 -0
- package/dist/models/ProductDto.js +4 -0
- package/dist/models/PublicShareListingDto.d.ts +4 -0
- package/dist/models/PublicShareListingDto.js +4 -0
- package/dist/models/PublicTenantLegalInfoDto.d.ts +53 -0
- package/dist/models/PublicTenantLegalInfoDto.js +60 -0
- package/dist/models/PublicTenantPageDto.d.ts +52 -0
- package/dist/models/PublicTenantPageDto.js +65 -0
- package/dist/models/TenantConfigurationDto.d.ts +4 -0
- package/dist/models/TenantConfigurationDto.js +2 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Kommerz API Specification
|
|
6
|
+
* API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
|
|
7
|
+
*
|
|
8
|
+
* Contact: info@kommerz.app
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = function (d, b) {
|
|
16
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
+
return extendStatics(d, b);
|
|
20
|
+
};
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
if (typeof b !== "function" && b !== null)
|
|
23
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
+
extendStatics(d, b);
|
|
25
|
+
function __() { this.constructor = d; }
|
|
26
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
39
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
40
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
41
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
|
+
function step(op) {
|
|
43
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
|
+
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;
|
|
46
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
|
+
switch (op[0]) {
|
|
48
|
+
case 0: case 1: t = op; break;
|
|
49
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
50
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
51
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
52
|
+
default:
|
|
53
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
54
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
55
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
56
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
57
|
+
if (t[2]) _.ops.pop();
|
|
58
|
+
_.trys.pop(); continue;
|
|
59
|
+
}
|
|
60
|
+
op = body.call(thisArg, _);
|
|
61
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
62
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
|
+
exports.AttributeTypesApi = void 0;
|
|
67
|
+
var runtime = require("../runtime");
|
|
68
|
+
var AttributeTypeDto_1 = require("../models/AttributeTypeDto");
|
|
69
|
+
var GetAllAttributeTypes200Response_1 = require("../models/GetAllAttributeTypes200Response");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var AttributeTypesApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(AttributeTypesApi, _super);
|
|
75
|
+
function AttributeTypesApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for createAttributeType without sending the request
|
|
80
|
+
*/
|
|
81
|
+
AttributeTypesApi.prototype.createAttributeTypeRequestOpts = function (requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
if (requestParameters['attributeTypeDto'] == null) {
|
|
86
|
+
throw new runtime.RequiredError('attributeTypeDto', 'Required parameter "attributeTypeDto" was null or undefined when calling createAttributeType().');
|
|
87
|
+
}
|
|
88
|
+
queryParameters = {};
|
|
89
|
+
headerParameters = {};
|
|
90
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
91
|
+
urlPath = "/ui/attribute-types/v1";
|
|
92
|
+
return [2 /*return*/, {
|
|
93
|
+
path: urlPath,
|
|
94
|
+
method: 'POST',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
body: (0, AttributeTypeDto_1.AttributeTypeDtoToJSON)(requestParameters['attributeTypeDto']),
|
|
98
|
+
}];
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* create an attribute type
|
|
104
|
+
*/
|
|
105
|
+
AttributeTypesApi.prototype.createAttributeTypeRaw = function (requestParameters, initOverrides) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
+
var requestOptions, response;
|
|
108
|
+
return __generator(this, function (_a) {
|
|
109
|
+
switch (_a.label) {
|
|
110
|
+
case 0: return [4 /*yield*/, this.createAttributeTypeRequestOpts(requestParameters)];
|
|
111
|
+
case 1:
|
|
112
|
+
requestOptions = _a.sent();
|
|
113
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
114
|
+
case 2:
|
|
115
|
+
response = _a.sent();
|
|
116
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AttributeTypeDto_1.AttributeTypeDtoFromJSON)(jsonValue); })];
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* create an attribute type
|
|
123
|
+
*/
|
|
124
|
+
AttributeTypesApi.prototype.createAttributeType = function (requestParameters, initOverrides) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
126
|
+
var response;
|
|
127
|
+
return __generator(this, function (_a) {
|
|
128
|
+
switch (_a.label) {
|
|
129
|
+
case 0: return [4 /*yield*/, this.createAttributeTypeRaw(requestParameters, initOverrides)];
|
|
130
|
+
case 1:
|
|
131
|
+
response = _a.sent();
|
|
132
|
+
return [4 /*yield*/, response.value()];
|
|
133
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Creates request options for deleteAttributeType without sending the request
|
|
140
|
+
*/
|
|
141
|
+
AttributeTypesApi.prototype.deleteAttributeTypeRequestOpts = function (requestParameters) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
143
|
+
var queryParameters, headerParameters, urlPath;
|
|
144
|
+
return __generator(this, function (_a) {
|
|
145
|
+
if (requestParameters['id'] == null) {
|
|
146
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteAttributeType().');
|
|
147
|
+
}
|
|
148
|
+
queryParameters = {};
|
|
149
|
+
headerParameters = {};
|
|
150
|
+
urlPath = "/ui/attribute-types/v1/{id}";
|
|
151
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
152
|
+
return [2 /*return*/, {
|
|
153
|
+
path: urlPath,
|
|
154
|
+
method: 'DELETE',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
}];
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* delete an attribute type, the entities using it lose their attribute type
|
|
163
|
+
*/
|
|
164
|
+
AttributeTypesApi.prototype.deleteAttributeTypeRaw = function (requestParameters, initOverrides) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
166
|
+
var requestOptions, response;
|
|
167
|
+
return __generator(this, function (_a) {
|
|
168
|
+
switch (_a.label) {
|
|
169
|
+
case 0: return [4 /*yield*/, this.deleteAttributeTypeRequestOpts(requestParameters)];
|
|
170
|
+
case 1:
|
|
171
|
+
requestOptions = _a.sent();
|
|
172
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
173
|
+
case 2:
|
|
174
|
+
response = _a.sent();
|
|
175
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* delete an attribute type, the entities using it lose their attribute type
|
|
182
|
+
*/
|
|
183
|
+
AttributeTypesApi.prototype.deleteAttributeType = function (requestParameters, initOverrides) {
|
|
184
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
185
|
+
return __generator(this, function (_a) {
|
|
186
|
+
switch (_a.label) {
|
|
187
|
+
case 0: return [4 /*yield*/, this.deleteAttributeTypeRaw(requestParameters, initOverrides)];
|
|
188
|
+
case 1:
|
|
189
|
+
_a.sent();
|
|
190
|
+
return [2 /*return*/];
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Creates request options for getAllAttributeTypes without sending the request
|
|
197
|
+
*/
|
|
198
|
+
AttributeTypesApi.prototype.getAllAttributeTypesRequestOpts = function (requestParameters) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
+
var queryParameters, headerParameters, urlPath;
|
|
201
|
+
return __generator(this, function (_a) {
|
|
202
|
+
if (requestParameters['pageable'] == null) {
|
|
203
|
+
throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllAttributeTypes().');
|
|
204
|
+
}
|
|
205
|
+
queryParameters = {};
|
|
206
|
+
if (requestParameters['pageable'] != null) {
|
|
207
|
+
queryParameters['pageable'] = requestParameters['pageable'];
|
|
208
|
+
}
|
|
209
|
+
if (requestParameters['filter'] != null) {
|
|
210
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
211
|
+
}
|
|
212
|
+
headerParameters = {};
|
|
213
|
+
urlPath = "/ui/attribute-types/v1";
|
|
214
|
+
return [2 /*return*/, {
|
|
215
|
+
path: urlPath,
|
|
216
|
+
method: 'GET',
|
|
217
|
+
headers: headerParameters,
|
|
218
|
+
query: queryParameters,
|
|
219
|
+
}];
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* get all attribute types
|
|
225
|
+
*/
|
|
226
|
+
AttributeTypesApi.prototype.getAllAttributeTypesRaw = function (requestParameters, initOverrides) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
228
|
+
var requestOptions, response;
|
|
229
|
+
return __generator(this, function (_a) {
|
|
230
|
+
switch (_a.label) {
|
|
231
|
+
case 0: return [4 /*yield*/, this.getAllAttributeTypesRequestOpts(requestParameters)];
|
|
232
|
+
case 1:
|
|
233
|
+
requestOptions = _a.sent();
|
|
234
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
235
|
+
case 2:
|
|
236
|
+
response = _a.sent();
|
|
237
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetAllAttributeTypes200Response_1.GetAllAttributeTypes200ResponseFromJSON)(jsonValue); })];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* get all attribute types
|
|
244
|
+
*/
|
|
245
|
+
AttributeTypesApi.prototype.getAllAttributeTypes = function (requestParameters, initOverrides) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
247
|
+
var response;
|
|
248
|
+
return __generator(this, function (_a) {
|
|
249
|
+
switch (_a.label) {
|
|
250
|
+
case 0: return [4 /*yield*/, this.getAllAttributeTypesRaw(requestParameters, initOverrides)];
|
|
251
|
+
case 1:
|
|
252
|
+
response = _a.sent();
|
|
253
|
+
return [4 /*yield*/, response.value()];
|
|
254
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* Creates request options for getAttributeType without sending the request
|
|
261
|
+
*/
|
|
262
|
+
AttributeTypesApi.prototype.getAttributeTypeRequestOpts = function (requestParameters) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
264
|
+
var queryParameters, headerParameters, urlPath;
|
|
265
|
+
return __generator(this, function (_a) {
|
|
266
|
+
if (requestParameters['id'] == null) {
|
|
267
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getAttributeType().');
|
|
268
|
+
}
|
|
269
|
+
queryParameters = {};
|
|
270
|
+
headerParameters = {};
|
|
271
|
+
urlPath = "/ui/attribute-types/v1/{id}";
|
|
272
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
273
|
+
return [2 /*return*/, {
|
|
274
|
+
path: urlPath,
|
|
275
|
+
method: 'GET',
|
|
276
|
+
headers: headerParameters,
|
|
277
|
+
query: queryParameters,
|
|
278
|
+
}];
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* read one attribute type
|
|
284
|
+
*/
|
|
285
|
+
AttributeTypesApi.prototype.getAttributeTypeRaw = function (requestParameters, initOverrides) {
|
|
286
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
287
|
+
var requestOptions, response;
|
|
288
|
+
return __generator(this, function (_a) {
|
|
289
|
+
switch (_a.label) {
|
|
290
|
+
case 0: return [4 /*yield*/, this.getAttributeTypeRequestOpts(requestParameters)];
|
|
291
|
+
case 1:
|
|
292
|
+
requestOptions = _a.sent();
|
|
293
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
294
|
+
case 2:
|
|
295
|
+
response = _a.sent();
|
|
296
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AttributeTypeDto_1.AttributeTypeDtoFromJSON)(jsonValue); })];
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* read one attribute type
|
|
303
|
+
*/
|
|
304
|
+
AttributeTypesApi.prototype.getAttributeType = function (requestParameters, initOverrides) {
|
|
305
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
306
|
+
var response;
|
|
307
|
+
return __generator(this, function (_a) {
|
|
308
|
+
switch (_a.label) {
|
|
309
|
+
case 0: return [4 /*yield*/, this.getAttributeTypeRaw(requestParameters, initOverrides)];
|
|
310
|
+
case 1:
|
|
311
|
+
response = _a.sent();
|
|
312
|
+
return [4 /*yield*/, response.value()];
|
|
313
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* Creates request options for updateAttributeType without sending the request
|
|
320
|
+
*/
|
|
321
|
+
AttributeTypesApi.prototype.updateAttributeTypeRequestOpts = function (requestParameters) {
|
|
322
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
323
|
+
var queryParameters, headerParameters, urlPath;
|
|
324
|
+
return __generator(this, function (_a) {
|
|
325
|
+
if (requestParameters['id'] == null) {
|
|
326
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateAttributeType().');
|
|
327
|
+
}
|
|
328
|
+
if (requestParameters['attributeTypeDto'] == null) {
|
|
329
|
+
throw new runtime.RequiredError('attributeTypeDto', 'Required parameter "attributeTypeDto" was null or undefined when calling updateAttributeType().');
|
|
330
|
+
}
|
|
331
|
+
queryParameters = {};
|
|
332
|
+
if (requestParameters['force'] != null) {
|
|
333
|
+
queryParameters['force'] = requestParameters['force'];
|
|
334
|
+
}
|
|
335
|
+
headerParameters = {};
|
|
336
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
337
|
+
urlPath = "/ui/attribute-types/v1/{id}";
|
|
338
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
339
|
+
return [2 /*return*/, {
|
|
340
|
+
path: urlPath,
|
|
341
|
+
method: 'PUT',
|
|
342
|
+
headers: headerParameters,
|
|
343
|
+
query: queryParameters,
|
|
344
|
+
body: (0, AttributeTypeDto_1.AttributeTypeDtoToJSON)(requestParameters['attributeTypeDto']),
|
|
345
|
+
}];
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* update an attribute type
|
|
351
|
+
*/
|
|
352
|
+
AttributeTypesApi.prototype.updateAttributeTypeRaw = function (requestParameters, initOverrides) {
|
|
353
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
354
|
+
var requestOptions, response;
|
|
355
|
+
return __generator(this, function (_a) {
|
|
356
|
+
switch (_a.label) {
|
|
357
|
+
case 0: return [4 /*yield*/, this.updateAttributeTypeRequestOpts(requestParameters)];
|
|
358
|
+
case 1:
|
|
359
|
+
requestOptions = _a.sent();
|
|
360
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
361
|
+
case 2:
|
|
362
|
+
response = _a.sent();
|
|
363
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AttributeTypeDto_1.AttributeTypeDtoFromJSON)(jsonValue); })];
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* update an attribute type
|
|
370
|
+
*/
|
|
371
|
+
AttributeTypesApi.prototype.updateAttributeType = function (requestParameters, initOverrides) {
|
|
372
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
373
|
+
var response;
|
|
374
|
+
return __generator(this, function (_a) {
|
|
375
|
+
switch (_a.label) {
|
|
376
|
+
case 0: return [4 /*yield*/, this.updateAttributeTypeRaw(requestParameters, initOverrides)];
|
|
377
|
+
case 1:
|
|
378
|
+
response = _a.sent();
|
|
379
|
+
return [4 /*yield*/, response.value()];
|
|
380
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
};
|
|
385
|
+
return AttributeTypesApi;
|
|
386
|
+
}(runtime.BaseAPI));
|
|
387
|
+
exports.AttributeTypesApi = AttributeTypesApi;
|
|
@@ -27,10 +27,14 @@ export interface DeleteShareRequest {
|
|
|
27
27
|
id: string;
|
|
28
28
|
}
|
|
29
29
|
export interface DownloadShareRequest {
|
|
30
|
+
/**
|
|
31
|
+
* handle of the tenant, compared case-insensitively
|
|
32
|
+
*/
|
|
33
|
+
handle: string;
|
|
30
34
|
/**
|
|
31
35
|
*
|
|
32
36
|
*/
|
|
33
|
-
|
|
37
|
+
shareId: string;
|
|
34
38
|
/**
|
|
35
39
|
*
|
|
36
40
|
*/
|
|
@@ -41,10 +45,14 @@ export interface DownloadShareRequest {
|
|
|
41
45
|
expires: number;
|
|
42
46
|
}
|
|
43
47
|
export interface DownloadShareFileRequest {
|
|
48
|
+
/**
|
|
49
|
+
* handle of the tenant, compared case-insensitively
|
|
50
|
+
*/
|
|
51
|
+
handle: string;
|
|
44
52
|
/**
|
|
45
53
|
*
|
|
46
54
|
*/
|
|
47
|
-
|
|
55
|
+
shareId: string;
|
|
48
56
|
/**
|
|
49
57
|
*
|
|
50
58
|
*/
|
|
@@ -70,15 +78,23 @@ export interface GetAllSharesRequest {
|
|
|
70
78
|
}
|
|
71
79
|
export interface GetDownloadShareInfoRequest {
|
|
72
80
|
/**
|
|
73
|
-
*
|
|
81
|
+
* handle of the tenant, compared case-insensitively
|
|
74
82
|
*/
|
|
75
|
-
|
|
83
|
+
handle: string;
|
|
84
|
+
/**
|
|
85
|
+
* secret of the shared document, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
|
|
86
|
+
*/
|
|
87
|
+
authorization: string;
|
|
76
88
|
}
|
|
77
89
|
export interface GetDownloadShareListingRequest {
|
|
78
90
|
/**
|
|
79
|
-
*
|
|
91
|
+
* handle of the tenant, compared case-insensitively
|
|
92
|
+
*/
|
|
93
|
+
handle: string;
|
|
94
|
+
/**
|
|
95
|
+
* secret of the shared document, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
|
|
80
96
|
*/
|
|
81
|
-
|
|
97
|
+
authorization: string;
|
|
82
98
|
/**
|
|
83
99
|
*
|
|
84
100
|
*/
|
|
@@ -143,11 +159,11 @@ export declare class FileDirectorySharesApi extends runtime.BaseAPI {
|
|
|
143
159
|
*/
|
|
144
160
|
downloadShareRequestOpts(requestParameters: DownloadShareRequest): Promise<runtime.RequestOpts>;
|
|
145
161
|
/**
|
|
146
|
-
* download a share
|
|
162
|
+
* download a share; authorized by the access token of the listing, because a browser download cannot send a header
|
|
147
163
|
*/
|
|
148
164
|
downloadShareRaw(requestParameters: DownloadShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<runtime.HttpFile>>;
|
|
149
165
|
/**
|
|
150
|
-
* download a share
|
|
166
|
+
* download a share; authorized by the access token of the listing, because a browser download cannot send a header
|
|
151
167
|
*/
|
|
152
168
|
downloadShare(requestParameters: DownloadShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.HttpFile>;
|
|
153
169
|
/**
|
|
@@ -155,11 +171,11 @@ export declare class FileDirectorySharesApi extends runtime.BaseAPI {
|
|
|
155
171
|
*/
|
|
156
172
|
downloadShareFileRequestOpts(requestParameters: DownloadShareFileRequest): Promise<runtime.RequestOpts>;
|
|
157
173
|
/**
|
|
158
|
-
* download a single file
|
|
174
|
+
* download a single file; authorized by the access token of the listing, because a browser download cannot send a header
|
|
159
175
|
*/
|
|
160
176
|
downloadShareFileRaw(requestParameters: DownloadShareFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<runtime.HttpFile>>;
|
|
161
177
|
/**
|
|
162
|
-
* download a single file
|
|
178
|
+
* download a single file; authorized by the access token of the listing, because a browser download cannot send a header
|
|
163
179
|
*/
|
|
164
180
|
downloadShareFile(requestParameters: DownloadShareFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.HttpFile>;
|
|
165
181
|
/**
|
|
@@ -201,8 +201,11 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
|
|
|
201
201
|
return __awaiter(this, void 0, void 0, function () {
|
|
202
202
|
var queryParameters, headerParameters, urlPath;
|
|
203
203
|
return __generator(this, function (_a) {
|
|
204
|
-
if (requestParameters['
|
|
205
|
-
throw new runtime.RequiredError('
|
|
204
|
+
if (requestParameters['handle'] == null) {
|
|
205
|
+
throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling downloadShare().');
|
|
206
|
+
}
|
|
207
|
+
if (requestParameters['shareId'] == null) {
|
|
208
|
+
throw new runtime.RequiredError('shareId', 'Required parameter "shareId" was null or undefined when calling downloadShare().');
|
|
206
209
|
}
|
|
207
210
|
if (requestParameters['accessToken'] == null) {
|
|
208
211
|
throw new runtime.RequiredError('accessToken', 'Required parameter "accessToken" was null or undefined when calling downloadShare().');
|
|
@@ -218,8 +221,9 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
|
|
|
218
221
|
queryParameters['expires'] = requestParameters['expires'];
|
|
219
222
|
}
|
|
220
223
|
headerParameters = {};
|
|
221
|
-
urlPath = "/ui/
|
|
222
|
-
urlPath = urlPath.replace('{
|
|
224
|
+
urlPath = "/ui/tenant-portal/v1/{handle}/file-shares/archives/{shareId}";
|
|
225
|
+
urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
|
|
226
|
+
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
223
227
|
return [2 /*return*/, {
|
|
224
228
|
path: urlPath,
|
|
225
229
|
method: 'GET',
|
|
@@ -230,7 +234,7 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
|
|
|
230
234
|
});
|
|
231
235
|
};
|
|
232
236
|
/**
|
|
233
|
-
* download a share
|
|
237
|
+
* download a share; authorized by the access token of the listing, because a browser download cannot send a header
|
|
234
238
|
*/
|
|
235
239
|
FileDirectorySharesApi.prototype.downloadShareRaw = function (requestParameters, initOverrides) {
|
|
236
240
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -249,7 +253,7 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
|
|
|
249
253
|
});
|
|
250
254
|
};
|
|
251
255
|
/**
|
|
252
|
-
* download a share
|
|
256
|
+
* download a share; authorized by the access token of the listing, because a browser download cannot send a header
|
|
253
257
|
*/
|
|
254
258
|
FileDirectorySharesApi.prototype.downloadShare = function (requestParameters, initOverrides) {
|
|
255
259
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -272,8 +276,11 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
|
|
|
272
276
|
return __awaiter(this, void 0, void 0, function () {
|
|
273
277
|
var queryParameters, headerParameters, urlPath;
|
|
274
278
|
return __generator(this, function (_a) {
|
|
275
|
-
if (requestParameters['
|
|
276
|
-
throw new runtime.RequiredError('
|
|
279
|
+
if (requestParameters['handle'] == null) {
|
|
280
|
+
throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling downloadShareFile().');
|
|
281
|
+
}
|
|
282
|
+
if (requestParameters['shareId'] == null) {
|
|
283
|
+
throw new runtime.RequiredError('shareId', 'Required parameter "shareId" was null or undefined when calling downloadShareFile().');
|
|
277
284
|
}
|
|
278
285
|
if (requestParameters['fileId'] == null) {
|
|
279
286
|
throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling downloadShareFile().');
|
|
@@ -292,8 +299,9 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
|
|
|
292
299
|
queryParameters['expires'] = requestParameters['expires'];
|
|
293
300
|
}
|
|
294
301
|
headerParameters = {};
|
|
295
|
-
urlPath = "/ui/
|
|
296
|
-
urlPath = urlPath.replace('{
|
|
302
|
+
urlPath = "/ui/tenant-portal/v1/{handle}/file-shares/files/{shareId}/{fileId}";
|
|
303
|
+
urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
|
|
304
|
+
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
297
305
|
urlPath = urlPath.replace('{fileId}', encodeURIComponent(String(requestParameters['fileId'])));
|
|
298
306
|
return [2 /*return*/, {
|
|
299
307
|
path: urlPath,
|
|
@@ -305,7 +313,7 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
|
|
|
305
313
|
});
|
|
306
314
|
};
|
|
307
315
|
/**
|
|
308
|
-
* download a single file
|
|
316
|
+
* download a single file; authorized by the access token of the listing, because a browser download cannot send a header
|
|
309
317
|
*/
|
|
310
318
|
FileDirectorySharesApi.prototype.downloadShareFileRaw = function (requestParameters, initOverrides) {
|
|
311
319
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -324,7 +332,7 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
|
|
|
324
332
|
});
|
|
325
333
|
};
|
|
326
334
|
/**
|
|
327
|
-
* download a single file
|
|
335
|
+
* download a single file; authorized by the access token of the listing, because a browser download cannot send a header
|
|
328
336
|
*/
|
|
329
337
|
FileDirectorySharesApi.prototype.downloadShareFile = function (requestParameters, initOverrides) {
|
|
330
338
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -411,13 +419,19 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
|
|
|
411
419
|
return __awaiter(this, void 0, void 0, function () {
|
|
412
420
|
var queryParameters, headerParameters, urlPath;
|
|
413
421
|
return __generator(this, function (_a) {
|
|
414
|
-
if (requestParameters['
|
|
415
|
-
throw new runtime.RequiredError('
|
|
422
|
+
if (requestParameters['handle'] == null) {
|
|
423
|
+
throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getDownloadShareInfo().');
|
|
424
|
+
}
|
|
425
|
+
if (requestParameters['authorization'] == null) {
|
|
426
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getDownloadShareInfo().');
|
|
416
427
|
}
|
|
417
428
|
queryParameters = {};
|
|
418
429
|
headerParameters = {};
|
|
419
|
-
|
|
420
|
-
|
|
430
|
+
if (requestParameters['authorization'] != null) {
|
|
431
|
+
headerParameters['Authorization'] = String(requestParameters['authorization']);
|
|
432
|
+
}
|
|
433
|
+
urlPath = "/ui/tenant-portal/v1/{handle}/file-shares";
|
|
434
|
+
urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
|
|
421
435
|
return [2 /*return*/, {
|
|
422
436
|
path: urlPath,
|
|
423
437
|
method: 'GET',
|
|
@@ -470,16 +484,22 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
|
|
|
470
484
|
return __awaiter(this, void 0, void 0, function () {
|
|
471
485
|
var queryParameters, headerParameters, urlPath;
|
|
472
486
|
return __generator(this, function (_a) {
|
|
473
|
-
if (requestParameters['
|
|
474
|
-
throw new runtime.RequiredError('
|
|
487
|
+
if (requestParameters['handle'] == null) {
|
|
488
|
+
throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getDownloadShareListing().');
|
|
489
|
+
}
|
|
490
|
+
if (requestParameters['authorization'] == null) {
|
|
491
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getDownloadShareListing().');
|
|
475
492
|
}
|
|
476
493
|
queryParameters = {};
|
|
477
494
|
headerParameters = {};
|
|
495
|
+
if (requestParameters['authorization'] != null) {
|
|
496
|
+
headerParameters['Authorization'] = String(requestParameters['authorization']);
|
|
497
|
+
}
|
|
478
498
|
if (requestParameters['password'] != null) {
|
|
479
499
|
headerParameters['password'] = String(requestParameters['password']);
|
|
480
500
|
}
|
|
481
|
-
urlPath = "/ui/
|
|
482
|
-
urlPath = urlPath.replace('{
|
|
501
|
+
urlPath = "/ui/tenant-portal/v1/{handle}/file-shares/listings";
|
|
502
|
+
urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
|
|
483
503
|
return [2 /*return*/, {
|
|
484
504
|
path: urlPath,
|
|
485
505
|
method: 'GET',
|
|
@@ -13,9 +13,13 @@ import { type FormsPortalSpecDto } from '../models/FormsPortalSpecDto';
|
|
|
13
13
|
import { type FormsPortalSubmitDto } from '../models/FormsPortalSubmitDto';
|
|
14
14
|
export interface CreateFormsPortalEntryRequest {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* handle of the tenant, compared case-insensitively
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
handle: string;
|
|
19
|
+
/**
|
|
20
|
+
* secret of the shared document, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
|
|
21
|
+
*/
|
|
22
|
+
authorization: string;
|
|
19
23
|
/**
|
|
20
24
|
*
|
|
21
25
|
*/
|
|
@@ -23,9 +27,13 @@ export interface CreateFormsPortalEntryRequest {
|
|
|
23
27
|
}
|
|
24
28
|
export interface GetFormsPortalFormRequest {
|
|
25
29
|
/**
|
|
26
|
-
*
|
|
30
|
+
* handle of the tenant, compared case-insensitively
|
|
31
|
+
*/
|
|
32
|
+
handle: string;
|
|
33
|
+
/**
|
|
34
|
+
* secret of the shared document, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
|
|
27
35
|
*/
|
|
28
|
-
|
|
36
|
+
authorization: string;
|
|
29
37
|
}
|
|
30
38
|
/**
|
|
31
39
|
*
|