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 DatasourceDetails {
83
  id: string;
84
  openaireId: string;
85
  officialname: string;
86
  englishname: string;
87
  websiteurl: string;
88
  logourl: string;
89
  contactemail: string;
90
  latitude: number;
91
  longitude: number;
92
  namespaceprefix: string;
93
  languages: string;
94
  dateofvalidation: Date;
95
  eoscDatasourceType: string;
96
  dateofcollection: Date;
97
  platform: string;
98
  activationId: string;
99
  description: string;
100
  issn: string;
101
  eissn: string;
102
  lissn: string;
103
  registeredby: string;
104
  subjects: string;
105
  aggregator: string;
106
  collectedfrom: string;
107
  managed: boolean;
108
  registrationdate: Date;
109
  consentTermsOfUseDate: Date;
110
  lastConsentTermsOfUseDate: Date;
111
  consentTermsOfUse: boolean;
112
  fullTextDownload: boolean;
113
  organizations: OrganizationDetails[] = new Array<OrganizationDetails>();
114
  identities: IdentitiesDetails[];
115
  status: string;
116
  typology: string;
117
}
118

    
119
export class Repository extends DatasourceDetails implements IsSerializable {
120
  timezone: number;
121
  datasourceType: string;
122
  interfaces: RepositoryInterface[];
123
  piwikInfo: PiwikInfo;
124
  environments: string[];
125
  namespacePrefix: string;
126
  officialName: string;
127
  registeredBy: string;
128
  englishName: string;
129
  collectedFrom: string;
130
  dateOfValidation: Date;
131
  dateOfCollection: Date;
132
  dataCollectionTypes: DataCollectionType[];
133
  websiteUrl: string;
134
  logoUrl: string;
135
  contactEmail: string;
136
}
137

    
138
export class RepositorySnippet {
139
  id: string;
140
  officialname: string;
141
  englishname: string;
142
  websiteurl: string;
143
  registeredby: string;
144
  registrationdate: Date;
145
  eoscDatasourceType: string;
146
  logoUrl: string;
147
  description: string;
148
  consentTermsOfUse: boolean;
149
  consentTermsOfUseDate: Date;
150
  lastConsentTermsOfUseDate: Date;
151
  fullTextDownload: boolean;
152
  organizations: OrganizationDetails[];
153
  typology: string;
154
  piwikInfo: PiwikInfo;
155
}
156

    
157
export class TermsOfUse {
158
  id: string;
159
  name: string;
160
  consentTermsOfUse: boolean;
161
  fullTextDownload: boolean;
162
  consentTermsOfUseDate: Date;
163
}
164

    
165
export class RepositoryAccessProtocol {
166
  value: string;
167
  username: string;
168
  password: string;
169
  filter: string;
170
}
171

    
172
export class RepositoryBlackboard {
173
  lastrequest: string;
174
  lastresponse: string;
175
  messages: RepositoryBlackboardMessage[];
176
}
177

    
178
export class RepositoryBlackboardMessage {
179
  id: string;
180
  action: Action;
181
  actionStatus: ActionStatus;
182
  parameters: string[];
183
}
184

    
185
export class RepositoryComparator implements Comparator<Repository> {
186
}
187

    
188
// export class RepositoryInterface implements Serializable, IsSerializable {
189
//   desiredCompatibilityLevel: string;
190
//   complianceName: string;
191
//   upgradeToV3: string;
192
//   deleteApi: boolean;
193
//   accessSet: string;
194
//   accessFormat: string;
195
//   metadataIdentifierPath: string;
196
//   lastCollectionDate: string;
197
//   nextScheduledExecution: string;
198
//   status: string;
199
//   collectedFrom: string;
200
//   id: string;
201
//   typology: string;
202
//   compatibility: string;
203
//   contentdescription: string;
204
//   protocol: string;
205
//   baseurl: string;
206
//   active: boolean;
207
//   removable: boolean;
208
//   apiParams: { [index: string]: string };
209
//   extraFields: { [index: string]: string };
210
//   comments: string;
211
// }
212

    
213
export class ApiDetails {
214
  id: string;
215
  protocol: string;
216
  datasource: string;
217
  contentdescription: string;
218
  eoscDatasourceType: string;
219
  compatibility: string;
220
  compatibilityOverride: string;
221
  lastCollectionTotal: number;
222
  lastCollectionDate: Date;
223
  lastAggregationTotal: number;
224
  lastAggregationDate: Date;
225
  lastDownloadTotal: number;
226
  lastDownloadDate: Date;
227
  baseurl: string;
228
  removable: boolean;
229
  apiParams: ApiParamDetails[] = new Array<ApiParamDetails>();
230
  metadataIdentifierPath: string;
231
  typology: string;
232
  comments: string;
233
}
234

    
235
export class RepositoryInterface extends ApiDetails {
236

    
237
}
238

    
239
export class ApiParamDetails {
240
  param: string;
241
  value: string;
242

    
243
  constructor(param, value) {
244
    this.param = param;
245
    this.value = value;
246
  }
247

    
248
}
249

    
250
export class SearchCriteriaImpl implements SearchCriteria {
251
  startsWith: string;
252
  endsWith: string;
253
  contains: string;
254
}
255

    
256
export class RepositorySearchCriteria extends SearchCriteriaImpl implements SearchCriteria {
257
  haveDocuments: boolean;
258
  protocolType: string;
259
  adminInfo: string;
260
  officialName: string;
261
  registeredBy: string;
262
  country: string;
263
  verified: boolean;
264
}
265

    
266
export class SearchResult {
267
  query: string;
268
  locale: string;
269
  total: number;
270
  page: number;
271
  size: number;
272
  fields: string[];
273
  searchResults: string[];
274
  browseResults: string[];
275
}
276

    
277
export class SimilarDocument {
278
  id: string;
279
  score: number;
280
}
281

    
282
export class StoreInfo {
283
  serviceUrl: string;
284
  storeId: string;
285
}
286

    
287
export class StoreObjectInfo {
288
  storeInfo: StoreInfo;
289
  objectId: string;
290
}
291

    
292
export class SuggestiveResult {
293
  epr: EPR;
294
  alternativeTerm: string;
295
  autofollow: boolean;
296
}
297

    
298
export class CustomProperties implements IsSerializable {
299
  properties: { [index: string]: string };
300
}
301

    
302
export class JobForValidation implements IsSerializable {
303
  officialName: string;
304
  baseUrl: string;
305
  userEmail: string;
306
  validationSet: string;
307
  datasourceId: string;
308
  interfaceId: string;
309
  desiredCompatibilityLevel: string;
310
  activationId: string;
311
  repoType: string;
312
  interfaceIdOld: string;
313
  groupByXpath: string;
314
  metadataPrefix: string;
315
  records: number;
316
  registration: boolean;
317
  updateExisting: boolean;
318
  cris: boolean;
319
  crisReferentialChecks: boolean;
320
  selectedCrisEntities: string[];
321
  selectedContentRules: number[];
322
  selectedUsageRules: number[];
323
  adminEmails: string[];
324
}
325

    
326
export class JobResultEntry implements IsSerializable {
327
  name: string;
328
  description: string;
329
  successes: string;
330
  weight: number;
331
  errors: string[];
332
  ruleId: number;
333
  hasErrors: boolean;
334
  mandatory: boolean;
335
  type: string;
336
}
337

    
338
export class Rule implements IsSerializable {
339
  id: number;
340
  name: string;
341
  description: string;
342
  type: string;
343
  mandatory: boolean;
344
  weight: number;
345
  provider_information: string;
346
  job_type: string;
347
  entity_type: string;
348
  for_cris: boolean;
349
  configuration: CustomProperties;
350
}
351

    
352
export class RuleSet implements Serializable, IsSerializable {
353
  id: number;
354
  name: string;
355
  description: string;
356
  guidelinesAcronym: string;
357
  shortName: string;
358
  visibility: string[];
359
  contentRules: Rule[];
360
  usageRules: Rule[];
361
  contentRulesIds: number[];
362
  usageRulesIds: number[];
363
}
364

    
365
export class StoredJob extends JobForValidation implements IsSerializable {
366
  contentJobStatus: string;
367
  usageJobStatus: string;
368
  started: string;
369
  ended: string;
370
  duration: string;
371
  error: string;
372
  validationType: string;
373
  jobType: string;
374
  guidelinesShortName: string;
375
  validationStatus: string;
376
  recordsTested: number;
377
  id: number;
378
  contentJobScore: number;
379
  usageJobScore: number;
380
  rules: number[];
381
  resultEntries: JobResultEntry[];
382
  filteredScores: { [index: string]: number };
383
}
384

    
385
export class AdvQueryObject implements IsSerializable {
386
  datasource: string;
387
  topic: string;
388
  titles: string[];
389
  subjects: string[];
390
  authors: string[];
391
  dates: Range[];
392
  trust: Range;
393
  page: number;
394
}
395

    
396
export class BrowseEntry implements Comparable<BrowseEntry>, IsSerializable {
397
  value: string;
398
  size: number;
399
}
400

    
401
export class ConditionParams implements IsSerializable {
402
  value: string;
403
  otherValue: string;
404
}
405

    
406
export class OaBrokerRelatedDataset implements IsSerializable {
407
  openaireId: string;
408
  originalId: string;
409
  title: string;
410
  collectedFrom: string;
411
  pids: OaBrokerTypedValue[];
412
  instances: OaBrokerInstance[];
413
}
414

    
415
export class DatasourcesBroker implements IsSerializable {
416
  datasourcesOfUser: Tuple<BrowseEntry, string>[];
417
  sharedDatasources: Tuple<BrowseEntry, string>[];
418
  datasourcesOfOthers: Tuple<BrowseEntry, string>[];
419
}
420

    
421
export class OaBrokerRelatedDatasource implements IsSerializable {
422
  openaireId: string;
423
  name: string;
424
  type: string;
425
  relType: string;
426
}
427

    
428
export class EventsPage implements IsSerializable {
429
  datasource: string;
430
  topic: string;
431
  currPage: number;
432
  totalPages: number;
433
  total: number;
434
  values: OaBrokerEventPayload[];
435
}
436

    
437
export class OaBrokerExternalReference implements IsSerializable {
438
  url: string;
439
  sitename: string;
440
  type: string;
441
  refidentifier: string;
442
}
443

    
444
export class OaBrokerInstance implements IsSerializable {
445
  url: string;
446
  license: string;
447
  hostedby: string;
448
  instancetype: string;
449
}
450

    
451
export class OaBrokerJournal implements IsSerializable {
452
  name: string;
453
  issn: string;
454
  eissn: string;
455
  lissn: string;
456
}
457

    
458
export class MapConditions implements IsSerializable {
459
  field: string;
460
  fieldType: MapValueType;
461
  operator: ConditionOperator;
462
  listParams: ConditionParams[];
463
}
464

    
465
export class OaBrokerEventPayload implements IsSerializable {
466
  result: OaBrokerMainEntity; // old publication: Publication; ??
467
  highlight: OaBrokerMainEntity;
468
  provenance: OaBrokerProvenance;
469
  trust: number;
470
}
471

    
472
export class OaBrokerAuthor implements IsSerializable {
473
  fullname: string;
474
  orcid: string;
475
}
476

    
477
export class OpenaireSubscription implements IsSerializable {
478
  subscriber: string;
479
  frequency: NotificationFrequency;
480
  mode: NotificationMode;
481
  query: AdvQueryObject;
482
}
483

    
484
export class OaBrokerTypedValue implements IsSerializable {
485
  value: string;
486
  type: string;
487
}
488

    
489
export class OaBrokerProject implements IsSerializable {
490
  openaireId: string;
491
  code: string;
492
  acronym: string;
493
  title: string;
494
  funder: string;
495
  fundingProgram: string;
496
  jurisdiction: string;
497
}
498

    
499
export class OaBrokerProvenance implements IsSerializable {
500
  repositoryName: string;
501
  repositoryType: string;
502
  url: string;
503
  id: string;
504
}
505

    
506
export class OaBrokerRelatedPublication implements IsSerializable {
507
  openaireId: string;
508
  originalId: string;
509
  title: string;
510
  collectedFrom: string;
511
  pids: OaBrokerTypedValue[];
512
  instances: OaBrokerInstance[];
513
  relType: string;
514
}
515

    
516
export class OaBrokerMainEntity implements IsSerializable {
517
  openaireId: string;
518
  originalId: string;
519
  typology: string;
520
  titles: string[];
521
  abstracts: string[];
522
  language: string;
523
  subjects: OaBrokerTypedValue[];
524
  creators: OaBrokerAuthor[];
525
  publicationdate: string;
526
  publisher: string;
527
  embargoenddate: string;
528
  contributor: string[];
529
  journal: OaBrokerJournal;
530
  pids: OaBrokerTypedValue[];
531
  instances: OaBrokerInstance[];
532
  externalReferences: OaBrokerExternalReference[];
533
  publications: OaBrokerRelatedPublication[];
534
  projects: OaBrokerProject[];
535
  datasets: OaBrokerRelatedDataset[];
536
  softwares: OaBrokerRelatedSoftware[];
537
  datasources: OaBrokerRelatedDatasource[];
538
}
539

    
540
export class Range implements IsSerializable {
541
  min: string;
542
  max: string;
543
}
544

    
545
export class SimpleSubscriptionDesc implements IsSerializable {
546
  id: string;
547
  datasource: string;
548
  topic: string;
549
  count: number;
550
  creationDate: Date;
551
  lastNotificationDate: Date;
552
}
553

    
554
export class OaBrokerRelatedSoftware implements IsSerializable {
555
  openaireId: string;
556
  name: string;
557
  description: string;
558
  landingPage: string;
559
  repository: string;
560
}
561

    
562
export class Subscription implements IsSerializable {
563
  subscriptionId: string;
564
  subscriber: string;
565
  topic: string;
566
  frequency: NotificationFrequency;
567
  mode: NotificationMode;
568
  creationDate: Date;
569
  lastNotificationDate: Date;
570
  conditions: string;
571
  conditionsAsList: MapConditions[];
572
}
573

    
574
export class LayoutField {
575
  name: string;
576
  xpath: string;
577
  type: string;
578
  indexable: boolean;
579
  result: boolean;
580
  stat: boolean;
581
  tokenizable: boolean;
582
}
583

    
584
export interface IsSerializable {
585
}
586

    
587
export interface Serializable {
588
}
589

    
590
export interface SearchCriteria {
591
}
592

    
593
export class EPR {
594
  epr: string;
595
  address: string;
596
  serviceName: string;
597
  endpointName: string;
598
  parameterNames: string[];
599
}
600

    
601
export class Tuple<K, V> implements IsSerializable {
602
  first: K;
603
  second: V;
604
}
605

    
606
export interface Comparator<T> {
607
}
608

    
609
export interface Comparable<T> {
610
}
611

    
612
export type ConditionOperator = 'EXACT' | 'MATCH_ANY' | 'MATCH_ALL' | 'RANGE';
613

    
614
export type MapValueType =
615
  'STRING'
