@strapi/data-transfer 4.15.1 → 4.15.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Table from 'cli-table3';
|
|
2
2
|
import { Command, Option } from 'commander';
|
|
3
3
|
import ora from 'ora';
|
|
4
|
-
import type { LoadedStrapi } from '@strapi/types';
|
|
4
|
+
import type { LoadedStrapi, Strapi } from '@strapi/types';
|
|
5
5
|
import * as engineDatatransfer from '../engine';
|
|
6
6
|
declare const exitMessageText: (process: string, error?: boolean) => string;
|
|
7
7
|
declare const getDefaultExportName: () => string;
|
|
@@ -15,80 +15,7 @@ declare const abortTransfer: ({ engine, strapi, }: {
|
|
|
15
15
|
declare const setSignalHandler: (handler: (...args: unknown[]) => void, signals?: string[]) => Promise<void>;
|
|
16
16
|
declare const createStrapiInstance: (opts?: {
|
|
17
17
|
logLevel?: string;
|
|
18
|
-
}) => Promise<
|
|
19
|
-
server: import("@strapi/strapi").Server;
|
|
20
|
-
container: import("@strapi/strapi").Container;
|
|
21
|
-
log: import("winston").Logger;
|
|
22
|
-
fs: import("@strapi/types").StrapiFS;
|
|
23
|
-
eventHub: import("@strapi/strapi").EventHub;
|
|
24
|
-
startupLogger: import("@strapi/types").StartupLogger;
|
|
25
|
-
cron: import("@strapi/strapi").CronService;
|
|
26
|
-
webhookRunner?: import("@strapi/strapi/dist/services/webhook-runner").WebhookRunner | undefined;
|
|
27
|
-
webhookStore?: import("@strapi/strapi").WebhookStore | undefined;
|
|
28
|
-
store?: import("@strapi/strapi").CoreStore | undefined;
|
|
29
|
-
entityValidator?: import("@strapi/strapi").EntityValidator | undefined;
|
|
30
|
-
entityService?: import("@strapi/types/dist/modules/entity-service").EntityService | undefined;
|
|
31
|
-
telemetry: import("@strapi/strapi").TelemetryService;
|
|
32
|
-
requestContext: import("@strapi/strapi").RequestContext;
|
|
33
|
-
customFields: import("@strapi/types/dist/modules/custom-fields").CustomFields;
|
|
34
|
-
fetch: import("@strapi/strapi").Fetch;
|
|
35
|
-
dirs: import("@strapi/strapi").StrapiDirectories;
|
|
36
|
-
admin?: import("@strapi/types/dist/types/core/common").Module | undefined;
|
|
37
|
-
isLoaded: boolean;
|
|
38
|
-
db?: import("@strapi/database").Database | undefined;
|
|
39
|
-
app: any;
|
|
40
|
-
EE?: boolean | undefined;
|
|
41
|
-
components: import("@strapi/types/dist/types/shared").Components;
|
|
42
|
-
reload: import("@strapi/types").Reloader;
|
|
43
|
-
readonly config: any;
|
|
44
|
-
readonly services: any;
|
|
45
|
-
service(uid: import("@strapi/types/dist/types/core/common/uid").Service): any;
|
|
46
|
-
readonly controllers: any;
|
|
47
|
-
controller(uid: import("@strapi/types/dist/types/core/common/uid").Controller): any;
|
|
48
|
-
readonly contentTypes: import("@strapi/types/dist/types/shared").ContentTypes;
|
|
49
|
-
contentType(name: import("@strapi/types/dist/types/core/common/uid").ContentType): any;
|
|
50
|
-
readonly policies: any;
|
|
51
|
-
policy(name: string): any;
|
|
52
|
-
readonly middlewares: any;
|
|
53
|
-
middleware(name: string): any;
|
|
54
|
-
readonly plugins: Record<string, import("@strapi/types/dist/types/core/common").Plugin>;
|
|
55
|
-
plugin(name: string): import("@strapi/types/dist/types/core/common").Plugin;
|
|
56
|
-
readonly hooks: any;
|
|
57
|
-
hook(name: string): any;
|
|
58
|
-
readonly api: Record<string, import("@strapi/types/dist/types/core/common").Module>;
|
|
59
|
-
readonly auth: any;
|
|
60
|
-
readonly contentAPI: any;
|
|
61
|
-
readonly sanitizers: any;
|
|
62
|
-
readonly validators: any;
|
|
63
|
-
start(): Promise<any>;
|
|
64
|
-
destroy(): Promise<void>;
|
|
65
|
-
sendStartupTelemetry(): void;
|
|
66
|
-
openAdmin({ isInitialized }: {
|
|
67
|
-
isInitialized: boolean;
|
|
68
|
-
}): Promise<void>;
|
|
69
|
-
postListen(): Promise<void>;
|
|
70
|
-
listen(): Promise<void>;
|
|
71
|
-
stopWithError(err: unknown, customMessage?: string | undefined): never;
|
|
72
|
-
stop(exitCode?: number | undefined): never;
|
|
73
|
-
loadAdmin(): Promise<void>;
|
|
74
|
-
loadPlugins(): Promise<void>;
|
|
75
|
-
loadPolicies(): Promise<void>;
|
|
76
|
-
loadAPIs(): Promise<void>;
|
|
77
|
-
loadComponents(): Promise<void>;
|
|
78
|
-
loadMiddlewares(): Promise<void>;
|
|
79
|
-
loadApp(): Promise<void>;
|
|
80
|
-
loadSanitizers(): Promise<void>;
|
|
81
|
-
loadValidators(): Promise<void>;
|
|
82
|
-
registerInternalHooks(): void;
|
|
83
|
-
register(): Promise<any>;
|
|
84
|
-
bootstrap(): Promise<any>;
|
|
85
|
-
load(): Promise<any & Required<import("@strapi/types").Strapi>>;
|
|
86
|
-
startWebhooks(): Promise<void>;
|
|
87
|
-
runLifecyclesFunctions(lifecycleName: "destroy" | "register" | "bootstrap"): Promise<void>;
|
|
88
|
-
getModel(uid: import("@strapi/types/dist/types/core/common/uid").ContentType): import("@strapi/types/dist/types/core/schemas").ContentType;
|
|
89
|
-
getModel(uid: `${string}.${string}`): import("@strapi/types/dist/types/core/schemas").Component;
|
|
90
|
-
query(uid: import("@strapi/types/dist/types/core/common/uid").Schema): import("@strapi/database/dist/entity-manager").Repository;
|
|
91
|
-
} & Required<import("@strapi/types").Strapi>>;
|
|
18
|
+
}) => Promise<Strapi & Required<Strapi>>;
|
|
92
19
|
declare const throttleOption: Option;
|
|
93
20
|
declare const excludeOption: Option;
|
|
94
21
|
declare const onlyOption: Option;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-transfer.d.ts","sourceRoot":"","sources":["../../src/commands/data-transfer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAG5C,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,KAAK,EAAE,YAAY,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