@tinacms/cli 0.61.12 → 0.61.14

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.
@@ -16,6 +16,7 @@ interface ClientGenOptions {
16
16
  noSDK?: boolean;
17
17
  local?: boolean;
18
18
  verbose?: boolean;
19
+ port?: number;
19
20
  }
20
21
  interface BuildOptions {
21
22
  dev?: boolean;
@@ -35,6 +36,7 @@ export declare const buildCmdBuild: (ctx: {
35
36
  builder: ConfigBuilder;
36
37
  rootPath: string;
37
38
  usingTs: boolean;
39
+ schema: unknown;
38
40
  }, next: () => void, options: Omit<BuildOptions & BuildSetupOptions & ClientGenOptions, 'bridge' | 'database' | 'store'>) => Promise<void>;
39
41
  export declare const auditCmdBuild: (ctx: {
40
42
  builder: ConfigBuilder;
@@ -49,14 +51,15 @@ export declare class ConfigBuilder {
49
51
  graphQLSchema: DocumentNode;
50
52
  tinaSchema: any;
51
53
  }>;
52
- genTypedClient({ usingTs, compiledSchema, noSDK, verbose, local, }: ClientGenOptions & {
54
+ genTypedClient({ usingTs, compiledSchema, noSDK, verbose, local, port, }: ClientGenOptions & {
53
55
  usingTs: boolean;
54
56
  compiledSchema: any;
55
- }): Promise<void>;
57
+ }): Promise<string>;
56
58
  }
57
- export declare const buildAdmin: ({ schema, local, rootPath, }: {
59
+ export declare const buildAdmin: ({ schema, local, rootPath, apiUrl, }: {
58
60
  schema: any;
59
61
  local: boolean;
60
62
  rootPath: string;
63
+ apiUrl: string;
61
64
  }) => Promise<void>;
62
65
  export {};
@@ -30,6 +30,6 @@ export declare const compileSchema: (options: {
30
30
  schemaFileType?: string;
31
31
  verbose?: boolean;
32
32
  dev?: boolean;
33
- rootPath;
33
+ rootPath: string;
34
34
  }) => Promise<any>;
35
35
  export declare const defineSchema: (config: TinaCloudSchema) => TinaCloudSchema;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Executes a shell command and return it as a Promise.
3
+ * @param cmd {string}
4
+ * @return {Promise<string>}
5
+ */
6
+ export declare function execShellCommand(cmd: any): Promise<string>;
1
7
  export declare function initTina(ctx: any, next: () => void, options: any): Promise<void>;
2
8
  export declare const MIN_REACT_VERSION = ">=16.14.0";
3
9
  export declare function checkDeps(ctx: any, next: () => void, options: any): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function initStaticTina(ctx: any, next: () => void, options: any): Promise<void>;
@@ -16,7 +16,7 @@ export declare const TINA_HOST = "content.tinajs.io";
16
16
  export declare function genClient({ tinaSchema, usingTs, }: {
17
17
  tinaSchema: TinaCloudSchema<false>;
18
18
  usingTs?: boolean;
19
- }, next: () => void, options: any): Promise<void>;
19
+ }, options: any): Promise<string>;
20
20
  export declare function genTypes({ schema, usingTs }: {
21
21
  schema: GraphQLSchema;
22
22
  usingTs?: boolean;
@@ -12,6 +12,7 @@
12
12
  */
13
13
  import type { Bridge, Database } from '@tinacms/graphql';
14
14
  import { ConfigBuilder } from '../../buildTina';
15
+ import type { TinaCloudSchema } from '@tinacms/schema-tools';
15
16
  interface Options {
16
17
  port?: number;
17
18
  command?: string;
@@ -29,5 +30,6 @@ export declare function startServer(ctx: {
29
30
  database: Database;
30
31
  bridge: Bridge;
31
32
  usingTs: boolean;
33
+ schema?: TinaCloudSchema<false>;
32
34
  }, next: any, { port, noWatch, noSDK, noTelemetry, watchFolders, verbose, dev, }: Options): Promise<void>;
33
35
  export {};
@@ -0,0 +1,26 @@
1
+ /**
2
+ Copyright 2021 Forestry.io Holdings, Inc.
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+ http://www.apache.org/licenses/LICENSE-2.0
7
+ Unless required by applicable law or agreed to in writing, software
8
+ distributed under the License is distributed on an "AS IS" BASIS,
9
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ See the License for the specific language governing permissions and
11
+ limitations under the License.
12
+ */
13
+ import type { Bridge, Database } from '@tinacms/graphql';
14
+ import type { TinaCloudSchema } from '@tinacms/schema-tools';
15
+ import { ConfigBuilder } from '../../buildTina';
16
+ export declare const checkClientInfo: (ctx: {
17
+ builder: ConfigBuilder;
18
+ rootPath: string;
19
+ database: Database;
20
+ bridge: Bridge;
21
+ usingTs: boolean;
22
+ schema?: TinaCloudSchema<false>;
23
+ client: any;
24
+ }, next: any, _options: {
25
+ verbose?: boolean;
26
+ }) => Promise<void>;