616
  | 'INTEGER'
617
  | 'FLOAT'
618
  | 'DATE'
619
  | 'BOOLEAN'
620
  | 'LIST_STRING'
621
  | 'LIST_INTEGER'
622
  | 'LIST_FLOAT'
623
  | 'LIST_DATE'
624
  | 'LIST_BOOLEAN';
625

    
626
export type NotificationFrequency = 'never' | 'realtime' | 'daily' | 'weekly' | 'monthly';
627

    
628
export type NotificationMode = 'MOCK' | 'EMAIL';
629

    
630
export type Action = 'CREATE' | 'DELETE' | 'UPDATE' | 'MANAGE' | 'RELEASE' | 'CANCEL';
631

    
632
export type ActionStatus = 'DONE' | 'ONGOING' | 'FAILED' | 'WAITING' | 'ASSIGNED';
633

    
634

    
635
export class Country {
636
  name: string;
637
  code: string;
638
}
639

    
640
export class Term implements IsSerializable {
641
  englishName: string;
642
  nativeName: string;
643
  encoding: string;
644
  code: string;
645
}
646

    
647
export class Timezone {
648
  name: string;
649
  offset: number;
650
}
651

    
652
export class InterfaceInformation implements IsSerializable {
653

    
654
  identified: boolean;
655
  sets: string[];
656
  adminEmails: string[];
657
}
658

    
659
export class JobsOfUser implements IsSerializable {
660
  totalJobs: number;
661
  totalJobsSuccessful: number;
662
  totalJobsFailed: number;
663
  totalJobsOngoing: number;
664

    
665
  jobs: StoredJob[];
666
}
667

    
668
export class MetricsNumbers implements IsSerializable {
669
  downloads: string[];
670
  pageviews: string;
671
  total_downloads: string;
672
  total_openaire_downloads: string;
673
  total_openaire_views: string;
674
  total_views: string;
675
  views: string[];
676
}
677

    
678
export class MetricsInfo implements IsSerializable {
679
  diagramsBaseURL: string;
680
  metricsNumbers: MetricsNumbers;
681
}
682

    
683
export class Typology {
684
  value: string;
685
  name: string;
686
}
687

    
688
export class AggregationDetails implements IsSerializable {
689
  aggregationStage: string;
690
  date: Date;
691
  numberOfRecords: number;
692
  collectionMode: string;
693
  indexedVersion: boolean;
694
}
695

    
696
export class Aggregations implements IsSerializable {
697
  aggregationHistory: AggregationDetails[];
698
  lastCollection: AggregationDetails[];
699
  lastTransformation: AggregationDetails[];
700
}
701

    
702
export class UserInfo implements IsSerializable {
703
  sub: string;
704
  role: string[];
705
  name: string;
706
  email: string;
707
}
708

    
709
export class UsageStatsSummary implements IsSerializable {
710
  literature: string;
711
  aggregators: string;
712
  journal: string;
713
  software: string;
714
  lastYearUsagestats: { number: string; year: number; };
715
  usagestats: string;
716
  dataRepositories: string;
717
  datasets: string;
718
  publications: string;
719
}
720

    
721
export class RepositorySummaryInfo {
722
  id: string;
723
  repositoryName: string;
724
  logoURL: string;
725
  recordsCollected: number;
726
  lastIndexedVersion: Date;
727
  enrichmentEvents: number;
728
  totalViews: string;
729
  totalDownloads: string;
730
}
731

    
732
export class UsageSummary {
733
  metricsInfo: MetricsInfo;
734
  piwikInfo: PiwikInfo;
735
}
736

    
737
export class BrokerSummary {
738
  userSubs: Map<string, SimpleSubscriptionDesc[]>;
739
  topicsForDatasource: BrowseEntry[];
740
}
741

    
742
export class CollectionMonitorSummary {
743
  aggregationDetails: AggregationDetails[];
744
  lastIndexedVersion: AggregationDetails;
745
}
746

    
747
export class User {
748
  sub: string;
749
  firstName: string;
750
  lastName: string;
751
  email: string;
752
}
753

    
754
export class OrganizationDetails {
755
  legalshortname: string;
756
  legalname: string;
757
  websiteurl: string;
758
  logourl: string;
759
  country: string;
760
}
761

    
762
export class IdentitiesDetails {
763
  pid: string;
764
  issuertype: string;
765
}
(6-6/11)