@prismicio/editor-fields 0.4.88 → 0.4.89-alpha.jp-box-display-none.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.
- package/dist/core/service/document.d.ts +1251 -144
- package/dist/fields/LinkField/linkFieldData.d.ts +4 -0
- package/dist/fields/LinkField/useLinkField.d.ts +0 -1
- package/dist/index.cjs.js +51 -51
- package/dist/index.es.js +28301 -27942
- package/package.json +7 -4
|
@@ -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;
|
|
@@ -7655,140 +7686,123 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
7655
7686
|
export declare const documentKeys: {
|
|
7656
7687
|
all: () => readonly ["documents"];
|
|
7657
7688
|
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
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
email?: string | undefined;
|
|
7776
|
-
id?: string | undefined;
|
|
7777
|
-
first_name?: string | undefined;
|
|
7778
|
-
last_name?: string | undefined;
|
|
7779
|
-
uploadedAvatar?: string | undefined;
|
|
7780
|
-
};
|
|
7781
|
-
uid?: string | undefined;
|
|
7782
|
-
preview_image?: string | undefined;
|
|
7783
|
-
preview_summary?: string | undefined;
|
|
7784
|
-
})[];
|
|
7785
|
-
ai_abm_thread_id?: string | undefined;
|
|
7786
|
-
}[];
|
|
7787
|
-
total: number;
|
|
7788
|
-
cursor?: string | undefined;
|
|
7789
|
-
}, readonly ["documents", "list", GetDocumentListArgs]> & {
|
|
7790
|
-
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
7791
|
-
results: {
|
|
7689
|
+
list: (args: GetDocumentListArgs) => readonly ["documents", "list", GetDocumentListArgs<z.ZodObject<{
|
|
7690
|
+
total: z.ZodNumber;
|
|
7691
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
7692
|
+
results: z.ZodArray<z.ZodObject<{
|
|
7693
|
+
id: z.ZodString;
|
|
7694
|
+
title: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
|
|
7695
|
+
custom_type_id: z.ZodString;
|
|
7696
|
+
group_lang_id: z.ZodString;
|
|
7697
|
+
language: z.ZodEffects<z.ZodObject<{
|
|
7698
|
+
id: z.ZodString;
|
|
7699
|
+
name: z.ZodString;
|
|
7700
|
+
is_master: z.ZodDefault<z.ZodBoolean>;
|
|
7701
|
+
}, "strip", z.ZodTypeAny, {
|
|
7702
|
+
id: string;
|
|
7703
|
+
name: string;
|
|
7704
|
+
is_master: boolean;
|
|
7705
|
+
}, {
|
|
7706
|
+
id: string;
|
|
7707
|
+
name: string;
|
|
7708
|
+
is_master?: boolean | undefined;
|
|
7709
|
+
}>, {
|
|
7710
|
+
id: string;
|
|
7711
|
+
label: string;
|
|
7712
|
+
isMaster: boolean;
|
|
7713
|
+
}, {
|
|
7714
|
+
id: string;
|
|
7715
|
+
name: string;
|
|
7716
|
+
is_master?: boolean | undefined;
|
|
7717
|
+
}>;
|
|
7718
|
+
ai_abm_thread_id: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
7719
|
+
versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
7720
|
+
status: z.ZodLiteral<"unclassified">;
|
|
7721
|
+
}, "strip", z.ZodTypeAny, {
|
|
7722
|
+
status: "unclassified";
|
|
7723
|
+
}, {
|
|
7724
|
+
status: "unclassified";
|
|
7725
|
+
}>, z.ZodObject<{
|
|
7726
|
+
status: z.ZodLiteral<"published">;
|
|
7727
|
+
}, "strip", z.ZodTypeAny, {
|
|
7728
|
+
status: "published";
|
|
7729
|
+
}, {
|
|
7730
|
+
status: "published";
|
|
7731
|
+
}>, z.ZodObject<{
|
|
7732
|
+
status: z.ZodLiteral<"release">;
|
|
7733
|
+
release_id: z.ZodString;
|
|
7734
|
+
}, "strip", z.ZodTypeAny, {
|
|
7735
|
+
status: "release";
|
|
7736
|
+
release_id: string;
|
|
7737
|
+
}, {
|
|
7738
|
+
status: "release";
|
|
7739
|
+
release_id: string;
|
|
7740
|
+
}>, z.ZodObject<{
|
|
7741
|
+
status: z.ZodLiteral<"archived">;
|
|
7742
|
+
}, "strip", z.ZodTypeAny, {
|
|
7743
|
+
status: "archived";
|
|
7744
|
+
}, {
|
|
7745
|
+
status: "archived";
|
|
7746
|
+
}>]>, z.ZodObject<z.objectUtil.extendShape<{
|
|
7747
|
+
version_id: z.ZodString;
|
|
7748
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
7749
|
+
preview_image: z.ZodOptional<z.ZodString>;
|
|
7750
|
+
last_modified_date: z.ZodDate;
|
|
7751
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
7752
|
+
}, {
|
|
7753
|
+
custom_type_label: z.ZodString;
|
|
7754
|
+
preview_summary: z.ZodOptional<z.ZodString>;
|
|
7755
|
+
author: z.ZodObject<{
|
|
7756
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7757
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
7758
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
7759
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7760
|
+
uploadedAvatar: z.ZodOptional<z.ZodString>;
|
|
7761
|
+
}, "strip", z.ZodTypeAny, {
|
|
7762
|
+
email?: string | undefined;
|
|
7763
|
+
id?: string | undefined;
|
|
7764
|
+
first_name?: string | undefined;
|
|
7765
|
+
last_name?: string | undefined;
|
|
7766
|
+
uploadedAvatar?: string | undefined;
|
|
7767
|
+
}, {
|
|
7768
|
+
email?: string | undefined;
|
|
7769
|
+
id?: string | undefined;
|
|
7770
|
+
first_name?: string | undefined;
|
|
7771
|
+
last_name?: string | undefined;
|
|
7772
|
+
uploadedAvatar?: string | undefined;
|
|
7773
|
+
}>;
|
|
7774
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7775
|
+
tags: string[];
|
|
7776
|
+
version_id: string;
|
|
7777
|
+
last_modified_date: Date;
|
|
7778
|
+
custom_type_label: string;
|
|
7779
|
+
author: {
|
|
7780
|
+
email?: string | undefined;
|
|
7781
|
+
id?: string | undefined;
|
|
7782
|
+
first_name?: string | undefined;
|
|
7783
|
+
last_name?: string | undefined;
|
|
7784
|
+
uploadedAvatar?: string | undefined;
|
|
7785
|
+
};
|
|
7786
|
+
uid?: string | undefined;
|
|
7787
|
+
preview_image?: string | undefined;
|
|
7788
|
+
preview_summary?: string | undefined;
|
|
7789
|
+
}, {
|
|
7790
|
+
tags: string[];
|
|
7791
|
+
version_id: string;
|
|
7792
|
+
last_modified_date: Date;
|
|
7793
|
+
custom_type_label: string;
|
|
7794
|
+
author: {
|
|
7795
|
+
email?: string | undefined;
|
|
7796
|
+
id?: string | undefined;
|
|
7797
|
+
first_name?: string | undefined;
|
|
7798
|
+
last_name?: string | undefined;
|
|
7799
|
+
uploadedAvatar?: string | undefined;
|
|
7800
|
+
};
|
|
7801
|
+
uid?: string | undefined;
|
|
7802
|
+
preview_image?: string | undefined;
|
|
7803
|
+
preview_summary?: string | undefined;
|
|
7804
|
+
}>>, "many">;
|
|
7805
|
+
}, "strip", z.ZodTypeAny, {
|
|
7792
7806
|
language: {
|
|
7793
7807
|
id: string;
|
|
7794
7808
|
label: string;
|
|
@@ -7824,12 +7838,1105 @@ export declare function getDocumentListOptions(args: GetDocumentListArgs): impor
|
|
|
7824
7838
|
preview_summary?: string | undefined;
|
|
7825
7839
|
})[];
|
|
7826
7840
|
ai_abm_thread_id?: string | undefined;
|
|
7827
|
-
}
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7841
|
+
}, {
|
|
7842
|
+
language: {
|
|
7843
|
+
id: string;
|
|
7844
|
+
name: string;
|
|
7845
|
+
is_master?: boolean | undefined;
|
|
7846
|
+
};
|
|
7847
|
+
id: string;
|
|
7848
|
+
custom_type_id: string;
|
|
7849
|
+
group_lang_id: string;
|
|
7850
|
+
versions: (({
|
|
7851
|
+
status: "unclassified";
|
|
7852
|
+
} | {
|
|
7853
|
+
status: "published";
|
|
7854
|
+
} | {
|
|
7855
|
+
status: "release";
|
|
7856
|
+
release_id: string;
|
|
7857
|
+
} | {
|
|
7858
|
+
status: "archived";
|
|
7859
|
+
}) & {
|
|
7860
|
+
tags: string[];
|
|
7861
|
+
version_id: string;
|
|
7862
|
+
last_modified_date: Date;
|
|
7863
|
+
custom_type_label: string;
|
|
7864
|
+
author: {
|
|
7865
|
+
email?: string | undefined;
|
|
7866
|
+
id?: string | undefined;
|
|
7867
|
+
first_name?: string | undefined;
|
|
7868
|
+
last_name?: string | undefined;
|
|
7869
|
+
uploadedAvatar?: string | undefined;
|
|
7870
|
+
};
|
|
7871
|
+
uid?: string | undefined;
|
|
7872
|
+
preview_image?: string | undefined;
|
|
7873
|
+
preview_summary?: string | undefined;
|
|
7874
|
+
})[];
|
|
7875
|
+
title?: string | null | undefined;
|
|
7876
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
7877
|
+
}>, "many">;
|
|
7878
|
+
}, "strip", z.ZodTypeAny, {
|
|
7879
|
+
results: {
|
|
7880
|
+
language: {
|
|
7881
|
+
id: string;
|
|
7882
|
+
label: string;
|
|
7883
|
+
isMaster: boolean;
|
|
7884
|
+
};
|
|
7885
|
+
title: string;
|
|
7886
|
+
id: string;
|
|
7887
|
+
custom_type_id: string;
|
|
7888
|
+
group_lang_id: string;
|
|
7889
|
+
versions: (({
|
|
7890
|
+
status: "unclassified";
|
|
7891
|
+
} | {
|
|
7892
|
+
status: "published";
|
|
7893
|
+
} | {
|
|
7894
|
+
status: "release";
|
|
7895
|
+
release_id: string;
|
|
7896
|
+
} | {
|
|
7897
|
+
status: "archived";
|
|
7898
|
+
}) & {
|
|
7899
|
+
tags: string[];
|
|
7900
|
+
version_id: string;
|
|
7901
|
+
last_modified_date: Date;
|
|
7902
|
+
custom_type_label: string;
|
|
7903
|
+
author: {
|
|
7904
|
+
email?: string | undefined;
|
|
7905
|
+
id?: string | undefined;
|
|
7906
|
+
first_name?: string | undefined;
|
|
7907
|
+
last_name?: string | undefined;
|
|
7908
|
+
uploadedAvatar?: string | undefined;
|
|
7909
|
+
};
|
|
7910
|
+
uid?: string | undefined;
|
|
7911
|
+
preview_image?: string | undefined;
|
|
7912
|
+
preview_summary?: string | undefined;
|
|
7913
|
+
})[];
|
|
7914
|
+
ai_abm_thread_id?: string | undefined;
|
|
7915
|
+
}[];
|
|
7916
|
+
total: number;
|
|
7917
|
+
cursor?: string | undefined;
|
|
7918
|
+
}, {
|
|
7919
|
+
results: {
|
|
7920
|
+
language: {
|
|
7921
|
+
id: string;
|
|
7922
|
+
name: string;
|
|
7923
|
+
is_master?: boolean | undefined;
|
|
7924
|
+
};
|
|
7925
|
+
id: string;
|
|
7926
|
+
custom_type_id: string;
|
|
7927
|
+
group_lang_id: string;
|
|
7928
|
+
versions: (({
|
|
7929
|
+
status: "unclassified";
|
|
7930
|
+
} | {
|
|
7931
|
+
status: "published";
|
|
7932
|
+
} | {
|
|
7933
|
+
status: "release";
|
|
7934
|
+
release_id: string;
|
|
7935
|
+
} | {
|
|
7936
|
+
status: "archived";
|
|
7937
|
+
}) & {
|
|
7938
|
+
tags: string[];
|
|
7939
|
+
version_id: string;
|
|
7940
|
+
last_modified_date: Date;
|
|
7941
|
+
custom_type_label: string;
|
|
7942
|
+
author: {
|
|
7943
|
+
email?: string | undefined;
|
|
7944
|
+
id?: string | undefined;
|
|
7945
|
+
first_name?: string | undefined;
|
|
7946
|
+
last_name?: string | undefined;
|
|
7947
|
+
uploadedAvatar?: string | undefined;
|
|
7948
|
+
};
|
|
7949
|
+
uid?: string | undefined;
|
|
7950
|
+
preview_image?: string | undefined;
|
|
7951
|
+
preview_summary?: string | undefined;
|
|
7952
|
+
})[];
|
|
7953
|
+
title?: string | null | undefined;
|
|
7954
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
7955
|
+
}[];
|
|
7956
|
+
total: number;
|
|
7957
|
+
cursor?: string | undefined;
|
|
7958
|
+
}>>];
|
|
7959
|
+
infiniteLists: () => readonly ["documents", "list:infinite"];
|
|
7960
|
+
infiniteList: (args: GetDocumentListArgs) => readonly ["documents", "list:infinite", GetDocumentListArgs<z.ZodObject<{
|
|
7961
|
+
total: z.ZodNumber;
|
|
7962
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
7963
|
+
results: z.ZodArray<z.ZodObject<{
|
|
7964
|
+
id: z.ZodString;
|
|
7965
|
+
title: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
|
|
7966
|
+
custom_type_id: z.ZodString;
|
|
7967
|
+
group_lang_id: z.ZodString;
|
|
7968
|
+
language: z.ZodEffects<z.ZodObject<{
|
|
7969
|
+
id: z.ZodString;
|
|
7970
|
+
name: z.ZodString;
|
|
7971
|
+
is_master: z.ZodDefault<z.ZodBoolean>;
|
|
7972
|
+
}, "strip", z.ZodTypeAny, {
|
|
7973
|
+
id: string;
|
|
7974
|
+
name: string;
|
|
7975
|
+
is_master: boolean;
|
|
7976
|
+
}, {
|
|
7977
|
+
id: string;
|
|
7978
|
+
name: string;
|
|
7979
|
+
is_master?: boolean | undefined;
|
|
7980
|
+
}>, {
|
|
7981
|
+
id: string;
|
|
7982
|
+
label: string;
|
|
7983
|
+
isMaster: boolean;
|
|
7984
|
+
}, {
|
|
7985
|
+
id: string;
|
|
7986
|
+
name: string;
|
|
7987
|
+
is_master?: boolean | undefined;
|
|
7988
|
+
}>;
|
|
7989
|
+
ai_abm_thread_id: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
7990
|
+
versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
7991
|
+
status: z.ZodLiteral<"unclassified">;
|
|
7992
|
+
}, "strip", z.ZodTypeAny, {
|
|
7993
|
+
status: "unclassified";
|
|
7994
|
+
}, {
|
|
7995
|
+
status: "unclassified";
|
|
7996
|
+
}>, z.ZodObject<{
|
|
7997
|
+
status: z.ZodLiteral<"published">;
|
|
7998
|
+
}, "strip", z.ZodTypeAny, {
|
|
7999
|
+
status: "published";
|
|
8000
|
+
}, {
|
|
8001
|
+
status: "published";
|
|
8002
|
+
}>, z.ZodObject<{
|
|
8003
|
+
status: z.ZodLiteral<"release">;
|
|
8004
|
+
release_id: z.ZodString;
|
|
8005
|
+
}, "strip", z.ZodTypeAny, {
|
|
8006
|
+
status: "release";
|
|
8007
|
+
release_id: string;
|
|
8008
|
+
}, {
|
|
8009
|
+
status: "release";
|
|
8010
|
+
release_id: string;
|
|
8011
|
+
}>, z.ZodObject<{
|
|
8012
|
+
status: z.ZodLiteral<"archived">;
|
|
8013
|
+
}, "strip", z.ZodTypeAny, {
|
|
8014
|
+
status: "archived";
|
|
8015
|
+
}, {
|
|
8016
|
+
status: "archived";
|
|
8017
|
+
}>]>, z.ZodObject<z.objectUtil.extendShape<{
|
|
8018
|
+
version_id: z.ZodString;
|
|
8019
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
8020
|
+
preview_image: z.ZodOptional<z.ZodString>;
|
|
8021
|
+
last_modified_date: z.ZodDate;
|
|
8022
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
8023
|
+
}, {
|
|
8024
|
+
custom_type_label: z.ZodString;
|
|
8025
|
+
preview_summary: z.ZodOptional<z.ZodString>;
|
|
8026
|
+
author: z.ZodObject<{
|
|
8027
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8028
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
8029
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
8030
|
+
email: z.ZodOptional<z.ZodString>;
|
|
8031
|
+
uploadedAvatar: z.ZodOptional<z.ZodString>;
|
|
8032
|
+
}, "strip", z.ZodTypeAny, {
|
|
8033
|
+
email?: string | undefined;
|
|
8034
|
+
id?: string | undefined;
|
|
8035
|
+
first_name?: string | undefined;
|
|
8036
|
+
last_name?: string | undefined;
|
|
8037
|
+
uploadedAvatar?: string | undefined;
|
|
8038
|
+
}, {
|
|
8039
|
+
email?: string | undefined;
|
|
8040
|
+
id?: string | undefined;
|
|
8041
|
+
first_name?: string | undefined;
|
|
8042
|
+
last_name?: string | undefined;
|
|
8043
|
+
uploadedAvatar?: string | undefined;
|
|
8044
|
+
}>;
|
|
8045
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8046
|
+
tags: string[];
|
|
8047
|
+
version_id: string;
|
|
8048
|
+
last_modified_date: Date;
|
|
8049
|
+
custom_type_label: string;
|
|
8050
|
+
author: {
|
|
8051
|
+
email?: string | undefined;
|
|
8052
|
+
id?: string | undefined;
|
|
8053
|
+
first_name?: string | undefined;
|
|
8054
|
+
last_name?: string | undefined;
|
|
8055
|
+
uploadedAvatar?: string | undefined;
|
|
8056
|
+
};
|
|
8057
|
+
uid?: string | undefined;
|
|
8058
|
+
preview_image?: string | undefined;
|
|
8059
|
+
preview_summary?: string | undefined;
|
|
8060
|
+
}, {
|
|
8061
|
+
tags: string[];
|
|
8062
|
+
version_id: string;
|
|
8063
|
+
last_modified_date: Date;
|
|
8064
|
+
custom_type_label: string;
|
|
8065
|
+
author: {
|
|
8066
|
+
email?: string | undefined;
|
|
8067
|
+
id?: string | undefined;
|
|
8068
|
+
first_name?: string | undefined;
|
|
8069
|
+
last_name?: string | undefined;
|
|
8070
|
+
uploadedAvatar?: string | undefined;
|
|
8071
|
+
};
|
|
8072
|
+
uid?: string | undefined;
|
|
8073
|
+
preview_image?: string | undefined;
|
|
8074
|
+
preview_summary?: string | undefined;
|
|
8075
|
+
}>>, "many">;
|
|
8076
|
+
}, "strip", z.ZodTypeAny, {
|
|
8077
|
+
language: {
|
|
8078
|
+
id: string;
|
|
8079
|
+
label: string;
|
|
8080
|
+
isMaster: boolean;
|
|
8081
|
+
};
|
|
8082
|
+
title: string;
|
|
8083
|
+
id: string;
|
|
8084
|
+
custom_type_id: string;
|
|
8085
|
+
group_lang_id: string;
|
|
8086
|
+
versions: (({
|
|
8087
|
+
status: "unclassified";
|
|
8088
|
+
} | {
|
|
8089
|
+
status: "published";
|
|
8090
|
+
} | {
|
|
8091
|
+
status: "release";
|
|
8092
|
+
release_id: string;
|
|
8093
|
+
} | {
|
|
8094
|
+
status: "archived";
|
|
8095
|
+
}) & {
|
|
8096
|
+
tags: string[];
|
|
8097
|
+
version_id: string;
|
|
8098
|
+
last_modified_date: Date;
|
|
8099
|
+
custom_type_label: string;
|
|
8100
|
+
author: {
|
|
8101
|
+
email?: string | undefined;
|
|
8102
|
+
id?: string | undefined;
|
|
8103
|
+
first_name?: string | undefined;
|
|
8104
|
+
last_name?: string | undefined;
|
|
8105
|
+
uploadedAvatar?: string | undefined;
|
|
8106
|
+
};
|
|
8107
|
+
uid?: string | undefined;
|
|
8108
|
+
preview_image?: string | undefined;
|
|
8109
|
+
preview_summary?: string | undefined;
|
|
8110
|
+
})[];
|
|
8111
|
+
ai_abm_thread_id?: string | undefined;
|
|
8112
|
+
}, {
|
|
8113
|
+
language: {
|
|
8114
|
+
id: string;
|
|
8115
|
+
name: string;
|
|
8116
|
+
is_master?: boolean | undefined;
|
|
8117
|
+
};
|
|
8118
|
+
id: string;
|
|
8119
|
+
custom_type_id: string;
|
|
8120
|
+
group_lang_id: string;
|
|
8121
|
+
versions: (({
|
|
8122
|
+
status: "unclassified";
|
|
8123
|
+
} | {
|
|
8124
|
+
status: "published";
|
|
8125
|
+
} | {
|
|
8126
|
+
status: "release";
|
|
8127
|
+
release_id: string;
|
|
8128
|
+
} | {
|
|
8129
|
+
status: "archived";
|
|
8130
|
+
}) & {
|
|
8131
|
+
tags: string[];
|
|
8132
|
+
version_id: string;
|
|
8133
|
+
last_modified_date: Date;
|
|
8134
|
+
custom_type_label: string;
|
|
8135
|
+
author: {
|
|
8136
|
+
email?: string | undefined;
|
|
8137
|
+
id?: string | undefined;
|
|
8138
|
+
first_name?: string | undefined;
|
|
8139
|
+
last_name?: string | undefined;
|
|
8140
|
+
uploadedAvatar?: string | undefined;
|
|
8141
|
+
};
|
|
8142
|
+
uid?: string | undefined;
|
|
8143
|
+
preview_image?: string | undefined;
|
|
8144
|
+
preview_summary?: string | undefined;
|
|
8145
|
+
})[];
|
|
8146
|
+
title?: string | null | undefined;
|
|
8147
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
8148
|
+
}>, "many">;
|
|
8149
|
+
}, "strip", z.ZodTypeAny, {
|
|
8150
|
+
results: {
|
|
8151
|
+
language: {
|
|
8152
|
+
id: string;
|
|
8153
|
+
label: string;
|
|
8154
|
+
isMaster: boolean;
|
|
8155
|
+
};
|
|
8156
|
+
title: string;
|
|
8157
|
+
id: string;
|
|
8158
|
+
custom_type_id: string;
|
|
8159
|
+
group_lang_id: string;
|
|
8160
|
+
versions: (({
|
|
8161
|
+
status: "unclassified";
|
|
8162
|
+
} | {
|
|
8163
|
+
status: "published";
|
|
8164
|
+
} | {
|
|
8165
|
+
status: "release";
|
|
8166
|
+
release_id: string;
|
|
8167
|
+
} | {
|
|
8168
|
+
status: "archived";
|
|
8169
|
+
}) & {
|
|
8170
|
+
tags: string[];
|
|
8171
|
+
version_id: string;
|
|
8172
|
+
last_modified_date: Date;
|
|
8173
|
+
custom_type_label: string;
|
|
8174
|
+
author: {
|
|
8175
|
+
email?: string | undefined;
|
|
8176
|
+
id?: string | undefined;
|
|
8177
|
+
first_name?: string | undefined;
|
|
8178
|
+
last_name?: string | undefined;
|
|
8179
|
+
uploadedAvatar?: string | undefined;
|
|
8180
|
+
};
|
|
8181
|
+
uid?: string | undefined;
|
|
8182
|
+
preview_image?: string | undefined;
|
|
8183
|
+
preview_summary?: string | undefined;
|
|
8184
|
+
})[];
|
|
8185
|
+
ai_abm_thread_id?: string | undefined;
|
|
8186
|
+
}[];
|
|
8187
|
+
total: number;
|
|
8188
|
+
cursor?: string | undefined;
|
|
8189
|
+
}, {
|
|
8190
|
+
results: {
|
|
8191
|
+
language: {
|
|
8192
|
+
id: string;
|
|
8193
|
+
name: string;
|
|
8194
|
+
is_master?: boolean | undefined;
|
|
8195
|
+
};
|
|
8196
|
+
id: string;
|
|
8197
|
+
custom_type_id: string;
|
|
8198
|
+
group_lang_id: string;
|
|
8199
|
+
versions: (({
|
|
8200
|
+
status: "unclassified";
|
|
8201
|
+
} | {
|
|
8202
|
+
status: "published";
|
|
8203
|
+
} | {
|
|
8204
|
+
status: "release";
|
|
8205
|
+
release_id: string;
|
|
8206
|
+
} | {
|
|
8207
|
+
status: "archived";
|
|
8208
|
+
}) & {
|
|
8209
|
+
tags: string[];
|
|
8210
|
+
version_id: string;
|
|
8211
|
+
last_modified_date: Date;
|
|
8212
|
+
custom_type_label: string;
|
|
8213
|
+
author: {
|
|
8214
|
+
email?: string | undefined;
|
|
8215
|
+
id?: string | undefined;
|
|
8216
|
+
first_name?: string | undefined;
|
|
8217
|
+
last_name?: string | undefined;
|
|
8218
|
+
uploadedAvatar?: string | undefined;
|
|
8219
|
+
};
|
|
8220
|
+
uid?: string | undefined;
|
|
8221
|
+
preview_image?: string | undefined;
|
|
8222
|
+
preview_summary?: string | undefined;
|
|
8223
|
+
})[];
|
|
8224
|
+
title?: string | null | undefined;
|
|
8225
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
8226
|
+
}[];
|
|
8227
|
+
total: number;
|
|
8228
|
+
cursor?: string | undefined;
|
|
8229
|
+
}>>];
|
|
8230
|
+
};
|
|
8231
|
+
/**
|
|
8232
|
+
* Returns updated document or undefined if document should be removed
|
|
8233
|
+
*/
|
|
8234
|
+
type UpdateDocumentFunction = (document: DocumentMeta, page: GetDocumentListSchema) => DocumentMeta | undefined;
|
|
8235
|
+
export declare function updateDocumentListData(queryClient: QueryClient, updateFunction: UpdateDocumentFunction): void;
|
|
8236
|
+
export declare function invalidateDocumentListData(queryClient: QueryClient): Promise<void>;
|
|
8237
|
+
export declare function useDocumentList(args: GetDocumentListArgs): import("@tanstack/react-query/build/legacy/types").UseSuspenseQueryResult<{
|
|
8238
|
+
results: {
|
|
8239
|
+
language: {
|
|
8240
|
+
id: string;
|
|
8241
|
+
label: string;
|
|
8242
|
+
isMaster: boolean;
|
|
8243
|
+
};
|
|
8244
|
+
title: string;
|
|
8245
|
+
id: string;
|
|
8246
|
+
custom_type_id: string;
|
|
8247
|
+
group_lang_id: string;
|
|
8248
|
+
versions: (({
|
|
8249
|
+
status: "unclassified";
|
|
8250
|
+
} | {
|
|
8251
|
+
status: "published";
|
|
8252
|
+
} | {
|
|
8253
|
+
status: "release";
|
|
8254
|
+
release_id: string;
|
|
8255
|
+
} | {
|
|
8256
|
+
status: "archived";
|
|
8257
|
+
}) & {
|
|
8258
|
+
tags: string[];
|
|
8259
|
+
version_id: string;
|
|
8260
|
+
last_modified_date: Date;
|
|
8261
|
+
custom_type_label: string;
|
|
8262
|
+
author: {
|
|
8263
|
+
email?: string | undefined;
|
|
8264
|
+
id?: string | undefined;
|
|
8265
|
+
first_name?: string | undefined;
|
|
8266
|
+
last_name?: string | undefined;
|
|
8267
|
+
uploadedAvatar?: string | undefined;
|
|
8268
|
+
};
|
|
8269
|
+
uid?: string | undefined;
|
|
8270
|
+
preview_image?: string | undefined;
|
|
8271
|
+
preview_summary?: string | undefined;
|
|
8272
|
+
})[];
|
|
8273
|
+
ai_abm_thread_id?: string | undefined;
|
|
8274
|
+
}[];
|
|
8275
|
+
total: number;
|
|
8276
|
+
cursor?: string | undefined;
|
|
8277
|
+
}, Error>;
|
|
8278
|
+
export declare function getDocumentListOptions(args: GetDocumentListArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
|
|
8279
|
+
results: {
|
|
8280
|
+
language: {
|
|
8281
|
+
id: string;
|
|
8282
|
+
label: string;
|
|
8283
|
+
isMaster: boolean;
|
|
8284
|
+
};
|
|
8285
|
+
title: string;
|
|
8286
|
+
id: string;
|
|
8287
|
+
custom_type_id: string;
|
|
8288
|
+
group_lang_id: string;
|
|
8289
|
+
versions: (({
|
|
8290
|
+
status: "unclassified";
|
|
8291
|
+
} | {
|
|
8292
|
+
status: "published";
|
|
8293
|
+
} | {
|
|
8294
|
+
status: "release";
|
|
8295
|
+
release_id: string;
|
|
8296
|
+
} | {
|
|
8297
|
+
status: "archived";
|
|
8298
|
+
}) & {
|
|
8299
|
+
tags: string[];
|
|
8300
|
+
version_id: string;
|
|
8301
|
+
last_modified_date: Date;
|
|
8302
|
+
custom_type_label: string;
|
|
8303
|
+
author: {
|
|
8304
|
+
email?: string | undefined;
|
|
8305
|
+
id?: string | undefined;
|
|
8306
|
+
first_name?: string | undefined;
|
|
8307
|
+
last_name?: string | undefined;
|
|
8308
|
+
uploadedAvatar?: string | undefined;
|
|
8309
|
+
};
|
|
8310
|
+
uid?: string | undefined;
|
|
8311
|
+
preview_image?: string | undefined;
|
|
8312
|
+
preview_summary?: string | undefined;
|
|
8313
|
+
})[];
|
|
8314
|
+
ai_abm_thread_id?: string | undefined;
|
|
8315
|
+
}[];
|
|
8316
|
+
total: number;
|
|
8317
|
+
cursor?: string | undefined;
|
|
8318
|
+
}, Error, {
|
|
8319
|
+
results: {
|
|
8320
|
+
language: {
|
|
8321
|
+
id: string;
|
|
8322
|
+
label: string;
|
|
8323
|
+
isMaster: boolean;
|
|
8324
|
+
};
|
|
8325
|
+
title: string;
|
|
8326
|
+
id: string;
|
|
8327
|
+
custom_type_id: string;
|
|
8328
|
+
group_lang_id: string;
|
|
8329
|
+
versions: (({
|
|
8330
|
+
status: "unclassified";
|
|
8331
|
+
} | {
|
|
8332
|
+
status: "published";
|
|
8333
|
+
} | {
|
|
8334
|
+
status: "release";
|
|
8335
|
+
release_id: string;
|
|
8336
|
+
} | {
|
|
8337
|
+
status: "archived";
|
|
8338
|
+
}) & {
|
|
8339
|
+
tags: string[];
|
|
8340
|
+
version_id: string;
|
|
8341
|
+
last_modified_date: Date;
|
|
8342
|
+
custom_type_label: string;
|
|
8343
|
+
author: {
|
|
8344
|
+
email?: string | undefined;
|
|
8345
|
+
id?: string | undefined;
|
|
8346
|
+
first_name?: string | undefined;
|
|
8347
|
+
last_name?: string | undefined;
|
|
8348
|
+
uploadedAvatar?: string | undefined;
|
|
8349
|
+
};
|
|
8350
|
+
uid?: string | undefined;
|
|
8351
|
+
preview_image?: string | undefined;
|
|
8352
|
+
preview_summary?: string | undefined;
|
|
8353
|
+
})[];
|
|
8354
|
+
ai_abm_thread_id?: string | undefined;
|
|
8355
|
+
}[];
|
|
8356
|
+
total: number;
|
|
8357
|
+
cursor?: string | undefined;
|
|
8358
|
+
}, readonly ["documents", "list", GetDocumentListArgs<z.ZodObject<{
|
|
8359
|
+
total: z.ZodNumber;
|
|
8360
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
8361
|
+
results: z.ZodArray<z.ZodObject<{
|
|
8362
|
+
id: z.ZodString;
|
|
8363
|
+
title: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
|
|
8364
|
+
custom_type_id: z.ZodString;
|
|
8365
|
+
group_lang_id: z.ZodString;
|
|
8366
|
+
language: z.ZodEffects<z.ZodObject<{
|
|
8367
|
+
id: z.ZodString;
|
|
8368
|
+
name: z.ZodString;
|
|
8369
|
+
is_master: z.ZodDefault<z.ZodBoolean>;
|
|
8370
|
+
}, "strip", z.ZodTypeAny, {
|
|
8371
|
+
id: string;
|
|
8372
|
+
name: string;
|
|
8373
|
+
is_master: boolean;
|
|
8374
|
+
}, {
|
|
8375
|
+
id: string;
|
|
8376
|
+
name: string;
|
|
8377
|
+
is_master?: boolean | undefined;
|
|
8378
|
+
}>, {
|
|
8379
|
+
id: string;
|
|
8380
|
+
label: string;
|
|
8381
|
+
isMaster: boolean;
|
|
8382
|
+
}, {
|
|
8383
|
+
id: string;
|
|
8384
|
+
name: string;
|
|
8385
|
+
is_master?: boolean | undefined;
|
|
8386
|
+
}>;
|
|
8387
|
+
ai_abm_thread_id: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
8388
|
+
versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
8389
|
+
status: z.ZodLiteral<"unclassified">;
|
|
8390
|
+
}, "strip", z.ZodTypeAny, {
|
|
8391
|
+
status: "unclassified";
|
|
8392
|
+
}, {
|
|
8393
|
+
status: "unclassified";
|
|
8394
|
+
}>, z.ZodObject<{
|
|
8395
|
+
status: z.ZodLiteral<"published">;
|
|
8396
|
+
}, "strip", z.ZodTypeAny, {
|
|
8397
|
+
status: "published";
|
|
8398
|
+
}, {
|
|
8399
|
+
status: "published";
|
|
8400
|
+
}>, z.ZodObject<{
|
|
8401
|
+
status: z.ZodLiteral<"release">;
|
|
8402
|
+
release_id: z.ZodString;
|
|
8403
|
+
}, "strip", z.ZodTypeAny, {
|
|
8404
|
+
status: "release";
|
|
8405
|
+
release_id: string;
|
|
8406
|
+
}, {
|
|
8407
|
+
status: "release";
|
|
8408
|
+
release_id: string;
|
|
8409
|
+
}>, z.ZodObject<{
|
|
8410
|
+
status: z.ZodLiteral<"archived">;
|
|
8411
|
+
}, "strip", z.ZodTypeAny, {
|
|
8412
|
+
status: "archived";
|
|
8413
|
+
}, {
|
|
8414
|
+
status: "archived";
|
|
8415
|
+
}>]>, z.ZodObject<z.objectUtil.extendShape<{
|
|
8416
|
+
version_id: z.ZodString;
|
|
8417
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
8418
|
+
preview_image: z.ZodOptional<z.ZodString>;
|
|
8419
|
+
last_modified_date: z.ZodDate;
|
|
8420
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
8421
|
+
}, {
|
|
8422
|
+
custom_type_label: z.ZodString;
|
|
8423
|
+
preview_summary: z.ZodOptional<z.ZodString>;
|
|
8424
|
+
author: z.ZodObject<{
|
|
8425
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8426
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
8427
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
8428
|
+
email: z.ZodOptional<z.ZodString>;
|
|
8429
|
+
uploadedAvatar: z.ZodOptional<z.ZodString>;
|
|
8430
|
+
}, "strip", z.ZodTypeAny, {
|
|
8431
|
+
email?: string | undefined;
|
|
8432
|
+
id?: string | undefined;
|
|
8433
|
+
first_name?: string | undefined;
|
|
8434
|
+
last_name?: string | undefined;
|
|
8435
|
+
uploadedAvatar?: string | undefined;
|
|
8436
|
+
}, {
|
|
8437
|
+
email?: string | undefined;
|
|
8438
|
+
id?: string | undefined;
|
|
8439
|
+
first_name?: string | undefined;
|
|
8440
|
+
last_name?: string | undefined;
|
|
8441
|
+
uploadedAvatar?: string | undefined;
|
|
8442
|
+
}>;
|
|
8443
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8444
|
+
tags: string[];
|
|
8445
|
+
version_id: string;
|
|
8446
|
+
last_modified_date: Date;
|
|
8447
|
+
custom_type_label: string;
|
|
8448
|
+
author: {
|
|
8449
|
+
email?: string | undefined;
|
|
8450
|
+
id?: string | undefined;
|
|
8451
|
+
first_name?: string | undefined;
|
|
8452
|
+
last_name?: string | undefined;
|
|
8453
|
+
uploadedAvatar?: string | undefined;
|
|
8454
|
+
};
|
|
8455
|
+
uid?: string | undefined;
|
|
8456
|
+
preview_image?: string | undefined;
|
|
8457
|
+
preview_summary?: string | undefined;
|
|
8458
|
+
}, {
|
|
8459
|
+
tags: string[];
|
|
8460
|
+
version_id: string;
|
|
8461
|
+
last_modified_date: Date;
|
|
8462
|
+
custom_type_label: string;
|
|
8463
|
+
author: {
|
|
8464
|
+
email?: string | undefined;
|
|
8465
|
+
id?: string | undefined;
|
|
8466
|
+
first_name?: string | undefined;
|
|
8467
|
+
last_name?: string | undefined;
|
|
8468
|
+
uploadedAvatar?: string | undefined;
|
|
8469
|
+
};
|
|
8470
|
+
uid?: string | undefined;
|
|
8471
|
+
preview_image?: string | undefined;
|
|
8472
|
+
preview_summary?: string | undefined;
|
|
8473
|
+
}>>, "many">;
|
|
8474
|
+
}, "strip", z.ZodTypeAny, {
|
|
8475
|
+
language: {
|
|
8476
|
+
id: string;
|
|
8477
|
+
label: string;
|
|
8478
|
+
isMaster: boolean;
|
|
8479
|
+
};
|
|
8480
|
+
title: string;
|
|
8481
|
+
id: string;
|
|
8482
|
+
custom_type_id: string;
|
|
8483
|
+
group_lang_id: string;
|
|
8484
|
+
versions: (({
|
|
8485
|
+
status: "unclassified";
|
|
8486
|
+
} | {
|
|
8487
|
+
status: "published";
|
|
8488
|
+
} | {
|
|
8489
|
+
status: "release";
|
|
8490
|
+
release_id: string;
|
|
8491
|
+
} | {
|
|
8492
|
+
status: "archived";
|
|
8493
|
+
}) & {
|
|
8494
|
+
tags: string[];
|
|
8495
|
+
version_id: string;
|
|
8496
|
+
last_modified_date: Date;
|
|
8497
|
+
custom_type_label: string;
|
|
8498
|
+
author: {
|
|
8499
|
+
email?: string | undefined;
|
|
8500
|
+
id?: string | undefined;
|
|
8501
|
+
first_name?: string | undefined;
|
|
8502
|
+
last_name?: string | undefined;
|
|
8503
|
+
uploadedAvatar?: string | undefined;
|
|
8504
|
+
};
|
|
8505
|
+
uid?: string | undefined;
|
|
8506
|
+
preview_image?: string | undefined;
|
|
8507
|
+
preview_summary?: string | undefined;
|
|
8508
|
+
})[];
|
|
8509
|
+
ai_abm_thread_id?: string | undefined;
|
|
8510
|
+
}, {
|
|
8511
|
+
language: {
|
|
8512
|
+
id: string;
|
|
8513
|
+
name: string;
|
|
8514
|
+
is_master?: boolean | undefined;
|
|
8515
|
+
};
|
|
8516
|
+
id: string;
|
|
8517
|
+
custom_type_id: string;
|
|
8518
|
+
group_lang_id: string;
|
|
8519
|
+
versions: (({
|
|
8520
|
+
status: "unclassified";
|
|
8521
|
+
} | {
|
|
8522
|
+
status: "published";
|
|
8523
|
+
} | {
|
|
8524
|
+
status: "release";
|
|
8525
|
+
release_id: string;
|
|
8526
|
+
} | {
|
|
8527
|
+
status: "archived";
|
|
8528
|
+
}) & {
|
|
8529
|
+
tags: string[];
|
|
8530
|
+
version_id: string;
|
|
8531
|
+
last_modified_date: Date;
|
|
8532
|
+
custom_type_label: string;
|
|
8533
|
+
author: {
|
|
8534
|
+
email?: string | undefined;
|
|
8535
|
+
id?: string | undefined;
|
|
8536
|
+
first_name?: string | undefined;
|
|
8537
|
+
last_name?: string | undefined;
|
|
8538
|
+
uploadedAvatar?: string | undefined;
|
|
8539
|
+
};
|
|
8540
|
+
uid?: string | undefined;
|
|
8541
|
+
preview_image?: string | undefined;
|
|
8542
|
+
preview_summary?: string | undefined;
|
|
8543
|
+
})[];
|
|
8544
|
+
title?: string | null | undefined;
|
|
8545
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
8546
|
+
}>, "many">;
|
|
8547
|
+
}, "strip", z.ZodTypeAny, {
|
|
8548
|
+
results: {
|
|
8549
|
+
language: {
|
|
8550
|
+
id: string;
|
|
8551
|
+
label: string;
|
|
8552
|
+
isMaster: boolean;
|
|
8553
|
+
};
|
|
8554
|
+
title: string;
|
|
8555
|
+
id: string;
|
|
8556
|
+
custom_type_id: string;
|
|
8557
|
+
group_lang_id: string;
|
|
8558
|
+
versions: (({
|
|
8559
|
+
status: "unclassified";
|
|
8560
|
+
} | {
|
|
8561
|
+
status: "published";
|
|
8562
|
+
} | {
|
|
8563
|
+
status: "release";
|
|
8564
|
+
release_id: string;
|
|
8565
|
+
} | {
|
|
8566
|
+
status: "archived";
|
|
8567
|
+
}) & {
|
|
8568
|
+
tags: string[];
|
|
8569
|
+
version_id: string;
|
|
8570
|
+
last_modified_date: Date;
|
|
8571
|
+
custom_type_label: string;
|
|
8572
|
+
author: {
|
|
8573
|
+
email?: string | undefined;
|
|
8574
|
+
id?: string | undefined;
|
|
8575
|
+
first_name?: string | undefined;
|
|
8576
|
+
last_name?: string | undefined;
|
|
8577
|
+
uploadedAvatar?: string | undefined;
|
|
8578
|
+
};
|
|
8579
|
+
uid?: string | undefined;
|
|
8580
|
+
preview_image?: string | undefined;
|
|
8581
|
+
preview_summary?: string | undefined;
|
|
8582
|
+
})[];
|
|
8583
|
+
ai_abm_thread_id?: string | undefined;
|
|
8584
|
+
}[];
|
|
8585
|
+
total: number;
|
|
8586
|
+
cursor?: string | undefined;
|
|
8587
|
+
}, {
|
|
8588
|
+
results: {
|
|
8589
|
+
language: {
|
|
8590
|
+
id: string;
|
|
8591
|
+
name: string;
|
|
8592
|
+
is_master?: boolean | undefined;
|
|
8593
|
+
};
|
|
8594
|
+
id: string;
|
|
8595
|
+
custom_type_id: string;
|
|
8596
|
+
group_lang_id: string;
|
|
8597
|
+
versions: (({
|
|
8598
|
+
status: "unclassified";
|
|
8599
|
+
} | {
|
|
8600
|
+
status: "published";
|
|
8601
|
+
} | {
|
|
8602
|
+
status: "release";
|
|
8603
|
+
release_id: string;
|
|
8604
|
+
} | {
|
|
8605
|
+
status: "archived";
|
|
8606
|
+
}) & {
|
|
8607
|
+
tags: string[];
|
|
8608
|
+
version_id: string;
|
|
8609
|
+
last_modified_date: Date;
|
|
8610
|
+
custom_type_label: string;
|
|
8611
|
+
author: {
|
|
8612
|
+
email?: string | undefined;
|
|
8613
|
+
id?: string | undefined;
|
|
8614
|
+
first_name?: string | undefined;
|
|
8615
|
+
last_name?: string | undefined;
|
|
8616
|
+
uploadedAvatar?: string | undefined;
|
|
8617
|
+
};
|
|
8618
|
+
uid?: string | undefined;
|
|
8619
|
+
preview_image?: string | undefined;
|
|
8620
|
+
preview_summary?: string | undefined;
|
|
8621
|
+
})[];
|
|
8622
|
+
title?: string | null | undefined;
|
|
8623
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
8624
|
+
}[];
|
|
8625
|
+
total: number;
|
|
8626
|
+
cursor?: string | undefined;
|
|
8627
|
+
}>>]> & {
|
|
8628
|
+
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
8629
|
+
results: {
|
|
8630
|
+
language: {
|
|
8631
|
+
id: string;
|
|
8632
|
+
label: string;
|
|
8633
|
+
isMaster: boolean;
|
|
8634
|
+
};
|
|
8635
|
+
title: string;
|
|
8636
|
+
id: string;
|
|
8637
|
+
custom_type_id: string;
|
|
8638
|
+
group_lang_id: string;
|
|
8639
|
+
versions: (({
|
|
8640
|
+
status: "unclassified";
|
|
8641
|
+
} | {
|
|
8642
|
+
status: "published";
|
|
8643
|
+
} | {
|
|
8644
|
+
status: "release";
|
|
8645
|
+
release_id: string;
|
|
8646
|
+
} | {
|
|
8647
|
+
status: "archived";
|
|
8648
|
+
}) & {
|
|
8649
|
+
tags: string[];
|
|
8650
|
+
version_id: string;
|
|
8651
|
+
last_modified_date: Date;
|
|
8652
|
+
custom_type_label: string;
|
|
8653
|
+
author: {
|
|
8654
|
+
email?: string | undefined;
|
|
8655
|
+
id?: string | undefined;
|
|
8656
|
+
first_name?: string | undefined;
|
|
8657
|
+
last_name?: string | undefined;
|
|
8658
|
+
uploadedAvatar?: string | undefined;
|
|
8659
|
+
};
|
|
8660
|
+
uid?: string | undefined;
|
|
8661
|
+
preview_image?: string | undefined;
|
|
8662
|
+
preview_summary?: string | undefined;
|
|
8663
|
+
})[];
|
|
8664
|
+
ai_abm_thread_id?: string | undefined;
|
|
8665
|
+
}[];
|
|
8666
|
+
total: number;
|
|
8667
|
+
cursor?: string | undefined;
|
|
8668
|
+
}> | undefined;
|
|
8669
|
+
} & {
|
|
8670
|
+
queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<readonly ["documents", "list", GetDocumentListArgs<z.ZodObject<{
|
|
8671
|
+
total: z.ZodNumber;
|
|
8672
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
8673
|
+
results: z.ZodArray<z.ZodObject<{
|
|
8674
|
+
id: z.ZodString;
|
|
8675
|
+
title: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
|
|
8676
|
+
custom_type_id: z.ZodString;
|
|
8677
|
+
group_lang_id: z.ZodString;
|
|
8678
|
+
language: z.ZodEffects<z.ZodObject<{
|
|
8679
|
+
id: z.ZodString;
|
|
8680
|
+
name: z.ZodString;
|
|
8681
|
+
is_master: z.ZodDefault<z.ZodBoolean>;
|
|
8682
|
+
}, "strip", z.ZodTypeAny, {
|
|
8683
|
+
id: string;
|
|
8684
|
+
name: string;
|
|
8685
|
+
is_master: boolean;
|
|
8686
|
+
}, {
|
|
8687
|
+
id: string;
|
|
8688
|
+
name: string;
|
|
8689
|
+
is_master?: boolean | undefined;
|
|
8690
|
+
}>, {
|
|
8691
|
+
id: string;
|
|
8692
|
+
label: string;
|
|
8693
|
+
isMaster: boolean;
|
|
8694
|
+
}, {
|
|
8695
|
+
id: string;
|
|
8696
|
+
name: string;
|
|
8697
|
+
is_master?: boolean | undefined;
|
|
8698
|
+
}>;
|
|
8699
|
+
ai_abm_thread_id: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
8700
|
+
versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
8701
|
+
status: z.ZodLiteral<"unclassified">;
|
|
8702
|
+
}, "strip", z.ZodTypeAny, {
|
|
8703
|
+
status: "unclassified";
|
|
8704
|
+
}, {
|
|
8705
|
+
status: "unclassified";
|
|
8706
|
+
}>, z.ZodObject<{
|
|
8707
|
+
status: z.ZodLiteral<"published">;
|
|
8708
|
+
}, "strip", z.ZodTypeAny, {
|
|
8709
|
+
status: "published";
|
|
8710
|
+
}, {
|
|
8711
|
+
status: "published";
|
|
8712
|
+
}>, z.ZodObject<{
|
|
8713
|
+
status: z.ZodLiteral<"release">;
|
|
8714
|
+
release_id: z.ZodString;
|
|
8715
|
+
}, "strip", z.ZodTypeAny, {
|
|
8716
|
+
status: "release";
|
|
8717
|
+
release_id: string;
|
|
8718
|
+
}, {
|
|
8719
|
+
status: "release";
|
|
8720
|
+
release_id: string;
|
|
8721
|
+
}>, z.ZodObject<{
|
|
8722
|
+
status: z.ZodLiteral<"archived">;
|
|
8723
|
+
}, "strip", z.ZodTypeAny, {
|
|
8724
|
+
status: "archived";
|
|
8725
|
+
}, {
|
|
8726
|
+
status: "archived";
|
|
8727
|
+
}>]>, z.ZodObject<z.objectUtil.extendShape<{
|
|
8728
|
+
version_id: z.ZodString;
|
|
8729
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
8730
|
+
preview_image: z.ZodOptional<z.ZodString>;
|
|
8731
|
+
last_modified_date: z.ZodDate;
|
|
8732
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
8733
|
+
}, {
|
|
8734
|
+
custom_type_label: z.ZodString;
|
|
8735
|
+
preview_summary: z.ZodOptional<z.ZodString>;
|
|
8736
|
+
author: z.ZodObject<{
|
|
8737
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8738
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
8739
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
8740
|
+
email: z.ZodOptional<z.ZodString>;
|
|
8741
|
+
uploadedAvatar: z.ZodOptional<z.ZodString>;
|
|
8742
|
+
}, "strip", z.ZodTypeAny, {
|
|
8743
|
+
email?: string | undefined;
|
|
8744
|
+
id?: string | undefined;
|
|
8745
|
+
first_name?: string | undefined;
|
|
8746
|
+
last_name?: string | undefined;
|
|
8747
|
+
uploadedAvatar?: string | undefined;
|
|
8748
|
+
}, {
|
|
8749
|
+
email?: string | undefined;
|
|
8750
|
+
id?: string | undefined;
|
|
8751
|
+
first_name?: string | undefined;
|
|
8752
|
+
last_name?: string | undefined;
|
|
8753
|
+
uploadedAvatar?: string | undefined;
|
|
8754
|
+
}>;
|
|
8755
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8756
|
+
tags: string[];
|
|
8757
|
+
version_id: string;
|
|
8758
|
+
last_modified_date: Date;
|
|
8759
|
+
custom_type_label: string;
|
|
8760
|
+
author: {
|
|
8761
|
+
email?: string | undefined;
|
|
8762
|
+
id?: string | undefined;
|
|
8763
|
+
first_name?: string | undefined;
|
|
8764
|
+
last_name?: string | undefined;
|
|
8765
|
+
uploadedAvatar?: string | undefined;
|
|
8766
|
+
};
|
|
8767
|
+
uid?: string | undefined;
|
|
8768
|
+
preview_image?: string | undefined;
|
|
8769
|
+
preview_summary?: string | undefined;
|
|
8770
|
+
}, {
|
|
8771
|
+
tags: string[];
|
|
8772
|
+
version_id: string;
|
|
8773
|
+
last_modified_date: Date;
|
|
8774
|
+
custom_type_label: string;
|
|
8775
|
+
author: {
|
|
8776
|
+
email?: string | undefined;
|
|
8777
|
+
id?: string | undefined;
|
|
8778
|
+
first_name?: string | undefined;
|
|
8779
|
+
last_name?: string | undefined;
|
|
8780
|
+
uploadedAvatar?: string | undefined;
|
|
8781
|
+
};
|
|
8782
|
+
uid?: string | undefined;
|
|
8783
|
+
preview_image?: string | undefined;
|
|
8784
|
+
preview_summary?: string | undefined;
|
|
8785
|
+
}>>, "many">;
|
|
8786
|
+
}, "strip", z.ZodTypeAny, {
|
|
8787
|
+
language: {
|
|
8788
|
+
id: string;
|
|
8789
|
+
label: string;
|
|
8790
|
+
isMaster: boolean;
|
|
8791
|
+
};
|
|
8792
|
+
title: string;
|
|
8793
|
+
id: string;
|
|
8794
|
+
custom_type_id: string;
|
|
8795
|
+
group_lang_id: string;
|
|
8796
|
+
versions: (({
|
|
8797
|
+
status: "unclassified";
|
|
8798
|
+
} | {
|
|
8799
|
+
status: "published";
|
|
8800
|
+
} | {
|
|
8801
|
+
status: "release";
|
|
8802
|
+
release_id: string;
|
|
8803
|
+
} | {
|
|
8804
|
+
status: "archived";
|
|
8805
|
+
}) & {
|
|
8806
|
+
tags: string[];
|
|
8807
|
+
version_id: string;
|
|
8808
|
+
last_modified_date: Date;
|
|
8809
|
+
custom_type_label: string;
|
|
8810
|
+
author: {
|
|
8811
|
+
email?: string | undefined;
|
|
8812
|
+
id?: string | undefined;
|
|
8813
|
+
first_name?: string | undefined;
|
|
8814
|
+
last_name?: string | undefined;
|
|
8815
|
+
uploadedAvatar?: string | undefined;
|
|
8816
|
+
};
|
|
8817
|
+
uid?: string | undefined;
|
|
8818
|
+
preview_image?: string | undefined;
|
|
8819
|
+
preview_summary?: string | undefined;
|
|
8820
|
+
})[];
|
|
8821
|
+
ai_abm_thread_id?: string | undefined;
|
|
8822
|
+
}, {
|
|
8823
|
+
language: {
|
|
8824
|
+
id: string;
|
|
8825
|
+
name: string;
|
|
8826
|
+
is_master?: boolean | undefined;
|
|
8827
|
+
};
|
|
8828
|
+
id: string;
|
|
8829
|
+
custom_type_id: string;
|
|
8830
|
+
group_lang_id: string;
|
|
8831
|
+
versions: (({
|
|
8832
|
+
status: "unclassified";
|
|
8833
|
+
} | {
|
|
8834
|
+
status: "published";
|
|
8835
|
+
} | {
|
|
8836
|
+
status: "release";
|
|
8837
|
+
release_id: string;
|
|
8838
|
+
} | {
|
|
8839
|
+
status: "archived";
|
|
8840
|
+
}) & {
|
|
8841
|
+
tags: string[];
|
|
8842
|
+
version_id: string;
|
|
8843
|
+
last_modified_date: Date;
|
|
8844
|
+
custom_type_label: string;
|
|
8845
|
+
author: {
|
|
8846
|
+
email?: string | undefined;
|
|
8847
|
+
id?: string | undefined;
|
|
8848
|
+
first_name?: string | undefined;
|
|
8849
|
+
last_name?: string | undefined;
|
|
8850
|
+
uploadedAvatar?: string | undefined;
|
|
8851
|
+
};
|
|
8852
|
+
uid?: string | undefined;
|
|
8853
|
+
preview_image?: string | undefined;
|
|
8854
|
+
preview_summary?: string | undefined;
|
|
8855
|
+
})[];
|
|
8856
|
+
title?: string | null | undefined;
|
|
8857
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
8858
|
+
}>, "many">;
|
|
8859
|
+
}, "strip", z.ZodTypeAny, {
|
|
8860
|
+
results: {
|
|
8861
|
+
language: {
|
|
8862
|
+
id: string;
|
|
8863
|
+
label: string;
|
|
8864
|
+
isMaster: boolean;
|
|
8865
|
+
};
|
|
8866
|
+
title: string;
|
|
8867
|
+
id: string;
|
|
8868
|
+
custom_type_id: string;
|
|
8869
|
+
group_lang_id: string;
|
|
8870
|
+
versions: (({
|
|
8871
|
+
status: "unclassified";
|
|
8872
|
+
} | {
|
|
8873
|
+
status: "published";
|
|
8874
|
+
} | {
|
|
8875
|
+
status: "release";
|
|
8876
|
+
release_id: string;
|
|
8877
|
+
} | {
|
|
8878
|
+
status: "archived";
|
|
8879
|
+
}) & {
|
|
8880
|
+
tags: string[];
|
|
8881
|
+
version_id: string;
|
|
8882
|
+
last_modified_date: Date;
|
|
8883
|
+
custom_type_label: string;
|
|
8884
|
+
author: {
|
|
8885
|
+
email?: string | undefined;
|
|
8886
|
+
id?: string | undefined;
|
|
8887
|
+
first_name?: string | undefined;
|
|
8888
|
+
last_name?: string | undefined;
|
|
8889
|
+
uploadedAvatar?: string | undefined;
|
|
8890
|
+
};
|
|
8891
|
+
uid?: string | undefined;
|
|
8892
|
+
preview_image?: string | undefined;
|
|
8893
|
+
preview_summary?: string | undefined;
|
|
8894
|
+
})[];
|
|
8895
|
+
ai_abm_thread_id?: string | undefined;
|
|
8896
|
+
}[];
|
|
8897
|
+
total: number;
|
|
8898
|
+
cursor?: string | undefined;
|
|
8899
|
+
}, {
|
|
8900
|
+
results: {
|
|
8901
|
+
language: {
|
|
8902
|
+
id: string;
|
|
8903
|
+
name: string;
|
|
8904
|
+
is_master?: boolean | undefined;
|
|
8905
|
+
};
|
|
8906
|
+
id: string;
|
|
8907
|
+
custom_type_id: string;
|
|
8908
|
+
group_lang_id: string;
|
|
8909
|
+
versions: (({
|
|
8910
|
+
status: "unclassified";
|
|
8911
|
+
} | {
|
|
8912
|
+
status: "published";
|
|
8913
|
+
} | {
|
|
8914
|
+
status: "release";
|
|
8915
|
+
release_id: string;
|
|
8916
|
+
} | {
|
|
8917
|
+
status: "archived";
|
|
8918
|
+
}) & {
|
|
8919
|
+
tags: string[];
|
|
8920
|
+
version_id: string;
|
|
8921
|
+
last_modified_date: Date;
|
|
8922
|
+
custom_type_label: string;
|
|
8923
|
+
author: {
|
|
8924
|
+
email?: string | undefined;
|
|
8925
|
+
id?: string | undefined;
|
|
8926
|
+
first_name?: string | undefined;
|
|
8927
|
+
last_name?: string | undefined;
|
|
8928
|
+
uploadedAvatar?: string | undefined;
|
|
8929
|
+
};
|
|
8930
|
+
uid?: string | undefined;
|
|
8931
|
+
preview_image?: string | undefined;
|
|
8932
|
+
preview_summary?: string | undefined;
|
|
8933
|
+
})[];
|
|
8934
|
+
title?: string | null | undefined;
|
|
8935
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
8936
|
+
}[];
|
|
8937
|
+
total: number;
|
|
8938
|
+
cursor?: string | undefined;
|
|
8939
|
+
}>>], {
|
|
7833
8940
|
results: {
|
|
7834
8941
|
language: {
|
|
7835
8942
|
id: string;
|