Revision 59399
Added by Andreas Mantas over 3 years ago
typeScriptClasses.ts | ||
---|---|---|
384 | 384 |
otherValue: string; |
385 | 385 |
} |
386 | 386 |
|
387 |
export class Dataset implements IsSerializable { |
|
388 |
titles: string[]; |
|
389 |
collectedFrom: string[]; |
|
390 |
pids: Pid[]; |
|
391 |
instances: Instance[]; |
|
387 |
export class OaBrokerRelatedDataset implements IsSerializable { |
|
388 |
openaireId: string; |
|
389 |
originalId: string; |
|
390 |
title: string; |
|
391 |
collectedFrom: string; |
|
392 |
pids: OaBrokerTypedValue[]; |
|
393 |
instances: OaBrokerInstance[]; |
|
392 | 394 |
} |
393 | 395 |
|
394 | 396 |
export class DatasourcesBroker implements IsSerializable { |
... | ... | |
397 | 399 |
datasourcesOfOthers: Tuple<BrowseEntry, string>[]; |
398 | 400 |
} |
399 | 401 |
|
402 |
export class OaBrokerRelatedDatasource implements IsSerializable { |
|
403 |
openaireId: string; |
|
404 |
name: string; |
|
405 |
type: string; |
|
406 |
relType: string; |
|
407 |
} |
|
408 |
|
|
400 | 409 |
export class EventsPage implements IsSerializable { |
401 | 410 |
datasource: string; |
402 | 411 |
topic: string; |
403 | 412 |
currPage: number; |
404 | 413 |
totalPages: number; |
405 | 414 |
total: number; |
406 |
values: OpenAireEventPayload[];
|
|
415 |
values: OaBrokerEventPayload[];
|
|
407 | 416 |
} |
408 | 417 |
|
409 |
export class ExternalReference implements IsSerializable { |
|
418 |
export class OaBrokerExternalReference implements IsSerializable {
|
|
410 | 419 |
url: string; |
411 | 420 |
sitename: string; |
412 | 421 |
type: string; |
413 | 422 |
refidentifier: string; |
414 | 423 |
} |
415 | 424 |
|
416 |
export class Instance implements IsSerializable { |
|
425 |
export class OaBrokerInstance implements IsSerializable {
|
|
417 | 426 |
url: string; |
418 | 427 |
license: string; |
419 | 428 |
hostedby: string; |
420 | 429 |
instancetype: string; |
421 | 430 |
} |
422 | 431 |
|
423 |
export class Journal implements IsSerializable { |
|
432 |
export class OaBrokerJournal implements IsSerializable {
|
|
424 | 433 |
name: string; |
425 | 434 |
issn: string; |
426 | 435 |
eissn: string; |
... | ... | |
434 | 443 |
listParams: ConditionParams[]; |
435 | 444 |
} |
436 | 445 |
|
437 |
export class OpenAireEventPayload implements IsSerializable {
|
|
438 |
publication: Publication;
|
|
439 |
highlight: Publication;
|
|
440 |
provenance: Provenance; |
|
446 |
export class OaBrokerEventPayload implements IsSerializable {
|
|
447 |
result: OaBrokerMainEntity; // old publication: Publication; ??
|
|
448 |
highlight: OaBrokerMainEntity;
|
|
449 |
provenance: OaBrokerProvenance;
|
|
441 | 450 |
trust: number; |
442 | 451 |
} |
443 | 452 |
|
453 |
export class OaBrokerAuthor implements IsSerializable { |
|
454 |
fullname: string; |
|
455 |
orcid: string; |
|
456 |
} |
|
457 |
|
|
444 | 458 |
export class OpenaireSubscription implements IsSerializable { |
445 | 459 |
subscriber: string; |
446 | 460 |
frequency: NotificationFrequency; |
... | ... | |
448 | 462 |
query: AdvQueryObject; |
449 | 463 |
} |
450 | 464 |
|
451 |
export class Pid implements IsSerializable {
|
|
465 |
export class OaBrokerTypedValue implements IsSerializable {
|
|
452 | 466 |
value: string; |
453 | 467 |
type: string; |
454 | 468 |
} |
455 | 469 |
|
456 |
export class Project implements IsSerializable { |
|
470 |
export class OaBrokerProject implements IsSerializable { |
|
471 |
openaireId: string; |
|
457 | 472 |
code: string; |
458 | 473 |
acronym: string; |
459 | 474 |
title: string; |
... | ... | |
462 | 477 |
jurisdiction: string; |
463 | 478 |
} |
464 | 479 |
|
465 |
export class Provenance implements IsSerializable { |
|
480 |
export class OaBrokerProvenance implements IsSerializable {
|
|
466 | 481 |
repositoryName: string; |
482 |
repositoryType: string; |
|
467 | 483 |
url: string; |
468 | 484 |
id: string; |
469 | 485 |
} |
470 | 486 |
|
471 |
export class Publication implements IsSerializable { |
|
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; |
|
472 | 499 |
originalId: string; |
500 |
typology: string; |
|
473 | 501 |
titles: string[]; |
474 | 502 |
abstracts: string[]; |
475 | 503 |
language: string; |
476 |
subjects: string[];
|
|
477 |
creators: string[];
|
|
504 |
subjects: OaBrokerTypedValue[];
|
|
505 |
creators: OaBrokerAuthor[];
|
|
478 | 506 |
publicationdate: string; |
479 | 507 |
publisher: string; |
480 | 508 |
embargoenddate: string; |
481 | 509 |
contributor: string[]; |
482 |
journal: Journal; |
|
483 |
collectedFrom: string[];
|
|
484 |
pids: Pid[];
|
|
485 |
instances: Instance[];
|
|
486 |
externalReferences: ExternalReference[];
|
|
487 |
publications: Publication[];
|
|
488 |
projects: Project[];
|
|
489 |
datasets: Dataset[];
|
|
490 |
softwares: Software[];
|
|
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[];
|
|
491 | 519 |
} |
492 | 520 |
|
493 | 521 |
export class Range implements IsSerializable { |
... | ... | |
504 | 532 |
lastNotificationDate: Date; |
505 | 533 |
} |
506 | 534 |
|
507 |
export class Software implements IsSerializable { |
|
535 |
export class OaBrokerRelatedSoftware implements IsSerializable { |
|
536 |
openaireId: string; |
|
508 | 537 |
name: string; |
509 | 538 |
description: string; |
510 | 539 |
landingPage: string; |
Also available in: Unified diff
changes on data model for Broker