@dmptool/types 2.0.0 → 2.1.0
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/dmp/__tests__/commonStandard.spec.d.ts +1 -0
- package/dist/dmp/__tests__/commonStandard.spec.js +210 -0
- package/dist/dmp/__tests__/extensions.spec.d.ts +1 -0
- package/dist/dmp/__tests__/extensions.spec.js +99 -0
- package/dist/dmp/extension.d.ts +1006 -0
- package/dist/dmp/extension.js +234 -0
- package/dist/dmp/index.d.ts +9 -0
- package/dist/dmp/index.js +23 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/questions/index.d.ts +2 -22
- package/dist/questions/tableQuestions.d.ts +323 -25
- package/dist/questions/tableQuestions.js +3 -2
- package/dist/schemas/affiliationSearchAnswer.schema.json +47 -0
- package/dist/schemas/affiliationSearchQuestion.schema.json +142 -0
- package/dist/schemas/anyAnswer.schema.json +1426 -0
- package/dist/schemas/anyQuestion.schema.json +4744 -0
- package/dist/schemas/anyTableColumnAnswer.schema.json +687 -0
- package/dist/schemas/anyTableColumnQuestion.schema.json +1527 -0
- package/dist/schemas/booleanAnswer.schema.json +33 -0
- package/dist/schemas/booleanQuestion.schema.json +52 -0
- package/dist/schemas/checkboxesAnswer.schema.json +38 -0
- package/dist/schemas/checkboxesQuestion.schema.json +77 -0
- package/dist/schemas/currencyAnswer.schema.json +33 -0
- package/dist/schemas/currencyQuestion.schema.json +70 -0
- package/dist/schemas/dateAnswer.schema.json +33 -0
- package/dist/schemas/datePickerAnswer.schema.json +37 -0
- package/dist/schemas/datePickerQuestion.schema.json +52 -0
- package/dist/schemas/dateQuestion.schema.json +63 -0
- package/dist/schemas/dateRangeAnswer.schema.json +47 -0
- package/dist/schemas/dateRangeQuestion.schema.json +121 -0
- package/dist/schemas/dmp.schema.json +2070 -0
- package/dist/schemas/dmpExtension.schema.json +1874 -0
- package/dist/schemas/emailAnswer.schema.json +33 -0
- package/dist/schemas/emailQuestion.schema.json +68 -0
- package/dist/schemas/filteredSearchAnswer.schema.json +40 -0
- package/dist/schemas/filteredSearchQuestion.schema.json +130 -0
- package/dist/schemas/licenseSearchAnswer.schema.json +51 -0
- package/dist/schemas/licenseSearchQuestion.schema.json +140 -0
- package/dist/schemas/metadataStandardSearchAnswer.schema.json +51 -0
- package/dist/schemas/metadataStandardSearchQuestion.schema.json +141 -0
- package/dist/schemas/multiselectBoxAnswer.schema.json +38 -0
- package/dist/schemas/multiselectBoxQuestion.schema.json +84 -0
- package/dist/schemas/numberAnswer.schema.json +33 -0
- package/dist/schemas/numberQuestion.schema.json +65 -0
- package/dist/schemas/numberRangeAnswer.schema.json +47 -0
- package/dist/schemas/numberRangeQuestion.schema.json +125 -0
- package/dist/schemas/numberWithContextAnswer.schema.json +47 -0
- package/dist/schemas/numberWithContextQuestion.schema.json +95 -0
- package/dist/schemas/radioButtonsAnswer.schema.json +33 -0
- package/dist/schemas/radioButtonsQuestion.schema.json +77 -0
- package/dist/schemas/repositorySearchAnswer.schema.json +51 -0
- package/dist/schemas/repositorySearchQuestion.schema.json +140 -0
- package/dist/schemas/researchOutputTableAnswer.schema.json +16730 -0
- package/dist/schemas/researchOutputTableQuestion.schema.json +140 -0
- package/dist/schemas/selectBoxAnswer.schema.json +33 -0
- package/dist/schemas/selectBoxQuestion.schema.json +84 -0
- package/dist/schemas/tableAnswer.schema.json +740 -0
- package/dist/schemas/tableQuestion.schema.json +1629 -0
- package/dist/schemas/textAnswer.schema.json +33 -0
- package/dist/schemas/textAreaAnswer.schema.json +33 -0
- package/dist/schemas/textAreaQuestion.schema.json +78 -0
- package/dist/schemas/textQuestion.schema.json +63 -0
- package/dist/schemas/typeaheadSearchAnswer.schema.json +37 -0
- package/dist/schemas/typeaheadSearchQuestion.schema.json +120 -0
- package/dist/schemas/urlAnswer.schema.json +33 -0
- package/dist/schemas/urlQuestion.schema.json +63 -0
- package/package.json +5 -2
|
@@ -1830,12 +1830,13 @@ export declare const ResearchOutputCustomColumnSchema: z.ZodObject<{
|
|
|
1830
1830
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1831
1831
|
content: z.ZodObject<{
|
|
1832
1832
|
attributes: z.ZodObject<{
|
|
1833
|
-
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
1834
1833
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1835
1834
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1836
1835
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1837
1836
|
label: z.ZodOptional<z.ZodString>;
|
|
1838
1837
|
help: z.ZodOptional<z.ZodString>;
|
|
1838
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
1839
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1839
1840
|
}, z.core.$strip>;
|
|
1840
1841
|
type: z.ZodLiteral<"text">;
|
|
1841
1842
|
meta: z.ZodObject<{
|
|
@@ -1852,12 +1853,13 @@ export declare const DefaultResearchOutputCustomColumn: {
|
|
|
1852
1853
|
enabled: boolean;
|
|
1853
1854
|
content: {
|
|
1854
1855
|
attributes: {
|
|
1855
|
-
maxLength: number;
|
|
1856
1856
|
minLength?: number | undefined;
|
|
1857
1857
|
pattern?: string | undefined;
|
|
1858
1858
|
labelTranslationKey?: string | undefined;
|
|
1859
1859
|
label?: string | undefined;
|
|
1860
1860
|
help?: string | undefined;
|
|
1861
|
+
maxLength?: number | undefined;
|
|
1862
|
+
defaultValue?: string | undefined;
|
|
1861
1863
|
};
|
|
1862
1864
|
type: "text";
|
|
1863
1865
|
meta: {
|
|
@@ -1868,6 +1870,318 @@ export declare const DefaultResearchOutputCustomColumn: {
|
|
|
1868
1870
|
};
|
|
1869
1871
|
required: boolean;
|
|
1870
1872
|
};
|
|
1873
|
+
declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1874
|
+
heading: z.ZodDefault<z.ZodString>;
|
|
1875
|
+
help: z.ZodDefault<z.ZodString>;
|
|
1876
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1877
|
+
content: z.ZodObject<{
|
|
1878
|
+
type: z.ZodLiteral<"text">;
|
|
1879
|
+
attributes: z.ZodObject<{
|
|
1880
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
1881
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1882
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1884
|
+
help: z.ZodOptional<z.ZodString>;
|
|
1885
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1886
|
+
}, z.core.$strip>;
|
|
1887
|
+
meta: z.ZodObject<{
|
|
1888
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1889
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1890
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
1891
|
+
}, z.core.$strip>;
|
|
1892
|
+
}, z.core.$strip>;
|
|
1893
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1894
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1895
|
+
heading: z.ZodDefault<z.ZodString>;
|
|
1896
|
+
help: z.ZodDefault<z.ZodString>;
|
|
1897
|
+
content: z.ZodObject<{
|
|
1898
|
+
type: z.ZodLiteral<"textArea">;
|
|
1899
|
+
attributes: z.ZodObject<{
|
|
1900
|
+
cols: z.ZodDefault<z.ZodNumber>;
|
|
1901
|
+
rows: z.ZodDefault<z.ZodNumber>;
|
|
1902
|
+
asRichText: z.ZodDefault<z.ZodBoolean>;
|
|
1903
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
1904
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1905
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
1906
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1907
|
+
help: z.ZodOptional<z.ZodString>;
|
|
1908
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1909
|
+
}, z.core.$strip>;
|
|
1910
|
+
meta: z.ZodObject<{
|
|
1911
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1912
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1913
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
1914
|
+
}, z.core.$strip>;
|
|
1915
|
+
}, z.core.$strip>;
|
|
1916
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1917
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1918
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1919
|
+
heading: z.ZodDefault<z.ZodString>;
|
|
1920
|
+
help: z.ZodDefault<z.ZodString>;
|
|
1921
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1922
|
+
content: z.ZodObject<{
|
|
1923
|
+
type: z.ZodLiteral<"selectBox">;
|
|
1924
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1925
|
+
selected: z.ZodDefault<z.ZodBoolean>;
|
|
1926
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1927
|
+
value: z.ZodDefault<z.ZodString>;
|
|
1928
|
+
}, z.core.$strip>>;
|
|
1929
|
+
attributes: z.ZodObject<{
|
|
1930
|
+
multiple: z.ZodLiteral<false>;
|
|
1931
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1932
|
+
help: z.ZodOptional<z.ZodString>;
|
|
1933
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1934
|
+
}, z.core.$strip>;
|
|
1935
|
+
meta: z.ZodObject<{
|
|
1936
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1937
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1938
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
1939
|
+
}, z.core.$strip>;
|
|
1940
|
+
}, z.core.$strip>;
|
|
1941
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1942
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1943
|
+
heading: z.ZodDefault<z.ZodString>;
|
|
1944
|
+
help: z.ZodDefault<z.ZodString>;
|
|
1945
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1946
|
+
content: z.ZodObject<{
|
|
1947
|
+
type: z.ZodLiteral<"checkBoxes">;
|
|
1948
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1949
|
+
checked: z.ZodDefault<z.ZodBoolean>;
|
|
1950
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1951
|
+
value: z.ZodDefault<z.ZodString>;
|
|
1952
|
+
}, z.core.$strip>>;
|
|
1953
|
+
attributes: z.ZodObject<{
|
|
1954
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1955
|
+
help: z.ZodOptional<z.ZodString>;
|
|
1956
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1957
|
+
}, z.core.$strip>;
|
|
1958
|
+
meta: z.ZodObject<{
|
|
1959
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1960
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1961
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
1962
|
+
}, z.core.$strip>;
|
|
1963
|
+
}, z.core.$strip>;
|
|
1964
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1965
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1966
|
+
heading: z.ZodDefault<z.ZodString>;
|
|
1967
|
+
help: z.ZodDefault<z.ZodString>;
|
|
1968
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1969
|
+
content: z.ZodObject<{
|
|
1970
|
+
type: z.ZodLiteral<"radioButtons">;
|
|
1971
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1972
|
+
selected: z.ZodDefault<z.ZodBoolean>;
|
|
1973
|
+
label: z.ZodDefault<z.ZodString>;
|
|
1974
|
+
value: z.ZodDefault<z.ZodString>;
|
|
1975
|
+
}, z.core.$strip>>;
|
|
1976
|
+
attributes: z.ZodObject<{
|
|
1977
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1978
|
+
help: z.ZodOptional<z.ZodString>;
|
|
1979
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1980
|
+
}, z.core.$strip>;
|
|
1981
|
+
meta: z.ZodObject<{
|
|
1982
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1983
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1984
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
1985
|
+
}, z.core.$strip>;
|
|
1986
|
+
}, z.core.$strip>;
|
|
1987
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1988
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1989
|
+
heading: z.ZodDefault<z.ZodString>;
|
|
1990
|
+
help: z.ZodDefault<z.ZodString>;
|
|
1991
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1992
|
+
content: z.ZodObject<{
|
|
1993
|
+
type: z.ZodLiteral<"date">;
|
|
1994
|
+
attributes: z.ZodObject<{
|
|
1995
|
+
max: z.ZodOptional<z.ZodString>;
|
|
1996
|
+
min: z.ZodOptional<z.ZodString>;
|
|
1997
|
+
step: z.ZodDefault<z.ZodNumber>;
|
|
1998
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1999
|
+
help: z.ZodOptional<z.ZodString>;
|
|
2000
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2001
|
+
}, z.core.$strip>;
|
|
2002
|
+
meta: z.ZodObject<{
|
|
2003
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
2004
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2005
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
2006
|
+
}, z.core.$strip>;
|
|
2007
|
+
}, z.core.$strip>;
|
|
2008
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2009
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2010
|
+
heading: z.ZodDefault<z.ZodString>;
|
|
2011
|
+
help: z.ZodDefault<z.ZodString>;
|
|
2012
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2013
|
+
content: z.ZodObject<{
|
|
2014
|
+
type: z.ZodLiteral<"numberWithContext">;
|
|
2015
|
+
attributes: z.ZodObject<{
|
|
2016
|
+
context: z.ZodArray<z.ZodObject<{
|
|
2017
|
+
label: z.ZodDefault<z.ZodString>;
|
|
2018
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2019
|
+
value: z.ZodDefault<z.ZodString>;
|
|
2020
|
+
selected: z.ZodDefault<z.ZodBoolean>;
|
|
2021
|
+
}, z.core.$strip>>;
|
|
2022
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
2023
|
+
min: z.ZodDefault<z.ZodNumber>;
|
|
2024
|
+
step: z.ZodDefault<z.ZodNumber>;
|
|
2025
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2026
|
+
help: z.ZodOptional<z.ZodString>;
|
|
2027
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2028
|
+
}, z.core.$strip>;
|
|
2029
|
+
meta: z.ZodObject<{
|
|
2030
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
2031
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2032
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
2033
|
+
}, z.core.$strip>;
|
|
2034
|
+
}, z.core.$strip>;
|
|
2035
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2036
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2037
|
+
heading: z.ZodDefault<z.ZodString>;
|
|
2038
|
+
help: z.ZodDefault<z.ZodString>;
|
|
2039
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2040
|
+
content: z.ZodObject<{
|
|
2041
|
+
type: z.ZodLiteral<"repositorySearch">;
|
|
2042
|
+
graphQL: z.ZodObject<{
|
|
2043
|
+
query: z.ZodLiteral<string>;
|
|
2044
|
+
queryId: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
2045
|
+
variables: z.ZodArray<z.ZodObject<{
|
|
2046
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
2047
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2048
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2049
|
+
name: z.ZodDefault<z.ZodString>;
|
|
2050
|
+
type: z.ZodDefault<z.ZodString>;
|
|
2051
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2052
|
+
}, z.core.$strip>>;
|
|
2053
|
+
answerField: z.ZodLiteral<"uri">;
|
|
2054
|
+
displayFields: z.ZodArray<z.ZodObject<{
|
|
2055
|
+
propertyName: z.ZodDefault<z.ZodString>;
|
|
2056
|
+
label: z.ZodDefault<z.ZodString>;
|
|
2057
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2058
|
+
}, z.core.$strip>>;
|
|
2059
|
+
responseField: z.ZodLiteral<"repositories.items">;
|
|
2060
|
+
localQueryId: z.ZodOptional<z.ZodString>;
|
|
2061
|
+
}, z.core.$strip>;
|
|
2062
|
+
attributes: z.ZodObject<{
|
|
2063
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2064
|
+
help: z.ZodOptional<z.ZodString>;
|
|
2065
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2066
|
+
}, z.core.$strip>;
|
|
2067
|
+
meta: z.ZodObject<{
|
|
2068
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
2069
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2070
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
2071
|
+
}, z.core.$strip>;
|
|
2072
|
+
}, z.core.$strip>;
|
|
2073
|
+
preferences: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2074
|
+
label: z.ZodDefault<z.ZodString>;
|
|
2075
|
+
value: z.ZodDefault<z.ZodString>;
|
|
2076
|
+
}, z.core.$strip>>>;
|
|
2077
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2078
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2079
|
+
heading: z.ZodDefault<z.ZodString>;
|
|
2080
|
+
help: z.ZodDefault<z.ZodString>;
|
|
2081
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2082
|
+
content: z.ZodObject<{
|
|
2083
|
+
type: z.ZodLiteral<"metadataStandardSearch">;
|
|
2084
|
+
graphQL: z.ZodObject<{
|
|
2085
|
+
query: z.ZodLiteral<string>;
|
|
2086
|
+
queryId: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
2087
|
+
variables: z.ZodArray<z.ZodObject<{
|
|
2088
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
2089
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2090
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2091
|
+
name: z.ZodDefault<z.ZodString>;
|
|
2092
|
+
type: z.ZodDefault<z.ZodString>;
|
|
2093
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2094
|
+
}, z.core.$strip>>;
|
|
2095
|
+
answerField: z.ZodDefault<z.ZodLiteral<"uri">>;
|
|
2096
|
+
displayFields: z.ZodArray<z.ZodObject<{
|
|
2097
|
+
propertyName: z.ZodDefault<z.ZodString>;
|
|
2098
|
+
label: z.ZodDefault<z.ZodString>;
|
|
2099
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2100
|
+
}, z.core.$strip>>;
|
|
2101
|
+
responseField: z.ZodLiteral<"metadataStandards.items">;
|
|
2102
|
+
localQueryId: z.ZodOptional<z.ZodString>;
|
|
2103
|
+
}, z.core.$strip>;
|
|
2104
|
+
attributes: z.ZodObject<{
|
|
2105
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2106
|
+
help: z.ZodOptional<z.ZodString>;
|
|
2107
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2108
|
+
}, z.core.$strip>;
|
|
2109
|
+
meta: z.ZodObject<{
|
|
2110
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
2111
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2112
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
2113
|
+
}, z.core.$strip>;
|
|
2114
|
+
}, z.core.$strip>;
|
|
2115
|
+
preferences: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2116
|
+
label: z.ZodDefault<z.ZodString>;
|
|
2117
|
+
value: z.ZodDefault<z.ZodString>;
|
|
2118
|
+
}, z.core.$strip>>>;
|
|
2119
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2121
|
+
heading: z.ZodDefault<z.ZodString>;
|
|
2122
|
+
help: z.ZodDefault<z.ZodString>;
|
|
2123
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2124
|
+
content: z.ZodObject<{
|
|
2125
|
+
type: z.ZodLiteral<"licenseSearch">;
|
|
2126
|
+
graphQL: z.ZodObject<{
|
|
2127
|
+
query: z.ZodLiteral<string>;
|
|
2128
|
+
queryId: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
2129
|
+
variables: z.ZodArray<z.ZodObject<{
|
|
2130
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
2131
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2132
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2133
|
+
name: z.ZodDefault<z.ZodString>;
|
|
2134
|
+
type: z.ZodDefault<z.ZodString>;
|
|
2135
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2136
|
+
}, z.core.$strip>>;
|
|
2137
|
+
answerField: z.ZodLiteral<"uri">;
|
|
2138
|
+
displayFields: z.ZodArray<z.ZodObject<{
|
|
2139
|
+
propertyName: z.ZodDefault<z.ZodString>;
|
|
2140
|
+
label: z.ZodDefault<z.ZodString>;
|
|
2141
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2142
|
+
}, z.core.$strip>>;
|
|
2143
|
+
responseField: z.ZodLiteral<"licenses.items">;
|
|
2144
|
+
localQueryId: z.ZodOptional<z.ZodString>;
|
|
2145
|
+
}, z.core.$strip>;
|
|
2146
|
+
attributes: z.ZodObject<{
|
|
2147
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2148
|
+
help: z.ZodOptional<z.ZodString>;
|
|
2149
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2150
|
+
}, z.core.$strip>;
|
|
2151
|
+
meta: z.ZodObject<{
|
|
2152
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
2153
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2154
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
2155
|
+
}, z.core.$strip>;
|
|
2156
|
+
}, z.core.$strip>;
|
|
2157
|
+
preferences: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2158
|
+
label: z.ZodDefault<z.ZodString>;
|
|
2159
|
+
value: z.ZodDefault<z.ZodString>;
|
|
2160
|
+
}, z.core.$strip>>>;
|
|
2161
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2162
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2163
|
+
heading: z.ZodDefault<z.ZodString>;
|
|
2164
|
+
help: z.ZodDefault<z.ZodString>;
|
|
2165
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2166
|
+
content: z.ZodObject<{
|
|
2167
|
+
attributes: z.ZodObject<{
|
|
2168
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
2169
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
2170
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2171
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2172
|
+
help: z.ZodOptional<z.ZodString>;
|
|
2173
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
2174
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2175
|
+
}, z.core.$strip>;
|
|
2176
|
+
type: z.ZodLiteral<"text">;
|
|
2177
|
+
meta: z.ZodObject<{
|
|
2178
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
2179
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2180
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
2181
|
+
}, z.core.$strip>;
|
|
2182
|
+
}, z.core.$strip>;
|
|
2183
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2184
|
+
}, z.core.$strip>]>;
|
|
1871
2185
|
export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
1872
2186
|
type: z.ZodLiteral<"researchOutputTable">;
|
|
1873
2187
|
columns: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2165,33 +2479,13 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2165
2479
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2166
2480
|
content: z.ZodObject<{
|
|
2167
2481
|
attributes: z.ZodObject<{
|
|
2168
|
-
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
2169
|
-
minLength: z.ZodOptional<z.ZodNumber>;
|
|
2170
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
2171
|
-
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2172
|
-
label: z.ZodOptional<z.ZodString>;
|
|
2173
|
-
help: z.ZodOptional<z.ZodString>;
|
|
2174
|
-
}, z.core.$strip>;
|
|
2175
|
-
type: z.ZodLiteral<"text">;
|
|
2176
|
-
meta: z.ZodObject<{
|
|
2177
|
-
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
2178
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2179
|
-
usageDescription: z.ZodOptional<z.ZodString>;
|
|
2180
|
-
}, z.core.$strip>;
|
|
2181
|
-
}, z.core.$strip>;
|
|
2182
|
-
required: z.ZodDefault<z.ZodBoolean>;
|
|
2183
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2184
|
-
heading: z.ZodDefault<z.ZodString>;
|
|
2185
|
-
help: z.ZodDefault<z.ZodString>;
|
|
2186
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2187
|
-
content: z.ZodObject<{
|
|
2188
|
-
attributes: z.ZodObject<{
|
|
2189
|
-
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
2190
2482
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
2191
2483
|
pattern: z.ZodOptional<z.ZodString>;
|
|
2192
2484
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2193
2485
|
label: z.ZodOptional<z.ZodString>;
|
|
2194
2486
|
help: z.ZodOptional<z.ZodString>;
|
|
2487
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
2488
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2195
2489
|
}, z.core.$strip>;
|
|
2196
2490
|
type: z.ZodLiteral<"text">;
|
|
2197
2491
|
meta: z.ZodObject<{
|
|
@@ -2515,12 +2809,13 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2515
2809
|
enabled: boolean;
|
|
2516
2810
|
content: {
|
|
2517
2811
|
attributes: {
|
|
2518
|
-
maxLength: number;
|
|
2519
2812
|
minLength?: number | undefined;
|
|
2520
2813
|
pattern?: string | undefined;
|
|
2521
2814
|
labelTranslationKey?: string | undefined;
|
|
2522
2815
|
label?: string | undefined;
|
|
2523
2816
|
help?: string | undefined;
|
|
2817
|
+
maxLength?: number | undefined;
|
|
2818
|
+
defaultValue?: string | undefined;
|
|
2524
2819
|
};
|
|
2525
2820
|
type: "text";
|
|
2526
2821
|
meta: {
|
|
@@ -2549,7 +2844,10 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2549
2844
|
};
|
|
2550
2845
|
export type TableQuestionType = z.infer<typeof TableQuestionSchema>;
|
|
2551
2846
|
export type AnyTableColumnQuestionType = z.infer<typeof AnyTableColumnQuestionSchema>;
|
|
2847
|
+
export type ResearchOutputCustomTableColumnType = z.infer<typeof ResearchOutputCustomColumnSchema>;
|
|
2848
|
+
export type AnyResearchOutputColumnType = z.infer<typeof AnyResearchOutputColumnSchema>;
|
|
2552
2849
|
export type ResearchOutputTableQuestionType = z.infer<typeof ResearchOutputTableQuestionSchema>;
|
|
2553
2850
|
export declare const AnyTableColumnQuestionJSONSchema: z.core.JSONSchema.JSONSchema;
|
|
2554
2851
|
export declare const TableQuestionJSONSchema: z.core.JSONSchema.JSONSchema;
|
|
2555
2852
|
export declare const ResearchOutputTableQuestionJSONSchema: z.core.JSONSchema.JSONSchema;
|
|
2853
|
+
export {};
|
|
@@ -181,7 +181,9 @@ const DefaultResearchOutputLicenseColumn = ResearchOutputLicenseColumnSchema.par
|
|
|
181
181
|
});
|
|
182
182
|
const ResearchOutputCustomContentAttributesSchema = textQuestions_1.TextQuestionSchema.shape.attributes.extend({
|
|
183
183
|
label: zod_1.z.string().optional(),
|
|
184
|
-
help: zod_1.z.string().optional()
|
|
184
|
+
help: zod_1.z.string().optional(),
|
|
185
|
+
maxLength: zod_1.z.number().optional(),
|
|
186
|
+
defaultValue: zod_1.z.string().optional(),
|
|
185
187
|
});
|
|
186
188
|
const DefaultResearchOutputCustomContentAttributes = ResearchOutputCustomContentAttributesSchema.parse({});
|
|
187
189
|
const ResearchOutputCustomContentSchema = zod_1.z.object(Object.assign(Object.assign({}, textQuestions_1.TextQuestionSchema.shape), { attributes: ResearchOutputCustomContentAttributesSchema }));
|
|
@@ -208,7 +210,6 @@ const AnyResearchOutputColumnSchema = zod_1.z.union([
|
|
|
208
210
|
ResearchOutputRepositoryColumnSchema,
|
|
209
211
|
ResearchOutputMetadataStandardColumnSchema,
|
|
210
212
|
ResearchOutputLicenseColumnSchema,
|
|
211
|
-
exports.ResearchOutputCustomColumnSchema,
|
|
212
213
|
exports.ResearchOutputCustomColumnSchema
|
|
213
214
|
]);
|
|
214
215
|
// Update ResearchOutputTableQuestionSchema
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"type": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "affiliationSearch"
|
|
8
|
+
},
|
|
9
|
+
"meta": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"schemaVersion": {
|
|
13
|
+
"default": "1.0",
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": [
|
|
18
|
+
"schemaVersion"
|
|
19
|
+
],
|
|
20
|
+
"additionalProperties": false
|
|
21
|
+
},
|
|
22
|
+
"answer": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"affiliationId": {
|
|
26
|
+
"default": "",
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"affiliationName": {
|
|
30
|
+
"default": "",
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"affiliationId",
|
|
36
|
+
"affiliationName"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": [
|
|
42
|
+
"type",
|
|
43
|
+
"meta",
|
|
44
|
+
"answer"
|
|
45
|
+
],
|
|
46
|
+
"additionalProperties": false
|
|
47
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"type": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "affiliationSearch"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"help": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"labelTranslationKey": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
},
|
|
24
|
+
"meta": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"schemaVersion": {
|
|
28
|
+
"default": "1.0",
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"title": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"usageDescription": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"required": [
|
|
39
|
+
"schemaVersion"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
},
|
|
43
|
+
"graphQL": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"displayFields": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"properties": {
|
|
51
|
+
"propertyName": {
|
|
52
|
+
"default": "id",
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"label": {
|
|
56
|
+
"default": "Id",
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"labelTranslationKey": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"propertyName",
|
|
65
|
+
"label"
|
|
66
|
+
],
|
|
67
|
+
"additionalProperties": false
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"localQueryId": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"query": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"const": "query Affiliations($name: String!){ affiliations(name: $name) { totalCount nextCursor items { id displayName uri } } }"
|
|
76
|
+
},
|
|
77
|
+
"responseField": {
|
|
78
|
+
"default": "affiliations.items",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"const": "affiliations.items"
|
|
81
|
+
},
|
|
82
|
+
"variables": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"items": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"minLength": {
|
|
88
|
+
"type": "number"
|
|
89
|
+
},
|
|
90
|
+
"label": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"labelTranslationKey": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"name": {
|
|
97
|
+
"default": "search",
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"type": {
|
|
101
|
+
"default": "string",
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
"defaultValue": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": [
|
|
109
|
+
"name",
|
|
110
|
+
"type"
|
|
111
|
+
],
|
|
112
|
+
"additionalProperties": false
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"queryId": {
|
|
116
|
+
"default": "useAffiliationsQuery",
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
"answerField": {
|
|
120
|
+
"default": "uri",
|
|
121
|
+
"type": "string",
|
|
122
|
+
"const": "uri"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"required": [
|
|
126
|
+
"displayFields",
|
|
127
|
+
"query",
|
|
128
|
+
"responseField",
|
|
129
|
+
"variables",
|
|
130
|
+
"answerField"
|
|
131
|
+
],
|
|
132
|
+
"additionalProperties": false
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": [
|
|
136
|
+
"type",
|
|
137
|
+
"attributes",
|
|
138
|
+
"meta",
|
|
139
|
+
"graphQL"
|
|
140
|
+
],
|
|
141
|
+
"additionalProperties": false
|
|
142
|
+
}
|