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
}
155

    
156
export class RepositorySnippet {
157
  id: string;
158
  officialname: string;
159
  englishname: string;
160
  websiteurl: string;
161
  typology: string;
162
  registeredby: string;
163
  organizations: Organization[];
164
  registrationdate: Date;
165
}
166

    
167
export class Organization {
168
  country: string;
169
  legalname: string;
170
  websiteurl: string;
171
  legalshortname: string;
172
  logourl: string;
173
}
174

    
175
export class RepositoryAccessProtocol {
176
    value: string;
177
    username: string;
178
    password: string;
179
    filter: string;
180
}
181

    
182
export class RepositoryBlackboard {
183
    lastrequest: string;
184
    lastresponse: string;
185
    messages: RepositoryBlackboardMessage[];
186
}
187

    
188
export class RepositoryBlackboardMessage {
189
    id: string;
190
    action: Action;
191
    actionStatus: ActionStatus;
192
    parameters: string[];
193
}
194

    
195
export class RepositoryComparator implements Comparator<Repository> {
196
}
197

    
198
export class RepositoryInterface implements Serializable, IsSerializable {
199
  desiredCompatibilityLevel: string;
200
  complianceName: string;
201
  upgradeToV3: string;
202
  deleteApi: boolean;
203
  accessSet: string;
204
  accessFormat: string;
205
  metadataIdentifierPath: string;
206
  lastCollectionDate: string;
207
  nextScheduledExecution: string;
208
  status: string;
209
  collectedFrom: string;
210
  id: string;
211
  typology: string;
212
  compliance: string;
213
  contentDescription: string;
214
  accessProtocol: string;
215
  baseUrl: string;
216
  active: boolean;
217
  removable: boolean;
218
  accessParams: { [index: string]: string };
219
  extraFields: { [index: string]: string };
220
}
221

    
222
export class SearchCriteriaImpl implements SearchCriteria {
223
    startsWith: string;
224
    endsWith: string;
225
    contains: string;
226
}
227

    
228
export class RepositorySearchCriteria extends SearchCriteriaImpl implements SearchCriteria {
229
    haveDocuments: boolean;
230
    protocolType: string;
231
    adminInfo: string;
232
    officialName: string;
233
    registeredBy: string;
234
    country: string;
235
    verified: boolean;
236
}
237

    
238
export class SearchResult {
239
    query: string;
240
    locale: string;
241
    total: number;
242
    page: number;
243
    size: number;
244
    fields: string[];
245
    searchResults: string[];
246
    browseResults: string[];
247
}
248

    
249
export class SimilarDocument {
250
    id: string;
251
    score: number;
252
}
253

    
254
export class StoreInfo {
255
    serviceUrl: string;
256
    storeId: string;
257
}
258

    
259
export class StoreObjectInfo {
260
    storeInfo: StoreInfo;
261
    objectId: string;
262
}
263

    
264
export class SuggestiveResult {
265
    epr: EPR;
266
    alternativeTerm: string;
267
    autofollow: boolean;
268
}
269

    
270
export class CustomProperties implements IsSerializable {
271
    properties: { [index: string]: string };
272
}
273

    
274
export class JobForValidation implements IsSerializable {
275
    officialName: string;
276
    baseUrl: string;
277
    userEmail: string;
278
    validationSet: string;
279
    datasourceId: string;
280
    interfaceId: string;
281
    desiredCompatibilityLevel: string;
282
    activationId: string;
283
    repoType: string;
284
    interfaceIdOld: string;
285
    groupByXpath: string;
286
    metadataPrefix: string;
287
    records: number;
288
    registration: boolean;
289
    updateExisting: boolean;
290
    cris: boolean;
291
    crisReferentialChecks: boolean;
292
    selectedCrisEntities: string[];
293
    selectedContentRules: number[];
294
    selectedUsageRules: number[];
295
    adminEmails: string[];
296
}
297

    
298
export class JobResultEntry implements IsSerializable {
299
    name: string;
300
    description: string;
301
    successes: string;
302
    weight: number;
303
    errors: string[];
304
    ruleId: number;
305
    hasErrors: boolean;
306
    mandatory: boolean;
307
    type: string;
308
}
309

    
310
export class Rule implements IsSerializable {
311
    id: number;
312
    name: string;
313
    description: string;
314
    type: string;
315
    mandatory: boolean;
316
    weight: number;
317
    provider_information: string;
318
    job_type: string;
319
    entity_type: string;
320
    for_cris: boolean;
321
    configuration: CustomProperties;
322
}
323

    
324
export class RuleSet implements Serializable, IsSerializable {
325
    id: number;
326
    name: string;
327
    description: string;
328
    guidelinesAcronym: string;
329
    shortName: string;
330
    visibility: string[];
331
    contentRules: Rule[];
332
    usageRules: Rule[];
333
    contentRulesIds: number[];
334
    usageRulesIds: number[];
335
}
336

    
337
export class StoredJob extends JobForValidation implements IsSerializable {
338
    contentJobStatus: string;
339
    usageJobStatus: string;
340
    started: string;
341
    ended: string;
342
    duration: string;
343
    error: string;
344
    validationType: string;
345
    jobType: string;
346
    guidelinesShortName: string;
347
    validationStatus: string;
348
    recordsTested: number;
349
    id: number;
350
    contentJobScore: number;
351
    usageJobScore: number;
352
    rules: number[];
353
    resultEntries: JobResultEntry[];
354
    filteredScores: { [index: string]: number };
355
}
356

    
357
export class AdvQueryObject implements IsSerializable {
358
    datasource: string;
359
    topic: string;
360
    titles: string[];
361
    subjects: string[];
362
    authors: string[];
363
    dates: Range[];
364
    trust: Range;
365
    page: number;
366
}
367

    
368
export class BrowseEntry implements Comparable<BrowseEntry>, IsSerializable {
369
    value: string;
370
    size: number;
371
}
372

    
373
export class ConditionParams implements IsSerializable {
374
    value: string;
375
    otherValue: string;
376
}
377

    
378
export class Dataset implements IsSerializable {
379
    titles: string[];
380
    collectedFrom: string[];
381
    pids: Pid[];
382
    instances: Instance[];
383
}
384

    
385
export class DatasourcesBroker implements IsSerializable {
386
    datasourcesOfUser: Tuple<BrowseEntry, string>[];
387
    sharedDatasources: Tuple<BrowseEntry, string>[];
388
    datasourcesOfOthers: Tuple<BrowseEntry, string>[];
389
}
390

    
391
export class EventsPage implements IsSerializable {
392
    datasource: string;
393
    topic: string;
394
    currPage: number;
395
    totalPages: number;
396
    total: number;
397
    values: OpenAireEventPayload[];
398
}
399

    
400
export class ExternalReference implements IsSerializable {
401
    url: string;
402
    sitename: string;
403
    type: string;
404
    refidentifier: string;
405
}
406

    
407
export class Instance implements IsSerializable {
408
    url: string;
409
    license: string;
410
    hostedby: string;
411
    instancetype: string;
412
}
413

    
414
export class Journal implements IsSerializable {
415
    name: string;
416
    issn: string;
417
    eissn: string;
418
    lissn: string;
419
}
420

    
421
export class MapConditions implements IsSerializable {
422
    field: string;
423
    fieldType: MapValueType;
424
    operator: ConditionOperator;
425
    listParams: ConditionParams[];
426
}
427

    
428
export class OpenAireEventPayload implements IsSerializable {
429
    publication: Publication;
430
    highlight: Publication;
431
    provenance: Provenance;
432
    trust: number;
433
}
434

    
435
export class OpenaireSubscription implements IsSerializable {
436
    subscriber: string;
437
    frequency: NotificationFrequency;
438
    mode: NotificationMode;
439
    query: AdvQueryObject;
440
}
441

    
442
export class Pid implements IsSerializable {
443
    value: string;
444
    type: string;
445
}
446

    
447
export class Project implements IsSerializable {
448
    code: string;
449
    acronym: string;
450
    title: string;
451
    funder: string;
452
    fundingProgram: string;
453
    jurisdiction: string;
454
}
455

    
456
export class Provenance implements IsSerializable {
457
    repositoryName: string;
458
    url: string;
459
    id: string;
460
}
461

    
462
export class Publication implements IsSerializable {
463
    originalId: string;
464
    titles: string[];
465
    abstracts: string[];
466
    language: string;
467
    subjects: string[];
468
    creators: string[];
469
    publicationdate: string;
470
    publisher: string;
471
    embargoenddate: string;
472
    contributor: string[];
473
    journal: Journal;
474
    collectedFrom: string[];
475
    pids: Pid[];
476
    instances: Instance[];
477
    externalReferences: ExternalReference[];
478
    publications: Publication[];
479
    projects: Project[];
480
    datasets: Dataset[];
481
}
482

    
483
export class Range implements IsSerializable {
484
    min: string;
485
    max: string;
486
}
487

    
488
export class SimpleSubscriptionDesc implements IsSerializable {
489
    id: string;
490
    datasource: string;
491
    topic: string;
492
    count: number;
493
    creationDate: Date;
494
    lastNotificationDate: Date;
495
}
496

    
497
export class Subscription implements IsSerializable {
498
    subscriptionId: string;
499
    subscriber: string;
500
    topic: string;
501
    frequency: NotificationFrequency;
502
    mode: NotificationMode;
503
    creationDate: Date;
504
    lastNotificationDate: Date;
505
    conditions: string;
506
    conditionsAsList: MapConditions[];
507
}
508

    
509
export class LayoutField {
510
    name: string;
511
    xpath: string;
512
    type: string;
513
    indexable: boolean;
514
    result: boolean;
515
    stat: boolean;
516
    tokenizable: boolean;
517
}
518

    
519
export interface IsSerializable {
520
}
521

    
522
export interface Serializable {
523
}
524

    
525
export interface SearchCriteria {
526
}
527

    
528
export class EPR {
529
    epr: string;
530
    address: string;
531
    serviceName: string;
532
    endpointName: string;
533
    parameterNames: string[];
534
}
535

    
536
export class Tuple<K, V> implements IsSerializable {
537
    first: K;
538
    second: V;
539
}
540

    
541
export interface Comparator<T> {
542
}
543

    
544
export interface Comparable<T> {
545
}
546

    
547
export type ConditionOperator = "EXACT" | "MATCH_ANY" | "MATCH_ALL" | "RANGE";
548

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

    
551
export type NotificationFrequency = "never" | "realtime" | "daily" | "weekly" | "monthly";
552

    
553
export type NotificationMode = "MOCK" | "EMAIL";
554

    
555
export type Action = "CREATE" | "DELETE" | "UPDATE" | "MANAGE" | "RELEASE" | "CANCEL";
556

    
557
export type ActionStatus = "DONE" | "ONGOING" | "FAILED" | "WAITING" | "ASSIGNED";
558

    
559

    
560

    
561
export class Country {
562
  name: string;
563
  code: string;
564
}
565

    
566
export class Term implements IsSerializable {
567
  englishName: string;
568
  nativeName: string;
569
  encoding: string;
570
  code: string;
571
}
572

    
573
export class Timezone {
574
  name: string;
575
  offset: number;
576
}
577

    
578
export class InterfaceInformation implements IsSerializable {
579

    
580
  identified: boolean;
581
  sets: string[];
582
  adminEmails: string[];
583
}
584

    
585
export class JobsOfUser implements IsSerializable {
586
  totalJobs: number;
587
  totalJobsSuccessful: number;
588
  totalJobsFailed: number;
589
  totalJobsOngoing: number;
590

    
591
  jobs: StoredJob[];
592
}
593

    
594
export class MetricsNumbers implements IsSerializable {
595
  downloads: string[];
596
  pageviews: string;
597
  total_downloads: string;
598
  total_openaire_downloads: string;
599
  total_openaire_views: string;
600
  total_views: string;
601
  views: string[];
602
}
603

    
604
export class MetricsInfo implements IsSerializable {
605
  diagramsBaseURL: string;
606
  metricsNumbers: MetricsNumbers;
607
}
608

    
609
export class Typology {
610
  value: string;
611
  name: string;
612
}
613

    
614
export class AggregationDetails implements IsSerializable {
615
  aggregationStage: string;
616
  date: Date;
617
  numberOfRecords: number;
618
  collectionMode: string;
619
  indexedVersion: boolean;
620
}
621

    
622
export class Aggregations implements IsSerializable {
623
  aggregationHistory: AggregationDetails[];
624
  lastCollection: AggregationDetails[];
625
  lastTransformation: AggregationDetails[];
626
}
627

    
628
export class UserInfo implements  IsSerializable {
629
  sub: string;
630
  role: string[];
631
  name: string;
632
  email: string;
633
}
634

    
635
export class UsageStatsSummary implements IsSerializable {
636
  literature: string;
637
  aggregators: string;
638
  journal: string;
639
  software: string;
640
  lastYearUsagestats: { number: string; year: number; };
641
  usagestats: string;
642
  dataRepositories: string;
643
  datasets: string;
644
  publications: string;
645
}
646

    
647
export class RepositorySummaryInfo {
648
  id: string;
649
  repositoryName: string;
650
  logoURL: string;
651
  recordsCollected: number;
652
  lastIndexedVersion: Date;
653
  enrichmentEvents: number;
654
  totalViews: string;
655
  totalDownloads: string;
656
}
(6-6/11)