tinacms 1.2.2 → 1.3.1

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.
@@ -2,7 +2,7 @@ import { TokenObject } from '../auth/authenticate';
2
2
  import { BranchData, EventBus } from '@tinacms/toolkit';
3
3
  import { DocumentNode, GraphQLSchema } from 'graphql';
4
4
  import gql from 'graphql-tag';
5
- import { TinaSchema, TinaCloudSchema } from '@tinacms/schema-tools';
5
+ import { TinaSchema, Schema } from '@tinacms/schema-tools';
6
6
  export declare type OnLoginFunc = (args: {
7
7
  token: TokenObject;
8
8
  }) => Promise<void>;
@@ -13,7 +13,7 @@ export declare type TinaIOConfig = {
13
13
  contentApiUrlOverride?: string;
14
14
  };
15
15
  interface ServerOptions {
16
- schema?: TinaCloudSchema<false>;
16
+ schema?: Schema;
17
17
  clientId: string;
18
18
  branch: string;
19
19
  customContentApiUrl?: string;
@@ -155,10 +155,6 @@ export declare class Client {
155
155
  * }
156
156
  */
157
157
  getOptimizedQuery: (documentNode: DocumentNode) => Promise<DocumentNode>;
158
- requestWithForm<ReturnType>(query: (gqlTag: typeof gql) => DocumentNode, { variables, useUnstableFormify, }: {
159
- variables: any;
160
- useUnstableFormify?: boolean;
161
- }): Promise<ReturnType>;
162
158
  request<ReturnType>(query: ((gqlTag: typeof gql) => DocumentNode) | string, { variables }: {
163
159
  variables: object;
164
160
  }): Promise<ReturnType>;
@@ -229,7 +225,7 @@ export declare const DEFAULT_LOCAL_TINA_GQL_SERVER_URL = "http://localhost:4001/
229
225
  export declare class LocalClient extends Client {
230
226
  constructor(props?: {
231
227
  customContentApiUrl?: string;
232
- schema?: TinaCloudSchema<false>;
228
+ schema?: Schema;
233
229
  } & Omit<ServerOptions, 'clientId' | 'branch'>);
234
230
  get isLocalMode(): boolean;
235
231
  logout(): Promise<void>;