@tinacms/schema-tools 0.1.3 → 0.1.4
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.
|
@@ -56,10 +56,17 @@ declare type Document = {
|
|
|
56
56
|
extension: string;
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
+
export declare type TinaIndex = {
|
|
60
|
+
name: string;
|
|
61
|
+
fields: {
|
|
62
|
+
name: string;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
59
65
|
interface BaseCollection {
|
|
60
66
|
label?: string;
|
|
61
67
|
name: string;
|
|
62
68
|
path: string;
|
|
69
|
+
indexes?: TinaIndex[];
|
|
63
70
|
format?: FormatType;
|
|
64
71
|
ui?: {
|
|
65
72
|
/**
|
|
@@ -117,11 +124,12 @@ export declare type TinaFieldEnriched = TinaFieldInner<true> & {
|
|
|
117
124
|
*/
|
|
118
125
|
parentTypename?: string;
|
|
119
126
|
};
|
|
120
|
-
interface TinaField {
|
|
127
|
+
export interface TinaField {
|
|
121
128
|
name: string;
|
|
122
129
|
label?: string;
|
|
123
130
|
description?: string;
|
|
124
131
|
required?: boolean;
|
|
132
|
+
indexed?: boolean;
|
|
125
133
|
/**
|
|
126
134
|
* Any items passed to the UI field will be passed to the underlying field.
|
|
127
135
|
* NOTE: only serializable values are supported, so functions like `validate`
|
package/dist/types/config.d.ts
CHANGED
|
@@ -37,4 +37,13 @@ export interface TinaCloudSchemaConfig<Store = any> {
|
|
|
37
37
|
mediaRoot: string;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* Used to override the default Tina Cloud API URL
|
|
42
|
+
*/
|
|
43
|
+
tinaioConfig?: {
|
|
44
|
+
assetsApiUrlOverride?: string;
|
|
45
|
+
frontendUrlOverride?: string;
|
|
46
|
+
identityApiUrlOverride?: string;
|
|
47
|
+
contentApiUrlOverride?: string;
|
|
48
|
+
};
|
|
40
49
|
}
|