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
  interfaces: RepositoryInterface[];
122
  piwikInfo: PiwikInfo;
123
  environments: string[];
124
  namespacePrefix: string;
125
  dateOfValidation: Date;
126
  dateOfCollection: Date;
127
  dataCollectionTypes: DataCollectionType[];
128
}
129

    
130
export class RepositorySnippet {
131
  id: string;
132
  officialname: string;
133
  englishname: string;
134
  websiteurl: string;
135
  registeredby: string;
136
  registrationdate: Date;
137
  eoscDatasourceType: string;
138
  logoUrl: string;
139
  description: string;
140
  consentTermsOfUse: boolean;
141
  consentTermsOfUseDate: Date;
142
  lastConsentTermsOfUseDate: Date;
143
  fullTextDownload: boolean;
144
  organizations: OrganizationDetails[];
145
  typology: string;
146
  piwikInfo: PiwikInfo;
147
}
148

    
149
export class TermsOfUse {
150
  id: string;
151
  name: string;
152
  consentTermsOfUse: boolean;
153
  fullTextDownload: boolean;
154
  consentTermsOfUseDate: Date;
155
}
156

    
157
export class RepositoryAccessProtocol {
158
  value: string;
159
  username: string;
160
  password: string;
161
  filter: string;
162
}
163

    
164
export class RepositoryBlackboard {
165
  lastrequest: string;
166
  lastresponse: string;
167
  messages: RepositoryBlackboardMessage[];
168
}
169

    
170
export class RepositoryBlackboardMessage {
171
  id: string;
172
  action: Action;
173
  actionStatus: ActionStatus;
174
  parameters: string[];
175
}
176

    
177
export class RepositoryComparator implements Comparator<Repository> {
178
}
179

    
180
// export class RepositoryInterface implements Serializable, IsSerializable {
181
//   desiredCompatibilityLevel: string;
182
//   complianceName: string;
183
//   upgradeToV3: string;
184
//   deleteApi: boolean;
185
//   accessSet: string;
186
//   accessFormat: string;
187
//   metadataIdentifierPath: string;
188
//   lastCollectionDate: string;
189
//   nextScheduledExecution: string;
190
//   status: string;
191
//   collectedFrom: string;
192
//   id: string;
193
//   typology: string;
194
//   compatibility: string;
195
//   contentdescription: string;
196
//   protocol: string;
197
//   baseurl: string;
198
//   active: boolean;
199
//   removable: boolean;
200
//   apiParams: { [index: string]: string };
201
//   extraFields: { [index: string]: string };
202
//   comments: string;
203
// }
204

    
205
export class ApiDetails {
206
  id: string;
207
  protocol: string;
208
  datasource: string;
209
  contentdescription: string;
210
  eoscDatasourceType: string;
211
  compatibility: string;
212
  compatibilityOverride: string;
213
  lastCollectionTotal: number;
214
  lastCollectionDate: Date;
215
  lastAggregationTotal: number;
216
  lastAggregationDate: Date;
217
  lastDownloadTotal: number;
218
  lastDownloadDate: Date;
219
  baseurl: string;
220
  removable: boolean;
221
  apiParams: ApiParamDetails[] = new Array<ApiParamDetails>();
222
  metadataIdentifierPath: string;
223
  typology: string;
224
  comments: string;
225
}
226

    
227
export class RepositoryInterface extends ApiDetails {
228

    
229
}
230

    
231
export class ApiParamDetails {
232
  param: string;
233
  value: string;
234

    
235
  constructor(param, value) {
236
    this.param = param;
237
    this.value = value;
238
  }
239

    
240
}
241

    
242
export class SearchCriteriaImpl implements SearchCriteria {
243
  startsWith: string;
244
  endsWith: string;
245
  contains: string;
246
}
247

    
248
export class RepositorySearchCriteria extends SearchCriteriaImpl implements SearchCriteria {
249
  haveDocuments: boolean;
250
  protocolType: string;
251
  adminInfo: string;
252
  officialName: string;
253
  registeredBy: string;
254
  country: string;
255
  verified: boolean;
256
}
257

    
258
export class SearchResult {
259
  query: string;
260
  locale: string;
261
  total: number;
262
  page: number;
263
  size: number;
264
  fields: string[];
265
  searchResults: string[];
266
  browseResults: string[];
267
}
268

    
269
export class SimilarDocument {
270
  id: string;
271
  score: number;
272
}
273

    
274
export class StoreInfo {
275
  serviceUrl: string;
276
  storeId: string;
277
}
278

    
279
export class StoreObjectInfo {
280
  storeInfo: StoreInfo;
281
  objectId: string;
282
}
283

    
284
export class SuggestiveResult {
285
  epr: EPR;
286
  alternativeTerm: string;
287
  autofollow: boolean;
288
}
289

    
290
export class CustomProperties implements IsSerializable {
291
  properties: { [index: string]: string };
292
}
293

    
294
export class JobForValidation implements IsSerializable {
295
  officialName: string;
296
  baseUrl: string;
297
  userEmail: string;
298
  validationSet: string;
299
  datasourceId: string;
300
  interfaceId: string;
301
  desiredCompatibilityLevel: string;
302
  activationId: string;
303
  repoType: string;
304
  interfaceIdOld: string;
305
  groupByXpath: string;
306
  metadataPrefix: string;
307
  records: number;
308
  registration: boolean;
309
  updateExisting: boolean;
310
  cris: boolean;
311
  crisReferentialChecks: boolean;
312
  selectedCrisEntities: string[];
313
  selectedContentRules: number[];
314
  selectedUsageRules: number[];
315
  adminEmails: string[];
316
}
317

    
318
export class JobResultEntry implements IsSerializable {
319
  name: string;
320
  description: string;
321
  successes: string;
322
  weight: number;
323
  errors: string[];
324
  ruleId: number;
325
  hasErrors: boolean;
326
  mandatory: boolean;
327
  type: string;
328
}
329

    
330
export class Rule implements IsSerializable {
331
  id: number;
332
  name: string;
333
  description: string;
334
  type: string;
335
  mandatory: boolean;
336
  weight: number;
337
  provider_information: string;
338
  job_type: string;
339
  entity_type: string;
340
  for_cris: boolean;
341
  configuration: CustomProperties;
342
}
343

    
344
export class RuleSet implements Serializable, IsSerializable {
345
  id: number;
346
  name: string;
347
  description: string;
348
  guidelinesAcronym: string;
349
  shortName: string;
350
  visibility: string[];
351
  contentRules: Rule[];
352
  usageRules: Rule[];
353
  contentRulesIds: number[];
354
  usageRulesIds: number[];
355
}
356

    
357
export class StoredJob extends JobForValidation implements IsSerializable {
358
  contentJobStatus: string;
359
  usageJobStatus: string;
360
  started: string;
361
  ended: string;
362
  duration: string;
363
  error: string;
364
  validationType: string;
365
  jobType: string;
366
  guidelinesShortName: string;
367
  validationStatus: string;
368
  recordsTested: number;
369
  id: number;
370
  contentJobScore: number;
371
  usageJobScore: number;
372
  rules: number[];
373
  resultEntries: JobResultEntry[];
374
  filteredScores: { [index: string]: number };
375
}
376

    
377
export class AdvQueryObject implements IsSerializable {
378
  datasource: string;
379
  topic: string;
380
  titles: string[];
381
  subjects: string[];
382
  authors: string[];
383
  dates: Range[];
384
  trust: Range;
385
  page: number;
386
}
387

    
388
export class BrowseEntry implements Comparable<BrowseEntry>, IsSerializable {
389
  value: string;
390
  size: number;
391
}
392

    
393
export class ConditionParams implements IsSerializable {
394
  value: string;
395
  otherValue: string;
396
}
397

    
398
export class OaBrokerRelatedDataset implements IsSerializable {
399
  openaireId: string;
400
  originalId: string;
401
  title: string;
402
  collectedFrom: string;
403
  pids: OaBrokerTypedValue[];
404
  instances: OaBrokerInstance[];
405
}
406

    
407
export class DatasourcesBroker implements IsSerializable {
408
  datasourcesOfUser: Tuple<BrowseEntry, string>[];
409
  sharedDatasources: Tuple<BrowseEntry, string>[];
410
  datasourcesOfOthers: Tuple<BrowseEntry, string>[];
411
}
412

    
413
export class OaBrokerRelatedDatasource implements IsSerializable {
414
  openaireId: string;
415
  name: string;
416
  type: string;
417
  relType: string;
418
}
419

    
420
export class EventsPage implements IsSerializable {
421
  datasource: string;
422
  topic: string;
423
  currPage: number;
424
  totalPages: number;
425
  total: number;
426
  values: OaBrokerEventPayload[];
427
}
428

    
429
export class OaBrokerExternalReference implements IsSerializable {
430
  url: string;
431
  sitename: string;
432
  type: string;
433
  refidentifier: string;
434
}
435

    
436
export class OaBrokerInstance implements IsSerializable {
437
  url: string;
438
  license: string;
439
  hostedby: string;
440
  instancetype: string;
441
}
442

    
443
export class OaBrokerJournal implements IsSerializable {
444
  name: string;
445
  issn: string;
446
  eissn: string;
447
  lissn: string;
448
}
449

    
450
export class MapConditions implements IsSerializable {
451
  field: string;
452
  fieldType: MapValueType;
453
  operator: ConditionOperator;
454
  listParams: ConditionParams[];
455
}
456

    
457
export class OaBrokerEventPayload implements IsSerializable {
458
  result: OaBrokerMainEntity; // old publication: Publication; ??
459
  highlight: OaBrokerMainEntity;
460
  provenance: OaBrokerProvenance;
461
  trust: number;
462
}
463

    
464
export class OaBrokerAuthor implements IsSerializable {
465
  fullname: string;
466
  orcid: string;
467
}
468

    
469
export class OpenaireSubscription implements IsSerializable {
470
  subscriber: string;
471
  frequency: NotificationFrequency;
472
  mode: NotificationMode;
473
  query: AdvQueryObject;
474
}
475

    
476
export class OaBrokerTypedValue implements IsSerializable {
477
  value: string;
478
  type: string;
479
}
480

    
481
export class OaBrokerProject implements IsSerializable {
482
  openaireId: string;
483
  code: string;
484
  acronym: string;
485
  title: string;
486
  funder: string;
487
  fundingProgram: string;
488
  jurisdiction: string;
489
}
490

    
491
export class OaBrokerProvenance implements IsSerializable {
492
  repositoryName: string;
493
  repositoryType: string;
494
  url: string;
495
  id: string;
496
}
497

    
498
export class OaBrokerRelatedPublication implements IsSerializable {
499
  openaireId: string;
500
  originalId: string;
501
  title: string;
502
  collectedFrom: string;
503
  pids: OaBrokerTypedValue[];
504
  instances: OaBrokerInstance[];
505
  relType: string;
506
}
507

    
508
export class OaBrokerMainEntity implements IsSerializable {
509
  openaireId: string;
510
  originalId: string;
511
  typology: string;
512
  titles: string[];
513
  abstracts: string[];
514
  language: string;
515
  subjects: OaBrokerTypedValue[];
516
  creators: OaBrokerAuthor[];
517
  publicationdate: string;
518
  publisher: string;
519
  embargoenddate: string;
520
  contributor: string[];
521
  journal: OaBrokerJournal;
522
  pids: OaBrokerTypedValue[];
523
  instances: OaBrokerInstance[];
524
  externalReferences: OaBrokerExternalReference[];
525
  publications: OaBrokerRelatedPublication[];
526
  projects: OaBrokerProject[];
527
  datasets: OaBrokerRelatedDataset[];
528
  softwares: OaBrokerRelatedSoftware[];
529
  datasources: OaBrokerRelatedDatasource[];
530
}
531

    
532
export class Range implements IsSerializable {
533
  min: string;
534
  max: string;
535
}
536

    
537
export class SimpleSubscriptionDesc implements IsSerializable {
538
  id: string;
539
  datasource: string;
540
  topic: string;
541
  count: number;
542
  creationDate: Date;
543
  lastNotificationDate: Date;
544
}
545

    
546
export class OaBrokerRelatedSoftware implements IsSerializable {
547
  openaireId: string;
548
  name: string;
549
  description: string;
550
  landingPage: string;
551
  repository: string;
552
}
553

    
554
export class Subscription implements IsSerializable {
555
  subscriptionId: string;
556
  subscriber: string;
557
  topic: string;
558
  frequency: NotificationFrequency;
559
  mode: NotificationMode;
560
  creationDate: Date;
561
  lastNotificationDate: Date;
562
  conditions: string;
563
  conditionsAsList: MapConditions[];
564
}
565

    
566
export class LayoutField {
567
  name: string;
568
  xpath: string;
569
  type: string;
570
  indexable: boolean;
571
  result: boolean;
572
  stat: boolean;
573
  tokenizable: boolean;
574
}
575

    
576
export interface IsSerializable {
577
}
578

    
579
export interface Serializable {
580
}
581

    
582
export interface SearchCriteria {
583
}
584

    
585
export class EPR {
586
  epr: string;
587
  address: string;
588
  serviceName: string;
589
  endpointName: string;
590
  parameterNames: string[];
591
}
592

    
593
export class Tuple<K, V> implements IsSerializable {
594
  first: K;
595
  second: V;
596
}
597

    
598
export interface Comparator<T> {
599
}
600

    
601
export interface Comparable<T> {
602
}
603

    
604
export type ConditionOperator = 'EXACT' | 'MATCH_ANY' | 'MATCH_ALL' | 'RANGE';
605

    
606
export type MapValueType =
607
  'STRING'
