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 OaBrokerRelatedDataset implements IsSerializable {
388
    openaireId: string;
389
    originalId: string;
390
    title: string;
391
    collectedFrom: string;
392
    pids: OaBrokerTypedValue[];
393
    instances: OaBrokerInstance[];
394
}
395

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

    
402
export class OaBrokerRelatedDatasource implements IsSerializable {
403
  openaireId: string;
404
  name: string;
405
  type: string;
406
  relType: string;
407
}
408

    
409
export class EventsPage implements IsSerializable {
410
    datasource: string;
411
    topic: string;
412
    currPage: number;
413
    totalPages: number;
414
    total: number;
415
    values: OaBrokerEventPayload[];
416
}
417

    
418
export class OaBrokerExternalReference implements IsSerializable {
419
    url: string;
420
    sitename: string;
421
    type: string;
422
    refidentifier: string;
423
}
424

    
425
export class OaBrokerInstance implements IsSerializable {
426
    url: string;
427
    license: string;
428
    hostedby: string;
429
    instancetype: string;
430
}
431

    
432
export class OaBrokerJournal implements IsSerializable {
433
    name: string;
434
    issn: string;
435
    eissn: string;
436
    lissn: string;
437
}
438

    
439
export class MapConditions implements IsSerializable {
440
    field: string;
441
    fieldType: MapValueType;
442
    operator: ConditionOperator;
443
    listParams: ConditionParams[];
444
}
445

    
446
export class OaBrokerEventPayload implements IsSerializable {
447
    result: OaBrokerMainEntity; // old publication: Publication; ??
448
    highlight: OaBrokerMainEntity;
449
    provenance: OaBrokerProvenance;
450
    trust: number;
451
}
452

    
453
export class OaBrokerAuthor implements IsSerializable {
454
  fullname: string;
455
  orcid: string;
456
}
457

    
458
export class OpenaireSubscription implements IsSerializable {
459
    subscriber: string;
460
    frequency: NotificationFrequency;
461
    mode: NotificationMode;
462
    query: AdvQueryObject;
463
}
464

    
465
export class OaBrokerTypedValue implements IsSerializable {
466
    value: string;
467
    type: string;
468
}
469

    
470
export class OaBrokerProject implements IsSerializable {
471
    openaireId: string;
472
    code: string;
473
    acronym: string;
474
    title: string;
475
    funder: string;
476
    fundingProgram: string;
477
    jurisdiction: string;
478
}
479

    
480
export class OaBrokerProvenance implements IsSerializable {
481
    repositoryName: string;
482
    repositoryType: string;
483
    url: string;
484
    id: string;
485
}
486

    
487
export class OaBrokerRelatedPublication implements IsSerializable {
488
  openaireId: string;
489
  originalId: string;
490
  title: string;
491
  collectedFrom: string;
492
  pids: OaBrokerTypedValue[];
493
  instances: OaBrokerInstance[];
494
  relType: string;
495
}
496

    
497
export class OaBrokerMainEntity implements IsSerializable {
498
    openaireId: string;
499
    originalId: string;
500
    typology: string;
501
    titles: string[];
502
    abstracts: string[];
503
    language: string;
504
    subjects: OaBrokerTypedValue[];
505
    creators: OaBrokerAuthor[];
506
    publicationdate: string;
507
    publisher: string;
508
    embargoenddate: string;
509
    contributor: string[];
510
    journal: OaBrokerJournal;
511
    pids: OaBrokerTypedValue[];
512
    instances: OaBrokerInstance[];
513
    externalReferences: OaBrokerExternalReference[];
514
    publications: OaBrokerRelatedPublication[];
515
    projects: OaBrokerProject[];
516
    datasets: OaBrokerRelatedDataset[];
517
    softwares: OaBrokerRelatedSoftware[];
518
    datasources: OaBrokerRelatedDatasource[];
519
}
520

    
521
export class Range implements IsSerializable {
522
    min: string;
523
    max: string;
524
}
525

    
526
export class SimpleSubscriptionDesc implements IsSerializable {
527
    id: string;
528
    datasource: string;
529
    topic: string;
530
    count: number;
531
    creationDate: Date;
532
    lastNotificationDate: Date;
533
}
534

    
535
export class OaBrokerRelatedSoftware implements IsSerializable {
536
  openaireId: string;
537
  name: string;
538
  description: string;
539
  landingPage: string;
540
  repository: string;
541
}
542

    
543
export class Subscription implements IsSerializable {
544
    subscriptionId: string;
545
    subscriber: string;
546
    topic: string;
547
    frequency: NotificationFrequency;
548
    mode: NotificationMode;
549
    creationDate: Date;
550
    lastNotificationDate: Date;
551
    conditions: string;
552
    conditionsAsList: MapConditions[];
553
}
554

    
555
export class LayoutField {
556
    name: string;
557
    xpath: string;
558
    type: string;
559
    indexable: boolean;
560
    result: boolean;
561
    stat: boolean;
562
    tokenizable: boolean;
563
}
564

    
565
export interface IsSerializable {
566
}
567

    
568
export interface Serializable {
569
}
570

    
571
export interface SearchCriteria {
572
}
573

    
574
export class EPR {
575
    epr: string;
576
    address: string;
577
    serviceName: string;
578
    endpointName: string;
579
    parameterNames: string[];
580
}
581

    
582
export class Tuple<K, V> implements IsSerializable {
583
    first: K;
584
    second: V;
585
}
586

    
587
export interface Comparator<T> {
588
}
589

    
590
export interface Comparable<T> {
591
}
592

    
593
export type ConditionOperator = "EXACT" | "MATCH_ANY" | "MATCH_ALL" | "RANGE";
594

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

    
597
export type NotificationFrequency = "never" | "realtime" | "daily" | "weekly" | "monthly";
598

    
599
export type NotificationMode = "MOCK" | "EMAIL";
600

    
601
export type Action = "CREATE" | "DELETE" | "UPDATE" | "MANAGE" | "RELEASE" | "CANCEL";
602

    
603
export type ActionStatus = "DONE" | "ONGOING" | "FAILED" | "WAITING" | "ASSIGNED";
604

    
605

    
606

    
607
export class Country {
608
  name: string;
609
  code: string;
610
}
611

    
612
export class Term implements IsSerializable {
613
  englishName: string;
614
  nativeName: string;
615
  encoding: string;
616
  code: string;
617
}
618

    
619
export class Timezone {
620
  name: string;
621
  offset: number;
622
}
623

    
624
export class InterfaceInformation implements IsSerializable {
625

    
626
  identified: boolean;
627
  sets: string[];
628
  adminEmails: string[];
629
}
630

    
631
export class JobsOfUser implements IsSerializable {
632
  totalJobs: number;
633
  totalJobsSuccessful: number;
634
  totalJobsFailed: number;
635
  totalJobsOngoing: number;
636

    
637
  jobs: StoredJob[];
638
}
639

    
640
export class MetricsNumbers implements IsSerializable {
641
  downloads: string[];
642
  pageviews: string;
643
  total_downloads: string;
644
  total_openaire_downloads: string;
645
  total_openaire_views: string;
646
  total_views: string;
647
  views: string[];
648
}
649

    
650
export class MetricsInfo implements IsSerializable {
651
  diagramsBaseURL: string;
652
  metricsNumbers: MetricsNumbers;
653
}
654

    
655
export class Typology {
656
  value: string;
657
  name: string;
658
}
659

    
660
export class AggregationDetails implements IsSerializable {
661
  aggregationStage: string;
662
  date: Date;
663
  numberOfRecords: number;
664
  collectionMode: string;
665
  indexedVersion: boolean;
666
}
667

    
668
export class Aggregations implements IsSerializable {
669
  aggregationHistory: AggregationDetails[];
670
  lastCollection: AggregationDetails[];
671
  lastTransformation: AggregationDetails[];
672
}
673

    
674
export class UserInfo implements  IsSerializable {
675
  sub: string;
676
  role: string[];
677
  name: string;
678
  email: string;
679
}
680

    
681
export class UsageStatsSummary implements IsSerializable {
682
  literature: string;
683
  aggregators: string;
684
  journal: string;
685
  software: string;
686
  lastYearUsagestats: { number: string; year: number; };
687
  usagestats: string;
688
  dataRepositories: string;
689
  datasets: string;
690
  publications: string;
691
}
692

    
693
export class RepositorySummaryInfo {
694
  id: string;
695
  repositoryName: string;
696
  logoURL: string;
697
  recordsCollected: number;
698
  lastIndexedVersion: Date;
699
  enrichmentEvents: number;
700
  totalViews: string;
701
  totalDownloads: string;
702
}
703

    
704
export class UsageSummary {
705
  metricsInfo: MetricsInfo;
706
  piwikInfo: PiwikInfo;
707
}
708

    
709
export class BrokerSummary {
710
  userSubs: Map<string, SimpleSubscriptionDesc[]>;
711
  topicsForDatasource: BrowseEntry[];
712
}
713

    
714
export class CollectionMonitorSummary {
715
  aggregationDetails: AggregationDetails[];
716
  lastIndexedVersion: AggregationDetails;
717
}
(6-6/11)