@builder6/docs 0.15.7
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/README.md +35 -0
- package/dist/app.module.d.ts +2 -0
- package/dist/app.module.js +44 -0
- package/dist/app.module.js.map +1 -0
- package/dist/docs/app.controller.d.ts +39 -0
- package/dist/docs/app.controller.js +102 -0
- package/dist/docs/app.controller.js.map +1 -0
- package/dist/docs/docs.controller.d.ts +751 -0
- package/dist/docs/docs.controller.js +472 -0
- package/dist/docs/docs.controller.js.map +1 -0
- package/dist/docs/docs.gateway.d.ts +10 -0
- package/dist/docs/docs.gateway.js +48 -0
- package/dist/docs/docs.gateway.js.map +1 -0
- package/dist/docs/docs.module.d.ts +2 -0
- package/dist/docs/docs.module.js +59 -0
- package/dist/docs/docs.module.js.map +1 -0
- package/dist/docs/docs.service.d.ts +159 -0
- package/dist/docs/docs.service.js +323 -0
- package/dist/docs/docs.service.js.map +1 -0
- package/dist/docs/dtos/rooms.dto.d.ts +15 -0
- package/dist/docs/dtos/rooms.dto.js +7 -0
- package/dist/docs/dtos/rooms.dto.js.map +1 -0
- package/dist/docs/editor.controller.d.ts +18 -0
- package/dist/docs/editor.controller.js +226 -0
- package/dist/docs/editor.controller.js.map +1 -0
- package/dist/docs/enums/index.d.ts +460 -0
- package/dist/docs/enums/index.js +44 -0
- package/dist/docs/enums/index.js.map +1 -0
- package/dist/docs/folders.service.d.ts +167 -0
- package/dist/docs/folders.service.js +410 -0
- package/dist/docs/folders.service.js.map +1 -0
- package/dist/docs/lib/getDocsClient.d.ts +1 -0
- package/dist/docs/lib/getDocsClient.js +19 -0
- package/dist/docs/lib/getDocsClient.js.map +1 -0
- package/dist/docs/people.controller.d.ts +102 -0
- package/dist/docs/people.controller.js +270 -0
- package/dist/docs/people.controller.js.map +1 -0
- package/dist/docs/permission.service.d.ts +139 -0
- package/dist/docs/permission.service.js +317 -0
- package/dist/docs/permission.service.js.map +1 -0
- package/dist/docs/rooms.controller.d.ts +337 -0
- package/dist/docs/rooms.controller.js +230 -0
- package/dist/docs/rooms.controller.js.map +1 -0
- package/dist/docs/settings.controller.d.ts +293 -0
- package/dist/docs/settings.controller.js +457 -0
- package/dist/docs/settings.controller.js.map +1 -0
- package/dist/docs/settings.service.d.ts +329 -0
- package/dist/docs/settings.service.js +1283 -0
- package/dist/docs/settings.service.js.map +1 -0
- package/dist/docs/system.service.d.ts +20 -0
- package/dist/docs/system.service.js +62 -0
- package/dist/docs/system.service.js.map +1 -0
- package/dist/filters/all-exceptions.filter.d.ts +5 -0
- package/dist/filters/all-exceptions.filter.js +61 -0
- package/dist/filters/all-exceptions.filter.js.map +1 -0
- package/dist/filters/unauthorized.filter.d.ts +7 -0
- package/dist/filters/unauthorized.filter.js +30 -0
- package/dist/filters/unauthorized.filter.js.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +43 -0
- package/dist/main.js.map +1 -0
- package/dist/plugin.module.d.ts +2 -0
- package/dist/plugin.module.js +21 -0
- package/dist/plugin.module.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +99 -0
- package/views/config.json +162 -0
- package/views/editor.ejs +457 -0
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SettingsController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const folders_service_1 = require("./folders.service");
|
|
18
|
+
const files_1 = require("@builder6/files");
|
|
19
|
+
const core_1 = require("@builder6/core");
|
|
20
|
+
const settings_service_1 = require("./settings.service");
|
|
21
|
+
let SettingsController = class SettingsController {
|
|
22
|
+
constructor(authService, filesService, foldersService, settingsService) {
|
|
23
|
+
this.authService = authService;
|
|
24
|
+
this.filesService = filesService;
|
|
25
|
+
this.foldersService = foldersService;
|
|
26
|
+
this.settingsService = settingsService;
|
|
27
|
+
}
|
|
28
|
+
async getLogo(logotype, res) {
|
|
29
|
+
if (logotype === '1')
|
|
30
|
+
res.redirect('/static/images/logo-wide.png');
|
|
31
|
+
else
|
|
32
|
+
res.redirect('/static/images/logo.png');
|
|
33
|
+
}
|
|
34
|
+
async getSettings(req) {
|
|
35
|
+
const token = this.authService.extractTokenFromHeaderOrCookie(req);
|
|
36
|
+
const user = await this.authService.getUserByToken(token);
|
|
37
|
+
const settings = await this.settingsService.getSettings();
|
|
38
|
+
return {
|
|
39
|
+
response: {
|
|
40
|
+
...settings,
|
|
41
|
+
ownerId: user ? user._id : '00000000-0000-0000-0000-000000000000',
|
|
42
|
+
socketUrl: user ? '/docs/socket.io' : undefined,
|
|
43
|
+
},
|
|
44
|
+
count: 1,
|
|
45
|
+
status: 0,
|
|
46
|
+
statusCode: 200,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
async getSettingsColorTheme() {
|
|
50
|
+
return {
|
|
51
|
+
response: this.settingsService.getSettingsColorTheme(),
|
|
52
|
+
count: 1,
|
|
53
|
+
status: 0,
|
|
54
|
+
statusCode: 200,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
async getCapabilities() {
|
|
58
|
+
return {
|
|
59
|
+
response: {
|
|
60
|
+
ldapEnabled: false,
|
|
61
|
+
providers: [],
|
|
62
|
+
ssoLabel: '',
|
|
63
|
+
oauthEnabled: false,
|
|
64
|
+
ssoUrl: '',
|
|
65
|
+
identityServerEnabled: false,
|
|
66
|
+
},
|
|
67
|
+
count: 1,
|
|
68
|
+
status: 0,
|
|
69
|
+
statusCode: 200,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
async getSettingsVersionBuild() {
|
|
73
|
+
return {
|
|
74
|
+
response: {
|
|
75
|
+
docSpace: '3.0.4.4498',
|
|
76
|
+
communityServer: '12.0.0',
|
|
77
|
+
documentServer: '8.3.1.25',
|
|
78
|
+
},
|
|
79
|
+
count: 1,
|
|
80
|
+
status: 0,
|
|
81
|
+
statusCode: 200,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
async getSettingsRebrandingAdditional() {
|
|
85
|
+
return {
|
|
86
|
+
response: {
|
|
87
|
+
startDocsEnabled: true,
|
|
88
|
+
helpCenterEnabled: true,
|
|
89
|
+
feedbackAndSupportEnabled: true,
|
|
90
|
+
feedbackAndSupportUrl: 'https://helpdesk.onlyoffice.com',
|
|
91
|
+
userForumEnabled: true,
|
|
92
|
+
userForumUrl: 'https://forum.onlyoffice.com/',
|
|
93
|
+
videoGuidesEnabled: true,
|
|
94
|
+
videoGuidesUrl: 'https://helpcenter.onlyoffice.com/{ru|de|fr|es|it}/video.aspx',
|
|
95
|
+
salesEmail: 'sales@onlyoffice.com',
|
|
96
|
+
buyUrl: 'https://www.onlyoffice.com/post.ashx?type=buydocspaceenterprise',
|
|
97
|
+
licenseAgreementsEnabled: true,
|
|
98
|
+
isDefault: true,
|
|
99
|
+
licenseAgreementsUrl: 'https://help.onlyoffice.com/Products/Files/doceditor.aspx?fileid=6795868&doc=RG5GaVN6azdUQW5kLzZQNzBXbHZ4Rm9QWVZuNjZKUmgya0prWnpCd2dGcz0_IjY3OTU4Njgi0',
|
|
100
|
+
},
|
|
101
|
+
count: 1,
|
|
102
|
+
links: [
|
|
103
|
+
{
|
|
104
|
+
href: 'https://steedos.onlyoffice.com/api/2.0/settings/rebranding/additional',
|
|
105
|
+
action: 'GET',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
status: 0,
|
|
109
|
+
statusCode: 200,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
async getSettingsRebrandingCompany() {
|
|
113
|
+
return {
|
|
114
|
+
response: {
|
|
115
|
+
companyName: 'Ascensio System SIA',
|
|
116
|
+
site: 'https://www.onlyoffice.com',
|
|
117
|
+
email: 'support@onlyoffice.com',
|
|
118
|
+
address: '20A-6 Ernesta Birznieka-Upisha street, Riga, Latvia, EU, LV-1050',
|
|
119
|
+
phone: '+371 660-16425',
|
|
120
|
+
isLicensor: true,
|
|
121
|
+
isDefault: true,
|
|
122
|
+
},
|
|
123
|
+
count: 1,
|
|
124
|
+
links: [
|
|
125
|
+
{
|
|
126
|
+
href: 'https://steedos.onlyoffice.com/api/2.0/settings/rebranding/company',
|
|
127
|
+
action: 'GET',
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
status: 0,
|
|
131
|
+
statusCode: 200,
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
async getProtalTariff() {
|
|
135
|
+
return {
|
|
136
|
+
response: {
|
|
137
|
+
openSource: false,
|
|
138
|
+
enterprise: false,
|
|
139
|
+
developer: false,
|
|
140
|
+
id: -110735,
|
|
141
|
+
state: 1,
|
|
142
|
+
dueDate: '9999-12-31T23:59:59.9999999',
|
|
143
|
+
delayDueDate: '9999-12-31T23:59:59.9999999',
|
|
144
|
+
licenseDate: '9999-12-31T23:59:59.9999999',
|
|
145
|
+
customerId: '',
|
|
146
|
+
quotas: [
|
|
147
|
+
{
|
|
148
|
+
id: -3,
|
|
149
|
+
quantity: 1,
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
count: 1,
|
|
154
|
+
links: [
|
|
155
|
+
{
|
|
156
|
+
href: 'https://steedos.onlyoffice.com/api/2.0/portal/tariff',
|
|
157
|
+
action: 'GET',
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
status: 0,
|
|
161
|
+
statusCode: 200,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
async getProtalPaymentQuota() {
|
|
165
|
+
return {
|
|
166
|
+
response: {
|
|
167
|
+
id: -3,
|
|
168
|
+
title: '初创',
|
|
169
|
+
price: {
|
|
170
|
+
value: 0.0,
|
|
171
|
+
},
|
|
172
|
+
nonProfit: false,
|
|
173
|
+
free: true,
|
|
174
|
+
trial: false,
|
|
175
|
+
features: [
|
|
176
|
+
{
|
|
177
|
+
id: 'manager',
|
|
178
|
+
value: -1,
|
|
179
|
+
type: 'count',
|
|
180
|
+
used: {
|
|
181
|
+
value: 1,
|
|
182
|
+
title: '管理员已添加:',
|
|
183
|
+
},
|
|
184
|
+
priceTitle: '管理员数量',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
id: 'total_size',
|
|
188
|
+
title: '每个管理员 2 GB,并且能够请求增加空间',
|
|
189
|
+
value: 2147483648,
|
|
190
|
+
type: 'size',
|
|
191
|
+
used: {
|
|
192
|
+
value: 3497009,
|
|
193
|
+
title: '已使用储存空间:',
|
|
194
|
+
},
|
|
195
|
+
priceTitle: '储存空间',
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
id: 'file_size',
|
|
199
|
+
title: '文件最大大小',
|
|
200
|
+
value: -1,
|
|
201
|
+
type: 'size',
|
|
202
|
+
used: {
|
|
203
|
+
value: 0,
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
id: 'oauth',
|
|
208
|
+
value: true,
|
|
209
|
+
type: 'flag',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
id: 'users',
|
|
213
|
+
title: '不限用户数量',
|
|
214
|
+
value: -1,
|
|
215
|
+
type: 'count',
|
|
216
|
+
used: {
|
|
217
|
+
value: 0,
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
id: 'room',
|
|
222
|
+
title: '不限激活的房间数量',
|
|
223
|
+
value: 12,
|
|
224
|
+
type: 'count',
|
|
225
|
+
used: {
|
|
226
|
+
value: 1,
|
|
227
|
+
title: '房间数量:',
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
id: 'ldap',
|
|
232
|
+
value: false,
|
|
233
|
+
type: 'flag',
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
id: 'customization',
|
|
237
|
+
title: '品牌化&个性定制',
|
|
238
|
+
value: false,
|
|
239
|
+
type: 'flag',
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
id: 'sso',
|
|
243
|
+
title: 'SSO单点登录',
|
|
244
|
+
value: false,
|
|
245
|
+
type: 'flag',
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
id: 'restore',
|
|
249
|
+
title: '自动备份与恢复',
|
|
250
|
+
value: false,
|
|
251
|
+
type: 'flag',
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
id: 'audit',
|
|
255
|
+
title: '跟踪用户登录与活动',
|
|
256
|
+
value: false,
|
|
257
|
+
type: 'flag',
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
id: 'thirdparty',
|
|
261
|
+
title: '第三方集成',
|
|
262
|
+
value: false,
|
|
263
|
+
type: 'flag',
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
id: 'statistic',
|
|
267
|
+
title: '存储配额 & 统计',
|
|
268
|
+
value: false,
|
|
269
|
+
type: 'flag',
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
},
|
|
273
|
+
count: 1,
|
|
274
|
+
links: [
|
|
275
|
+
{
|
|
276
|
+
href: 'https://steedos.onlyoffice.com/api/2.0/portal/payment/quota',
|
|
277
|
+
action: 'GET',
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
status: 0,
|
|
281
|
+
statusCode: 200,
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
async getSettingsCultures() {
|
|
285
|
+
return {
|
|
286
|
+
response: [
|
|
287
|
+
'az',
|
|
288
|
+
'cs',
|
|
289
|
+
'de',
|
|
290
|
+
'en-GB',
|
|
291
|
+
'en-US',
|
|
292
|
+
'es',
|
|
293
|
+
'fr',
|
|
294
|
+
'it',
|
|
295
|
+
'lv',
|
|
296
|
+
'nl',
|
|
297
|
+
'pl',
|
|
298
|
+
'pt-BR',
|
|
299
|
+
'pt',
|
|
300
|
+
'ro',
|
|
301
|
+
'sk',
|
|
302
|
+
'sl',
|
|
303
|
+
'fi',
|
|
304
|
+
'vi',
|
|
305
|
+
'tr',
|
|
306
|
+
'el-GR',
|
|
307
|
+
'bg',
|
|
308
|
+
'ru',
|
|
309
|
+
'sr-Cyrl-RS',
|
|
310
|
+
'sr-Latn-RS',
|
|
311
|
+
'uk-UA',
|
|
312
|
+
'hy-AM',
|
|
313
|
+
'ar-SA',
|
|
314
|
+
'si',
|
|
315
|
+
'lo-LA',
|
|
316
|
+
'zh-CN',
|
|
317
|
+
'ja-JP',
|
|
318
|
+
'ko-KR',
|
|
319
|
+
],
|
|
320
|
+
count: 32,
|
|
321
|
+
links: [
|
|
322
|
+
{
|
|
323
|
+
href: 'https://steedos.onlyoffice.com/api/2.0/settings/cultures',
|
|
324
|
+
action: 'GET',
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
status: 0,
|
|
328
|
+
statusCode: 200,
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
async getSettingsWebplugins() {
|
|
332
|
+
return {
|
|
333
|
+
response: [],
|
|
334
|
+
count: 0,
|
|
335
|
+
links: [
|
|
336
|
+
{
|
|
337
|
+
href: 'https://steedos.onlyoffice.com/api/2.0/settings/webplugins',
|
|
338
|
+
action: 'GET',
|
|
339
|
+
},
|
|
340
|
+
],
|
|
341
|
+
status: 0,
|
|
342
|
+
statusCode: 200,
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
async getFilesThirdparty() {
|
|
346
|
+
return {
|
|
347
|
+
response: [],
|
|
348
|
+
count: 1,
|
|
349
|
+
links: [
|
|
350
|
+
{
|
|
351
|
+
href: 'https://steedos.onlyoffice.com/api/2.0/files/thirdparty',
|
|
352
|
+
action: 'GET',
|
|
353
|
+
},
|
|
354
|
+
],
|
|
355
|
+
status: 0,
|
|
356
|
+
statusCode: 200,
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
async getFilesThirdpartyCapabilities() {
|
|
360
|
+
return {
|
|
361
|
+
response: [],
|
|
362
|
+
count: 0,
|
|
363
|
+
status: 0,
|
|
364
|
+
statusCode: 200,
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
exports.SettingsController = SettingsController;
|
|
369
|
+
__decorate([
|
|
370
|
+
(0, common_1.Get)('/logo'),
|
|
371
|
+
__param(0, (0, common_1.Query)('logotype')),
|
|
372
|
+
__param(1, (0, common_1.Res)()),
|
|
373
|
+
__metadata("design:type", Function),
|
|
374
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
375
|
+
__metadata("design:returntype", Promise)
|
|
376
|
+
], SettingsController.prototype, "getLogo", null);
|
|
377
|
+
__decorate([
|
|
378
|
+
(0, common_1.Get)('/settings'),
|
|
379
|
+
__param(0, (0, common_1.Req)()),
|
|
380
|
+
__metadata("design:type", Function),
|
|
381
|
+
__metadata("design:paramtypes", [Object]),
|
|
382
|
+
__metadata("design:returntype", Promise)
|
|
383
|
+
], SettingsController.prototype, "getSettings", null);
|
|
384
|
+
__decorate([
|
|
385
|
+
(0, common_1.Get)('/settings/colortheme'),
|
|
386
|
+
__metadata("design:type", Function),
|
|
387
|
+
__metadata("design:paramtypes", []),
|
|
388
|
+
__metadata("design:returntype", Promise)
|
|
389
|
+
], SettingsController.prototype, "getSettingsColorTheme", null);
|
|
390
|
+
__decorate([
|
|
391
|
+
(0, common_1.Get)('/capabilities'),
|
|
392
|
+
__metadata("design:type", Function),
|
|
393
|
+
__metadata("design:paramtypes", []),
|
|
394
|
+
__metadata("design:returntype", Promise)
|
|
395
|
+
], SettingsController.prototype, "getCapabilities", null);
|
|
396
|
+
__decorate([
|
|
397
|
+
(0, common_1.Get)('/settings/version/build'),
|
|
398
|
+
__metadata("design:type", Function),
|
|
399
|
+
__metadata("design:paramtypes", []),
|
|
400
|
+
__metadata("design:returntype", Promise)
|
|
401
|
+
], SettingsController.prototype, "getSettingsVersionBuild", null);
|
|
402
|
+
__decorate([
|
|
403
|
+
(0, common_1.Get)('/settings/rebranding/additional'),
|
|
404
|
+
__metadata("design:type", Function),
|
|
405
|
+
__metadata("design:paramtypes", []),
|
|
406
|
+
__metadata("design:returntype", Promise)
|
|
407
|
+
], SettingsController.prototype, "getSettingsRebrandingAdditional", null);
|
|
408
|
+
__decorate([
|
|
409
|
+
(0, common_1.Get)('/settings/rebranding/company'),
|
|
410
|
+
__metadata("design:type", Function),
|
|
411
|
+
__metadata("design:paramtypes", []),
|
|
412
|
+
__metadata("design:returntype", Promise)
|
|
413
|
+
], SettingsController.prototype, "getSettingsRebrandingCompany", null);
|
|
414
|
+
__decorate([
|
|
415
|
+
(0, common_1.Get)('/portal/tariff'),
|
|
416
|
+
__metadata("design:type", Function),
|
|
417
|
+
__metadata("design:paramtypes", []),
|
|
418
|
+
__metadata("design:returntype", Promise)
|
|
419
|
+
], SettingsController.prototype, "getProtalTariff", null);
|
|
420
|
+
__decorate([
|
|
421
|
+
(0, common_1.Get)('/portal/payment/quota'),
|
|
422
|
+
__metadata("design:type", Function),
|
|
423
|
+
__metadata("design:paramtypes", []),
|
|
424
|
+
__metadata("design:returntype", Promise)
|
|
425
|
+
], SettingsController.prototype, "getProtalPaymentQuota", null);
|
|
426
|
+
__decorate([
|
|
427
|
+
(0, common_1.Get)('/settings/cultures'),
|
|
428
|
+
__metadata("design:type", Function),
|
|
429
|
+
__metadata("design:paramtypes", []),
|
|
430
|
+
__metadata("design:returntype", Promise)
|
|
431
|
+
], SettingsController.prototype, "getSettingsCultures", null);
|
|
432
|
+
__decorate([
|
|
433
|
+
(0, common_1.Get)('/settings/webplugins'),
|
|
434
|
+
__metadata("design:type", Function),
|
|
435
|
+
__metadata("design:paramtypes", []),
|
|
436
|
+
__metadata("design:returntype", Promise)
|
|
437
|
+
], SettingsController.prototype, "getSettingsWebplugins", null);
|
|
438
|
+
__decorate([
|
|
439
|
+
(0, common_1.Get)('/files/thirdparty'),
|
|
440
|
+
__metadata("design:type", Function),
|
|
441
|
+
__metadata("design:paramtypes", []),
|
|
442
|
+
__metadata("design:returntype", Promise)
|
|
443
|
+
], SettingsController.prototype, "getFilesThirdparty", null);
|
|
444
|
+
__decorate([
|
|
445
|
+
(0, common_1.Get)('/files/thirdparty/capabilities'),
|
|
446
|
+
__metadata("design:type", Function),
|
|
447
|
+
__metadata("design:paramtypes", []),
|
|
448
|
+
__metadata("design:returntype", Promise)
|
|
449
|
+
], SettingsController.prototype, "getFilesThirdpartyCapabilities", null);
|
|
450
|
+
exports.SettingsController = SettingsController = __decorate([
|
|
451
|
+
(0, common_1.Controller)('/api/v6/docs'),
|
|
452
|
+
__metadata("design:paramtypes", [core_1.AuthService,
|
|
453
|
+
files_1.FilesService,
|
|
454
|
+
folders_service_1.FoldersService,
|
|
455
|
+
settings_service_1.SettingsService])
|
|
456
|
+
], SettingsController);
|
|
457
|
+
//# sourceMappingURL=settings.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.controller.js","sourceRoot":"","sources":["../../src/docs/settings.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAMwB;AACxB,uDAAmD;AACnD,2CAA+C;AAE/C,yCAAwD;AACxD,yDAAqD;AAG9C,IAAM,kBAAkB,GAAxB,MAAM,kBAA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