aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils')
-rw-r--r--shared/extra-utils/index.ts16
-rw-r--r--shared/extra-utils/server/plugins.ts4
-rw-r--r--shared/extra-utils/server/servers.ts3
3 files changed, 20 insertions, 3 deletions
diff --git a/shared/extra-utils/index.ts b/shared/extra-utils/index.ts
index 898a92d43..720db19cb 100644
--- a/shared/extra-utils/index.ts
+++ b/shared/extra-utils/index.ts
@@ -1,15 +1,24 @@
1export * from './bulk/bulk' 1export * from './bulk/bulk'
2
2export * from './cli/cli' 3export * from './cli/cli'
4
3export * from './feeds/feeds' 5export * from './feeds/feeds'
6
4export * from './mock-servers/mock-instances-index' 7export * from './mock-servers/mock-instances-index'
5export * from './miscs/miscs' 8
9export * from './miscs/email'
6export * from './miscs/sql' 10export * from './miscs/sql'
11export * from './miscs/miscs'
7export * from './miscs/stubs' 12export * from './miscs/stubs'
13
8export * from './moderation/abuses' 14export * from './moderation/abuses'
9export * from './plugins/mock-blocklist' 15export * from './plugins/mock-blocklist'
16
10export * from './requests/check-api-params' 17export * from './requests/check-api-params'
11export * from './requests/requests' 18export * from './requests/requests'
19
12export * from './search/videos' 20export * from './search/videos'
21
13export * from './server/activitypub' 22export * from './server/activitypub'
14export * from './server/clients' 23export * from './server/clients'
15export * from './server/config' 24export * from './server/config'
@@ -18,9 +27,14 @@ export * from './server/follows'
18export * from './server/jobs' 27export * from './server/jobs'
19export * from './server/plugins' 28export * from './server/plugins'
20export * from './server/servers' 29export * from './server/servers'
30
21export * from './users/accounts' 31export * from './users/accounts'
32export * from './users/blocklist'
22export * from './users/login' 33export * from './users/login'
34export * from './users/user-notifications'
35export * from './users/user-subscriptions'
23export * from './users/users' 36export * from './users/users'
37
24export * from './videos/live' 38export * from './videos/live'
25export * from './videos/services' 39export * from './videos/services'
26export * from './videos/video-blacklist' 40export * from './videos/video-blacklist'
diff --git a/shared/extra-utils/server/plugins.ts b/shared/extra-utils/server/plugins.ts
index 864954ee7..d53e5b382 100644
--- a/shared/extra-utils/server/plugins.ts
+++ b/shared/extra-utils/server/plugins.ts
@@ -4,12 +4,12 @@ import { expect } from 'chai'
4import { readJSON, writeJSON } from 'fs-extra' 4import { readJSON, writeJSON } from 'fs-extra'
5import { join } from 'path' 5import { join } from 'path'
6import { RegisteredServerSettings } from '@shared/models' 6import { RegisteredServerSettings } from '@shared/models'
7import { PeertubePluginIndexList } from '../../models/plugins/peertube-plugin-index-list.model' 7import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes'
8import { PeertubePluginIndexList } from '../../models/plugins/plugin-index/peertube-plugin-index-list.model'
8import { PluginType } from '../../models/plugins/plugin.type' 9import { PluginType } from '../../models/plugins/plugin.type'
9import { buildServerDirectory, root } from '../miscs/miscs' 10import { buildServerDirectory, root } from '../miscs/miscs'
10import { makeGetRequest, makePostBodyRequest, makePutBodyRequest } from '../requests/requests' 11import { makeGetRequest, makePostBodyRequest, makePutBodyRequest } from '../requests/requests'
11import { ServerInfo } from './servers' 12import { ServerInfo } from './servers'
12import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes'
13 13
14function listPlugins (parameters: { 14function listPlugins (parameters: {
15 url: string 15 url: string
diff --git a/shared/extra-utils/server/servers.ts b/shared/extra-utils/server/servers.ts
index 479f08e12..d04757470 100644
--- a/shared/extra-utils/server/servers.ts
+++ b/shared/extra-utils/server/servers.ts
@@ -45,9 +45,12 @@ interface ServerInfo {
45 uuid: string 45 uuid: string
46 name?: string 46 name?: string
47 url?: string 47 url?: string
48
48 account?: { 49 account?: {
49 name: string 50 name: string
50 } 51 }
52
53 embedPath?: string
51 } 54 }
52 55
53 remoteVideo?: { 56 remoteVideo?: {