]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
shared/ typescript types dir server-commands
authorChocobozzz <me@florianbigard.com>
Fri, 17 Dec 2021 08:29:23 +0000 (09:29 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 17 Dec 2021 08:29:23 +0000 (09:29 +0100)
242 files changed:
scripts/benchmark.ts
scripts/generate-code-contributors.ts
server/tests/api/activitypub/cleaner.ts
server/tests/api/activitypub/client.ts
server/tests/api/activitypub/fetch.ts
server/tests/api/activitypub/helpers.ts
server/tests/api/activitypub/refresher.ts
server/tests/api/activitypub/security.ts
server/tests/api/check-params/abuses.ts
server/tests/api/check-params/accounts.ts
server/tests/api/check-params/blocklist.ts
server/tests/api/check-params/bulk.ts
server/tests/api/check-params/config.ts
server/tests/api/check-params/contact-form.ts
server/tests/api/check-params/custom-pages.ts
server/tests/api/check-params/debug.ts
server/tests/api/check-params/follows.ts
server/tests/api/check-params/jobs.ts
server/tests/api/check-params/live.ts
server/tests/api/check-params/logs.ts
server/tests/api/check-params/my-user.ts
server/tests/api/check-params/plugins.ts
server/tests/api/check-params/redundancy.ts
server/tests/api/check-params/search.ts
server/tests/api/check-params/services.ts
server/tests/api/check-params/transcoding.ts
server/tests/api/check-params/upload-quota.ts
server/tests/api/check-params/user-notifications.ts
server/tests/api/check-params/user-subscriptions.ts
server/tests/api/check-params/users-admin.ts
server/tests/api/check-params/users.ts
server/tests/api/check-params/video-blacklist.ts
server/tests/api/check-params/video-captions.ts
server/tests/api/check-params/video-channels.ts
server/tests/api/check-params/video-comments.ts
server/tests/api/check-params/video-files.ts
server/tests/api/check-params/video-imports.ts
server/tests/api/check-params/video-playlists.ts
server/tests/api/check-params/videos-common-filters.ts
server/tests/api/check-params/videos-history.ts
server/tests/api/check-params/videos-overviews.ts
server/tests/api/check-params/videos.ts
server/tests/api/live/live-constraints.ts
server/tests/api/live/live-permanent.ts
server/tests/api/live/live-rtmps.ts
server/tests/api/live/live-save-replay.ts
server/tests/api/live/live-socket-messages.ts
server/tests/api/live/live-views.ts
server/tests/api/live/live.ts
server/tests/api/moderation/abuses.ts
server/tests/api/moderation/blocklist-notification.ts
server/tests/api/moderation/blocklist.ts
server/tests/api/moderation/video-blacklist.ts
server/tests/api/notifications/admin-notifications.ts
server/tests/api/notifications/comments-notifications.ts
server/tests/api/notifications/moderation-notifications.ts
server/tests/api/notifications/notifications-api.ts
server/tests/api/notifications/user-notifications.ts
server/tests/api/object-storage/live.ts
server/tests/api/object-storage/video-imports.ts
server/tests/api/object-storage/videos.ts
server/tests/api/redundancy/manage-redundancy.ts
server/tests/api/redundancy/redundancy-constraints.ts
server/tests/api/redundancy/redundancy.ts
server/tests/api/search/search-activitypub-video-channels.ts
server/tests/api/search/search-activitypub-video-playlists.ts
server/tests/api/search/search-activitypub-videos.ts
server/tests/api/search/search-channels.ts
server/tests/api/search/search-index.ts
server/tests/api/search/search-playlists.ts
server/tests/api/search/search-videos.ts
server/tests/api/server/auto-follows.ts
server/tests/api/server/bulk.ts
server/tests/api/server/config-defaults.ts
server/tests/api/server/config.ts
server/tests/api/server/contact-form.ts
server/tests/api/server/email.ts
server/tests/api/server/follow-constraints.ts
server/tests/api/server/follows-moderation.ts
server/tests/api/server/follows.ts
server/tests/api/server/handle-down.ts
server/tests/api/server/homepage.ts
server/tests/api/server/jobs.ts
server/tests/api/server/logs.ts
server/tests/api/server/no-client.ts
server/tests/api/server/plugins.ts
server/tests/api/server/proxy.ts
server/tests/api/server/reverse-proxy.ts
server/tests/api/server/services.ts
server/tests/api/server/slow-follows.ts
server/tests/api/server/stats.ts
server/tests/api/server/tracker.ts
server/tests/api/users/user-subscriptions.ts
server/tests/api/users/users-multiple-servers.ts
server/tests/api/users/users-verification.ts
server/tests/api/users/users.ts
server/tests/api/videos/audio-only.ts
server/tests/api/videos/multiple-servers.ts
server/tests/api/videos/resumable-upload.ts
server/tests/api/videos/single-server.ts
server/tests/api/videos/video-captions.ts
server/tests/api/videos/video-change-ownership.ts
server/tests/api/videos/video-channels.ts
server/tests/api/videos/video-comments.ts
server/tests/api/videos/video-create-transcoding.ts
server/tests/api/videos/video-description.ts
server/tests/api/videos/video-files.ts
server/tests/api/videos/video-hls.ts
server/tests/api/videos/video-imports.ts
server/tests/api/videos/video-nsfw.ts
server/tests/api/videos/video-playlist-thumbnails.ts
server/tests/api/videos/video-playlists.ts
server/tests/api/videos/video-privacy.ts
server/tests/api/videos/video-schedule-update.ts
server/tests/api/videos/video-transcoder.ts
server/tests/api/videos/videos-common-filters.ts
server/tests/api/videos/videos-history.ts
server/tests/api/videos/videos-overview.ts
server/tests/api/videos/videos-views-cleaner.ts
server/tests/cli/create-import-video-file-job.ts
server/tests/cli/create-move-video-storage-job.ts
server/tests/cli/create-transcoding-job.ts
server/tests/cli/peertube.ts
server/tests/cli/plugins.ts
server/tests/cli/print-transcode-command.ts
server/tests/cli/prune-storage.ts
server/tests/cli/regenerate-thumbnails.ts
server/tests/cli/reset-password.ts
server/tests/cli/update-host.ts
server/tests/client.ts
server/tests/external-plugins/auth-ldap.ts
server/tests/external-plugins/auto-block-videos.ts
server/tests/external-plugins/auto-mute.ts
server/tests/feeds/feeds.ts
server/tests/helpers/image.ts
server/tests/helpers/request.ts
server/tests/misc-endpoints.ts
server/tests/plugins/action-hooks.ts
server/tests/plugins/external-auth.ts
server/tests/plugins/filter-hooks.ts
server/tests/plugins/html-injection.ts
server/tests/plugins/id-and-pass-auth.ts
server/tests/plugins/plugin-helpers.ts
server/tests/plugins/plugin-router.ts
server/tests/plugins/plugin-storage.ts
server/tests/plugins/plugin-transcoding.ts
server/tests/plugins/plugin-unloading.ts
server/tests/plugins/translations.ts
server/tests/plugins/video-constants.ts
server/tests/shared/video.ts
server/tools/cli.ts
server/tools/peertube-import-videos.ts
shared/extra-utils/index.ts
shared/server-commands/bulk/bulk-command.ts [moved from shared/extra-utils/bulk/bulk-command.ts with 100% similarity]
shared/server-commands/bulk/index.ts [moved from shared/extra-utils/bulk/index.ts with 100% similarity]
shared/server-commands/cli/cli-command.ts [moved from shared/extra-utils/cli/cli-command.ts with 100% similarity]
shared/server-commands/cli/index.ts [moved from shared/extra-utils/cli/index.ts with 100% similarity]
shared/server-commands/custom-pages/custom-pages-command.ts [moved from shared/extra-utils/custom-pages/custom-pages-command.ts with 100% similarity]
shared/server-commands/custom-pages/index.ts [moved from shared/extra-utils/custom-pages/index.ts with 100% similarity]
shared/server-commands/feeds/feeds-command.ts [moved from shared/extra-utils/feeds/feeds-command.ts with 100% similarity]
shared/server-commands/feeds/index.ts [moved from shared/extra-utils/feeds/index.ts with 100% similarity]
shared/server-commands/index.ts [new file with mode: 0644]
shared/server-commands/logs/index.ts [moved from shared/extra-utils/logs/index.ts with 100% similarity]
shared/server-commands/logs/logs-command.ts [moved from shared/extra-utils/logs/logs-command.ts with 100% similarity]
shared/server-commands/miscs/checks.ts [moved from shared/extra-utils/miscs/checks.ts with 100% similarity]
shared/server-commands/miscs/generate.ts [moved from shared/extra-utils/miscs/generate.ts with 100% similarity]
shared/server-commands/miscs/index.ts [moved from shared/extra-utils/miscs/index.ts with 100% similarity]
shared/server-commands/miscs/sql-command.ts [moved from shared/extra-utils/miscs/sql-command.ts with 100% similarity]
shared/server-commands/miscs/tests.ts [moved from shared/extra-utils/miscs/tests.ts with 100% similarity]
shared/server-commands/miscs/webtorrent.ts [moved from shared/extra-utils/miscs/webtorrent.ts with 100% similarity]
shared/server-commands/mock-servers/index.ts [moved from shared/extra-utils/mock-servers/index.ts with 100% similarity]
shared/server-commands/mock-servers/mock-429.ts [moved from shared/extra-utils/mock-servers/mock-429.ts with 100% similarity]
shared/server-commands/mock-servers/mock-email.ts [moved from shared/extra-utils/mock-servers/mock-email.ts with 100% similarity]
shared/server-commands/mock-servers/mock-instances-index.ts [moved from shared/extra-utils/mock-servers/mock-instances-index.ts with 100% similarity]
shared/server-commands/mock-servers/mock-joinpeertube-versions.ts [moved from shared/extra-utils/mock-servers/mock-joinpeertube-versions.ts with 100% similarity]
shared/server-commands/mock-servers/mock-object-storage.ts [moved from shared/extra-utils/mock-servers/mock-object-storage.ts with 100% similarity]
shared/server-commands/mock-servers/mock-plugin-blocklist.ts [moved from shared/extra-utils/mock-servers/mock-plugin-blocklist.ts with 100% similarity]
shared/server-commands/mock-servers/mock-proxy.ts [moved from shared/extra-utils/mock-servers/mock-proxy.ts with 100% similarity]
shared/server-commands/mock-servers/utils.ts [moved from shared/extra-utils/mock-servers/utils.ts with 100% similarity]
shared/server-commands/moderation/abuses-command.ts [moved from shared/extra-utils/moderation/abuses-command.ts with 100% similarity]
shared/server-commands/moderation/index.ts [moved from shared/extra-utils/moderation/index.ts with 100% similarity]
shared/server-commands/overviews/index.ts [moved from shared/extra-utils/overviews/index.ts with 100% similarity]
shared/server-commands/overviews/overviews-command.ts [moved from shared/extra-utils/overviews/overviews-command.ts with 100% similarity]
shared/server-commands/requests/check-api-params.ts [moved from shared/extra-utils/requests/check-api-params.ts with 100% similarity]
shared/server-commands/requests/index.ts [moved from shared/extra-utils/requests/index.ts with 100% similarity]
shared/server-commands/requests/requests.ts [moved from shared/extra-utils/requests/requests.ts with 100% similarity]
shared/server-commands/search/index.ts [moved from shared/extra-utils/search/index.ts with 100% similarity]
shared/server-commands/search/search-command.ts [moved from shared/extra-utils/search/search-command.ts with 100% similarity]
shared/server-commands/server/config-command.ts [moved from shared/extra-utils/server/config-command.ts with 100% similarity]
shared/server-commands/server/contact-form-command.ts [moved from shared/extra-utils/server/contact-form-command.ts with 100% similarity]
shared/server-commands/server/debug-command.ts [moved from shared/extra-utils/server/debug-command.ts with 100% similarity]
shared/server-commands/server/directories.ts [moved from shared/extra-utils/server/directories.ts with 100% similarity]
shared/server-commands/server/follows-command.ts [moved from shared/extra-utils/server/follows-command.ts with 100% similarity]
shared/server-commands/server/follows.ts [moved from shared/extra-utils/server/follows.ts with 100% similarity]
shared/server-commands/server/index.ts [moved from shared/extra-utils/server/index.ts with 100% similarity]
shared/server-commands/server/jobs-command.ts [moved from shared/extra-utils/server/jobs-command.ts with 100% similarity]
shared/server-commands/server/jobs.ts [moved from shared/extra-utils/server/jobs.ts with 100% similarity]
shared/server-commands/server/object-storage-command.ts [moved from shared/extra-utils/server/object-storage-command.ts with 100% similarity]
shared/server-commands/server/plugins-command.ts [moved from shared/extra-utils/server/plugins-command.ts with 100% similarity]
shared/server-commands/server/plugins.ts [moved from shared/extra-utils/server/plugins.ts with 92% similarity]
shared/server-commands/server/redundancy-command.ts [moved from shared/extra-utils/server/redundancy-command.ts with 100% similarity]
shared/server-commands/server/server.ts [moved from shared/extra-utils/server/server.ts with 100% similarity]
shared/server-commands/server/servers-command.ts [moved from shared/extra-utils/server/servers-command.ts with 100% similarity]
shared/server-commands/server/servers.ts [moved from shared/extra-utils/server/servers.ts with 100% similarity]
shared/server-commands/server/stats-command.ts [moved from shared/extra-utils/server/stats-command.ts with 100% similarity]
shared/server-commands/server/tracker.ts [moved from shared/extra-utils/server/tracker.ts with 100% similarity]
shared/server-commands/shared/abstract-command.ts [moved from shared/extra-utils/shared/abstract-command.ts with 100% similarity]
shared/server-commands/shared/index.ts [moved from shared/extra-utils/shared/index.ts with 100% similarity]
shared/server-commands/socket/index.ts [moved from shared/extra-utils/socket/index.ts with 100% similarity]
shared/server-commands/socket/socket-io-command.ts [moved from shared/extra-utils/socket/socket-io-command.ts with 100% similarity]
shared/server-commands/users/accounts-command.ts [moved from shared/extra-utils/users/accounts-command.ts with 100% similarity]
shared/server-commands/users/actors.ts [moved from shared/extra-utils/users/actors.ts with 100% similarity]
shared/server-commands/users/blocklist-command.ts [moved from shared/extra-utils/users/blocklist-command.ts with 100% similarity]
shared/server-commands/users/index.ts [moved from shared/extra-utils/users/index.ts with 100% similarity]
shared/server-commands/users/login-command.ts [moved from shared/extra-utils/users/login-command.ts with 100% similarity]
shared/server-commands/users/login.ts [moved from shared/extra-utils/users/login.ts with 100% similarity]
shared/server-commands/users/notifications-command.ts [moved from shared/extra-utils/users/notifications-command.ts with 100% similarity]
shared/server-commands/users/notifications.ts [moved from shared/extra-utils/users/notifications.ts with 100% similarity]
shared/server-commands/users/subscriptions-command.ts [moved from shared/extra-utils/users/subscriptions-command.ts with 100% similarity]
shared/server-commands/users/users-command.ts [moved from shared/extra-utils/users/users-command.ts with 100% similarity]
shared/server-commands/videos/blacklist-command.ts [moved from shared/extra-utils/videos/blacklist-command.ts with 100% similarity]
shared/server-commands/videos/captions-command.ts [moved from shared/extra-utils/videos/captions-command.ts with 100% similarity]
shared/server-commands/videos/captions.ts [moved from shared/extra-utils/videos/captions.ts with 100% similarity]
shared/server-commands/videos/change-ownership-command.ts [moved from shared/extra-utils/videos/change-ownership-command.ts with 100% similarity]
shared/server-commands/videos/channels-command.ts [moved from shared/extra-utils/videos/channels-command.ts with 100% similarity]
shared/server-commands/videos/channels.ts [moved from shared/extra-utils/videos/channels.ts with 100% similarity]
shared/server-commands/videos/comments-command.ts [moved from shared/extra-utils/videos/comments-command.ts with 100% similarity]
shared/server-commands/videos/history-command.ts [moved from shared/extra-utils/videos/history-command.ts with 100% similarity]
shared/server-commands/videos/imports-command.ts [moved from shared/extra-utils/videos/imports-command.ts with 100% similarity]
shared/server-commands/videos/index.ts [moved from shared/extra-utils/videos/index.ts with 100% similarity]
shared/server-commands/videos/live-command.ts [moved from shared/extra-utils/videos/live-command.ts with 100% similarity]
shared/server-commands/videos/live.ts [moved from shared/extra-utils/videos/live.ts with 100% similarity]
shared/server-commands/videos/playlists-command.ts [moved from shared/extra-utils/videos/playlists-command.ts with 100% similarity]
shared/server-commands/videos/playlists.ts [moved from shared/extra-utils/videos/playlists.ts with 100% similarity]
shared/server-commands/videos/services-command.ts [moved from shared/extra-utils/videos/services-command.ts with 100% similarity]
shared/server-commands/videos/streaming-playlists-command.ts [moved from shared/extra-utils/videos/streaming-playlists-command.ts with 100% similarity]
shared/server-commands/videos/streaming-playlists.ts [moved from shared/extra-utils/videos/streaming-playlists.ts with 100% similarity]
shared/server-commands/videos/videos-command.ts [moved from shared/extra-utils/videos/videos-command.ts with 100% similarity]
shared/server-commands/videos/videos.ts [moved from shared/extra-utils/videos/videos.ts with 100% similarity]
shared/tsconfig.types.json
shared/typescript-utils/index.ts [new file with mode: 0644]
shared/typescript-utils/types.ts [new file with mode: 0644]

index 788318313ffe84976837468b1e393095b9f2d96b..011519fe38d11ea3d173d0b0a87690df39e930a0 100644 (file)
@@ -3,7 +3,7 @@ registerTSPaths()
 
 import autocannon, { printResult } from 'autocannon'
 import { writeJson } from 'fs-extra'
-import { createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils'
+import { createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands'
 import { Video, VideoPrivacy } from '@shared/models'
 
 let server: PeerTubeServer
index 70b33c0d31f24a59b0c52eb617ec6bafe3798f73..449407c4409ff73a2c1d1335e0e9888765ecd74f 100755 (executable)
@@ -1,7 +1,7 @@
 import { registerTSPaths } from '../server/helpers/register-ts-paths'
 registerTSPaths()
 
-import { CLICommand } from '@shared/extra-utils'
+import { CLICommand } from '@shared/server-commands'
 
 run()
   .then(() => process.exit(0))
index 51cf6e599ebe586a4728b6a67ad08d8b1d398452..c3368c7ebfc170b8b84987d8e0f6208f7b22eecf 100644 (file)
@@ -10,7 +10,7 @@ import {
   setAccessTokensToServers,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 
 const expect = chai.expect
 
index c3e4b7f74a26f866d261bbb243a8d1e6c3b878f8..e69ab3cb9302cf92b8bde2cddc8dc8d31f520de5 100644 (file)
@@ -10,7 +10,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   setDefaultVideoChannel
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 422a75d6e1814ec802f66694c6d59ae878ad7975..93bf01842d29040ab05434212f232598a3cc089a 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
+import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands'
 
 const expect = chai.expect
 
index 57b1cab23c21d3ebd5308d83c9f0c4d865f6a232..5aa94af5d96ae572e26a69329142f07d47af27ab 100644 (file)
@@ -3,7 +3,7 @@
 import 'mocha'
 import { expect } from 'chai'
 import { cloneDeep } from 'lodash'
-import { buildAbsoluteFixturePath, buildRequestStub } from '@shared/extra-utils'
+import { buildAbsoluteFixturePath, buildRequestStub } from '@shared/server-commands'
 import { buildSignedActivity } from '../../../helpers/activitypub'
 import { isHTTPSignatureVerified, isJsonLDSignatureVerified, parseHTTPSignature } from '../../../helpers/peertube-crypto'
 
index 81fee004471c2a348884f7271ecce2385443c8c6..669a86fca52a2e9876c5461f9ba8408f3b1094c7 100644 (file)
@@ -11,7 +11,7 @@ import {
   setDefaultVideoChannel,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models'
 
 describe('Test AP refresher', function () {
index 2700cff1383f5b532614e1657e42aec8b5c4c3fd..3b871ae12da5601fb6468be7c364d4444ff03022 100644 (file)
@@ -6,7 +6,7 @@ import { activityPubContextify, buildSignedActivity } from '@server/helpers/acti
 import { buildDigest } from '@server/helpers/peertube-crypto'
 import { HTTP_SIGNATURE } from '@server/initializers/constants'
 import { buildGlobalHeaders } from '@server/lib/job-queue/handlers/utils/activitypub-http-utils'
-import { buildAbsoluteFixturePath, cleanupTests, createMultipleServers, killallServers, PeerTubeServer, wait } from '@shared/extra-utils'
+import { buildAbsoluteFixturePath, cleanupTests, createMultipleServers, killallServers, PeerTubeServer, wait } from '@shared/server-commands'
 import { makeFollowRequest, makePOSTAPRequest } from '@server/tests/shared'
 import { HttpStatusCode } from '@shared/models'
 
index fb9a5fd8b061b05a7db52dc35cfa9b58edebbd75..58167cbab9055ad642233d452180d725ded40542 100644 (file)
@@ -14,7 +14,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { AbuseCreate, AbuseState, HttpStatusCode } from '@shared/models'
 
 describe('Test abuses API validators', function () {
index 141d869b764da0e2bb284fb9a58dc591b4b8715a..fc8e63ed4f463ed95ebb48f115a824a0d2811b82 100644 (file)
@@ -8,7 +8,7 @@ import {
   cleanupTests,
   createSingleServer,
   PeerTubeServer
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test accounts API validators', function () {
index f72a892e2dc7baec1e990f5277e460291b6e6df9..2dc3a166deadf381cf43530fbd9b601290ac0b5d 100644 (file)
@@ -13,7 +13,7 @@ import {
   makePostBodyRequest,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test blocklist API validators', function () {
index bc9d7784d7f094808a41f3e2174f4580241f05e0..9bd0016cfffc210aa9b23538ec5f95e4df4c8be9 100644 (file)
@@ -1,7 +1,7 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
 import 'mocha'
-import { cleanupTests, createSingleServer, makePostBodyRequest, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, makePostBodyRequest, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test bulk API validators', function () {
index a6e87730a5c5ddfa19977db713395365dcbd3586..3cccb612a05b744850c0e55ac953ec8c5ce844da 100644 (file)
@@ -10,7 +10,7 @@ import {
   makePutBodyRequest,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { CustomConfig, HttpStatusCode } from '@shared/models'
 
 describe('Test config API validators', function () {
index 9f86fecc65f3d835d55d61f439bf2f2048093077..a2e51e14d38ffd751bd782d05f11c4cd7a424478 100644 (file)
@@ -1,9 +1,15 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
 import 'mocha'
-import { cleanupTests, createSingleServer, killallServers, MockSmtpServer, PeerTubeServer } from '@shared/extra-utils'
-import { ContactFormCommand } from '@shared/extra-utils/server'
 import { HttpStatusCode } from '@shared/models'
+import {
+  cleanupTests,
+  ContactFormCommand,
+  createSingleServer,
+  killallServers,
+  MockSmtpServer,
+  PeerTubeServer
+} from '@shared/server-commands'
 
 describe('Test contact form API validators', function () {
   let server: PeerTubeServer
index 9fbbea31503a7061d001fe5c6c3a37a9fe5622bb..a102ee437f1601cec60a4566b779aec22a90ccbe 100644 (file)
@@ -8,7 +8,7 @@ import {
   makePutBodyRequest,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test custom pages validators', function () {
index a55786359ebf478d750f35317961435ffc8ab068..cfa44decab0e8523ded5add834824dab833ce1a4 100644 (file)
@@ -1,7 +1,7 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
 import 'mocha'
-import { cleanupTests, createSingleServer, makeGetRequest, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, makeGetRequest, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test debug API validators', function () {
index 2bc9f6b968175d10a982ba15cc3456a1860b1961..6121d22022c251f35595a08a6726eb402ace63bb 100644 (file)
@@ -12,7 +12,7 @@ import {
   makePostBodyRequest,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test server follows API validators', function () {
index 23d95d8e4c502b10abf11d6f3407827cac2689b4..b7c603755f945a87c7060ce4d551d4e25853e910 100644 (file)
@@ -10,7 +10,7 @@ import {
   makeGetRequest,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test jobs API validators', function () {
index 8e1d655d4974c565e423171017c512e45dc3db71..8b79d97e09180797543d4024006c0db531564ead 100644 (file)
@@ -13,7 +13,7 @@ import {
   sendRTMPStream,
   setAccessTokensToServers,
   stopFfmpeg
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models'
 
 describe('Test video lives API validator', function () {
index 05372257a7addca2c1d93c43cf803175cea097aa..970671c15ec0c3101d247db09f525ba0d4a11b4c 100644 (file)
@@ -1,7 +1,7 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
 import 'mocha'
-import { cleanupTests, createSingleServer, makeGetRequest, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, makeGetRequest, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test logs API validators', function () {
index d35284d6006ae038fd35f0f97fbac9d42bea6690..c8ac71476e48b2412af94731eacc193c34c6904d 100644 (file)
@@ -15,7 +15,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   UsersCommand
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, UserRole, VideoCreateResult } from '@shared/models'
 
 describe('Test my user API validators', function () {
index 2c436376c96682f3fa76d5042be8503fb78b0418..79e4875901ae22261d218c3b7d2387dd271ebf93 100644 (file)
@@ -12,7 +12,7 @@ import {
   makePutBodyRequest,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, PeerTubePlugin, PluginType } from '@shared/models'
 
 describe('Test server plugins API validators', function () {
index d9f9055496b7260fbf0d7135be1927fe7422e890..f3bfcb16caad5a4f8ff5e597f8744434b82b1d14 100644 (file)
@@ -15,7 +15,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoCreateResult } from '@shared/models'
 
 describe('Test server redundancy API validators', function () {
index cc15d25930865bf8a3a765266a2cbed508c7068d..edeeed571ed3c2c807872772e76fd8123c9561c5 100644 (file)
@@ -10,7 +10,7 @@ import {
   makeGetRequest,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 function updateSearchIndex (server: PeerTubeServer, enabled: boolean, disableLocalSearch = false) {
index 8d795fabc232f96763e3fa780c6f736569641e05..e63f09884716ab1a0a86414e55249abd3c2884f1 100644 (file)
@@ -8,7 +8,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   setDefaultVideoChannel
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models'
 
 describe('Test services API validators', function () {
index 6b6f73d46d92ac1543877d5ceb39cba1630ddf0f..11ade9071c4d5781e61dd9c7f1c7056dd8b87435 100644 (file)
@@ -1,7 +1,7 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
 import 'mocha'
-import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
+import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands'
 import { HttpStatusCode, UserRole } from '@shared/models'
 
 describe('Test transcoding API validators', function () {
index 322e93d0d53348842c5eb87b73599076d1382dab..02898bb8770c9425bb53e2d696f41671a984762b 100644 (file)
@@ -12,7 +12,7 @@ import {
   setDefaultVideoChannel,
   VideosCommand,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoImportState, VideoPrivacy } from '@shared/models'
 
 describe('Test upload quota', function () {
index 17edf5aa1789dd1456a3a52f971cc5c7dadac08f..912d4a992e7ffc72d605b5a38ad9821c19253fb5 100644 (file)
@@ -14,7 +14,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   wait
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, UserNotificationSetting, UserNotificationSettingValue } from '@shared/models'
 
 describe('Test user notifications API validators', function () {
index 624069c80ba0c2adada7b8c272d54ea78e5588f4..95226dff58f18590b7186af5c409a0f85edc93dc 100644 (file)
@@ -13,7 +13,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test user subscriptions API validators', function () {
index f71414a6b682ee7a97457f4ebddd469fa782033c..c98b5e189380288239e5fe7d4f09ec5bbd58dea8 100644 (file)
@@ -15,7 +15,7 @@ import {
   MockSmtpServer,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, UserAdminFlag, UserRole } from '@shared/models'
 
 describe('Test users admin API validators', function () {
index 5f9cbc5eb3d8c0a0e6c10ff38526905a956a4f89..254177afd32bcb5c6263af913b552bbd6a1416f0 100644 (file)
@@ -9,7 +9,7 @@ import {
   MockSmtpServer,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, UserRole } from '@shared/models'
 
 describe('Test users API validators', function () {
index 1f926d227574149c4c57f6f63f22c43cc5be171d..7eb3c1cae53eb8a8466af73f015421d53e4b0509 100644 (file)
@@ -15,7 +15,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoBlacklistType } from '@shared/models'
 
 describe('Test video blacklist API validators', function () {
index 90f429314543e7953b279541e2e96e51d190e115..34c1a9673df4c7db3073cebbb23f085eaffe887d 100644 (file)
@@ -10,7 +10,7 @@ import {
   makeUploadRequest,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoCreateResult } from '@shared/models'
 
 describe('Test video captions API validator', function () {
index e86c315fa57c3ce2aef16224a7165eee1fd5dc4f..747a5d3ec16b915d9669efe79aa8def8a22721d3 100644 (file)
@@ -17,7 +17,7 @@ import {
   makeUploadRequest,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoChannelUpdate } from '@shared/models'
 
 const expect = chai.expect
index 2d9ee1e0d2fa50c43ebd09a333a94148bd38fcee..05cf61cba2e80d277b5d14872f1dbeb7a24be497 100644 (file)
@@ -13,7 +13,7 @@ import {
   makePostBodyRequest,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoCreateResult } from '@shared/models'
 
 const expect = chai.expect
index 3ccdf5f49d629db778ce97bedc099ce58c0127f0..90ab4460c55682300dff48f011a81ff4577f43a1 100644 (file)
@@ -1,7 +1,7 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
 import 'mocha'
-import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
+import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands'
 import { HttpStatusCode, UserRole } from '@shared/models'
 
 describe('Test videos files', function () {
index d6d745488c5c973bd8dac192157bb478383c8ada..7cefb2a540dc345affc860a3553ddffec2ae296c 100644 (file)
@@ -15,7 +15,7 @@ import {
   makeUploadRequest,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoPrivacy } from '@shared/models'
 
 describe('Test video imports API validator', function () {
index e4d541b480f213ec043e01ac431ab9fbae430678..ac3c13f78c1e279fe616783757eab399b2820613 100644 (file)
@@ -12,7 +12,7 @@ import {
   PlaylistsCommand,
   setAccessTokensToServers,
   setDefaultVideoChannel
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import {
   HttpStatusCode,
   VideoPlaylistCreate,
index f2b5bee8e1f67886c17930f5dffdfe2c9103394e..6b3ec917ecdee6e761b0f86633f46b662f9a6bee 100644 (file)
@@ -8,7 +8,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   setDefaultVideoChannel
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, UserRole, VideoInclude, VideoPrivacy } from '@shared/models'
 
 describe('Test video filters validators', function () {
index c3c309ed28663afe3eeef71d9c875c98e01c4458..e4b4c4b2adf5f0194aaec247e82d9f4760020de8 100644 (file)
@@ -11,7 +11,7 @@ import {
   makePutBodyRequest,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test videos history API validator', function () {
index c2139d74b3c9863157cdbb2d6e8c619c2c6a5be9..1da15dc437af098d51400a50ae3862df6fb814df 100644 (file)
@@ -1,7 +1,7 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
 import 'mocha'
-import { cleanupTests, createSingleServer, PeerTubeServer } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, PeerTubeServer } from '@shared/server-commands'
 
 describe('Test videos overview', function () {
   let server: PeerTubeServer
index d02b6e156d9c8b945ebd72def82f9b676ebf87e1..3b2607eed2931c6d7314cd8721691946e2d78942 100644 (file)
@@ -19,7 +19,7 @@ import {
   PeerTubeServer,
   root,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, PeerTubeProblemDocument, VideoCreateResult, VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 6a6a11796f86cb3180c51f0a03b4d6b47119b4a3..89880c46bebff2f1d917496a60aec7c25cc0d4da 100644 (file)
@@ -14,7 +14,7 @@ import {
   setDefaultVideoChannel,
   wait,
   waitJobs
-} from '../../../../shared/extra-utils'
+} from '../../../../shared/server-commands'
 
 const expect = chai.expect
 
index c5f942901dc132ce01f8df222f6c12317eaa9f97..12a4d64d80a0637143bb5f5c10e01f30ca71a889 100644 (file)
@@ -14,7 +14,7 @@ import {
   stopFfmpeg,
   wait,
   waitJobs
-} from '../../../../shared/extra-utils'
+} from '../../../../shared/server-commands'
 
 const expect = chai.expect
 
index 378e6df3cce82ca364e9fed14ec7dff51bedd2b8..31e8f906ebc73e6f85907dc634dab4dc5710d4ac 100644 (file)
@@ -14,7 +14,7 @@ import {
   stopFfmpeg,
   testFfmpegStreamError,
   waitUntilLivePublishedOnAllServers
-} from '../../../../shared/extra-utils'
+} from '../../../../shared/server-commands'
 
 const expect = chai.expect
 
index 6c4ea90ca881683a60b22dde56a82c5923d4dc35..9fb6b4e54404b5e142114112c4ef90fad8e23aab 100644 (file)
@@ -18,7 +18,7 @@ import {
   waitJobs,
   waitUntilLivePublishedOnAllServers,
   waitUntilLiveSavedOnAllServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, LiveVideoCreate, VideoPrivacy, VideoState } from '@shared/models'
 
 const expect = chai.expect
index 33ee2c0514a0e17118221b5bed02e3db460fbbae..42cf9c5f67a08372cbfc07a2e7a52c07a06f85f1 100644 (file)
@@ -14,7 +14,7 @@ import {
   wait,
   waitJobs,
   waitUntilLivePublishedOnAllServers
-} from '../../../../shared/extra-utils'
+} from '../../../../shared/server-commands'
 
 const expect = chai.expect
 
index 9186af8e740f1e310cb1bc9fcf36630ec7339878..5de4436bec1a8b8d03633da507bc2d3c6516ae68 100644 (file)
@@ -15,7 +15,7 @@ import {
   wait,
   waitJobs,
   waitUntilLivePublishedOnAllServers
-} from '../../../../shared/extra-utils'
+} from '../../../../shared/server-commands'
 
 const expect = chai.expect
 
index b96c03cf851a1a6aad60c8cfe78c2167c30b3b52..3869fd6c7d577894e4e5517b94787c917c2b125f 100644 (file)
@@ -24,7 +24,7 @@ import {
   wait,
   waitJobs,
   waitUntilLivePublishedOnAllServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import {
   HttpStatusCode,
   LiveVideo,
index c258414ce3c39145a7fd87dbffbfc901ef533af4..9eb84fdecf1a588b901ff36ab8b7132d84b63b05 100644 (file)
@@ -10,7 +10,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { AbuseMessage, AbusePredefinedReasonsString, AbuseState, AdminAbuse, UserAbuse } from '@shared/models'
 
 const expect = chai.expect
index 75b15c298729d793184f3b6e665edc157f3d3c1e..d1e2ea56e8fcd638f34d302310385efe9bc15f07 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
+import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands'
 import { UserNotificationType } from '@shared/models'
 
 const expect = chai.expect
index b3fd8ecac8cfcf0894e32ff2a24a36bd88886c62..b45460bb4fd30bcd7a8a2da8323e9904f629dfa1 100644 (file)
@@ -11,7 +11,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { UserNotificationType } from '@shared/models'
 
 const expect = chai.expect
index d5838191ad47c04ba37d8b572e30ac0515f1ff95..4e2887fa0c52c75a2ea3d76a5d3e0ab48e490a5f 100644 (file)
@@ -13,7 +13,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { UserAdminFlag, UserRole, VideoBlacklist, VideoBlacklistType } from '@shared/models'
 
 const expect = chai.expect
index c00d4e2575ae009b74415a54863b348d366870f8..18962a71e77363f4ce4d155a20352907fcff4ab9 100644 (file)
@@ -12,7 +12,7 @@ import {
   PeerTubeServer,
   prepareNotificationsTest,
   wait
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { PluginType, UserNotification, UserNotificationType } from '@shared/models'
 
 describe('Test admin notifications', function () {
index 7cbb2139795be2b7072dff74cb4db60a411c4437..919be4bcaaee835c1025ed189c4c4a61fc219da9 100644 (file)
@@ -11,7 +11,7 @@ import {
   PeerTubeServer,
   prepareNotificationsTest,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { UserNotification } from '@shared/models'
 
 const expect = chai.expect
index 6d8e5359bd7dd16f937ddb8f8e17f7e9cc6fd8e6..4da9d268400f24763e7942355ffbdfa433c6b31d 100644 (file)
@@ -23,7 +23,7 @@ import {
   prepareNotificationsTest,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { AbuseState, CustomConfig, UserNotification, UserRole, VideoPrivacy } from '@shared/models'
 
 describe('Test moderation notifications', function () {
index a529a9bf7b78f73ce36919d1f03a344c94d305e4..aeb73350bdf8f9f19b89dcdbedd58970a5b16b40 100644 (file)
@@ -11,7 +11,7 @@ import {
   PeerTubeServer,
   prepareNotificationsTest,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { UserNotification, UserNotificationSettingValue } from '@shared/models'
 
 const expect = chai.expect
index 6db0347cc14d03d9306f61e955a63c3225683205..a2fcdf2ef5efc51a243a9bb1f1f8b9624a3e0a87 100644 (file)
@@ -17,7 +17,7 @@ import {
   uploadRandomVideoOnServers,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { UserNotification, UserNotificationType, VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 3726a717bd74b3eca51c653e1319b581430649ae..2c341c139df61653fea2a35d4de1f60821e3c531 100644 (file)
@@ -18,7 +18,7 @@ import {
   waitJobs,
   waitUntilLivePublishedOnAllServers,
   waitUntilLiveSavedOnAllServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, LiveVideoCreate, VideoFile, VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 363fe3b5be59992d34f14bcfb53bdb9676aaec23..adca16e8f915832e32d5b630a5a5a10bc2ee0450 100644 (file)
@@ -14,7 +14,7 @@ import {
   setAccessTokensToServers,
   setDefaultVideoChannel,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 35a5f19eda1a773cf4250a83532f6ae6ac174936..bf469015f8d75cfa23dc82a922bf221c8b476f2c 100644 (file)
@@ -20,7 +20,7 @@ import {
   setAccessTokensToServers,
   waitJobs,
   webtorrentAdd
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoDetails } from '@shared/models'
 
 const expect = chai.expect
index 5fd464dedbbe7442b5320e912d39795225b28fad..cbf3106bd433f1b31f89eefee7a353fe7f557358 100644 (file)
@@ -10,7 +10,7 @@ import {
   RedundancyCommand,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { VideoPrivacy, VideoRedundanciesTarget } from '@shared/models'
 
 const expect = chai.expect
index 933a2c7760c1f881f9582f0c7127f7ba40b2d983..1a8d8183b65f94e53a585134f14e44c0cd1490ac 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import { expect } from 'chai'
-import { cleanupTests, createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands'
 import { VideoPrivacy } from '@shared/models'
 
 describe('Test redundancy constraints', function () {
index b5929129a9676086ea46b432d66512cedfc4ffdc..556cfbc31f3ceabe18a6e75120b21bdcc6909efa 100644 (file)
@@ -19,7 +19,7 @@ import {
   setAccessTokensToServers,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import {
   HttpStatusCode,
   VideoDetails,
index efcdb33dcf7301d5a27821bc07c41e2661e2b42f..1f29f840a5aa5def010f6fa04612988036a6e674 100644 (file)
@@ -10,7 +10,7 @@ import {
   setAccessTokensToServers,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { VideoChannel } from '@shared/models'
 
 const expect = chai.expect
index 34b318268124e852b8bcd24b473b2100aa1d2ee2..550af8ed20309164c11b13550d5c8f43b69cedfe 100644 (file)
@@ -11,7 +11,7 @@ import {
   setDefaultVideoChannel,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { VideoPlaylistPrivacy } from '@shared/models'
 
 const expect = chai.expect
index a2e6e70fea5533e7107c1ab2edef8619a70d122b..5aa3738c9a51c906a8e523d4294725633f042caf 100644 (file)
@@ -10,7 +10,7 @@ import {
   setAccessTokensToServers,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 67612537c902810e66e6c0c339ab7c9fbaf9b4c2..8a92def61d7af42d5b5339e61fbb507025a96be5 100644 (file)
@@ -9,7 +9,7 @@ import {
   PeerTubeServer,
   SearchCommand,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { VideoChannel } from '@shared/models'
 
 const expect = chai.expect
index 1845c2069d74480f30b709a9ac83ff413090ea8a..f84d03345490706168430f19bc55650cfa8cee38 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { cleanupTests, createSingleServer, PeerTubeServer, SearchCommand, setAccessTokensToServers } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, PeerTubeServer, SearchCommand, setAccessTokensToServers } from '@shared/server-commands'
 import {
   BooleanBothQuery,
   VideoChannelsSearchQuery,
index 15aac029a3bc6749b224108216bc4abfbc1a50bf..1e9c8d4bb1ba46721d9f474097c45447b6a1d0f0 100644 (file)
@@ -10,7 +10,7 @@ import {
   SearchCommand,
   setAccessTokensToServers,
   setDefaultVideoChannel
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { VideoPlaylistPrivacy } from '@shared/models'
 
 const expect = chai.expect
index ad2a2fddce6f11571e125188e9273da9b932ef81..bf2375ffa4235366a55814db0f19154b999b1bc8 100644 (file)
@@ -12,7 +12,7 @@ import {
   setDefaultVideoChannel,
   stopFfmpeg,
   wait
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 90a668edb05b1fe6b980e7d873f20a47d0f6184b..74bb96040e17620328340e8c0d68f86ec38d8697 100644 (file)
@@ -10,7 +10,7 @@ import {
   setAccessTokensToServers,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 
 const expect = chai.expect
 
index 16cbcd5c38f5887134f8816f1b14585c361cc1f9..1b81a695452312930262c777a21656ed7a08ff62 100644 (file)
@@ -10,7 +10,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 
 const expect = chai.expect
 
index 117fc20d7a5eefef878e88c358b94acf32ff4113..4ceda7de3c2ab8e4c7d03187d948d19faf9d5017 100644 (file)
@@ -9,7 +9,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   setDefaultVideoChannel
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { VideoDetails, VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 96ec17b0fce77cb2be2ec9badf49454d1fb818a9..2e6617a15427d31a3c00c020a9437251e8100a19 100644 (file)
@@ -10,7 +10,7 @@ import {
   parallelTests,
   PeerTubeServer,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { CustomConfig, HttpStatusCode } from '@shared/models'
 
 const expect = chai.expect
index c555661adce5ae137bd3f0c295b317fb0c2eadc7..10925145310a5c6adac0506d86fc57c554d5f480 100644 (file)
@@ -11,7 +11,7 @@ import {
   setAccessTokensToServers,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 const expect = chai.expect
index cd8d703411c21de44bcbbfda5ecec35a91fb573e..6fa6053cb3a12d939322ffd4214d9529145492e0 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { cleanupTests, createSingleServer, MockSmtpServer, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, MockSmtpServer, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 const expect = chai.expect
index 471f5d8d0891efacb49f2d621f299d4dabbbfd5d..0f3c138ad4c3b68abf5c56d5b253ffa56a9a65bd 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils'
+import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands'
 import { HttpStatusCode, PeerTubeProblemDocument, ServerErrorCode } from '@shared/models'
 
 const expect = chai.expect
index 921f510435cf3131e6bd138b4481c79f24660ce9..120bd7f885bddafa3e433a2b0a5fe118bcb8648d 100644 (file)
@@ -9,7 +9,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 
 const expect = chai.expect
 
index c132d99eab382cc3d06ddea1fe4ec7ff5ed48263..e128c36a5bd892f557fbf3776ce682c562348398 100644 (file)
@@ -12,7 +12,7 @@ import {
   setAccessTokensToServers,
   testCaptionFile,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { VideoCreateResult, VideoPrivacy } from '@shared/models'
 import { completeVideoCheck } from '@server/tests/shared/video'
 
index 2d059c0ed8775e7a30f57404daf967916aa15287..b134e074be32748f4ea3f2122ed8b83c7118ddd7 100644 (file)
@@ -11,7 +11,7 @@ import {
   setAccessTokensToServers,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, JobState, VideoCreateResult, VideoPrivacy } from '@shared/models'
 import { completeVideoCheck } from '@server/tests/shared/video'
 
index cb3ba5677833e1cab83a6130984ef53d19fa8b09..552ee98cf66f6d18de5b09d457ef8b86f5f0d8b9 100644 (file)
@@ -10,7 +10,7 @@ import {
   killallServers,
   PeerTubeServer,
   setAccessTokensToServers
-} from '../../../../shared/extra-utils/index'
+} from '../../../../shared/server-commands/index'
 
 const expect = chai.expect
 
index 5d946f5e819bdac055f2d672ee1e20c2c6825b91..5b38f67415df8c68310568696de4facf10247c09 100644 (file)
@@ -10,7 +10,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 
 const expect = chai.expect
 
index 4fa13886e97bad549d6fb037e4ed40647986e1f2..697f10337980a27822c0df4eb1fd0b4e841b5e24 100644 (file)
@@ -10,7 +10,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 
 const expect = chai.expect
 
index 1e0c95a3b12da4073dff662739527a7050d12ff5..913907788413f464bfdfbcf9b2aff25ef02bad4f 100644 (file)
@@ -1,6 +1,6 @@
 import 'mocha'
 import request from 'supertest'
-import { cleanupTests, createSingleServer, PeerTubeServer } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, PeerTubeServer } from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Start and stop server without web client routes', function () {
index 5f9f4ffddf99bd8f27036e1208a4448aa9dda020..fbcd8910193365533250e659f0ed3103681e3a76 100644 (file)
@@ -11,7 +11,7 @@ import {
   setAccessTokensToServers,
   testHelloWorldRegisteredSettings,
   wait
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, PluginType } from '@shared/models'
 
 const expect = chai.expect
index 29f3e10d89a68e757b612a7f4ba03928adbc7ad7..626a0d860308fcf7ba6db4242052f7b56820ab3f 100644 (file)
@@ -11,8 +11,8 @@ import {
   setAccessTokensToServers,
   setDefaultVideoChannel,
   waitJobs
-} from '@shared/extra-utils'
-import { MockProxy } from '@shared/extra-utils/mock-servers/mock-proxy'
+} from '@shared/server-commands'
+import { MockProxy } from '@shared/server-commands/mock-servers/mock-proxy'
 import { HttpStatusCode, VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 484f88d674a89da3d16d164763f8ce161eacd740..fc9b88a6a84079bf172c5d7310bfef6696223c19 100644 (file)
@@ -1,7 +1,7 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
 import { expect } from 'chai'
-import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers, wait } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers, wait } from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test application behind a reverse proxy', function () {
index 823630ae43e3c9a2f963f966d9375f9ea6660c75..5fd2abda412aba124e2ac3b7485879dde3a356ae 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers, setDefaultVideoChannel } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers, setDefaultVideoChannel } from '@shared/server-commands'
 import { Video, VideoPlaylistPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 2bef0c9f27c84c078eb6882eca442fdbcda57220..5f24c351bec4e83139a935ac0a2006f93d4ecee1 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
+import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands'
 import { Job } from '@shared/models'
 
 const expect = chai.expect
index efc80463cccf52dd8a24b40d118e0a9ebbb8f2b4..65ef4607bde908c1ec0b7faae1d4319a92872657 100644 (file)
@@ -10,7 +10,7 @@ import {
   setAccessTokensToServers,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { ActivityType, VideoPlaylistPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 30a9618b3024a31c3586fe9232fb4c57ba5105a4..712bb485f15dc8b242ab60e5b646122e0f5930cd 100644 (file)
@@ -3,7 +3,7 @@
 import 'mocha'
 import magnetUtil from 'magnet-uri'
 import WebTorrent from 'webtorrent'
-import { cleanupTests, createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands'
 
 describe('Test tracker', function () {
   let server: PeerTubeServer
index d1d19223853dbe3632335dc59508aca6084305de..190a19c386caf12768ec218b14d86a64e3438f20 100644 (file)
@@ -10,7 +10,7 @@ import {
   setAccessTokensToServers,
   SubscriptionsCommand,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 
 const expect = chai.expect
 
index d0ca82b07867f77371d406c913128892361bc159..e6699a059a949e878f24b56d8fe36eda065e0f38 100644 (file)
@@ -14,7 +14,7 @@ import {
   setAccessTokensToServers,
   testImage,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { MyUser } from '@shared/models'
 
 const expect = chai.expect
index f54463359da6b6b667f1ad5fb92d8087d7d2fbde..9b23ba7972a76ed400a9e82bf502aeb87d751d75 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { cleanupTests, createSingleServer, MockSmtpServer, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, MockSmtpServer, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 const expect = chai.expect
index f00cbab5a71053760268ecbaf7a4b07a679c23fb..fc44a6acd38fbd0e246eac319b29cd2b528657ae 100644 (file)
@@ -11,7 +11,7 @@ import {
   setAccessTokensToServers,
   testImage,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { AbuseState, HttpStatusCode, OAuth2ErrorCode, UserAdminFlag, UserRole, Video, VideoPlaylistType } from '@shared/models'
 
 const expect = chai.expect
index f4b635bd5cbac711d15d62b3116c226828e6acb5..4b27f2fbe2765d0b328443fce09fc5d2f89bf180 100644 (file)
@@ -3,7 +3,7 @@
 import 'mocha'
 import * as chai from 'chai'
 import { getAudioStream, getVideoStreamSize } from '@server/helpers/ffprobe-utils'
-import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
+import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands'
 
 const expect = chai.expect
 
index 9e7b39cfa432587b3b0c6e3f24c32eebf2ac2bab..cb83fa0f07ac7984c7860f4815398b9bf590f47b 100644 (file)
@@ -18,7 +18,7 @@ import {
   wait,
   waitJobs,
   webtorrentAdd
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoCommentThreadTree, VideoPrivacy } from '@shared/models'
 import { completeVideoCheck } from '@server/tests/shared/video'
 
index 1ba7cdbcc4bc775a0a5a1cb6a05b2dcd989d8d41..0842817dc7f1699763ebaf2d4ba3505625cb6402 100644 (file)
@@ -11,7 +11,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   setDefaultVideoChannel
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 100067f1813028722367082aa1e49d9959e3c11d..e5e12dd1918333685f877a3d9b9c6e2668bdc026 100644 (file)
@@ -10,7 +10,7 @@ import {
   setAccessTokensToServers,
   testImage,
   wait
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { Video, VideoPrivacy } from '@shared/models'
 import { completeVideoCheck } from '@server/tests/shared/video'
 
index 3bb0d131cba6db5d9a8d01e990a97a7701f3e6b0..9f00312aa3969012b304ce2eab21234eae58a1f3 100644 (file)
@@ -12,7 +12,7 @@ import {
   testCaptionFile,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 
 const expect = chai.expect
 
index d6665fe4e89d5ad9a91b00f0e476ed7f5bb73bbf..6c229c6cfa74b6ca00bdd68bff4638de3df35184 100644 (file)
@@ -12,7 +12,7 @@ import {
   setAccessTokensToServers,
   setDefaultVideoChannel,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 6ab5faa077cda9b1348c655ce4137d420b02f342..2ac577a59914a0a6f3654c9ae46ade06c9765e45 100644 (file)
@@ -15,7 +15,7 @@ import {
   testImage,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { User, VideoChannel } from '@shared/models'
 
 const expect = chai.expect
index 61ee54540963426fd27c92d3ec5298fe9caa9b57..bb4f92a9bd74ef977f6ab4be42f482a430d156fc 100644 (file)
@@ -10,7 +10,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   testImage
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 
 const expect = chai.expect
 
index c4627e0c120255bf07e8c79457796a5159bdb65f..e81f5471450c2ce8fcb7cdc783d9eab48a8be69b 100644 (file)
@@ -14,7 +14,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoDetails } from '@shared/models'
 
 const expect = chai.expect
index d22b4ed962370414982f1ae51d6820a026f3bc44..23c55f7280ae279015f94cb298ad63ed38887b94 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
+import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands'
 
 const expect = chai.expect
 
index fcb2ca2e4d9326c45ec50339d97cf31b5336e8e4..0b51217401ce445a5aa70902e919db79a49bef9e 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import { expect } from 'chai'
-import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
+import { cleanupTests, createMultipleServers, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands'
 
 describe('Test videos files', function () {
   let servers: PeerTubeServer[]
index a18c3d6720402589150f5e97b82f3fad292ad257..d050a7a7e29e36085ef514a25dbb4fe51a973989 100644 (file)
@@ -21,7 +21,7 @@ import {
   setAccessTokensToServers,
   waitJobs,
   webtorrentAdd
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoStreamingPlaylistType } from '@shared/models'
 import { DEFAULT_AUDIO_RESOLUTION } from '../../../initializers/constants'
 
index b6168b54e2df34f0389085d237f452ede220c48e..2518743f7da13de2963dc98d5142cc39a94833d5 100644 (file)
@@ -17,7 +17,7 @@ import {
   testCaptionFile,
   testImage,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { VideoPrivacy, VideoResolution } from '@shared/models'
 
 async function checkVideosServer1 (server: PeerTubeServer, idHttp: string, idMagnet: string, idTorrent: string) {
index b5d183d6278deabca0acea74c4390a238d2846e0..99ea67a0fe1644d61ec31f6c2889adc84779f58e 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands'
 import { BooleanBothQuery, CustomConfig, ResultList, Video, VideosOverview } from '@shared/models'
 
 const expect = chai.expect
index f0b2ca169fc19f00f074cb5f25cd645275a2d517..e6b6c34eb49c2f4100b5c878316bce705a82716f 100644 (file)
@@ -11,7 +11,7 @@ import {
   setDefaultVideoChannel,
   testImage,
   waitJobs
-} from '../../../../shared/extra-utils'
+} from '../../../../shared/server-commands'
 import { VideoPlaylistPrivacy } from '../../../../shared/models/videos/playlist/video-playlist-privacy.model'
 
 const expect = chai.expect
index f42aee2ffb05a5d7d6f0d77bb2306902a5c8194c..6279f5cd05482dfc50354043ed572b3ef0971d04 100644 (file)
@@ -14,7 +14,7 @@ import {
   testImage,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import {
   HttpStatusCode,
   VideoPlaylist,
index 08b624ff342c2cbb8765a12aadb99bb79599bd51..13eb941eae45c23439eb64d9a1c4f0c2f4da8cc4 100644 (file)
@@ -10,7 +10,7 @@ import {
   setAccessTokensToServers,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 3f77387842d1455f0441be17043ebc6d2bf4ebb9..9408574ad515164d35dc2a1aec14e6d835a3fc5a 100644 (file)
@@ -10,7 +10,7 @@ import {
   setAccessTokensToServers,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 7ed55b8e8d3d18b0fb2c3e2fe98c0169f723d9f9..f4b0bc53a87c776d47a316aa280d5ebb403ad26c 100644 (file)
@@ -16,7 +16,7 @@ import {
   setAccessTokensToServers,
   waitJobs,
   webtorrentAdd
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoState } from '@shared/models'
 import {
   canDoQuickTranscode,
index ca5f421736183ac466304c8b3fbea70f31cdda44..0254662c5429d81360e1f8709206cc8886d52963 100644 (file)
@@ -12,7 +12,7 @@ import {
   setAccessTokensToServers,
   setDefaultVideoChannel,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, UserRole, Video, VideoDetails, VideoInclude, VideoPrivacy } from '@shared/models'
 
 describe('Test videos filter', function () {
index e4bc0bb3a3569f776dd033ecdd1e52bc276ba4b0..813fc4f45d23af89eb5c50498c0933f1e76a92c2 100644 (file)
@@ -10,7 +10,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   wait
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, Video } from '@shared/models'
 
 const expect = chai.expect
index 70aa665499c9ef7d50102e7ba27cb6728a34e140..08a4efb6341b1e1f107fa403e9008ada8d018f69 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers, wait } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers, wait } from '@shared/server-commands'
 import { VideosOverview } from '@shared/models'
 
 const expect = chai.expect
index 82268b1bed019c074def3744df628ed8060b0857..7f7597af4c078c2c5d5d8368f3d6cd183962a396 100644 (file)
@@ -11,7 +11,7 @@ import {
   setAccessTokensToServers,
   wait,
   waitJobs
-} from '../../../../shared/extra-utils'
+} from '../../../../shared/server-commands'
 
 const expect = chai.expect
 
index c06b9550cb4d611216c657f9c15da7aa2978d850..5973272e5da77512b9633a29ed28110c46252d12 100644 (file)
@@ -13,7 +13,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoDetails, VideoFile, VideoInclude } from '@shared/models'
 
 const expect = chai.expect
index b598c835922505ee749332325c99602ba9572657..8b66f24bfe3a8e6218fe048db2d0405974eb2798 100644 (file)
@@ -13,7 +13,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoDetails } from '@shared/models'
 
 async function checkFiles (origin: PeerTubeServer, video: VideoDetails, inObjectStorage: boolean) {
index fb9c2584fbf7c593de5b33b7b9b65082e5555b48..ea34286627bb1bfbdfbc844bd1124bc390117964 100644 (file)
@@ -14,7 +14,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '../../../shared/extra-utils'
+} from '../../../shared/server-commands'
 
 const expect = chai.expect
 
index 3ac440f841aea58c7bde291c121a7ead926fed45..72213473b5d61a61a160071adb1f2ee09f933678 100644 (file)
@@ -14,7 +14,7 @@ import {
   setAccessTokensToServers,
   testHelloWorldRegisteredSettings,
   waitJobs
-} from '../../../shared/extra-utils'
+} from '../../../shared/server-commands'
 
 describe('Test CLI wrapper', function () {
   let server: PeerTubeServer
index 07c78cc89ea9956b8246b362732efe99ff4f94d0..d9cf9465c3f307d5a6a3ef18fce381c21876d741 100644 (file)
@@ -9,7 +9,7 @@ import {
   PeerTubeServer,
   PluginsCommand,
   setAccessTokensToServers
-} from '../../../shared/extra-utils'
+} from '../../../shared/server-commands'
 
 describe('Test plugin scripts', function () {
   let server: PeerTubeServer
index 0b86292516771b2306c5ebb74ce7570ebb912925..36c43c6df3058dc67db807756e29e14d31a5c903 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { buildAbsoluteFixturePath, CLICommand } from '@shared/extra-utils'
+import { buildAbsoluteFixturePath, CLICommand } from '@shared/server-commands'
 import { VideoResolution } from '../../../shared/models/videos'
 
 const expect = chai.expect
index 4b4f755271a6a0ae51660e869a51c84ca9c9901a..e0bc6a58979146119e9dc5eb5f0843cfd5eaa8ac 100644 (file)
@@ -17,7 +17,7 @@ import {
   setDefaultVideoChannel,
   wait,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 780c9b4bd839c31e84af72b476d4200be9b2f0c4..98d15272aa8330b4d55668025a9addac96489892 100644 (file)
@@ -11,7 +11,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '../../../shared/extra-utils'
+} from '../../../shared/server-commands'
 
 async function testThumbnail (server: PeerTubeServer, videoId: number | string) {
   const video = await server.videos.get({ id: videoId })
index 4a02db35d58a0dafb029a565da87ef76f6d48247..34dedb11368a18f952528a0092ce63132040a2ef 100644 (file)
@@ -1,5 +1,5 @@
 import 'mocha'
-import { cleanupTests, CLICommand, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '../../../shared/extra-utils'
+import { cleanupTests, CLICommand, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '../../../shared/server-commands'
 
 describe('Test reset password scripts', function () {
   let server: PeerTubeServer
index 43fbaec305d8489322a1008546d3c3cdc78b26fc..da89ff153f68f2d2b7fa0c35d835d2ff45baad95 100644 (file)
@@ -11,7 +11,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 
 describe('Test update host scripts', function () {
   let server: PeerTubeServer
index a91bec9068988ee1ffc835bd9d104bc27e65735d..fe048d7ff4a05bbdf89ca5345a793aafc094339e 100644 (file)
@@ -14,7 +14,7 @@ import {
   setAccessTokensToServers,
   setDefaultVideoChannel,
   waitJobs
-} from '../../shared/extra-utils'
+} from '../../shared/server-commands'
 
 const expect = chai.expect
 
index acec69df59e455f9a36d3859b53aee2f8ed2b9dc..326453a5f2cb0b189c5a1da3d2637b3dac8b5da8 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import { expect } from 'chai'
-import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Official plugin auth-ldap', function () {
index 0eb4bda9ade8e0e9c007419cd4f9f81411e0af64..2f75ad25b5696904ea6e235a1675675a1348e36a 100644 (file)
@@ -11,7 +11,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   wait
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { Video } from '@shared/models'
 
 async function check (server: PeerTubeServer, videoUUID: string, exists = true) {
index 271779dd4c5eb99adfca4e269ccd0c7a6ad479e4..bfa67e7ad18b007468e1ba3505bd0c577128546e 100644 (file)
@@ -12,7 +12,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   wait
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Official plugin auto-mute', function () {
index a1c976fd30d013ed3d3f0c5ef66c354efd6121cb..bf030162e30aac0069387ff60fb4b74567bbbd70 100644 (file)
@@ -12,7 +12,7 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoPrivacy } from '@shared/models'
 
 chai.use(require('chai-xml'))
index 9fe9aa4cba8c07bc4fea281183dc97aacfafbef8..330139ee4ebb7fc1aa5d6e71f51b57b37be8045b 100644 (file)
@@ -5,7 +5,7 @@ import { expect } from 'chai'
 import { readFile, remove } from 'fs-extra'
 import { join } from 'path'
 import { processImage } from '../../../server/helpers/image-utils'
-import { buildAbsoluteFixturePath, root } from '../../../shared/extra-utils'
+import { buildAbsoluteFixturePath, root } from '../../../shared/server-commands'
 
 async function checkBuffers (path1: string, path2: string, equals: boolean) {
   const [ buf1, buf2 ] = await Promise.all([
index 6edbf2a760b8bb58bef0e75b911e1a8dc76e8321..db0cca39059eb1773e44fa9b932b74e77d19168e 100644 (file)
@@ -4,8 +4,8 @@ import 'mocha'
 import { expect } from 'chai'
 import { pathExists, remove } from 'fs-extra'
 import { join } from 'path'
-import { Mock429 } from '@shared/extra-utils/mock-servers/mock-429'
-import { FIXTURE_URLS, root, wait } from '../../../shared/extra-utils'
+import { Mock429 } from '@shared/server-commands/mock-servers/mock-429'
+import { FIXTURE_URLS, root, wait } from '../../../shared/server-commands'
 import { doRequest, doRequestAndSaveToFile } from '../../helpers/requests'
 
 describe('Request helpers', function () {
index 4968eef089c8487ccb3a68cae8e5f3a6fd0069f2..876546d89783c7dd0384a38f89109bb8d53ce44d 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { cleanupTests, createSingleServer, makeGetRequest, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, makeGetRequest, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands'
 import { HttpStatusCode, VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 4c1bc7d06382dc555f0ee9042c52d7df3d07d46c..686926c170330562509b816aea8230efc7c71d1f 100644 (file)
@@ -9,7 +9,7 @@ import {
   PluginsCommand,
   setAccessTokensToServers,
   setDefaultVideoChannel
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { ServerHookName, VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models'
 
 describe('Test plugin action hooks', function () {
index 25b25bfee95734526434dd6a7d0d8c1a548c4914..a4a3764f551438cb7f4c3bedfb27e70714ed99cc 100644 (file)
@@ -10,7 +10,7 @@ import {
   PluginsCommand,
   setAccessTokensToServers,
   wait
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, UserRole } from '@shared/models'
 
 async function loginExternal (options: {
index ff2afc56bd0bd6fc7d10b9abdcb71c8e13c6ccc2..a84edfac6833c2270aea69391cdbabcd91b3eb14 100644 (file)
@@ -13,7 +13,7 @@ import {
   setAccessTokensToServers,
   setDefaultVideoChannel,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoDetails, VideoImportState, VideoPlaylist, VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 95c0cd687b69b80a3cfa400df6364e40094fc705..9e10d330204050eb27ff5ea4b1838bacf5c1fcb3 100644 (file)
@@ -9,7 +9,7 @@ import {
   PeerTubeServer,
   PluginsCommand,
   setAccessTokensToServers
-} from '../../../shared/extra-utils'
+} from '../../../shared/server-commands'
 
 const expect = chai.expect
 
index fde0166f9ab6fa91615a8ec2d23426dfe6a80836..ea3b0f6ab2c3f7653f141101f2402ebe6e0237ac 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import { expect } from 'chai'
-import { cleanupTests, createSingleServer, PeerTubeServer, PluginsCommand, setAccessTokensToServers, wait } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, PeerTubeServer, PluginsCommand, setAccessTokensToServers, wait } from '@shared/server-commands'
 import { HttpStatusCode, UserRole } from '@shared/models'
 
 describe('Test id and pass auth plugins', function () {
index da84658bbd04908b4509c1bd52a37ac9660910b9..4ab4acd584c231b7594aeb66f7e417e4e3b8a3ec 100644 (file)
@@ -15,7 +15,7 @@ import {
   PluginsCommand,
   setAccessTokensToServers,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, ThumbnailType } from '@shared/models'
 
 function postCommand (server: PeerTubeServer, command: string, bodyArg?: object) {
index b1ac9e2fe72a1550c16c8215e513b7999e8a69d6..58629adc7d6a3c38935308452f292fee32bee8a6 100644 (file)
@@ -10,7 +10,7 @@ import {
   PeerTubeServer,
   PluginsCommand,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test plugin helpers', function () {
index c0596819ebf9fc7aac2876eb50db4c97f7b168ed..0bfc4fe28ff0fcbdb4af82fd19f44eb1d7fcaa48 100644 (file)
@@ -11,7 +11,7 @@ import {
   PeerTubeServer,
   PluginsCommand,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test plugin storage', function () {
index 93637e3cea58d3307fb417823b7bbbb44a82787c..5ab6864729327883a6081346eb9f4973daf0a7fc 100644 (file)
@@ -12,7 +12,7 @@ import {
   setDefaultVideoChannel,
   testFfmpegStreamError,
   waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { VideoPrivacy } from '@shared/models'
 
 async function createLiveWrapper (server: PeerTubeServer) {
index 6bf2fda9b3610034cf587fef9e768cbf127d14d9..a94b836950b9f339c952b135d6994e5fa8e14ca3 100644 (file)
@@ -9,7 +9,7 @@ import {
   PeerTubeServer,
   PluginsCommand,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode } from '@shared/models'
 
 describe('Test plugins module unloading', function () {
index 8b25c6b7589455fee1022c918868d513e3f0b6c4..0b6e5793dda94480c5659d06dd6206d4070d2e87 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { cleanupTests, createSingleServer, PeerTubeServer, PluginsCommand, setAccessTokensToServers } from '@shared/extra-utils'
+import { cleanupTests, createSingleServer, PeerTubeServer, PluginsCommand, setAccessTokensToServers } from '@shared/server-commands'
 
 const expect = chai.expect
 
index 19cba6c2c85d34651c7823cc8a5cb42b64bd617a..6dce6922f7d6ad7925304220cf0a217faaa58839 100644 (file)
@@ -9,7 +9,7 @@ import {
   PeerTubeServer,
   PluginsCommand,
   setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
 import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models'
 
 const expect = chai.expect
index 95b30b27c3eca01e3929b906ea12afd118189a00..cf923d4cd47793bfeeef44fd50be999fd5667295 100644 (file)
@@ -1,5 +1,5 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions */
-import { dateIsValid, makeRawRequest, PeerTubeServer, testImage, webtorrentAdd } from '@shared/extra-utils'
+import { dateIsValid, makeRawRequest, PeerTubeServer, testImage, webtorrentAdd } from '@shared/server-commands'
 import { expect } from 'chai'
 import { loadLanguages, VIDEO_CATEGORIES, VIDEO_LANGUAGES, VIDEO_LICENCES, VIDEO_PRIVACIES } from '@server/initializers/constants'
 import { getLowercaseExtension, uuidRegex } from '@shared/core-utils'
index 7c763734f61e9dd1c59fa8183d083ebc2c0c0a9f..00adcedeb9bb7741db431e62a497666085ebcda2 100644 (file)
@@ -2,7 +2,7 @@ import { Command } from 'commander'
 import { Netrc } from 'netrc-parser'
 import { join } from 'path'
 import { createLogger, format, transports } from 'winston'
-import { PeerTubeServer } from '@shared/extra-utils'
+import { PeerTubeServer } from '@shared/server-commands'
 import { UserRole } from '@shared/models'
 import { VideoPrivacy } from '../../shared/models/videos'
 import { getAppNumber, isTestInstance } from '../helpers/core-utils'
index 223bf7f1b97432df73d4c9dd585b869bf8aeb741..8314551f64c03905a47ee5b47047f62a80055aa5 100644 (file)
@@ -15,7 +15,7 @@ import {
   getLogger,
   getServerCredentials
 } from './cli'
-import { wait } from '@shared/extra-utils'
+import { wait } from '@shared/server-commands'
 import { YoutubeDLCLI, YoutubeDLInfo, YoutubeDLInfoBuilder } from '@server/helpers/youtube-dl'
 import prompt = require('prompt')
 
index 4b3636d068d80a21dbcf90af368e89778beecb52..5710c5ab501f64d12940bf814840b93c5bb53d94 100644 (file)
@@ -1,15 +1 @@
-export * from './bulk'
-export * from './cli'
-export * from './custom-pages'
-export * from './feeds'
-export * from './logs'
-export * from './miscs'
-export * from './mock-servers'
-export * from './moderation'
-export * from './overviews'
-export * from './requests'
-export * from './search'
-export * from './server'
-export * from './socket'
-export * from './users'
-export * from './videos'
+export * from './ffprobe'
diff --git a/shared/server-commands/index.ts b/shared/server-commands/index.ts
new file mode 100644 (file)
index 0000000..4b3636d
--- /dev/null
@@ -0,0 +1,15 @@
+export * from './bulk'
+export * from './cli'
+export * from './custom-pages'
+export * from './feeds'
+export * from './logs'
+export * from './miscs'
+export * from './mock-servers'
+export * from './moderation'
+export * from './overviews'
+export * from './requests'
+export * from './search'
+export * from './server'
+export * from './socket'
+export * from './users'
+export * from './videos'
similarity index 92%
rename from shared/extra-utils/server/plugins.ts
rename to shared/server-commands/server/plugins.ts
index 0f5fabd5abab9b3fedcbd644ba86fda26a069a8d..c6316898dfaf5a1f4dcf9c87c75d754cbf966899 100644 (file)
@@ -1,7 +1,7 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
 import { expect } from 'chai'
-import { PeerTubeServer } from '../server/server'
+import { PeerTubeServer } from './server'
 
 async function testHelloWorldRegisteredSettings (server: PeerTubeServer) {
   const body = await server.plugins.getRegisteredSettings({ npmName: 'peertube-plugin-hello-world' })
index b01d12e539228a21ff94ed359b23f75c18b948b2..73c1cae6cee06d84e045fe18cbb2b8affad4525f 100644 (file)
@@ -5,5 +5,8 @@
     "stripInternal": true,
     "removeComments": false,
     "emitDeclarationOnly": true
-  }
+  },
+  "exclude": [
+    "server-commands/"
+  ]
 }
diff --git a/shared/typescript-utils/index.ts b/shared/typescript-utils/index.ts
new file mode 100644 (file)
index 0000000..c9f6f04
--- /dev/null
@@ -0,0 +1 @@
+export * from './types'
diff --git a/shared/typescript-utils/types.ts b/shared/typescript-utils/types.ts
new file mode 100644 (file)
index 0000000..bd2a97b
--- /dev/null
@@ -0,0 +1,45 @@
+/* eslint-disable @typescript-eslint/array-type */
+
+export type FunctionPropertyNames<T> = {
+  [K in keyof T]: T[K] extends Function ? K : never
+}[keyof T]
+
+export type FunctionProperties<T> = Pick<T, FunctionPropertyNames<T>>
+
+export type AttributesOnly<T> = {
+  [K in keyof T]: T[K] extends Function ? never : T[K]
+}
+
+export type PickWith<T, KT extends keyof T, V> = {
+  [P in KT]: T[P] extends V ? V : never
+}
+
+export type PickWithOpt<T, KT extends keyof T, V> = {
+  [P in KT]?: T[P] extends V ? V : never
+}
+
+// https://github.com/krzkaczor/ts-essentials Rocks!
+export type DeepPartial<T> = {
+  [P in keyof T]?: T[P] extends Array<infer U>
+    ? Array<DeepPartial<U>>
+    : T[P] extends ReadonlyArray<infer U>
+      ? ReadonlyArray<DeepPartial<U>>
+      : DeepPartial<T[P]>
+}
+
+type Primitive = string | Function | number | boolean | Symbol | undefined | null
+export type DeepOmitHelper<T, K extends keyof T> = {
+  [P in K]: // extra level of indirection needed to trigger homomorhic behavior
+  T[P] extends infer TP // distribute over unions
+    ? TP extends Primitive
+      ? TP // leave primitives and functions alone
+      : TP extends any[]
+        ? DeepOmitArray<TP, K> // Array special handling
+        : DeepOmit<TP, K>
+    : never
+}
+export type DeepOmit<T, K> = T extends Primitive ? T : DeepOmitHelper<T, Exclude<keyof T, K>>
+
+export type DeepOmitArray<T extends any[], K> = {
+  [P in keyof T]: DeepOmit<T[P], K>
+}