608
  | 'INTEGER'
609
  | 'FLOAT'
610
  | 'DATE'
611
  | 'BOOLEAN'
612
  | 'LIST_STRING'
613
  | 'LIST_INTEGER'
614
  | 'LIST_FLOAT'
615
  | 'LIST_DATE'
616
  | 'LIST_BOOLEAN';
617

    
618
export type NotificationFrequency = 'never' | 'realtime' | 'daily' | 'weekly' | 'monthly';
619

    
620
export type NotificationMode = 'MOCK' | 'EMAIL';
621

    
622
export type Action = 'CREATE' | 'DELETE' | 'UPDATE' | 'MANAGE' | 'RELEASE' | 'CANCEL';
623

    
624
export type ActionStatus = 'DONE' | 'ONGOING' | 'FAILED' | 'WAITING' | 'ASSIGNED';
625

    
626

    
627
export class Country {
628
  name: string;
629
  code: string;
630
}
631

    
632
export class Term implements IsSerializable {
633
  englishName: string;
634
  nativeName: string;
635
  encoding: string;
636
  code: string;
637
}
638

    
639
export class Timezone {
640
  name: string;
641
  offset: number;
642
}
643

    
644
export class InterfaceInformation implements IsSerializable {
645

    
646
  identified: boolean;
647
  sets: string[];
648
  adminEmails: string[];
649
}
650

    
651
export class JobsOfUser implements IsSerializable {
652
  totalJobs: number;
653
  totalJobsSuccessful: number;
654
  totalJobsFailed: number;
655
  totalJobsOngoing: number;
656

    
657
  jobs: StoredJob[];
658
}
659

    
660
export class MetricsNumbers implements IsSerializable {
661
  downloads: string[];
662
  pageviews: string;
663
  total_downloads: string;
664
  total_openaire_downloads: string;
665
  total_openaire_views: string;
666
  total_views: string;
667
  views: string[];
668
}
669

    
670
export class MetricsInfo implements IsSerializable {
671
  diagramsBaseURL: string;
672
  metricsNumbers: MetricsNumbers;
673
}
674

    
675
export class Typology {
676
  value: string;
677
  name: string;
678
}
679

    
680
export class AggregationDetails implements IsSerializable {
681
  aggregationStage: string;
682
  date: Date;
683
  numberOfRecords: number;
684
  collectionMode: string;
685
  indexedVersion: boolean;
686
}
687

    
688
export class Aggregations implements IsSerializable {
689
  aggregationHistory: AggregationDetails[];
690
  lastCollection: AggregationDetails[];
691
  lastTransformation: AggregationDetails[];
692
}
693

    
694
export class UserInfo implements IsSerializable {
695
  sub: string;
696
  role: string[];
697
  name: string;
698
  email: string;
699
}
700

    
701
export class UsageStatsSummary implements IsSerializable {
702
  literature: string;
703
  aggregators: string;
704
  journal: string;
705
  software: string;
706
  lastYearUsagestats: { number: string; year: number; };
707
  usagestats: string;
708
  dataRepositories: string;
709
  datasets: string;
710
  publications: string;
711
}
712

    
713
export class RepositorySummaryInfo {
714
  id: string;
715
  repositoryName: string;
716
  logoURL: string;
717
  recordsCollected: number;
718
  lastIndexedVersion: Date;
719
  enrichmentEvents: number;
720
  totalViews: string;
721
  totalDownloads: string;
722
}
723

    
724
export class UsageSummary {
725
  metricsInfo: MetricsInfo;
726
  piwikInfo: PiwikInfo;
727
}
728

    
729
export class BrokerSummary {
730
  userSubs: Map<string, SimpleSubscriptionDesc[]>;
731
  topicsForDatasource: BrowseEntry[];
732
}
733

    
734
export class CollectionMonitorSummary {
735
  aggregationDetails: AggregationDetails[];
736
  lastIndexedVersion: AggregationDetails;
737
}
738

    
739
export class User {
740
  sub: string;
741
  firstName: string;
742
  lastName: string;
743
  email: string;
744
}
745

    
746
export class OrganizationDetails {
747
  legalshortname: string;
748
  legalname: string;
749
  websiteurl: string;
750
  logourl: string;
751
  country: string;
752
}
753

    
754
export class IdentitiesDetails {
755
  pid: string;
756
  issuertype: string;
757
}
(6-6/11)