Project

General

Profile

1
// Generated using typescript-generator version 1.29.366 on 2018-02-05 16:06:12.
2

    
3
export class BrowseData {
4
    data: { [index: string]: FieldData };
5
    fields: string[];
6
}
7

    
8
export class DataCollectionAccessProtocol {
9
    value: string;
10
    username: string;
11
    password: string;
12
}
13

    
14
export class DataCollectionInterface {
15
    protocol: DataCollectionAccessProtocol;
16
    baseUrl: string;
17
    format: string;
18
    filter: string;
19
}
20

    
21
export class DataCollectionType {
22
    dataCollectionInterface: DataCollectionInterface;
23
    id: string;
24
    label: string;
25
    group: string;
26
}
27

    
28
export class Document {
29
    map: { [index: string]: string[] };
30
    fieldNames: string[];
31
}
32

    
33
export class FieldData {
34
    fieldRowList: FieldRow[];
35
    count: number[];
36
    values: string[];
37
}
38

    
39
export class FieldRow {
40
    value: string;
41
    count: number;
42
}
43

    
44
export class FormattedSearchResult {
45
    formattedResult: string;
46
    resultsNumber: number;
47
}
48

    
49
export class Hint {
50
    alternateTerm: string;
51
    autoFollowHint: boolean;
52
}
53

    
54
export class DriverResource implements Serializable {
55
    resourceId: string;
56
    resourceUri: string;
57
    resourceKind: string;
58
    resourceType: string;
59
    dateOfCreation: Date;
60
}
61

    
62
export class MDFormatDataStructure extends DriverResource {
63
    resourceName: string;
64
    layouts: { [index: string]: LayoutField[] };
65
}
66

    
67
export class PiwikInfo implements IsSerializable {
68
    repositoryId: string;
69
    openaireId: string;
70
    repositoryName: string;
71
    country: string;
72
    siteId: string;
73
    authenticationToken: string;
74
    creationDate: Date;
75
    requestorName: string;
76
    requestorEmail: string;
77
    validated: boolean;
78
    validationDate: Date;
79
    comment: string;
80
}
81

    
82
export class Repository extends DriverResource implements IsSerializable {
83
  id: string;
84
  officialName: string;
85
  englishName: string;
86
  websiteUrl: string;
87
  logoUrl: string;
88
  contactEmail: string;
89
  countryName: string;
90
  countryCode: string;
91
  organization: string;
92
  latitude: number;
93
  longitude: number;
94
  timezone: number;
95
  namespacePrefix: string;
96
  odNumberOfItems: string;
97
  odNumberOfItemsDate: string;
98
  odPolicies: string;
99
  odLanguages: string;
100
  odContentTypes: string;
101
  collectedFrom: string;
102
  inferred: boolean;
103
  deletedByInference: boolean;
104
  trust: number;
105
  inferenceProvenance: string;
106
  dateOfValidation: Date;
107
  datasourceClass: string;
108
  provenanceActionClass: string;
109
  dateOfCollection: Date;
110
  typology: string;
111
  activationId: string;
112
  mergehomonyms: boolean;
113
  description: string;
114
  releaseStartDate: Date;
115
  releaseEndDate: Date;
116
  missionStatementUrl: string;
117
  dataProvider: boolean;
118
  serviceProvider: boolean;
119
  databaseAccessType: string;
120
  dataUploadType: string;
121
  databaseAccessRestriction: string;
122
  dataUploadRestriction: string;
123
  versioning: boolean;
124
  citationGuidelineUrl: string;
125
  qualityManagementKind: string;
126
  pidSystems: string;
127
  certificates: string;
128
  aggregator: string;
129
  issn: string;
130
  eissn: string;
131
  lissn: string;
132
  interfaces: RepositoryInterface[];
133
  availableDiskSpace: string;
134
  securityParameters: string;
135
  protocol: string;
136
  registeredBy: string;
137
  datasourceType: string;
138
  datasourceAggregatorId: string;
139
  datasourceOriginalIdValue: string;
140
  datasourceOriginalIdProvenance: string;
141
  datasourceAggregated: boolean;
142
  datasourceComplianceDegreeValue: string;
143
  datasourceComplianceDegreeEncoding: string;
144
  numberOfObjects: number;
145
  maxSizeOfDatastructure: number;
146
  maxNumberOfDataStructures: number;
147
  registered: boolean;
148
  extraFields: { [index: string]: string };
149
  piwikInfo: PiwikInfo;
150
  environments: string[];
151
  registrationDate: Date;
152
  verified: boolean;
153
  dataCollectionTypes: DataCollectionType[];
154
  consentTermsOfUse: string;
155
  consentTermsOfUseDate: Date;
156
  fullTextDownload: string;
157
}
158

    
159
export class RepositorySnippet {
160
  id: string;
161
  officialname: string;
162
  englishname: string;
163
  websiteurl: string;
164
  typology: string;
165
  registeredby: string;
166
  organizations: Organization[];
167
  registrationdate: Date;
168
  piwikInfo: PiwikInfo;
169
  logoUrl: string;
170
  description: string;
171
  consentTermsOfUse: string;
172
  consentTermsOfUseDate: Date;
173
  fullTextDownload: string;
174
}
175

    
176
export class Organization {
177
  country: string;
178
  legalname: string;
179
  websiteurl: string;
180
  legalshortname: string;
181
  logourl: string;
182
}
183

    
184
export class RepositoryAccessProtocol {
185
    value: string;
186
    username: string;
187
    password: string;
188
    filter: string;
189
}
190

    
191
export class RepositoryBlackboard {
192
    lastrequest: string;
193
    lastresponse: string;
194
    messages: RepositoryBlackboardMessage[];
195
}
196

    
197
export class RepositoryBlackboardMessage {
198
    id: string;
199
    action: Action;
200
    actionStatus: ActionStatus;
201
    parameters: string[];
202
}
203

    
204
export class RepositoryComparator implements Comparator<Repository> {
205
}
206

    
207
export class RepositoryInterface implements Serializable, IsSerializable {
208
  desiredCompatibilityLevel: string;
209
  complianceName: string;
210
  upgradeToV3: string;
211
  deleteApi: boolean;
212
  accessSet: string;
213
  accessFormat: string;
214
  metadataIdentifierPath: string;
215
  lastCollectionDate: string;
216
  nextScheduledExecution: string;
217
  status: string;
218
  collectedFrom: string;
219
  id: string;
220
  typology: string;
221
  compliance: string;
222
  contentDescription: string;
223
  accessProtocol: string;
224
  baseUrl: string;
225
  active: boolean;
226
  removable: boolean;
227
  accessParams: { [index: string]: string };
228
  extraFields: { [index: string]: string };
229
}
230

    
231
export class SearchCriteriaImpl implements SearchCriteria {
232
    startsWith: string;
233
    endsWith: string;
234
    contains: string;
235
}
236

    
237
export class RepositorySearchCriteria extends SearchCriteriaImpl implements SearchCriteria {
238
    haveDocuments: boolean;
239
    protocolType: string;
240
    adminInfo: string;
241
    officialName: string;
242
    registeredBy: string;
243
    country: string;
244
    verified: boolean;
245
}
246

    
247
export class SearchResult {
248
    query: string;
249
    locale: string;
250
    total: number;
251
    page: number;
252
    size: number;
253
    fields: string[];
254
    searchResults: string[];
255
    browseResults: string[];
256
}
257

    
258
export class SimilarDocument {
259
    id: string;
260
    score: number;
261
}
262

    
263
export class StoreInfo {
264
    serviceUrl: string;
265
    storeId: string;
266
}
267

    
268
export class StoreObjectInfo {
269
    storeInfo: StoreInfo;
270
    objectId: string;
271
}
272

    
273
export class SuggestiveResult {
274
    epr: EPR;
275
    alternativeTerm: string;
276
    autofollow: boolean;
277
}
278

    
279
export class CustomProperties implements IsSerializable {
280
    properties: { [index: string]: string };
281
}
282

    
283
export class JobForValidation implements IsSerializable {
284
    officialName: string;
285
    baseUrl: string;
286
    userEmail: string;
287
    validationSet: string;
288
    datasourceId: string;
289
    interfaceId: string;
290
    desiredCompatibilityLevel: string;
291
    activationId: string;
292
    repoType: string;
293
    interfaceIdOld: string;
294
    groupByXpath: string;
295
    metadataPrefix: string;
296
    records: number;
297
    registration: boolean;
298
    updateExisting: boolean;
299
    cris: boolean;
300
    crisReferentialChecks: boolean;
301
    selectedCrisEntities: string[];
302
    selectedContentRules: number[];
303
    selectedUsageRules: number[];
304
    adminEmails: string[];
305
}
306

    
307
export class JobResultEntry implements IsSerializable {
308
    name: string;
309
    description: string;
310
    successes: string;
311
    weight: number;
312
    errors: string[];
313
    ruleId: number;
314
    hasErrors: boolean;
315
    mandatory: boolean;
316
    type: string;
317
}
318

    
319
export class Rule implements IsSerializable {
320
    id: number;
321
    name: string;
322
    description: string;
323
    type: string;
324
    mandatory: boolean;
325
    weight: number;
326
    provider_information: string;
327
    job_type: string;
328
    entity_type: string;
329
    for_cris: boolean;
330
    configuration: CustomProperties;
331
}
332

    
333
export class RuleSet implements Serializable, IsSerializable {
334
    id: number;
335
    name: string;
336
    description: string;
337
    guidelinesAcronym: string;
338
    shortName: string;
339
    visibility: string[];
340
    contentRules: Rule[];
341
    usageRules: Rule[];
342
    contentRulesIds: number[];
343
    usageRulesIds: number[];
344
}
345

    
346
export class StoredJob extends JobForValidation implements IsSerializable {
347
    contentJobStatus: string;
348
    usageJobStatus: string;
349
    started: string;
350
    ended: string;
351
    duration: string;
352
    error: string;
353
    validationType: string;
354
    jobType: string;
355
    guidelinesShortName: string;
356
    validationStatus: string;
357
    recordsTested: number;
358
    id: number;
359
    contentJobScore: number;
360
    usageJobScore: number;
361
    rules: number[];
362
    resultEntries: JobResultEntry[];
363
    filteredScores: { [index: string]: number };
364
}
365

    
366
export class AdvQueryObject implements IsSerializable {
367
    datasource: string;
368
    topic: string;
369
    titles: string[];
370
    subjects: string[];
371
    authors: string[];
372
    dates: Range[];
373
    trust: Range;
374
    page: number;
375
}
376

    
377
export class BrowseEntry implements Comparable<BrowseEntry>, IsSerializable {
378
    value: string;
379
    size: number;
380
}
381

    
382
export class ConditionParams implements IsSerializable {
383
    value: string;
384
    otherValue: string;
385
}
386

    
387
export class Dataset implements IsSerializable {
388
    titles: string[];
389
    collectedFrom: string[];
390
    pids: Pid[];
391
    instances: Instance[];
392
}
393

    
394
export class DatasourcesBroker implements IsSerializable {
395
    datasourcesOfUser: Tuple<BrowseEntry, string>[];
396
    sharedDatasources: Tuple<BrowseEntry, string>[];
397
    datasourcesOfOthers: Tuple<BrowseEntry, string>[];
398
}
399

    
400
export class EventsPage implements IsSerializable {
401
    datasource: string;
402
    topic: string;
403
    currPage: number;
404
    totalPages: number;
405
    total: number;
406
    values: OpenAireEventPayload[];
407
}
408

    
409
export class ExternalReference implements IsSerializable {
410
    url: string;
411
    sitename: string;
412
    type: string;
413
    refidentifier: string;
414
}
415

    
416
export class Instance implements IsSerializable {
417
    url: string;
418
    license: string;
419
    hostedby: string;
420
    instancetype: string;
421
}
422

    
423
export class Journal implements IsSerializable {
424
    name: string;
425
    issn: string;
426
    eissn: string;
427
    lissn: string;
428
}
429

    
430
export class MapConditions implements IsSerializable {
431
    field: string;
432
    fieldType: MapValueType;
433
    operator: ConditionOperator;
434
    listParams: ConditionParams[];
435
}
436

    
437
export class OpenAireEventPayload implements IsSerializable {
438
    publication: Publication;
439
    highlight: Publication;
440
    provenance: Provenance;
441
    trust: number;
442
}
443

    
444
export class OpenaireSubscription implements IsSerializable {
445
    subscriber: string;
446
    frequency: NotificationFrequency;
447
    mode: NotificationMode;
448
    query: AdvQueryObject;
449
}
450

    
451
export class Pid implements IsSerializable {
452
    value: string;
453
    type: string;
454
}
455

    
456
export class Project implements IsSerializable {
457
    code: string;
458
    acronym: string;
459
    title: string;
460
    funder: string;
461
    fundingProgram: string;
462
    jurisdiction: string;
463
}
464

    
465
export class Provenance implements IsSerializable {
466
    repositoryName: string;
467
    url: string;
468
    id: string;
469
}
470

    
471
export class Publication implements IsSerializable {
472
    originalId: string;
473
    titles: string[];
474
    abstracts: string[];
475
    language: string;
476
    subjects: string[];
477
    creators: string[];
478
    publicationdate: string;
479
    publisher: string;
480
    embargoenddate: string;
481
    contributor: string[];
482
    journal: Journal;
483
    collectedFrom: string[];
484
    pids: Pid[];
485
    instances: Instance[];
486
    externalReferences: ExternalReference[];
487
    publications: Publication[];
488
    projects: Project[];
489
    datasets: Dataset[];
490
    softwares: Software[];
491
}
492

    
493
export class Range implements IsSerializable {
494
    min: string;
495
    max: string;
496
}
497

    
498
export class SimpleSubscriptionDesc implements IsSerializable {
499
    id: string;
500
    datasource: string;
501
    topic: string;
502
    count: number;
503
    creationDate: Date;
504
    lastNotificationDate: Date;
505
}
506

    
507
export class Software implements IsSerializable {
508
  name: string;
509
  description: string;
510
  landingPage: string;
511
  repository: string;
512
}
513

    
514
export class Subscription implements IsSerializable {
515
    subscriptionId: string;
516
    subscriber: string;
517
    topic: string;
518
    frequency: NotificationFrequency;
519
    mode: NotificationMode;
520
    creationDate: Date;
521
    lastNotificationDate: Date;
522
    conditions: string;
523
    conditionsAsList: MapConditions[];
524
}
525

    
526
export class LayoutField {
527
    name: string;
528
    xpath: string;
529
    type: string;
530
    indexable: boolean;
531
    result: boolean;
532
    stat: boolean;
533
    tokenizable: boolean;
534
}
535

    
536
export interface IsSerializable {
537
}
538

    
539
export interface Serializable {
540
}
541

    
542
export interface SearchCriteria {
543
}
544

    
545
export class EPR {
546
    epr: string;
547
    address: string;
548
    serviceName: string;
549
    endpointName: string;
550
    parameterNames: string[];
551
}
552

    
553
export class Tuple<K, V> implements IsSerializable {
554
    first: K;
555
    second: V;
556
}
557

    
558
export interface Comparator<T> {
559
}
560

    
561
export interface Comparable<T> {
562
}
563

    
564
export type ConditionOperator = "EXACT" | "MATCH_ANY" | "MATCH_ALL" | "RANGE";
565

    
566
export type MapValueType = "STRING" | "INTEGER" | "FLOAT" | "DATE" | "BOOLEAN" | "LIST_STRING" | "LIST_INTEGER" | "LIST_FLOAT" | "LIST_DATE" | "LIST_BOOLEAN";
567

    
568
export type NotificationFrequency = "never" | "realtime" | "daily" | "weekly" | "monthly";
569

    
570
export type NotificationMode = "MOCK" | "EMAIL";
571

    
572
export type Action = "CREATE" | "DELETE" | "UPDATE" | "MANAGE" | "RELEASE" | "CANCEL";
573

    
574
export type ActionStatus = "DONE" | "ONGOING" | "FAILED" | "WAITING" | "ASSIGNED";
575

    
576

    
577

    
578
export class Country {
579
  name: string;
580
  code: string;
581
}
582

    
583
export class Term implements IsSerializable {
584
  englishName: string;
585
  nativeName: string;
586
  encoding: string;
587
  code: string;
588
}
589

    
590
export class Timezone {
591
  name: string;
592
  offset: number;
593
}
594

    
595
export class InterfaceInformation implements IsSerializable {
596

    
597
  identified: boolean;
598
  sets: string[];
599
  adminEmails: string[];
600
}
601

    
602
export class JobsOfUser implements IsSerializable {
603
  totalJobs: number;
604
  totalJobsSuccessful: number;
605
  totalJobsFailed: number;
606
  totalJobsOngoing: number;
607

    
608
  jobs: StoredJob[];
609
}
610

    
611
export class MetricsNumbers implements IsSerializable {
612
  downloads: string[];
613
  pageviews: string;
614
  total_downloads: string;
615
  total_openaire_downloads: string;
616
  total_openaire_views: string;
617
  total_views: string;
618
  views: string[];
619
}
620

    
621
export class MetricsInfo implements IsSerializable {
622
  diagramsBaseURL: string;
623
  metricsNumbers: MetricsNumbers;
624
}
625

    
626
export class Typology {
627
  value: string;
628
  name: string;
629
}
630

    
631
export class AggregationDetails implements IsSerializable {
632
  aggregationStage: string;
633
  date: Date;
634
  numberOfRecords: number;
635
  collectionMode: string;
636
  indexedVersion: boolean;
637
}
638

    
639
export class Aggregations implements IsSerializable {
640
  aggregationHistory: AggregationDetails[];
641
  lastCollection: AggregationDetails[];
642
  lastTransformation: AggregationDetails[];
643
}
644

    
645
export class UserInfo implements  IsSerializable {
646
  sub: string;
647
  role: string[];
648
  name: string;
649
  email: string;
650
}
651

    
652
export class UsageStatsSummary implements IsSerializable {
653
  literature: string;
654
  aggregators: string;
655
  journal: string;
656
  software: string;
657
  lastYearUsagestats: { number: string; year: number; };
658
  usagestats: string;
659
  dataRepositories: string;
660
  datasets: string;
661
  publications: string;
662
}
663

    
664
export class RepositorySummaryInfo {
665
  id: string;
666
  repositoryName: string;
667
  logoURL: string;
668
  recordsCollected: number;
669
  lastIndexedVersion: Date;
670
  enrichmentEvents: number;
671
  totalViews: string;
672
  totalDownloads: string;
673
}
674

    
675
export class UsageSummary {
676
  metricsInfo: MetricsInfo;
677
  piwikInfo: PiwikInfo;
678
}
679

    
680
export class BrokerSummary {
681
  userSubs: Map<string, SimpleSubscriptionDesc[]>;
682
  topicsForDatasource: BrowseEntry[];
683
}
684

    
685
export class CollectionMonitorSummary {
686
  aggregationDetails: AggregationDetails[];
687
  lastIndexedVersion: AggregationDetails;
688
}
(6-6/11)