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

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

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

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

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

    
179
export class RepositoryInterface implements Serializable, IsSerializable {
180
    desiredCompatibilityLevel: string = '';
181
    complianceName: string = null;
182
    upgradeToV3: string = '';
183
    deleteApi: boolean = false;
184
    accessSet: string = '';
185
    accessFormat: string = '';
186
    metadataIdentifierPath: string = '';
187
    lastCollectionDate: string = '';
188
    nextScheduledExecution: string = '';
189
    status: string = '';
190
    collectedFrom: string = '';
191
    id: string = '';
192
    typology: string = '';
193
    compliance: string = 'UNKNOWN';
194
    contentDescription: string = '';
195
    accessProtocol: string = 'oai';
196
    baseUrl: string = '';
197
    active: boolean = false;
198
    removable: boolean = false;
199
    accessParams: { [index: string]: string } = {};
200
    extraFields: { [index: string]: string } = {};
201
}
202

    
203
export class SearchCriteriaImpl implements SearchCriteria {
204
    startsWith: string;
205
    endsWith: string;
206
    contains: string;
207
}
208

    
209
export class RepositorySearchCriteria extends SearchCriteriaImpl implements SearchCriteria {
210
    haveDocuments: boolean;
211
    protocolType: string;
212
    adminInfo: string;
213
    officialName: string;
214
    registeredBy: string;
215
    country: string;
216
    verified: boolean;
217
}
218

    
219
export class SearchResult {
220
    query: string;
221
    locale: string;
222
    total: number;
223
    page: number;
224
    size: number;
225
    fields: string[];
226
    searchResults: string[];
227
    browseResults: string[];
228
}
229

    
230
export class SimilarDocument {
231
    id: string;
232
    score: number;
233
}
234

    
235
export class StoreInfo {
236
    serviceUrl: string;
237
    storeId: string;
238
}
239

    
240
export class StoreObjectInfo {
241
    storeInfo: StoreInfo;
242
    objectId: string;
243
}
244

    
245
export class SuggestiveResult {
246
    epr: EPR;
247
    alternativeTerm: string;
248
    autofollow: boolean;
249
}
250

    
251
export class CustomProperties implements IsSerializable {
252
    properties: { [index: string]: string };
253
}
254

    
255
export class JobForValidation implements IsSerializable {
256
    officialName: string;
257
    baseUrl: string;
258
    userEmail: string;
259
    validationSet: string;
260
    datasourceId: string;
261
    interfaceId: string;
262
    desiredCompatibilityLevel: string;
263
    activationId: string;
264
    repoType: string;
265
    interfaceIdOld: string;
266
    groupByXpath: string;
267
    metadataPrefix: string;
268
    records: number;
269
    registration: boolean;
270
    updateExisting: boolean;
271
    cris: boolean;
272
    crisReferentialChecks: boolean;
273
    selectedCrisEntities: string[];
274
    selectedContentRules: number[];
275
    selectedUsageRules: number[];
276
    adminEmails: string[];
277
}
278

    
279
export class JobResultEntry implements IsSerializable {
280
    name: string;
281
    description: string;
282
    successes: string;
283
    weight: number;
284
    errors: string[];
285
    ruleId: number;
286
    hasErrors: boolean;
287
    mandatory: boolean;
288
    type: string;
289
}
290

    
291
export class Rule implements IsSerializable {
292
    id: number;
293
    name: string;
294
    description: string;
295
    type: string;
296
    mandatory: boolean;
297
    weight: number;
298
    provider_information: string;
299
    job_type: string;
300
    entity_type: string;
301
    for_cris: boolean;
302
    configuration: CustomProperties;
303
}
304

    
305
export class RuleSet implements Serializable, IsSerializable {
306
    id: number;
307
    name: string;
308
    description: string;
309
    guidelinesAcronym: string;
310
    shortName: string;
311
    visibility: string[];
312
    contentRules: Rule[];
313
    usageRules: Rule[];
314
    contentRulesIds: number[];
315
    usageRulesIds: number[];
316
}
317

    
318
export class StoredJob extends JobForValidation implements IsSerializable {
319
    contentJobStatus: string;
320
    usageJobStatus: string;
321
    started: string;
322
    ended: string;
323
    duration: string;
324
    error: string;
325
    validationType: string;
326
    jobType: string;
327
    guidelinesShortName: string;
328
    validationStatus: string;
329
    recordsTested: number;
330
    id: number;
331
    contentJobScore: number;
332
    usageJobScore: number;
333
    rules: number[];
334
    resultEntries: JobResultEntry[];
335
    filteredScores: { [index: string]: number };
336
}
337

    
338
export class AdvQueryObject implements IsSerializable {
339
    datasource: string;
340
    topic: string;
341
    titles: string[];
342
    subjects: string[];
343
    authors: string[];
344
    dates: Range[];
345
    trust: Range;
346
    page: number;
347
}
348

    
349
export class BrowseEntry implements Comparable<BrowseEntry>, IsSerializable {
350
    value: string;
351
    size: number;
352
}
353

    
354
export class ConditionParams implements IsSerializable {
355
    value: string;
356
    otherValue: string;
357
}
358

    
359
export class Dataset implements IsSerializable {
360
    titles: string[];
361
    collectedFrom: string[];
362
    pids: Pid[];
363
    instances: Instance[];
364
}
365

    
366
export class DatasourcesBroker implements IsSerializable {
367
    datasourcesOfUser: Tuple<BrowseEntry, string>[];
368
    sharedDatasources: Tuple<BrowseEntry, string>[];
369
    datasourcesOfOthers: Tuple<BrowseEntry, string>[];
370
}
371

    
372
export class EventsPage implements IsSerializable {
373
    datasource: string;
374
    topic: string;
375
    currPage: number;
376
    totalPages: number;
377
    total: number;
378
    values: OpenAireEventPayload[];
379
}
380

    
381
export class ExternalReference implements IsSerializable {
382
    url: string;
383
    sitename: string;
384
    type: string;
385
    refidentifier: string;
386
}
387

    
388
export class Instance implements IsSerializable {
389
    url: string;
390
    license: string;
391
    hostedby: string;
392
    instancetype: string;
393
}
394

    
395
export class Journal implements IsSerializable {
396
    name: string;
397
    issn: string;
398
    eissn: string;
399
    lissn: string;
400
}
401

    
402
export class MapConditions implements IsSerializable {
403
    field: string;
404
    fieldType: MapValueType;
405
    operator: ConditionOperator;
406
    listParams: ConditionParams[];
407
}
408

    
409
export class OpenAireEventPayload implements IsSerializable {
410
    publication: Publication;
411
    highlight: Publication;
412
    provenance: Provenance;
413
    trust: number;
414
}
415

    
416
export class OpenaireSubscription implements IsSerializable {
417
    subscriber: string;
418
    frequency: NotificationFrequency;
419
    mode: NotificationMode;
420
    query: AdvQueryObject;
421
}
422

    
423
export class Pid implements IsSerializable {
424
    value: string;
425
    type: string;
426
}
427

    
428
export class Project implements IsSerializable {
429
    code: string;
430
    acronym: string;
431
    title: string;
432
    funder: string;
433
    fundingProgram: string;
434
    jurisdiction: string;
435
}
436

    
437
export class Provenance implements IsSerializable {
438
    repositoryName: string;
439
    url: string;
440
    id: string;
441
}
442

    
443
export class Publication implements IsSerializable {
444
    originalId: string;
445
    titles: string[];
446
    abstracts: string[];
447
    language: string;
448
    subjects: string[];
449
    creators: string[];
450
    publicationdate: string;
451
    publisher: string;
452
    embargoenddate: string;
453
    contributor: string[];
454
    journal: Journal;
455
    collectedFrom: string[];
456
    pids: Pid[];
457
    instances: Instance[];
458
    externalReferences: ExternalReference[];
459
    projects: Project[];
460
    datasets: Dataset[];
461
}
462

    
463
export class Range implements IsSerializable {
464
    min: string;
465
    max: string;
466
}
467

    
468
export class SimpleSubscriptionDesc implements IsSerializable {
469
    id: string;
470
    datasource: string;
471
    topic: string;
472
    count: number;
473
    creationDate: Date;
474
    lastNotificationDate: Date;
475
}
476

    
477
export class Subscription implements IsSerializable {
478
    subscriptionId: string;
479
    subscriber: string;
480
    topic: string;
481
    frequency: NotificationFrequency;
482
    mode: NotificationMode;
483
    creationDate: Date;
484
    lastNotificationDate: Date;
485
    conditions: string;
486
    conditionsAsList: MapConditions[];
487
}
488

    
489
export class LayoutField {
490
    name: string;
491
    xpath: string;
492
    type: string;
493
    indexable: boolean;
494
    result: boolean;
495
    stat: boolean;
496
    tokenizable: boolean;
497
}
498

    
499
export interface IsSerializable {
500
}
501

    
502
export interface Serializable {
503
}
504

    
505
export interface SearchCriteria {
506
}
507

    
508
export class EPR {
509
    epr: string;
510
    address: string;
511
    serviceName: string;
512
    endpointName: string;
513
    parameterNames: string[];
514
}
515

    
516
export class Tuple<K, V> implements IsSerializable {
517
    first: K;
518
    second: V;
519
}
520

    
521
export interface Comparator<T> {
522
}
523

    
524
export interface Comparable<T> {
525
}
526

    
527
export type ConditionOperator = "EXACT" | "MATCH_ANY" | "MATCH_ALL" | "RANGE";
528

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

    
531
export type NotificationFrequency = "never" | "realtime" | "daily" | "weekly" | "monthly";
532

    
533
export type NotificationMode = "MOCK" | "EMAIL";
534

    
535
export type Action = "CREATE" | "DELETE" | "UPDATE" | "MANAGE" | "RELEASE" | "CANCEL";
536

    
537
export type ActionStatus = "DONE" | "ONGOING" | "FAILED" | "WAITING" | "ASSIGNED";
538

    
539

    
540

    
541
/*ADDITIONAL CLASSES -- added by myrto --*/
542

    
543
export class Country {
544
  name: string;
545
  code: string;
546
}
547

    
548
export class Term implements IsSerializable {
549
  englishName: string;
550
  nativeName: string;
551
  encoding: string;
552
  code: string;
553
}
554

    
555
export class Timezone {
556
  name: string;
557
  offset: number;
558
}
559

    
560
export class InterfaceInformation implements IsSerializable {
561

    
562
  identified: boolean;
563
  sets: string[];
564
  adminEmails: string[];
565
}
566

    
567
export class JobsOfUser implements IsSerializable {
568
  totalJobs: number;
569
  totalJobsSuccessful: number;
570
  totalJobsFailed: number;
571
  totalJobsOngoing: number;
572

    
573
  jobs: StoredJob[];
574
}
575

    
576
export class MetricsNumbers implements IsSerializable {
577
  downloads: string[];
578
  pageviews: string;
579
  total_downloads: string;
580
  total_openaire_downloads: string;
581
  total_openaire_views: string;
582
  total_views: string;
583
  views: string[];
584
}
585

    
586
export class MetricsInfo implements IsSerializable {
587
  diagramsBaseURL: string;
588
  metricsNumbers: MetricsNumbers;
589
}
(8-8/11)