enonic-types
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -10,2 +10,3 @@ declare module "*/lib/cristin" { | ||
type Result = import("./generated").Result; | ||
type ListOfResultContributors = import("./generated").ListOfResultContributors; | ||
type ListOfInstitutions = import("./generated").ListOfInstitutions; | ||
@@ -16,2 +17,3 @@ type Institution = import("./generated").Institution; | ||
type Unarray<T> = import("./types").Unarray<T>; | ||
type CristinResultContributor = Unarray<ListOfResultContributors>; | ||
type CristinPersonAffiliation = NonNullable<Unarray<Person["affiliations"]>>; | ||
@@ -45,2 +47,3 @@ type CristinProjectCoordinatingInstitution = Project["coordinating_institution"]; | ||
getCristinResult(id: string, connection?: RepoConnection): Result | void; | ||
getCristinResultContributors(id: string, repoConnection?: RepoConnection): ListOfResultContributors | void; | ||
} | ||
@@ -58,2 +61,3 @@ } | ||
REPO_CRISTIN_RESULTS: "no.item.cristin.results"; | ||
REPO_CRISTIN_RESULT_CONTRIBUTORS: "no.item.cristin.resultcontributors"; | ||
REPO_CRISTIN_UNITS: "no.item.cristin.units"; | ||
@@ -76,2 +80,3 @@ BRANCH_MASTER: "master"; | ||
type Unit = import("./generated").Unit; | ||
type ListOfResultContributors = import("./generated").ListOfResultContributors; | ||
interface CristinStorageLibrary { | ||
@@ -88,2 +93,4 @@ lookupPerson(ids: Array<string>): Array<Person>; | ||
lookupResult(id: string): Result | undefined; | ||
lookupResultContributors(id: string): ListOfResultContributors | undefined; | ||
lookupResultContributors(ids: Array<string>): Array<ListOfResultContributors>; | ||
} | ||
@@ -133,2 +140,3 @@ } | ||
type Result = import("./generated").Result; | ||
type ListOfResultContributors = import("./generated").ListOfResultContributors; | ||
type CristinResultCategory = NonNullable<Result["category"]>; | ||
@@ -154,2 +162,3 @@ type ListOfInstitutions = import("./generated").ListOfInstitutions; | ||
}): FetchResponse<Array<CristinResultCategory>>; | ||
fetchResultContributors(params: GetSingleParams): ListOfResultContributors; | ||
fetchInstitutions(params: GetInstitutionsParams): FetchResponse<ListOfInstitutions>; | ||
@@ -156,0 +165,0 @@ fetchInstitution(params: GetSingleParams): Institution; |
@@ -7,2 +7,3 @@ export declare type ListOfPersons = import("./personsList_GET_response").ListOfPersons; | ||
export declare type Result = import("./results_GET_response").Results_GETResponse; | ||
export declare type ListOfResultContributors = import("./contributorsRefList_GET_response").ListOfContributorReferences; | ||
export declare type ListOfInstitutions = import("./institutionsList_GET_response").ListOfInstitutions; | ||
@@ -9,0 +10,0 @@ export declare type Institution = import("./institutions_GET_response").Institution; |
{ | ||
"name": "enonic-types", | ||
"sideEffects": false, | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "TypeScript types for Enonic XP", | ||
@@ -29,4 +29,4 @@ "typings": "index.d.ts", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^5.17.0", | ||
"@typescript-eslint/parser": "^5.17.0", | ||
"@typescript-eslint/eslint-plugin": "^5.18.0", | ||
"@typescript-eslint/parser": "^5.18.0", | ||
"copyfiles": "^2.4.1", | ||
@@ -33,0 +33,0 @@ "eslint": "^8.12.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
273415
64
7414