@prismicio/editor-fields 0.4.88 → 0.4.90
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.
- package/dist/DocumentEditor.d.ts +1 -0
- package/dist/EditorConfig.d.ts +22 -7
- package/dist/GroupAndNestableWidgetSwitch.d.ts +1 -0
- package/dist/GroupEditor.d.ts +1 -0
- package/dist/NestableWidgetSwitch.d.ts +1 -0
- package/dist/SectionEditor.d.ts +1 -0
- package/dist/SliceSelection.d.ts +1 -0
- package/dist/core/APIExplorer/APIExplorer.d.ts +1 -0
- package/dist/core/APIExplorer/components/APIExplorerRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/APIExplorerResponse.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestAPIPathFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigDialog.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/RequestFiltersFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFormInput.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFormInputBase.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFormMultiInput.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFormSelect.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestLangFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/OrderingConfigDialog.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/RequestOrderingsFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestPaginationFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestTagFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestTagsFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/createRequest.d.ts +1 -0
- package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +1413 -1
- package/dist/core/EditorErrorBoundary.d.ts +1 -0
- package/dist/core/MediaLibrary/MediaLibrary.d.ts +1 -0
- package/dist/core/MediaLibrary/components/EmptyMediaList.d.ts +1 -0
- package/dist/core/MediaLibrary/components/MediaLibraryRenderError.d.ts +1 -0
- package/dist/core/MediaLibrary/components/MediaLibrarySkeleton.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/DefaultSidepaneContent.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/Sidepane.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/SidepaneContent.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneHeader.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneImage.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadata.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/MultiMediaMetadataTags.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/SingleMediaMetadataTags.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/Tags.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneTagManager.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Toolbar/AssetCount.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Toolbar/Toolbar.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Toolbar/filters/AssetTypeFilter.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Toolbar/filters/TagsFilter.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Toolbar/filters/UploaderFilter.d.ts +1 -0
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +3 -3
- package/dist/core/OnboardingGuide/components/OnboardingCard.d.ts +1 -0
- package/dist/core/OnboardingGuide/components/OnboardingProgressStepper.d.ts +1 -0
- package/dist/core/OnboardingGuide/components/OnboardingTutorial.d.ts +1 -0
- package/dist/core/SelectionManager/SelectionManager.d.ts +1 -0
- package/dist/core/SeoMetadata/components/MetadataBadge.d.ts +1 -0
- package/dist/core/SeoMetadata/components/MetadataPreview.d.ts +1 -0
- package/dist/core/UnsplashLibrary/UnsplashLibrary.d.ts +1 -0
- package/dist/core/service/customType.d.ts +16319 -175
- package/dist/core/service/document.d.ts +1344 -67
- package/dist/core/service/onboarding.d.ts +1 -0
- package/dist/core/service/role.d.ts +1 -1
- package/dist/fields/BooleanField.d.ts +1 -0
- package/dist/fields/ColorField/ColorField.d.ts +1 -0
- package/dist/fields/DateField.d.ts +1 -0
- package/dist/fields/EmbedField/EmbedField.d.ts +1 -0
- package/dist/fields/FieldTextInput.d.ts +1 -0
- package/dist/fields/GeoPointField/GeoPointField.d.ts +1 -0
- package/dist/fields/ImageField/Components/EmptyCardContent.d.ts +1 -0
- package/dist/fields/ImageField/Components/ImageAltControl.d.ts +1 -0
- package/dist/fields/ImageField/Components/ImageFieldHeader.d.ts +1 -0
- package/dist/fields/ImageField/Components/ImageFieldTitle.d.ts +1 -0
- package/dist/fields/ImageField/Components/ImageLinkControl.d.ts +1 -0
- package/dist/fields/ImageField/Components/NonEmptyCardContent.d.ts +1 -0
- package/dist/fields/ImageField/CropperDialog/CropperControls.d.ts +1 -0
- package/dist/fields/ImageField/ImageField.d.ts +1 -0
- package/dist/fields/ImageField/MediaDialog/MediaDialog.d.ts +1 -0
- package/dist/fields/IntegrationField/IntegrationDialog.d.ts +1 -0
- package/dist/fields/IntegrationField/IntegrationField.d.ts +1 -0
- package/dist/fields/IntegrationField/IntegrationInput.d.ts +1 -0
- package/dist/fields/IntegrationField/IntegrationPreviewCard.d.ts +1 -0
- package/dist/fields/IntegrationField/integrationData.d.ts +1 -5
- package/dist/fields/LinkField/Documents/DocumentCard.d.ts +1 -0
- package/dist/fields/LinkField/Documents/DocumentsModal.d.ts +1 -0
- package/dist/fields/LinkField/Documents/Filters.d.ts +1 -0
- package/dist/fields/LinkField/Documents/useFilters.d.ts +1 -0
- package/dist/fields/LinkField/LinkDescriptionCard.d.ts +1 -0
- package/dist/fields/LinkField/LinkField.d.ts +1 -0
- package/dist/fields/LinkField/LinkFieldActions.d.ts +1 -0
- package/dist/fields/LinkField/LinkImageCard.d.ts +1 -0
- package/dist/fields/LinkField/LinkOrRepeatableLinkField.d.ts +1 -0
- package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkField.d.ts +1 -0
- package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkFieldActions.d.ts +1 -0
- package/dist/fields/LinkField/WebLinks/WebLinkModal.d.ts +1 -0
- package/dist/fields/LinkField/linkFieldData.d.ts +4 -0
- package/dist/fields/LinkField/useLinkField.d.ts +2 -2
- package/dist/fields/MetadataTextField.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/BubbleMenu.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/ExtraItems.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Label/LabelItems.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Label/LabelPopover.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Link/DocumentDescriptionCard.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Link/LinkItems.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Link/LinkPopover.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Link/SetDocumentLinkModal.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Link/SetMediaLinkModal.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Link/SetWebLinkModal.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/MarkItems.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/NodeItems.d.ts +1 -0
- package/dist/fields/RichTextField/RichTextField.d.ts +2 -0
- package/dist/fields/RichTextField/extensions/Embed/EmbedView.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Image/ImageView.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/TableLimitToast.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/menus/TableFloatingMenus.d.ts +1 -0
- package/dist/fields/SelectField.d.ts +1 -0
- package/dist/fields/TableField/TableField.d.ts +1 -0
- package/dist/fields/TimestampField.d.ts +1 -0
- package/dist/fields/UIDField.d.ts +1 -0
- package/dist/index.cjs.js +51 -51
- package/dist/index.es.js +30333 -29820
- package/dist/slices/SharedSliceEditor.d.ts +2 -1
- package/dist/zones/Components/LegacyCustomLabelSelect.d.ts +1 -0
- package/dist/zones/NonRepeatableZoneEditor.d.ts +1 -0
- package/dist/zones/RepeatableZoneEditor.d.ts +1 -0
- package/dist/zones/SlicePrimaryZoneEditor.d.ts +1 -0
- package/dist/zones/SliceZoneEditor.d.ts +1 -0
- package/dist/zones/StaticZoneEditor.d.ts +1 -0
- package/package.json +8 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type QueryClient } from "@tanstack/react-query";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import type
|
|
3
|
+
import { type AuthStrategy } from "../../EditorConfig";
|
|
4
4
|
export declare const languageSchema: z.ZodEffects<z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
name: z.ZodString;
|
|
@@ -22,6 +22,34 @@ export declare const languageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
22
22
|
name: string;
|
|
23
23
|
is_master?: boolean | undefined;
|
|
24
24
|
}>;
|
|
25
|
+
export declare const documentVersionStatusSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
26
|
+
status: z.ZodLiteral<"unclassified">;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
status: "unclassified";
|
|
29
|
+
}, {
|
|
30
|
+
status: "unclassified";
|
|
31
|
+
}>, z.ZodObject<{
|
|
32
|
+
status: z.ZodLiteral<"published">;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
status: "published";
|
|
35
|
+
}, {
|
|
36
|
+
status: "published";
|
|
37
|
+
}>, z.ZodObject<{
|
|
38
|
+
status: z.ZodLiteral<"release">;
|
|
39
|
+
release_id: z.ZodString;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
status: "release";
|
|
42
|
+
release_id: string;
|
|
43
|
+
}, {
|
|
44
|
+
status: "release";
|
|
45
|
+
release_id: string;
|
|
46
|
+
}>, z.ZodObject<{
|
|
47
|
+
status: z.ZodLiteral<"archived">;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
status: "archived";
|
|
50
|
+
}, {
|
|
51
|
+
status: "archived";
|
|
52
|
+
}>]>;
|
|
25
53
|
declare const documentVersionSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
26
54
|
status: z.ZodLiteral<"unclassified">;
|
|
27
55
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1079,14 +1107,17 @@ export type DocumentFullTextSearchApi = z.TypeOf<typeof documentsFullTextSearchA
|
|
|
1079
1107
|
export type DocumentMeta = z.TypeOf<typeof documentMetaSchema>;
|
|
1080
1108
|
export type DocumentSearchMeta = z.TypeOf<typeof documentSearchDocumentSchema>;
|
|
1081
1109
|
export type DocumentVersion = z.TypeOf<typeof documentVersionSchema>;
|
|
1082
|
-
export type
|
|
1083
|
-
|
|
1110
|
+
export type SimpleDocumentStatus = DocumentVersion["status"];
|
|
1111
|
+
type ReleaseId = string;
|
|
1112
|
+
export type DocumentStatus = SimpleDocumentStatus | `release:${ReleaseId}`;
|
|
1113
|
+
export interface GetDocumentListArgs<Schema extends z.ZodType = typeof getDocumentListSchema> {
|
|
1084
1114
|
baseUrl: URL;
|
|
1085
1115
|
authStrategy: AuthStrategy;
|
|
1086
1116
|
signal?: AbortSignal | null | undefined;
|
|
1117
|
+
schema?: Schema;
|
|
1087
1118
|
limit?: number;
|
|
1088
1119
|
cursor?: string;
|
|
1089
|
-
statuses?:
|
|
1120
|
+
statuses?: DocumentStatus[];
|
|
1090
1121
|
authors?: string[];
|
|
1091
1122
|
language?: string;
|
|
1092
1123
|
groupLangIds?: string[];
|
|
@@ -1096,7 +1127,7 @@ export interface GetDocumentListArgs {
|
|
|
1096
1127
|
term?: string;
|
|
1097
1128
|
uids?: string[];
|
|
1098
1129
|
}
|
|
1099
|
-
export declare function getDocumentList(args: GetDocumentListArgs): Promise<
|
|
1130
|
+
export declare function getDocumentList<Schema extends z.ZodType = typeof getDocumentListSchema>(args: GetDocumentListArgs<Schema>): Promise<z.infer<Schema>>;
|
|
1100
1131
|
export declare function searchFullTextDocuments(baseUrl: URL, authStrategy: AuthStrategy, queryString: string, options?: Pick<RequestInit, "signal">): Promise<DocumentFullTextSearchApi>;
|
|
1101
1132
|
export declare function makeSearchFullTextDocumentsQueryString(args: {
|
|
1102
1133
|
repository: string;
|
|
@@ -1107,15 +1138,203 @@ export declare function makeSearchFullTextDocumentsQueryString(args: {
|
|
|
1107
1138
|
localeId?: string;
|
|
1108
1139
|
customTypesIds?: string[];
|
|
1109
1140
|
}): string;
|
|
1110
|
-
type GetDocumentsQueryFilters = "tags" | "language" | "customTypes" | "status" | "term" | "group_lang_id" | "document_id" | "uid" | "authors";
|
|
1111
|
-
export type SearchDocumentParams = {
|
|
1112
|
-
[S in GetDocumentsQueryFilters]?: string[];
|
|
1113
|
-
};
|
|
1114
1141
|
export declare function createSearchParams<T extends string>(params: {
|
|
1115
1142
|
name: T;
|
|
1116
1143
|
values: (string | undefined)[];
|
|
1117
1144
|
}[]): [string, string][];
|
|
1118
|
-
export declare function
|
|
1145
|
+
export declare function getDocumentMeta(baseUrl: URL, authStrategy: AuthStrategy, documentId: string): Promise<DocumentMeta>;
|
|
1146
|
+
export declare function documentMetaKey(documentId: string): readonly ["documentMeta", string];
|
|
1147
|
+
interface DocumentMetaOptionsArgs {
|
|
1148
|
+
baseUrl: URL;
|
|
1149
|
+
authStrategy: AuthStrategy;
|
|
1150
|
+
documentId: string;
|
|
1151
|
+
}
|
|
1152
|
+
export declare function getDocumentMetaOptions(args: DocumentMetaOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
|
|
1153
|
+
language: {
|
|
1154
|
+
id: string;
|
|
1155
|
+
label: string;
|
|
1156
|
+
isMaster: boolean;
|
|
1157
|
+
};
|
|
1158
|
+
title: string;
|
|
1159
|
+
id: string;
|
|
1160
|
+
custom_type_id: string;
|
|
1161
|
+
group_lang_id: string;
|
|
1162
|
+
versions: (({
|
|
1163
|
+
status: "unclassified";
|
|
1164
|
+
} | {
|
|
1165
|
+
status: "published";
|
|
1166
|
+
} | {
|
|
1167
|
+
status: "release";
|
|
1168
|
+
release_id: string;
|
|
1169
|
+
} | {
|
|
1170
|
+
status: "archived";
|
|
1171
|
+
}) & {
|
|
1172
|
+
tags: string[];
|
|
1173
|
+
version_id: string;
|
|
1174
|
+
last_modified_date: Date;
|
|
1175
|
+
custom_type_label: string;
|
|
1176
|
+
author: {
|
|
1177
|
+
email?: string | undefined;
|
|
1178
|
+
id?: string | undefined;
|
|
1179
|
+
first_name?: string | undefined;
|
|
1180
|
+
last_name?: string | undefined;
|
|
1181
|
+
uploadedAvatar?: string | undefined;
|
|
1182
|
+
};
|
|
1183
|
+
uid?: string | undefined;
|
|
1184
|
+
preview_image?: string | undefined;
|
|
1185
|
+
preview_summary?: string | undefined;
|
|
1186
|
+
})[];
|
|
1187
|
+
ai_abm_thread_id?: string | undefined;
|
|
1188
|
+
}, Error, {
|
|
1189
|
+
language: {
|
|
1190
|
+
id: string;
|
|
1191
|
+
label: string;
|
|
1192
|
+
isMaster: boolean;
|
|
1193
|
+
};
|
|
1194
|
+
title: string;
|
|
1195
|
+
id: string;
|
|
1196
|
+
custom_type_id: string;
|
|
1197
|
+
group_lang_id: string;
|
|
1198
|
+
versions: (({
|
|
1199
|
+
status: "unclassified";
|
|
1200
|
+
} | {
|
|
1201
|
+
status: "published";
|
|
1202
|
+
} | {
|
|
1203
|
+
status: "release";
|
|
1204
|
+
release_id: string;
|
|
1205
|
+
} | {
|
|
1206
|
+
status: "archived";
|
|
1207
|
+
}) & {
|
|
1208
|
+
tags: string[];
|
|
1209
|
+
version_id: string;
|
|
1210
|
+
last_modified_date: Date;
|
|
1211
|
+
custom_type_label: string;
|
|
1212
|
+
author: {
|
|
1213
|
+
email?: string | undefined;
|
|
1214
|
+
id?: string | undefined;
|
|
1215
|
+
first_name?: string | undefined;
|
|
1216
|
+
last_name?: string | undefined;
|
|
1217
|
+
uploadedAvatar?: string | undefined;
|
|
1218
|
+
};
|
|
1219
|
+
uid?: string | undefined;
|
|
1220
|
+
preview_image?: string | undefined;
|
|
1221
|
+
preview_summary?: string | undefined;
|
|
1222
|
+
})[];
|
|
1223
|
+
ai_abm_thread_id?: string | undefined;
|
|
1224
|
+
}, readonly ["documentMeta", string]> & {
|
|
1225
|
+
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
1226
|
+
language: {
|
|
1227
|
+
id: string;
|
|
1228
|
+
label: string;
|
|
1229
|
+
isMaster: boolean;
|
|
1230
|
+
};
|
|
1231
|
+
title: string;
|
|
1232
|
+
id: string;
|
|
1233
|
+
custom_type_id: string;
|
|
1234
|
+
group_lang_id: string;
|
|
1235
|
+
versions: (({
|
|
1236
|
+
status: "unclassified";
|
|
1237
|
+
} | {
|
|
1238
|
+
status: "published";
|
|
1239
|
+
} | {
|
|
1240
|
+
status: "release";
|
|
1241
|
+
release_id: string;
|
|
1242
|
+
} | {
|
|
1243
|
+
status: "archived";
|
|
1244
|
+
}) & {
|
|
1245
|
+
tags: string[];
|
|
1246
|
+
version_id: string;
|
|
1247
|
+
last_modified_date: Date;
|
|
1248
|
+
custom_type_label: string;
|
|
1249
|
+
author: {
|
|
1250
|
+
email?: string | undefined;
|
|
1251
|
+
id?: string | undefined;
|
|
1252
|
+
first_name?: string | undefined;
|
|
1253
|
+
last_name?: string | undefined;
|
|
1254
|
+
uploadedAvatar?: string | undefined;
|
|
1255
|
+
};
|
|
1256
|
+
uid?: string | undefined;
|
|
1257
|
+
preview_image?: string | undefined;
|
|
1258
|
+
preview_summary?: string | undefined;
|
|
1259
|
+
})[];
|
|
1260
|
+
ai_abm_thread_id?: string | undefined;
|
|
1261
|
+
}> | undefined;
|
|
1262
|
+
} & {
|
|
1263
|
+
queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<readonly ["documentMeta", string], {
|
|
1264
|
+
language: {
|
|
1265
|
+
id: string;
|
|
1266
|
+
label: string;
|
|
1267
|
+
isMaster: boolean;
|
|
1268
|
+
};
|
|
1269
|
+
title: string;
|
|
1270
|
+
id: string;
|
|
1271
|
+
custom_type_id: string;
|
|
1272
|
+
group_lang_id: string;
|
|
1273
|
+
versions: (({
|
|
1274
|
+
status: "unclassified";
|
|
1275
|
+
} | {
|
|
1276
|
+
status: "published";
|
|
1277
|
+
} | {
|
|
1278
|
+
status: "release";
|
|
1279
|
+
release_id: string;
|
|
1280
|
+
} | {
|
|
1281
|
+
status: "archived";
|
|
1282
|
+
}) & {
|
|
1283
|
+
tags: string[];
|
|
1284
|
+
version_id: string;
|
|
1285
|
+
last_modified_date: Date;
|
|
1286
|
+
custom_type_label: string;
|
|
1287
|
+
author: {
|
|
1288
|
+
email?: string | undefined;
|
|
1289
|
+
id?: string | undefined;
|
|
1290
|
+
first_name?: string | undefined;
|
|
1291
|
+
last_name?: string | undefined;
|
|
1292
|
+
uploadedAvatar?: string | undefined;
|
|
1293
|
+
};
|
|
1294
|
+
uid?: string | undefined;
|
|
1295
|
+
preview_image?: string | undefined;
|
|
1296
|
+
preview_summary?: string | undefined;
|
|
1297
|
+
})[];
|
|
1298
|
+
ai_abm_thread_id?: string | undefined;
|
|
1299
|
+
}>;
|
|
1300
|
+
};
|
|
1301
|
+
export declare function useEditorDocumentMeta(documentId: string): {
|
|
1302
|
+
language: {
|
|
1303
|
+
id: string;
|
|
1304
|
+
label: string;
|
|
1305
|
+
isMaster: boolean;
|
|
1306
|
+
};
|
|
1307
|
+
title: string;
|
|
1308
|
+
id: string;
|
|
1309
|
+
custom_type_id: string;
|
|
1310
|
+
group_lang_id: string;
|
|
1311
|
+
versions: (({
|
|
1312
|
+
status: "unclassified";
|
|
1313
|
+
} | {
|
|
1314
|
+
status: "published";
|
|
1315
|
+
} | {
|
|
1316
|
+
status: "release";
|
|
1317
|
+
release_id: string;
|
|
1318
|
+
} | {
|
|
1319
|
+
status: "archived";
|
|
1320
|
+
}) & {
|
|
1321
|
+
tags: string[];
|
|
1322
|
+
version_id: string;
|
|
1323
|
+
last_modified_date: Date;
|
|
1324
|
+
custom_type_label: string;
|
|
1325
|
+
author: {
|
|
1326
|
+
email?: string | undefined;
|
|
1327
|
+
id?: string | undefined;
|
|
1328
|
+
first_name?: string | undefined;
|
|
1329
|
+
last_name?: string | undefined;
|
|
1330
|
+
uploadedAvatar?: string | undefined;
|
|
1331
|
+
};
|
|
1332
|
+
uid?: string | undefined;
|
|
1333
|
+
preview_image?: string | undefined;
|
|
1334
|
+
preview_summary?: string | undefined;
|
|
1335
|
+
})[];
|
|
1336
|
+
ai_abm_thread_id?: string | undefined;
|
|
1337
|
+
};
|
|
1119
1338
|
export declare const Document: z.ZodEffects<z.ZodUnknown, {
|
|
1120
1339
|
[x: string]: import("@prismicio/types-internal/lib/content").GroupContent | {
|
|
1121
1340
|
type: string;
|
|
@@ -7655,58 +7874,847 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
7655
7874
|
export declare const documentKeys: {
|
|
7656
7875
|
all: () => readonly ["documents"];
|
|
7657
7876
|
lists: () => readonly ["documents", "list"];
|
|
7658
|
-
list: (args: GetDocumentListArgs) => readonly ["documents", "list", GetDocumentListArgs
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7877
|
+
list: (args: GetDocumentListArgs) => readonly ["documents", "list", GetDocumentListArgs<z.ZodObject<{
|
|
7878
|
+
total: z.ZodNumber;
|
|
7879
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
7880
|
+
results: z.ZodArray<z.ZodObject<{
|
|
7881
|
+
id: z.ZodString;
|
|
7882
|
+
title: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
|
|
7883
|
+
custom_type_id: z.ZodString;
|
|
7884
|
+
group_lang_id: z.ZodString;
|
|
7885
|
+
language: z.ZodEffects<z.ZodObject<{
|
|
7886
|
+
id: z.ZodString;
|
|
7887
|
+
name: z.ZodString;
|
|
7888
|
+
is_master: z.ZodDefault<z.ZodBoolean>;
|
|
7889
|
+
}, "strip", z.ZodTypeAny, {
|
|
7890
|
+
id: string;
|
|
7891
|
+
name: string;
|
|
7892
|
+
is_master: boolean;
|
|
7893
|
+
}, {
|
|
7894
|
+
id: string;
|
|
7895
|
+
name: string;
|
|
7896
|
+
is_master?: boolean | undefined;
|
|
7897
|
+
}>, {
|
|
7898
|
+
id: string;
|
|
7899
|
+
label: string;
|
|
7900
|
+
isMaster: boolean;
|
|
7901
|
+
}, {
|
|
7902
|
+
id: string;
|
|
7903
|
+
name: string;
|
|
7904
|
+
is_master?: boolean | undefined;
|
|
7905
|
+
}>;
|
|
7906
|
+
ai_abm_thread_id: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
7907
|
+
versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
7908
|
+
status: z.ZodLiteral<"unclassified">;
|
|
7909
|
+
}, "strip", z.ZodTypeAny, {
|
|
7910
|
+
status: "unclassified";
|
|
7911
|
+
}, {
|
|
7912
|
+
status: "unclassified";
|
|
7913
|
+
}>, z.ZodObject<{
|
|
7914
|
+
status: z.ZodLiteral<"published">;
|
|
7915
|
+
}, "strip", z.ZodTypeAny, {
|
|
7916
|
+
status: "published";
|
|
7917
|
+
}, {
|
|
7918
|
+
status: "published";
|
|
7919
|
+
}>, z.ZodObject<{
|
|
7920
|
+
status: z.ZodLiteral<"release">;
|
|
7921
|
+
release_id: z.ZodString;
|
|
7922
|
+
}, "strip", z.ZodTypeAny, {
|
|
7923
|
+
status: "release";
|
|
7924
|
+
release_id: string;
|
|
7925
|
+
}, {
|
|
7926
|
+
status: "release";
|
|
7927
|
+
release_id: string;
|
|
7928
|
+
}>, z.ZodObject<{
|
|
7929
|
+
status: z.ZodLiteral<"archived">;
|
|
7930
|
+
}, "strip", z.ZodTypeAny, {
|
|
7931
|
+
status: "archived";
|
|
7932
|
+
}, {
|
|
7933
|
+
status: "archived";
|
|
7934
|
+
}>]>, z.ZodObject<z.objectUtil.extendShape<{
|
|
7935
|
+
version_id: z.ZodString;
|
|
7936
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
7937
|
+
preview_image: z.ZodOptional<z.ZodString>;
|
|
7938
|
+
last_modified_date: z.ZodDate;
|
|
7939
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
7940
|
+
}, {
|
|
7941
|
+
custom_type_label: z.ZodString;
|
|
7942
|
+
preview_summary: z.ZodOptional<z.ZodString>;
|
|
7943
|
+
author: z.ZodObject<{
|
|
7944
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7945
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
7946
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
7947
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7948
|
+
uploadedAvatar: z.ZodOptional<z.ZodString>;
|
|
7949
|
+
}, "strip", z.ZodTypeAny, {
|
|
7950
|
+
email?: string | undefined;
|
|
7951
|
+
id?: string | undefined;
|
|
7952
|
+
first_name?: string | undefined;
|
|
7953
|
+
last_name?: string | undefined;
|
|
7954
|
+
uploadedAvatar?: string | undefined;
|
|
7955
|
+
}, {
|
|
7956
|
+
email?: string | undefined;
|
|
7957
|
+
id?: string | undefined;
|
|
7958
|
+
first_name?: string | undefined;
|
|
7959
|
+
last_name?: string | undefined;
|
|
7960
|
+
uploadedAvatar?: string | undefined;
|
|
7961
|
+
}>;
|
|
7962
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7963
|
+
tags: string[];
|
|
7964
|
+
version_id: string;
|
|
7965
|
+
last_modified_date: Date;
|
|
7966
|
+
custom_type_label: string;
|
|
7967
|
+
author: {
|
|
7968
|
+
email?: string | undefined;
|
|
7969
|
+
id?: string | undefined;
|
|
7970
|
+
first_name?: string | undefined;
|
|
7971
|
+
last_name?: string | undefined;
|
|
7972
|
+
uploadedAvatar?: string | undefined;
|
|
7973
|
+
};
|
|
7974
|
+
uid?: string | undefined;
|
|
7975
|
+
preview_image?: string | undefined;
|
|
7976
|
+
preview_summary?: string | undefined;
|
|
7977
|
+
}, {
|
|
7978
|
+
tags: string[];
|
|
7979
|
+
version_id: string;
|
|
7980
|
+
last_modified_date: Date;
|
|
7981
|
+
custom_type_label: string;
|
|
7982
|
+
author: {
|
|
7983
|
+
email?: string | undefined;
|
|
7984
|
+
id?: string | undefined;
|
|
7985
|
+
first_name?: string | undefined;
|
|
7986
|
+
last_name?: string | undefined;
|
|
7987
|
+
uploadedAvatar?: string | undefined;
|
|
7988
|
+
};
|
|
7989
|
+
uid?: string | undefined;
|
|
7990
|
+
preview_image?: string | undefined;
|
|
7991
|
+
preview_summary?: string | undefined;
|
|
7992
|
+
}>>, "many">;
|
|
7993
|
+
}, "strip", z.ZodTypeAny, {
|
|
7994
|
+
language: {
|
|
7995
|
+
id: string;
|
|
7996
|
+
label: string;
|
|
7997
|
+
isMaster: boolean;
|
|
7998
|
+
};
|
|
7999
|
+
title: string;
|
|
8000
|
+
id: string;
|
|
8001
|
+
custom_type_id: string;
|
|
8002
|
+
group_lang_id: string;
|
|
8003
|
+
versions: (({
|
|
8004
|
+
status: "unclassified";
|
|
8005
|
+
} | {
|
|
8006
|
+
status: "published";
|
|
8007
|
+
} | {
|
|
8008
|
+
status: "release";
|
|
8009
|
+
release_id: string;
|
|
8010
|
+
} | {
|
|
8011
|
+
status: "archived";
|
|
8012
|
+
}) & {
|
|
8013
|
+
tags: string[];
|
|
8014
|
+
version_id: string;
|
|
8015
|
+
last_modified_date: Date;
|
|
8016
|
+
custom_type_label: string;
|
|
8017
|
+
author: {
|
|
8018
|
+
email?: string | undefined;
|
|
8019
|
+
id?: string | undefined;
|
|
8020
|
+
first_name?: string | undefined;
|
|
8021
|
+
last_name?: string | undefined;
|
|
8022
|
+
uploadedAvatar?: string | undefined;
|
|
8023
|
+
};
|
|
8024
|
+
uid?: string | undefined;
|
|
8025
|
+
preview_image?: string | undefined;
|
|
8026
|
+
preview_summary?: string | undefined;
|
|
8027
|
+
})[];
|
|
8028
|
+
ai_abm_thread_id?: string | undefined;
|
|
8029
|
+
}, {
|
|
8030
|
+
language: {
|
|
8031
|
+
id: string;
|
|
8032
|
+
name: string;
|
|
8033
|
+
is_master?: boolean | undefined;
|
|
8034
|
+
};
|
|
8035
|
+
id: string;
|
|
8036
|
+
custom_type_id: string;
|
|
8037
|
+
group_lang_id: string;
|
|
8038
|
+
versions: (({
|
|
8039
|
+
status: "unclassified";
|
|
8040
|
+
} | {
|
|
8041
|
+
status: "published";
|
|
8042
|
+
} | {
|
|
8043
|
+
status: "release";
|
|
8044
|
+
release_id: string;
|
|
8045
|
+
} | {
|
|
8046
|
+
status: "archived";
|
|
8047
|
+
}) & {
|
|
8048
|
+
tags: string[];
|
|
8049
|
+
version_id: string;
|
|
8050
|
+
last_modified_date: Date;
|
|
8051
|
+
custom_type_label: string;
|
|
8052
|
+
author: {
|
|
8053
|
+
email?: string | undefined;
|
|
8054
|
+
id?: string | undefined;
|
|
8055
|
+
first_name?: string | undefined;
|
|
8056
|
+
last_name?: string | undefined;
|
|
8057
|
+
uploadedAvatar?: string | undefined;
|
|
8058
|
+
};
|
|
8059
|
+
uid?: string | undefined;
|
|
8060
|
+
preview_image?: string | undefined;
|
|
8061
|
+
preview_summary?: string | undefined;
|
|
8062
|
+
})[];
|
|
8063
|
+
title?: string | null | undefined;
|
|
8064
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
8065
|
+
}>, "many">;
|
|
8066
|
+
}, "strip", z.ZodTypeAny, {
|
|
8067
|
+
results: {
|
|
8068
|
+
language: {
|
|
8069
|
+
id: string;
|
|
8070
|
+
label: string;
|
|
8071
|
+
isMaster: boolean;
|
|
8072
|
+
};
|
|
8073
|
+
title: string;
|
|
8074
|
+
id: string;
|
|
8075
|
+
custom_type_id: string;
|
|
8076
|
+
group_lang_id: string;
|
|
8077
|
+
versions: (({
|
|
8078
|
+
status: "unclassified";
|
|
8079
|
+
} | {
|
|
8080
|
+
status: "published";
|
|
8081
|
+
} | {
|
|
8082
|
+
status: "release";
|
|
8083
|
+
release_id: string;
|
|
8084
|
+
} | {
|
|
8085
|
+
status: "archived";
|
|
8086
|
+
}) & {
|
|
8087
|
+
tags: string[];
|
|
8088
|
+
version_id: string;
|
|
8089
|
+
last_modified_date: Date;
|
|
8090
|
+
custom_type_label: string;
|
|
8091
|
+
author: {
|
|
8092
|
+
email?: string | undefined;
|
|
8093
|
+
id?: string | undefined;
|
|
8094
|
+
first_name?: string | undefined;
|
|
8095
|
+
last_name?: string | undefined;
|
|
8096
|
+
uploadedAvatar?: string | undefined;
|
|
8097
|
+
};
|
|
8098
|
+
uid?: string | undefined;
|
|
8099
|
+
preview_image?: string | undefined;
|
|
8100
|
+
preview_summary?: string | undefined;
|
|
8101
|
+
})[];
|
|
8102
|
+
ai_abm_thread_id?: string | undefined;
|
|
8103
|
+
}[];
|
|
8104
|
+
total: number;
|
|
8105
|
+
cursor?: string | undefined;
|
|
8106
|
+
}, {
|
|
8107
|
+
results: {
|
|
8108
|
+
language: {
|
|
8109
|
+
id: string;
|
|
8110
|
+
name: string;
|
|
8111
|
+
is_master?: boolean | undefined;
|
|
8112
|
+
};
|
|
8113
|
+
id: string;
|
|
8114
|
+
custom_type_id: string;
|
|
8115
|
+
group_lang_id: string;
|
|
8116
|
+
versions: (({
|
|
8117
|
+
status: "unclassified";
|
|
8118
|
+
} | {
|
|
8119
|
+
status: "published";
|
|
8120
|
+
} | {
|
|
8121
|
+
status: "release";
|
|
8122
|
+
release_id: string;
|
|
8123
|
+
} | {
|
|
8124
|
+
status: "archived";
|
|
8125
|
+
}) & {
|
|
8126
|
+
tags: string[];
|
|
8127
|
+
version_id: string;
|
|
8128
|
+
last_modified_date: Date;
|
|
8129
|
+
custom_type_label: string;
|
|
8130
|
+
author: {
|
|
8131
|
+
email?: string | undefined;
|
|
8132
|
+
id?: string | undefined;
|
|
8133
|
+
first_name?: string | undefined;
|
|
8134
|
+
last_name?: string | undefined;
|
|
8135
|
+
uploadedAvatar?: string | undefined;
|
|
8136
|
+
};
|
|
8137
|
+
uid?: string | undefined;
|
|
8138
|
+
preview_image?: string | undefined;
|
|
8139
|
+
preview_summary?: string | undefined;
|
|
8140
|
+
})[];
|
|
8141
|
+
title?: string | null | undefined;
|
|
8142
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
8143
|
+
}[];
|
|
8144
|
+
total: number;
|
|
8145
|
+
cursor?: string | undefined;
|
|
8146
|
+
}>>];
|
|
8147
|
+
infiniteLists: () => readonly ["documents", "list:infinite"];
|
|
8148
|
+
infiniteList: (args: GetDocumentListArgs) => readonly ["documents", "list:infinite", GetDocumentListArgs<z.ZodObject<{
|
|
8149
|
+
total: z.ZodNumber;
|
|
8150
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
8151
|
+
results: z.ZodArray<z.ZodObject<{
|
|
8152
|
+
id: z.ZodString;
|
|
8153
|
+
title: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
|
|
8154
|
+
custom_type_id: z.ZodString;
|
|
8155
|
+
group_lang_id: z.ZodString;
|
|
8156
|
+
language: z.ZodEffects<z.ZodObject<{
|
|
8157
|
+
id: z.ZodString;
|
|
8158
|
+
name: z.ZodString;
|
|
8159
|
+
is_master: z.ZodDefault<z.ZodBoolean>;
|
|
8160
|
+
}, "strip", z.ZodTypeAny, {
|
|
8161
|
+
id: string;
|
|
8162
|
+
name: string;
|
|
8163
|
+
is_master: boolean;
|
|
8164
|
+
}, {
|
|
8165
|
+
id: string;
|
|
8166
|
+
name: string;
|
|
8167
|
+
is_master?: boolean | undefined;
|
|
8168
|
+
}>, {
|
|
8169
|
+
id: string;
|
|
8170
|
+
label: string;
|
|
8171
|
+
isMaster: boolean;
|
|
8172
|
+
}, {
|
|
8173
|
+
id: string;
|
|
8174
|
+
name: string;
|
|
8175
|
+
is_master?: boolean | undefined;
|
|
8176
|
+
}>;
|
|
8177
|
+
ai_abm_thread_id: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
8178
|
+
versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
8179
|
+
status: z.ZodLiteral<"unclassified">;
|
|
8180
|
+
}, "strip", z.ZodTypeAny, {
|
|
8181
|
+
status: "unclassified";
|
|
8182
|
+
}, {
|
|
8183
|
+
status: "unclassified";
|
|
8184
|
+
}>, z.ZodObject<{
|
|
8185
|
+
status: z.ZodLiteral<"published">;
|
|
8186
|
+
}, "strip", z.ZodTypeAny, {
|
|
8187
|
+
status: "published";
|
|
8188
|
+
}, {
|
|
8189
|
+
status: "published";
|
|
8190
|
+
}>, z.ZodObject<{
|
|
8191
|
+
status: z.ZodLiteral<"release">;
|
|
8192
|
+
release_id: z.ZodString;
|
|
8193
|
+
}, "strip", z.ZodTypeAny, {
|
|
8194
|
+
status: "release";
|
|
8195
|
+
release_id: string;
|
|
8196
|
+
}, {
|
|
8197
|
+
status: "release";
|
|
8198
|
+
release_id: string;
|
|
8199
|
+
}>, z.ZodObject<{
|
|
8200
|
+
status: z.ZodLiteral<"archived">;
|
|
8201
|
+
}, "strip", z.ZodTypeAny, {
|
|
8202
|
+
status: "archived";
|
|
8203
|
+
}, {
|
|
8204
|
+
status: "archived";
|
|
8205
|
+
}>]>, z.ZodObject<z.objectUtil.extendShape<{
|
|
8206
|
+
version_id: z.ZodString;
|
|
8207
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
8208
|
+
preview_image: z.ZodOptional<z.ZodString>;
|
|
8209
|
+
last_modified_date: z.ZodDate;
|
|
8210
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
8211
|
+
}, {
|
|
8212
|
+
custom_type_label: z.ZodString;
|
|
8213
|
+
preview_summary: z.ZodOptional<z.ZodString>;
|
|
8214
|
+
author: z.ZodObject<{
|
|
8215
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8216
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
8217
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
8218
|
+
email: z.ZodOptional<z.ZodString>;
|
|
8219
|
+
uploadedAvatar: z.ZodOptional<z.ZodString>;
|
|
8220
|
+
}, "strip", z.ZodTypeAny, {
|
|
8221
|
+
email?: string | undefined;
|
|
8222
|
+
id?: string | undefined;
|
|
8223
|
+
first_name?: string | undefined;
|
|
8224
|
+
last_name?: string | undefined;
|
|
8225
|
+
uploadedAvatar?: string | undefined;
|
|
8226
|
+
}, {
|
|
8227
|
+
email?: string | undefined;
|
|
8228
|
+
id?: string | undefined;
|
|
8229
|
+
first_name?: string | undefined;
|
|
8230
|
+
last_name?: string | undefined;
|
|
8231
|
+
uploadedAvatar?: string | undefined;
|
|
8232
|
+
}>;
|
|
8233
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8234
|
+
tags: string[];
|
|
8235
|
+
version_id: string;
|
|
8236
|
+
last_modified_date: Date;
|
|
8237
|
+
custom_type_label: string;
|
|
8238
|
+
author: {
|
|
8239
|
+
email?: string | undefined;
|
|
8240
|
+
id?: string | undefined;
|
|
8241
|
+
first_name?: string | undefined;
|
|
8242
|
+
last_name?: string | undefined;
|
|
8243
|
+
uploadedAvatar?: string | undefined;
|
|
8244
|
+
};
|
|
8245
|
+
uid?: string | undefined;
|
|
8246
|
+
preview_image?: string | undefined;
|
|
8247
|
+
preview_summary?: string | undefined;
|
|
8248
|
+
}, {
|
|
8249
|
+
tags: string[];
|
|
8250
|
+
version_id: string;
|
|
8251
|
+
last_modified_date: Date;
|
|
8252
|
+
custom_type_label: string;
|
|
8253
|
+
author: {
|
|
8254
|
+
email?: string | undefined;
|
|
8255
|
+
id?: string | undefined;
|
|
8256
|
+
first_name?: string | undefined;
|
|
8257
|
+
last_name?: string | undefined;
|
|
8258
|
+
uploadedAvatar?: string | undefined;
|
|
8259
|
+
};
|
|
8260
|
+
uid?: string | undefined;
|
|
8261
|
+
preview_image?: string | undefined;
|
|
8262
|
+
preview_summary?: string | undefined;
|
|
8263
|
+
}>>, "many">;
|
|
8264
|
+
}, "strip", z.ZodTypeAny, {
|
|
8265
|
+
language: {
|
|
8266
|
+
id: string;
|
|
8267
|
+
label: string;
|
|
8268
|
+
isMaster: boolean;
|
|
8269
|
+
};
|
|
8270
|
+
title: string;
|
|
8271
|
+
id: string;
|
|
8272
|
+
custom_type_id: string;
|
|
8273
|
+
group_lang_id: string;
|
|
8274
|
+
versions: (({
|
|
8275
|
+
status: "unclassified";
|
|
8276
|
+
} | {
|
|
8277
|
+
status: "published";
|
|
8278
|
+
} | {
|
|
8279
|
+
status: "release";
|
|
8280
|
+
release_id: string;
|
|
8281
|
+
} | {
|
|
8282
|
+
status: "archived";
|
|
8283
|
+
}) & {
|
|
8284
|
+
tags: string[];
|
|
8285
|
+
version_id: string;
|
|
8286
|
+
last_modified_date: Date;
|
|
8287
|
+
custom_type_label: string;
|
|
8288
|
+
author: {
|
|
8289
|
+
email?: string | undefined;
|
|
8290
|
+
id?: string | undefined;
|
|
8291
|
+
first_name?: string | undefined;
|
|
8292
|
+
last_name?: string | undefined;
|
|
8293
|
+
uploadedAvatar?: string | undefined;
|
|
8294
|
+
};
|
|
8295
|
+
uid?: string | undefined;
|
|
8296
|
+
preview_image?: string | undefined;
|
|
8297
|
+
preview_summary?: string | undefined;
|
|
8298
|
+
})[];
|
|
8299
|
+
ai_abm_thread_id?: string | undefined;
|
|
8300
|
+
}, {
|
|
8301
|
+
language: {
|
|
8302
|
+
id: string;
|
|
8303
|
+
name: string;
|
|
8304
|
+
is_master?: boolean | undefined;
|
|
8305
|
+
};
|
|
8306
|
+
id: string;
|
|
8307
|
+
custom_type_id: string;
|
|
8308
|
+
group_lang_id: string;
|
|
8309
|
+
versions: (({
|
|
8310
|
+
status: "unclassified";
|
|
8311
|
+
} | {
|
|
8312
|
+
status: "published";
|
|
8313
|
+
} | {
|
|
8314
|
+
status: "release";
|
|
8315
|
+
release_id: string;
|
|
8316
|
+
} | {
|
|
8317
|
+
status: "archived";
|
|
8318
|
+
}) & {
|
|
8319
|
+
tags: string[];
|
|
8320
|
+
version_id: string;
|
|
8321
|
+
last_modified_date: Date;
|
|
8322
|
+
custom_type_label: string;
|
|
8323
|
+
author: {
|
|
8324
|
+
email?: string | undefined;
|
|
8325
|
+
id?: string | undefined;
|
|
8326
|
+
first_name?: string | undefined;
|
|
8327
|
+
last_name?: string | undefined;
|
|
8328
|
+
uploadedAvatar?: string | undefined;
|
|
8329
|
+
};
|
|
8330
|
+
uid?: string | undefined;
|
|
8331
|
+
preview_image?: string | undefined;
|
|
8332
|
+
preview_summary?: string | undefined;
|
|
8333
|
+
})[];
|
|
8334
|
+
title?: string | null | undefined;
|
|
8335
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
8336
|
+
}>, "many">;
|
|
8337
|
+
}, "strip", z.ZodTypeAny, {
|
|
8338
|
+
results: {
|
|
8339
|
+
language: {
|
|
8340
|
+
id: string;
|
|
8341
|
+
label: string;
|
|
8342
|
+
isMaster: boolean;
|
|
8343
|
+
};
|
|
8344
|
+
title: string;
|
|
8345
|
+
id: string;
|
|
8346
|
+
custom_type_id: string;
|
|
8347
|
+
group_lang_id: string;
|
|
8348
|
+
versions: (({
|
|
8349
|
+
status: "unclassified";
|
|
8350
|
+
} | {
|
|
8351
|
+
status: "published";
|
|
8352
|
+
} | {
|
|
8353
|
+
status: "release";
|
|
8354
|
+
release_id: string;
|
|
8355
|
+
} | {
|
|
8356
|
+
status: "archived";
|
|
8357
|
+
}) & {
|
|
8358
|
+
tags: string[];
|
|
8359
|
+
version_id: string;
|
|
8360
|
+
last_modified_date: Date;
|
|
8361
|
+
custom_type_label: string;
|
|
8362
|
+
author: {
|
|
8363
|
+
email?: string | undefined;
|
|
8364
|
+
id?: string | undefined;
|
|
8365
|
+
first_name?: string | undefined;
|
|
8366
|
+
last_name?: string | undefined;
|
|
8367
|
+
uploadedAvatar?: string | undefined;
|
|
8368
|
+
};
|
|
8369
|
+
uid?: string | undefined;
|
|
8370
|
+
preview_image?: string | undefined;
|
|
8371
|
+
preview_summary?: string | undefined;
|
|
8372
|
+
})[];
|
|
8373
|
+
ai_abm_thread_id?: string | undefined;
|
|
8374
|
+
}[];
|
|
8375
|
+
total: number;
|
|
8376
|
+
cursor?: string | undefined;
|
|
8377
|
+
}, {
|
|
8378
|
+
results: {
|
|
8379
|
+
language: {
|
|
8380
|
+
id: string;
|
|
8381
|
+
name: string;
|
|
8382
|
+
is_master?: boolean | undefined;
|
|
8383
|
+
};
|
|
8384
|
+
id: string;
|
|
8385
|
+
custom_type_id: string;
|
|
8386
|
+
group_lang_id: string;
|
|
8387
|
+
versions: (({
|
|
8388
|
+
status: "unclassified";
|
|
8389
|
+
} | {
|
|
8390
|
+
status: "published";
|
|
8391
|
+
} | {
|
|
8392
|
+
status: "release";
|
|
8393
|
+
release_id: string;
|
|
8394
|
+
} | {
|
|
8395
|
+
status: "archived";
|
|
8396
|
+
}) & {
|
|
8397
|
+
tags: string[];
|
|
8398
|
+
version_id: string;
|
|
8399
|
+
last_modified_date: Date;
|
|
8400
|
+
custom_type_label: string;
|
|
8401
|
+
author: {
|
|
8402
|
+
email?: string | undefined;
|
|
8403
|
+
id?: string | undefined;
|
|
8404
|
+
first_name?: string | undefined;
|
|
8405
|
+
last_name?: string | undefined;
|
|
8406
|
+
uploadedAvatar?: string | undefined;
|
|
8407
|
+
};
|
|
8408
|
+
uid?: string | undefined;
|
|
8409
|
+
preview_image?: string | undefined;
|
|
8410
|
+
preview_summary?: string | undefined;
|
|
8411
|
+
})[];
|
|
8412
|
+
title?: string | null | undefined;
|
|
8413
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
8414
|
+
}[];
|
|
8415
|
+
total: number;
|
|
8416
|
+
cursor?: string | undefined;
|
|
8417
|
+
}>>];
|
|
8418
|
+
};
|
|
8419
|
+
/**
|
|
8420
|
+
* Returns updated document or undefined if document should be removed
|
|
8421
|
+
*/
|
|
8422
|
+
type UpdateDocumentFunction = (document: DocumentMeta, page: GetDocumentListSchema) => DocumentMeta | undefined;
|
|
8423
|
+
interface UpdateDocumentListDataArgs {
|
|
8424
|
+
queryClient: QueryClient;
|
|
8425
|
+
updateFunction: UpdateDocumentFunction;
|
|
8426
|
+
/**
|
|
8427
|
+
* Include or exclude stale queries from the update.
|
|
8428
|
+
*
|
|
8429
|
+
* updateDocumentListData() makes queries fresh. If the queries are already
|
|
8430
|
+
* stale, it's best to keep them untouched and let them refetch instead of
|
|
8431
|
+
* modifying the cache manually.
|
|
8432
|
+
*
|
|
8433
|
+
* Use stale: false to exclude stale queries from the update.
|
|
8434
|
+
*/
|
|
8435
|
+
stale?: boolean;
|
|
8436
|
+
}
|
|
8437
|
+
export declare function updateDocumentListData(args: UpdateDocumentListDataArgs): void;
|
|
8438
|
+
/**
|
|
8439
|
+
* @deprecated ⚠️ Don't add new usages of this and try to remove existing usages as much as possible.
|
|
8440
|
+
*
|
|
8441
|
+
* This is not scalable: If you scroll 30 pages of data and call invalidateDocumentListData(),
|
|
8442
|
+
* we will instantly make 30 expensive queries to the core API (or the next time we visit one of the infinite lists).
|
|
8443
|
+
* We should create a toast with an action that will only reload the first page, at your convenience.
|
|
8444
|
+
* For now, only bulk actions make use of this toast approach but we should share and reuse that logic.
|
|
8445
|
+
*/
|
|
8446
|
+
export declare function invalidateDocumentListData(queryClient: QueryClient): Promise<void>;
|
|
8447
|
+
export declare function resetFirstDocumentListPage(queryClient: QueryClient): Promise<void>;
|
|
8448
|
+
export declare function getDocumentListOptions(args: GetDocumentListArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
|
|
8449
|
+
results: {
|
|
8450
|
+
language: {
|
|
8451
|
+
id: string;
|
|
8452
|
+
label: string;
|
|
8453
|
+
isMaster: boolean;
|
|
8454
|
+
};
|
|
8455
|
+
title: string;
|
|
8456
|
+
id: string;
|
|
8457
|
+
custom_type_id: string;
|
|
8458
|
+
group_lang_id: string;
|
|
8459
|
+
versions: (({
|
|
8460
|
+
status: "unclassified";
|
|
8461
|
+
} | {
|
|
8462
|
+
status: "published";
|
|
8463
|
+
} | {
|
|
8464
|
+
status: "release";
|
|
8465
|
+
release_id: string;
|
|
8466
|
+
} | {
|
|
8467
|
+
status: "archived";
|
|
8468
|
+
}) & {
|
|
8469
|
+
tags: string[];
|
|
8470
|
+
version_id: string;
|
|
8471
|
+
last_modified_date: Date;
|
|
8472
|
+
custom_type_label: string;
|
|
8473
|
+
author: {
|
|
8474
|
+
email?: string | undefined;
|
|
8475
|
+
id?: string | undefined;
|
|
8476
|
+
first_name?: string | undefined;
|
|
8477
|
+
last_name?: string | undefined;
|
|
8478
|
+
uploadedAvatar?: string | undefined;
|
|
8479
|
+
};
|
|
8480
|
+
uid?: string | undefined;
|
|
8481
|
+
preview_image?: string | undefined;
|
|
8482
|
+
preview_summary?: string | undefined;
|
|
8483
|
+
})[];
|
|
8484
|
+
ai_abm_thread_id?: string | undefined;
|
|
8485
|
+
}[];
|
|
7706
8486
|
total: number;
|
|
7707
8487
|
cursor?: string | undefined;
|
|
7708
|
-
}, Error
|
|
7709
|
-
|
|
8488
|
+
}, Error, {
|
|
8489
|
+
results: {
|
|
8490
|
+
language: {
|
|
8491
|
+
id: string;
|
|
8492
|
+
label: string;
|
|
8493
|
+
isMaster: boolean;
|
|
8494
|
+
};
|
|
8495
|
+
title: string;
|
|
8496
|
+
id: string;
|
|
8497
|
+
custom_type_id: string;
|
|
8498
|
+
group_lang_id: string;
|
|
8499
|
+
versions: (({
|
|
8500
|
+
status: "unclassified";
|
|
8501
|
+
} | {
|
|
8502
|
+
status: "published";
|
|
8503
|
+
} | {
|
|
8504
|
+
status: "release";
|
|
8505
|
+
release_id: string;
|
|
8506
|
+
} | {
|
|
8507
|
+
status: "archived";
|
|
8508
|
+
}) & {
|
|
8509
|
+
tags: string[];
|
|
8510
|
+
version_id: string;
|
|
8511
|
+
last_modified_date: Date;
|
|
8512
|
+
custom_type_label: string;
|
|
8513
|
+
author: {
|
|
8514
|
+
email?: string | undefined;
|
|
8515
|
+
id?: string | undefined;
|
|
8516
|
+
first_name?: string | undefined;
|
|
8517
|
+
last_name?: string | undefined;
|
|
8518
|
+
uploadedAvatar?: string | undefined;
|
|
8519
|
+
};
|
|
8520
|
+
uid?: string | undefined;
|
|
8521
|
+
preview_image?: string | undefined;
|
|
8522
|
+
preview_summary?: string | undefined;
|
|
8523
|
+
})[];
|
|
8524
|
+
ai_abm_thread_id?: string | undefined;
|
|
8525
|
+
}[];
|
|
8526
|
+
total: number;
|
|
8527
|
+
cursor?: string | undefined;
|
|
8528
|
+
}, readonly ["documents", "list", GetDocumentListArgs<z.ZodObject<{
|
|
8529
|
+
total: z.ZodNumber;
|
|
8530
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
8531
|
+
results: z.ZodArray<z.ZodObject<{
|
|
8532
|
+
id: z.ZodString;
|
|
8533
|
+
title: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
|
|
8534
|
+
custom_type_id: z.ZodString;
|
|
8535
|
+
group_lang_id: z.ZodString;
|
|
8536
|
+
language: z.ZodEffects<z.ZodObject<{
|
|
8537
|
+
id: z.ZodString;
|
|
8538
|
+
name: z.ZodString;
|
|
8539
|
+
is_master: z.ZodDefault<z.ZodBoolean>;
|
|
8540
|
+
}, "strip", z.ZodTypeAny, {
|
|
8541
|
+
id: string;
|
|
8542
|
+
name: string;
|
|
8543
|
+
is_master: boolean;
|
|
8544
|
+
}, {
|
|
8545
|
+
id: string;
|
|
8546
|
+
name: string;
|
|
8547
|
+
is_master?: boolean | undefined;
|
|
8548
|
+
}>, {
|
|
8549
|
+
id: string;
|
|
8550
|
+
label: string;
|
|
8551
|
+
isMaster: boolean;
|
|
8552
|
+
}, {
|
|
8553
|
+
id: string;
|
|
8554
|
+
name: string;
|
|
8555
|
+
is_master?: boolean | undefined;
|
|
8556
|
+
}>;
|
|
8557
|
+
ai_abm_thread_id: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
8558
|
+
versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
8559
|
+
status: z.ZodLiteral<"unclassified">;
|
|
8560
|
+
}, "strip", z.ZodTypeAny, {
|
|
8561
|
+
status: "unclassified";
|
|
8562
|
+
}, {
|
|
8563
|
+
status: "unclassified";
|
|
8564
|
+
}>, z.ZodObject<{
|
|
8565
|
+
status: z.ZodLiteral<"published">;
|
|
8566
|
+
}, "strip", z.ZodTypeAny, {
|
|
8567
|
+
status: "published";
|
|
8568
|
+
}, {
|
|
8569
|
+
status: "published";
|
|
8570
|
+
}>, z.ZodObject<{
|
|
8571
|
+
status: z.ZodLiteral<"release">;
|
|
8572
|
+
release_id: z.ZodString;
|
|
8573
|
+
}, "strip", z.ZodTypeAny, {
|
|
8574
|
+
status: "release";
|
|
8575
|
+
release_id: string;
|
|
8576
|
+
}, {
|
|
8577
|
+
status: "release";
|
|
8578
|
+
release_id: string;
|
|
8579
|
+
}>, z.ZodObject<{
|
|
8580
|
+
status: z.ZodLiteral<"archived">;
|
|
8581
|
+
}, "strip", z.ZodTypeAny, {
|
|
8582
|
+
status: "archived";
|
|
8583
|
+
}, {
|
|
8584
|
+
status: "archived";
|
|
8585
|
+
}>]>, z.ZodObject<z.objectUtil.extendShape<{
|
|
8586
|
+
version_id: z.ZodString;
|
|
8587
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
8588
|
+
preview_image: z.ZodOptional<z.ZodString>;
|
|
8589
|
+
last_modified_date: z.ZodDate;
|
|
8590
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
8591
|
+
}, {
|
|
8592
|
+
custom_type_label: z.ZodString;
|
|
8593
|
+
preview_summary: z.ZodOptional<z.ZodString>;
|
|
8594
|
+
author: z.ZodObject<{
|
|
8595
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8596
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
8597
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
8598
|
+
email: z.ZodOptional<z.ZodString>;
|
|
8599
|
+
uploadedAvatar: z.ZodOptional<z.ZodString>;
|
|
8600
|
+
}, "strip", z.ZodTypeAny, {
|
|
8601
|
+
email?: string | undefined;
|
|
8602
|
+
id?: string | undefined;
|
|
8603
|
+
first_name?: string | undefined;
|
|
8604
|
+
last_name?: string | undefined;
|
|
8605
|
+
uploadedAvatar?: string | undefined;
|
|
8606
|
+
}, {
|
|
8607
|
+
email?: string | undefined;
|
|
8608
|
+
id?: string | undefined;
|
|
8609
|
+
first_name?: string | undefined;
|
|
8610
|
+
last_name?: string | undefined;
|
|
8611
|
+
uploadedAvatar?: string | undefined;
|
|
8612
|
+
}>;
|
|
8613
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8614
|
+
tags: string[];
|
|
8615
|
+
version_id: string;
|
|
8616
|
+
last_modified_date: Date;
|
|
8617
|
+
custom_type_label: string;
|
|
8618
|
+
author: {
|
|
8619
|
+
email?: string | undefined;
|
|
8620
|
+
id?: string | undefined;
|
|
8621
|
+
first_name?: string | undefined;
|
|
8622
|
+
last_name?: string | undefined;
|
|
8623
|
+
uploadedAvatar?: string | undefined;
|
|
8624
|
+
};
|
|
8625
|
+
uid?: string | undefined;
|
|
8626
|
+
preview_image?: string | undefined;
|
|
8627
|
+
preview_summary?: string | undefined;
|
|
8628
|
+
}, {
|
|
8629
|
+
tags: string[];
|
|
8630
|
+
version_id: string;
|
|
8631
|
+
last_modified_date: Date;
|
|
8632
|
+
custom_type_label: string;
|
|
8633
|
+
author: {
|
|
8634
|
+
email?: string | undefined;
|
|
8635
|
+
id?: string | undefined;
|
|
8636
|
+
first_name?: string | undefined;
|
|
8637
|
+
last_name?: string | undefined;
|
|
8638
|
+
uploadedAvatar?: string | undefined;
|
|
8639
|
+
};
|
|
8640
|
+
uid?: string | undefined;
|
|
8641
|
+
preview_image?: string | undefined;
|
|
8642
|
+
preview_summary?: string | undefined;
|
|
8643
|
+
}>>, "many">;
|
|
8644
|
+
}, "strip", z.ZodTypeAny, {
|
|
8645
|
+
language: {
|
|
8646
|
+
id: string;
|
|
8647
|
+
label: string;
|
|
8648
|
+
isMaster: boolean;
|
|
8649
|
+
};
|
|
8650
|
+
title: string;
|
|
8651
|
+
id: string;
|
|
8652
|
+
custom_type_id: string;
|
|
8653
|
+
group_lang_id: string;
|
|
8654
|
+
versions: (({
|
|
8655
|
+
status: "unclassified";
|
|
8656
|
+
} | {
|
|
8657
|
+
status: "published";
|
|
8658
|
+
} | {
|
|
8659
|
+
status: "release";
|
|
8660
|
+
release_id: string;
|
|
8661
|
+
} | {
|
|
8662
|
+
status: "archived";
|
|
8663
|
+
}) & {
|
|
8664
|
+
tags: string[];
|
|
8665
|
+
version_id: string;
|
|
8666
|
+
last_modified_date: Date;
|
|
8667
|
+
custom_type_label: string;
|
|
8668
|
+
author: {
|
|
8669
|
+
email?: string | undefined;
|
|
8670
|
+
id?: string | undefined;
|
|
8671
|
+
first_name?: string | undefined;
|
|
8672
|
+
last_name?: string | undefined;
|
|
8673
|
+
uploadedAvatar?: string | undefined;
|
|
8674
|
+
};
|
|
8675
|
+
uid?: string | undefined;
|
|
8676
|
+
preview_image?: string | undefined;
|
|
8677
|
+
preview_summary?: string | undefined;
|
|
8678
|
+
})[];
|
|
8679
|
+
ai_abm_thread_id?: string | undefined;
|
|
8680
|
+
}, {
|
|
8681
|
+
language: {
|
|
8682
|
+
id: string;
|
|
8683
|
+
name: string;
|
|
8684
|
+
is_master?: boolean | undefined;
|
|
8685
|
+
};
|
|
8686
|
+
id: string;
|
|
8687
|
+
custom_type_id: string;
|
|
8688
|
+
group_lang_id: string;
|
|
8689
|
+
versions: (({
|
|
8690
|
+
status: "unclassified";
|
|
8691
|
+
} | {
|
|
8692
|
+
status: "published";
|
|
8693
|
+
} | {
|
|
8694
|
+
status: "release";
|
|
8695
|
+
release_id: string;
|
|
8696
|
+
} | {
|
|
8697
|
+
status: "archived";
|
|
8698
|
+
}) & {
|
|
8699
|
+
tags: string[];
|
|
8700
|
+
version_id: string;
|
|
8701
|
+
last_modified_date: Date;
|
|
8702
|
+
custom_type_label: string;
|
|
8703
|
+
author: {
|
|
8704
|
+
email?: string | undefined;
|
|
8705
|
+
id?: string | undefined;
|
|
8706
|
+
first_name?: string | undefined;
|
|
8707
|
+
last_name?: string | undefined;
|
|
8708
|
+
uploadedAvatar?: string | undefined;
|
|
8709
|
+
};
|
|
8710
|
+
uid?: string | undefined;
|
|
8711
|
+
preview_image?: string | undefined;
|
|
8712
|
+
preview_summary?: string | undefined;
|
|
8713
|
+
})[];
|
|
8714
|
+
title?: string | null | undefined;
|
|
8715
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
8716
|
+
}>, "many">;
|
|
8717
|
+
}, "strip", z.ZodTypeAny, {
|
|
7710
8718
|
results: {
|
|
7711
8719
|
language: {
|
|
7712
8720
|
id: string;
|
|
@@ -7746,14 +8754,13 @@ export declare function getDocumentListOptions(args: GetDocumentListArgs): impor
|
|
|
7746
8754
|
}[];
|
|
7747
8755
|
total: number;
|
|
7748
8756
|
cursor?: string | undefined;
|
|
7749
|
-
},
|
|
8757
|
+
}, {
|
|
7750
8758
|
results: {
|
|
7751
8759
|
language: {
|
|
7752
8760
|
id: string;
|
|
7753
|
-
|
|
7754
|
-
|
|
8761
|
+
name: string;
|
|
8762
|
+
is_master?: boolean | undefined;
|
|
7755
8763
|
};
|
|
7756
|
-
title: string;
|
|
7757
8764
|
id: string;
|
|
7758
8765
|
custom_type_id: string;
|
|
7759
8766
|
group_lang_id: string;
|
|
@@ -7782,11 +8789,12 @@ export declare function getDocumentListOptions(args: GetDocumentListArgs): impor
|
|
|
7782
8789
|
preview_image?: string | undefined;
|
|
7783
8790
|
preview_summary?: string | undefined;
|
|
7784
8791
|
})[];
|
|
7785
|
-
|
|
8792
|
+
title?: string | null | undefined;
|
|
8793
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
7786
8794
|
}[];
|
|
7787
8795
|
total: number;
|
|
7788
8796
|
cursor?: string | undefined;
|
|
7789
|
-
}
|
|
8797
|
+
}>>]> & {
|
|
7790
8798
|
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
7791
8799
|
results: {
|
|
7792
8800
|
language: {
|
|
@@ -7829,7 +8837,276 @@ export declare function getDocumentListOptions(args: GetDocumentListArgs): impor
|
|
|
7829
8837
|
cursor?: string | undefined;
|
|
7830
8838
|
}> | undefined;
|
|
7831
8839
|
} & {
|
|
7832
|
-
queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<readonly ["documents", "list", GetDocumentListArgs
|
|
8840
|
+
queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<readonly ["documents", "list", GetDocumentListArgs<z.ZodObject<{
|
|
8841
|
+
total: z.ZodNumber;
|
|
8842
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
8843
|
+
results: z.ZodArray<z.ZodObject<{
|
|
8844
|
+
id: z.ZodString;
|
|
8845
|
+
title: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
|
|
8846
|
+
custom_type_id: z.ZodString;
|
|
8847
|
+
group_lang_id: z.ZodString;
|
|
8848
|
+
language: z.ZodEffects<z.ZodObject<{
|
|
8849
|
+
id: z.ZodString;
|
|
8850
|
+
name: z.ZodString;
|
|
8851
|
+
is_master: z.ZodDefault<z.ZodBoolean>;
|
|
8852
|
+
}, "strip", z.ZodTypeAny, {
|
|
8853
|
+
id: string;
|
|
8854
|
+
name: string;
|
|
8855
|
+
is_master: boolean;
|
|
8856
|
+
}, {
|
|
8857
|
+
id: string;
|
|
8858
|
+
name: string;
|
|
8859
|
+
is_master?: boolean | undefined;
|
|
8860
|
+
}>, {
|
|
8861
|
+
id: string;
|
|
8862
|
+
label: string;
|
|
8863
|
+
isMaster: boolean;
|
|
8864
|
+
}, {
|
|
8865
|
+
id: string;
|
|
8866
|
+
name: string;
|
|
8867
|
+
is_master?: boolean | undefined;
|
|
8868
|
+
}>;
|
|
8869
|
+
ai_abm_thread_id: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
8870
|
+
versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
8871
|
+
status: z.ZodLiteral<"unclassified">;
|
|
8872
|
+
}, "strip", z.ZodTypeAny, {
|
|
8873
|
+
status: "unclassified";
|
|
8874
|
+
}, {
|
|
8875
|
+
status: "unclassified";
|
|
8876
|
+
}>, z.ZodObject<{
|
|
8877
|
+
status: z.ZodLiteral<"published">;
|
|
8878
|
+
}, "strip", z.ZodTypeAny, {
|
|
8879
|
+
status: "published";
|
|
8880
|
+
}, {
|
|
8881
|
+
status: "published";
|
|
8882
|
+
}>, z.ZodObject<{
|
|
8883
|
+
status: z.ZodLiteral<"release">;
|
|
8884
|
+
release_id: z.ZodString;
|
|
8885
|
+
}, "strip", z.ZodTypeAny, {
|
|
8886
|
+
status: "release";
|
|
8887
|
+
release_id: string;
|
|
8888
|
+
}, {
|
|
8889
|
+
status: "release";
|
|
8890
|
+
release_id: string;
|
|
8891
|
+
}>, z.ZodObject<{
|
|
8892
|
+
status: z.ZodLiteral<"archived">;
|
|
8893
|
+
}, "strip", z.ZodTypeAny, {
|
|
8894
|
+
status: "archived";
|
|
8895
|
+
}, {
|
|
8896
|
+
status: "archived";
|
|
8897
|
+
}>]>, z.ZodObject<z.objectUtil.extendShape<{
|
|
8898
|
+
version_id: z.ZodString;
|
|
8899
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
8900
|
+
preview_image: z.ZodOptional<z.ZodString>;
|
|
8901
|
+
last_modified_date: z.ZodDate;
|
|
8902
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
8903
|
+
}, {
|
|
8904
|
+
custom_type_label: z.ZodString;
|
|
8905
|
+
preview_summary: z.ZodOptional<z.ZodString>;
|
|
8906
|
+
author: z.ZodObject<{
|
|
8907
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8908
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
8909
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
8910
|
+
email: z.ZodOptional<z.ZodString>;
|
|
8911
|
+
uploadedAvatar: z.ZodOptional<z.ZodString>;
|
|
8912
|
+
}, "strip", z.ZodTypeAny, {
|
|
8913
|
+
email?: string | undefined;
|
|
8914
|
+
id?: string | undefined;
|
|
8915
|
+
first_name?: string | undefined;
|
|
8916
|
+
last_name?: string | undefined;
|
|
8917
|
+
uploadedAvatar?: string | undefined;
|
|
8918
|
+
}, {
|
|
8919
|
+
email?: string | undefined;
|
|
8920
|
+
id?: string | undefined;
|
|
8921
|
+
first_name?: string | undefined;
|
|
8922
|
+
last_name?: string | undefined;
|
|
8923
|
+
uploadedAvatar?: string | undefined;
|
|
8924
|
+
}>;
|
|
8925
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8926
|
+
tags: string[];
|
|
8927
|
+
version_id: string;
|
|
8928
|
+
last_modified_date: Date;
|
|
8929
|
+
custom_type_label: string;
|
|
8930
|
+
author: {
|
|
8931
|
+
email?: string | undefined;
|
|
8932
|
+
id?: string | undefined;
|
|
8933
|
+
first_name?: string | undefined;
|
|
8934
|
+
last_name?: string | undefined;
|
|
8935
|
+
uploadedAvatar?: string | undefined;
|
|
8936
|
+
};
|
|
8937
|
+
uid?: string | undefined;
|
|
8938
|
+
preview_image?: string | undefined;
|
|
8939
|
+
preview_summary?: string | undefined;
|
|
8940
|
+
}, {
|
|
8941
|
+
tags: string[];
|
|
8942
|
+
version_id: string;
|
|
8943
|
+
last_modified_date: Date;
|
|
8944
|
+
custom_type_label: string;
|
|
8945
|
+
author: {
|
|
8946
|
+
email?: string | undefined;
|
|
8947
|
+
id?: string | undefined;
|
|
8948
|
+
first_name?: string | undefined;
|
|
8949
|
+
last_name?: string | undefined;
|
|
8950
|
+
uploadedAvatar?: string | undefined;
|
|
8951
|
+
};
|
|
8952
|
+
uid?: string | undefined;
|
|
8953
|
+
preview_image?: string | undefined;
|
|
8954
|
+
preview_summary?: string | undefined;
|
|
8955
|
+
}>>, "many">;
|
|
8956
|
+
}, "strip", z.ZodTypeAny, {
|
|
8957
|
+
language: {
|
|
8958
|
+
id: string;
|
|
8959
|
+
label: string;
|
|
8960
|
+
isMaster: boolean;
|
|
8961
|
+
};
|
|
8962
|
+
title: string;
|
|
8963
|
+
id: string;
|
|
8964
|
+
custom_type_id: string;
|
|
8965
|
+
group_lang_id: string;
|
|
8966
|
+
versions: (({
|
|
8967
|
+
status: "unclassified";
|
|
8968
|
+
} | {
|
|
8969
|
+
status: "published";
|
|
8970
|
+
} | {
|
|
8971
|
+
status: "release";
|
|
8972
|
+
release_id: string;
|
|
8973
|
+
} | {
|
|
8974
|
+
status: "archived";
|
|
8975
|
+
}) & {
|
|
8976
|
+
tags: string[];
|
|
8977
|
+
version_id: string;
|
|
8978
|
+
last_modified_date: Date;
|
|
8979
|
+
custom_type_label: string;
|
|
8980
|
+
author: {
|
|
8981
|
+
email?: string | undefined;
|
|
8982
|
+
id?: string | undefined;
|
|
8983
|
+
first_name?: string | undefined;
|
|
8984
|
+
last_name?: string | undefined;
|
|
8985
|
+
uploadedAvatar?: string | undefined;
|
|
8986
|
+
};
|
|
8987
|
+
uid?: string | undefined;
|
|
8988
|
+
preview_image?: string | undefined;
|
|
8989
|
+
preview_summary?: string | undefined;
|
|
8990
|
+
})[];
|
|
8991
|
+
ai_abm_thread_id?: string | undefined;
|
|
8992
|
+
}, {
|
|
8993
|
+
language: {
|
|
8994
|
+
id: string;
|
|
8995
|
+
name: string;
|
|
8996
|
+
is_master?: boolean | undefined;
|
|
8997
|
+
};
|
|
8998
|
+
id: string;
|
|
8999
|
+
custom_type_id: string;
|
|
9000
|
+
group_lang_id: string;
|
|
9001
|
+
versions: (({
|
|
9002
|
+
status: "unclassified";
|
|
9003
|
+
} | {
|
|
9004
|
+
status: "published";
|
|
9005
|
+
} | {
|
|
9006
|
+
status: "release";
|
|
9007
|
+
release_id: string;
|
|
9008
|
+
} | {
|
|
9009
|
+
status: "archived";
|
|
9010
|
+
}) & {
|
|
9011
|
+
tags: string[];
|
|
9012
|
+
version_id: string;
|
|
9013
|
+
last_modified_date: Date;
|
|
9014
|
+
custom_type_label: string;
|
|
9015
|
+
author: {
|
|
9016
|
+
email?: string | undefined;
|
|
9017
|
+
id?: string | undefined;
|
|
9018
|
+
first_name?: string | undefined;
|
|
9019
|
+
last_name?: string | undefined;
|
|
9020
|
+
uploadedAvatar?: string | undefined;
|
|
9021
|
+
};
|
|
9022
|
+
uid?: string | undefined;
|
|
9023
|
+
preview_image?: string | undefined;
|
|
9024
|
+
preview_summary?: string | undefined;
|
|
9025
|
+
})[];
|
|
9026
|
+
title?: string | null | undefined;
|
|
9027
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
9028
|
+
}>, "many">;
|
|
9029
|
+
}, "strip", z.ZodTypeAny, {
|
|
9030
|
+
results: {
|
|
9031
|
+
language: {
|
|
9032
|
+
id: string;
|
|
9033
|
+
label: string;
|
|
9034
|
+
isMaster: boolean;
|
|
9035
|
+
};
|
|
9036
|
+
title: string;
|
|
9037
|
+
id: string;
|
|
9038
|
+
custom_type_id: string;
|
|
9039
|
+
group_lang_id: string;
|
|
9040
|
+
versions: (({
|
|
9041
|
+
status: "unclassified";
|
|
9042
|
+
} | {
|
|
9043
|
+
status: "published";
|
|
9044
|
+
} | {
|
|
9045
|
+
status: "release";
|
|
9046
|
+
release_id: string;
|
|
9047
|
+
} | {
|
|
9048
|
+
status: "archived";
|
|
9049
|
+
}) & {
|
|
9050
|
+
tags: string[];
|
|
9051
|
+
version_id: string;
|
|
9052
|
+
last_modified_date: Date;
|
|
9053
|
+
custom_type_label: string;
|
|
9054
|
+
author: {
|
|
9055
|
+
email?: string | undefined;
|
|
9056
|
+
id?: string | undefined;
|
|
9057
|
+
first_name?: string | undefined;
|
|
9058
|
+
last_name?: string | undefined;
|
|
9059
|
+
uploadedAvatar?: string | undefined;
|
|
9060
|
+
};
|
|
9061
|
+
uid?: string | undefined;
|
|
9062
|
+
preview_image?: string | undefined;
|
|
9063
|
+
preview_summary?: string | undefined;
|
|
9064
|
+
})[];
|
|
9065
|
+
ai_abm_thread_id?: string | undefined;
|
|
9066
|
+
}[];
|
|
9067
|
+
total: number;
|
|
9068
|
+
cursor?: string | undefined;
|
|
9069
|
+
}, {
|
|
9070
|
+
results: {
|
|
9071
|
+
language: {
|
|
9072
|
+
id: string;
|
|
9073
|
+
name: string;
|
|
9074
|
+
is_master?: boolean | undefined;
|
|
9075
|
+
};
|
|
9076
|
+
id: string;
|
|
9077
|
+
custom_type_id: string;
|
|
9078
|
+
group_lang_id: string;
|
|
9079
|
+
versions: (({
|
|
9080
|
+
status: "unclassified";
|
|
9081
|
+
} | {
|
|
9082
|
+
status: "published";
|
|
9083
|
+
} | {
|
|
9084
|
+
status: "release";
|
|
9085
|
+
release_id: string;
|
|
9086
|
+
} | {
|
|
9087
|
+
status: "archived";
|
|
9088
|
+
}) & {
|
|
9089
|
+
tags: string[];
|
|
9090
|
+
version_id: string;
|
|
9091
|
+
last_modified_date: Date;
|
|
9092
|
+
custom_type_label: string;
|
|
9093
|
+
author: {
|
|
9094
|
+
email?: string | undefined;
|
|
9095
|
+
id?: string | undefined;
|
|
9096
|
+
first_name?: string | undefined;
|
|
9097
|
+
last_name?: string | undefined;
|
|
9098
|
+
uploadedAvatar?: string | undefined;
|
|
9099
|
+
};
|
|
9100
|
+
uid?: string | undefined;
|
|
9101
|
+
preview_image?: string | undefined;
|
|
9102
|
+
preview_summary?: string | undefined;
|
|
9103
|
+
})[];
|
|
9104
|
+
title?: string | null | undefined;
|
|
9105
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
9106
|
+
}[];
|
|
9107
|
+
total: number;
|
|
9108
|
+
cursor?: string | undefined;
|
|
9109
|
+
}>>], {
|
|
7833
9110
|
results: {
|
|
7834
9111
|
language: {
|
|
7835
9112
|
id: string;
|