diff options
Diffstat (limited to 'shared/extra-utils')
-rw-r--r-- | shared/extra-utils/index.ts | 16 | ||||
-rw-r--r-- | shared/extra-utils/server/plugins.ts | 4 | ||||
-rw-r--r-- | shared/extra-utils/server/servers.ts | 3 |
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 @@ | |||
1 | export * from './bulk/bulk' | 1 | export * from './bulk/bulk' |
2 | |||
2 | export * from './cli/cli' | 3 | export * from './cli/cli' |
4 | |||
3 | export * from './feeds/feeds' | 5 | export * from './feeds/feeds' |
6 | |||
4 | export * from './mock-servers/mock-instances-index' | 7 | export * from './mock-servers/mock-instances-index' |
5 | export * from './miscs/miscs' | 8 | |
9 | export * from './miscs/email' | ||
6 | export * from './miscs/sql' | 10 | export * from './miscs/sql' |
11 | export * from './miscs/miscs' | ||
7 | export * from './miscs/stubs' | 12 | export * from './miscs/stubs' |
13 | |||
8 | export * from './moderation/abuses' | 14 | export * from './moderation/abuses' |
9 | export * from './plugins/mock-blocklist' | 15 | export * from './plugins/mock-blocklist' |
16 | |||
10 | export * from './requests/check-api-params' | 17 | export * from './requests/check-api-params' |
11 | export * from './requests/requests' | 18 | export * from './requests/requests' |
19 | |||
12 | export * from './search/videos' | 20 | export * from './search/videos' |
21 | |||
13 | export * from './server/activitypub' | 22 | export * from './server/activitypub' |
14 | export * from './server/clients' | 23 | export * from './server/clients' |
15 | export * from './server/config' | 24 | export * from './server/config' |
@@ -18,9 +27,14 @@ export * from './server/follows' | |||
18 | export * from './server/jobs' | 27 | export * from './server/jobs' |
19 | export * from './server/plugins' | 28 | export * from './server/plugins' |
20 | export * from './server/servers' | 29 | export * from './server/servers' |
30 | |||
21 | export * from './users/accounts' | 31 | export * from './users/accounts' |
32 | export * from './users/blocklist' | ||
22 | export * from './users/login' | 33 | export * from './users/login' |
34 | export * from './users/user-notifications' | ||
35 | export * from './users/user-subscriptions' | ||
23 | export * from './users/users' | 36 | export * from './users/users' |
37 | |||
24 | export * from './videos/live' | 38 | export * from './videos/live' |
25 | export * from './videos/services' | 39 | export * from './videos/services' |
26 | export * from './videos/video-blacklist' | 40 | export * 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' | |||
4 | import { readJSON, writeJSON } from 'fs-extra' | 4 | import { readJSON, writeJSON } from 'fs-extra' |
5 | import { join } from 'path' | 5 | import { join } from 'path' |
6 | import { RegisteredServerSettings } from '@shared/models' | 6 | import { RegisteredServerSettings } from '@shared/models' |
7 | import { PeertubePluginIndexList } from '../../models/plugins/peertube-plugin-index-list.model' | 7 | import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' |
8 | import { PeertubePluginIndexList } from '../../models/plugins/plugin-index/peertube-plugin-index-list.model' | ||
8 | import { PluginType } from '../../models/plugins/plugin.type' | 9 | import { PluginType } from '../../models/plugins/plugin.type' |
9 | import { buildServerDirectory, root } from '../miscs/miscs' | 10 | import { buildServerDirectory, root } from '../miscs/miscs' |
10 | import { makeGetRequest, makePostBodyRequest, makePutBodyRequest } from '../requests/requests' | 11 | import { makeGetRequest, makePostBodyRequest, makePutBodyRequest } from '../requests/requests' |
11 | import { ServerInfo } from './servers' | 12 | import { ServerInfo } from './servers' |
12 | import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' | ||
13 | 13 | ||
14 | function listPlugins (parameters: { | 14 | function 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?: { |