@se-uulm/snowballr-api-client 0.2.1-alpha.3ebad36 → 0.2.1-alpha.41d12d0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +111 -28
- package/dist/apis/AuthControllerApi.d.ts +64 -1
- package/dist/apis/AuthControllerApi.js +64 -18
- package/dist/apis/ProjectsControllerApi.d.ts +45 -73
- package/dist/apis/ProjectsControllerApi.js +51 -123
- package/dist/apis/UsersControllerApi.d.ts +9 -131
- package/dist/apis/UsersControllerApi.js +12 -199
- package/dist/apis/index.d.ts +0 -9
- package/dist/apis/index.js +0 -9
- package/dist/esm/apis/AuthControllerApi.d.ts +64 -1
- package/dist/esm/apis/AuthControllerApi.js +62 -16
- package/dist/esm/apis/ProjectsControllerApi.d.ts +45 -73
- package/dist/esm/apis/ProjectsControllerApi.js +47 -119
- package/dist/esm/apis/UsersControllerApi.d.ts +9 -131
- package/dist/esm/apis/UsersControllerApi.js +11 -198
- package/dist/esm/apis/index.d.ts +0 -9
- package/dist/esm/apis/index.js +0 -9
- package/dist/esm/models/ChangePasswordRequest.d.ts +0 -4
- package/dist/esm/models/CreateProjectRequest.d.ts +0 -2
- package/dist/esm/models/DecisionMatrixPattern.d.ts +0 -4
- package/dist/esm/models/DecisionMatrixPattern.js +1 -1
- package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +0 -4
- package/dist/esm/models/DecisionMatrixPatternEntry.js +1 -1
- package/dist/esm/models/LoginRequest.d.ts +0 -4
- package/dist/esm/models/ProjectResponse.d.ts +2 -53
- package/dist/esm/models/ProjectResponse.js +7 -22
- package/dist/esm/models/ProjectSettings.d.ts +60 -0
- package/dist/esm/models/{UpdateProjectSettingRequest.js → ProjectSettings.js} +12 -12
- package/dist/esm/models/RegisterRequest.d.ts +0 -8
- package/dist/esm/models/ReviewDecisionMatrix.d.ts +0 -4
- package/dist/esm/models/index.d.ts +1 -34
- package/dist/esm/models/index.js +1 -34
- package/dist/esm/runtime.d.ts +34 -1
- package/dist/esm/runtime.js +130 -4
- package/dist/models/ChangePasswordRequest.d.ts +0 -4
- package/dist/models/CreateProjectRequest.d.ts +0 -2
- package/dist/models/DecisionMatrixPattern.d.ts +0 -4
- package/dist/models/DecisionMatrixPattern.js +1 -1
- package/dist/models/DecisionMatrixPatternEntry.d.ts +0 -4
- package/dist/models/DecisionMatrixPatternEntry.js +1 -1
- package/dist/models/LoginRequest.d.ts +0 -4
- package/dist/models/ProjectResponse.d.ts +2 -53
- package/dist/models/ProjectResponse.js +8 -23
- package/dist/models/ProjectSettings.d.ts +60 -0
- package/dist/models/ProjectSettings.js +66 -0
- package/dist/models/RegisterRequest.d.ts +0 -8
- package/dist/models/ReviewDecisionMatrix.d.ts +0 -4
- package/dist/models/index.d.ts +1 -34
- package/dist/models/index.js +1 -34
- package/dist/runtime.d.ts +34 -1
- package/dist/runtime.js +136 -4
- package/package.json +2 -2
- package/dist/apis/CriterionControllerApi.d.ts +0 -108
- package/dist/apis/CriterionControllerApi.js +0 -151
- package/dist/apis/ExportControllerApi.d.ts +0 -70
- package/dist/apis/ExportControllerApi.js +0 -101
- package/dist/apis/FetcherControllerApi.d.ts +0 -86
- package/dist/apis/FetcherControllerApi.js +0 -125
- package/dist/apis/InvitationControllerApi.d.ts +0 -88
- package/dist/apis/InvitationControllerApi.js +0 -120
- package/dist/apis/PaperControllerApi.d.ts +0 -128
- package/dist/apis/PaperControllerApi.js +0 -179
- package/dist/apis/ProjectMemberControllerApi.d.ts +0 -92
- package/dist/apis/ProjectMemberControllerApi.js +0 -128
- package/dist/apis/ProjectPaperControllerApi.d.ts +0 -190
- package/dist/apis/ProjectPaperControllerApi.js +0 -266
- package/dist/apis/ReadingListControllerApi.d.ts +0 -102
- package/dist/apis/ReadingListControllerApi.js +0 -138
- package/dist/apis/ReviewControllerApi.d.ts +0 -88
- package/dist/apis/ReviewControllerApi.js +0 -122
- package/dist/esm/apis/CriterionControllerApi.d.ts +0 -108
- package/dist/esm/apis/CriterionControllerApi.js +0 -147
- package/dist/esm/apis/ExportControllerApi.d.ts +0 -70
- package/dist/esm/apis/ExportControllerApi.js +0 -97
- package/dist/esm/apis/FetcherControllerApi.d.ts +0 -86
- package/dist/esm/apis/FetcherControllerApi.js +0 -121
- package/dist/esm/apis/InvitationControllerApi.d.ts +0 -88
- package/dist/esm/apis/InvitationControllerApi.js +0 -116
- package/dist/esm/apis/PaperControllerApi.d.ts +0 -128
- package/dist/esm/apis/PaperControllerApi.js +0 -175
- package/dist/esm/apis/ProjectMemberControllerApi.d.ts +0 -92
- package/dist/esm/apis/ProjectMemberControllerApi.js +0 -124
- package/dist/esm/apis/ProjectPaperControllerApi.d.ts +0 -190
- package/dist/esm/apis/ProjectPaperControllerApi.js +0 -262
- package/dist/esm/apis/ReadingListControllerApi.d.ts +0 -102
- package/dist/esm/apis/ReadingListControllerApi.js +0 -134
- package/dist/esm/apis/ReviewControllerApi.d.ts +0 -88
- package/dist/esm/apis/ReviewControllerApi.js +0 -118
- package/dist/esm/models/AddPaperToProjectRequest.d.ts +0 -38
- package/dist/esm/models/AddPaperToProjectRequest.js +0 -43
- package/dist/esm/models/Author.d.ts +0 -38
- package/dist/esm/models/Author.js +0 -43
- package/dist/esm/models/CreateCriterionRequest.d.ts +0 -65
- package/dist/esm/models/CreateCriterionRequest.js +0 -57
- package/dist/esm/models/CreatePaperRequest.d.ts +0 -84
- package/dist/esm/models/CreatePaperRequest.js +0 -59
- package/dist/esm/models/CreateReviewRequest.d.ts +0 -53
- package/dist/esm/models/CreateReviewRequest.js +0 -53
- package/dist/esm/models/Criterion.d.ts +0 -77
- package/dist/esm/models/Criterion.js +0 -61
- package/dist/esm/models/ExternalId.d.ts +0 -53
- package/dist/esm/models/ExternalId.js +0 -57
- package/dist/esm/models/FetcherInformation.d.ts +0 -54
- package/dist/esm/models/FetcherInformation.js +0 -50
- package/dist/esm/models/FetcherInformationWithId.d.ts +0 -39
- package/dist/esm/models/FetcherInformationWithId.js +0 -44
- package/dist/esm/models/FetcherOptionsSchema.d.ts +0 -56
- package/dist/esm/models/FetcherOptionsSchema.js +0 -49
- package/dist/esm/models/FetcherPaperResponse.d.ts +0 -96
- package/dist/esm/models/FetcherPaperResponse.js +0 -63
- package/dist/esm/models/GetCriterionById200Response.d.ts +0 -23
- package/dist/esm/models/GetCriterionById200Response.js +0 -51
- package/dist/esm/models/InvitationResponse.d.ts +0 -80
- package/dist/esm/models/InvitationResponse.js +0 -67
- package/dist/esm/models/InviteUserRequest.d.ts +0 -32
- package/dist/esm/models/InviteUserRequest.js +0 -41
- package/dist/esm/models/Link.d.ts +0 -38
- package/dist/esm/models/Link.js +0 -43
- package/dist/esm/models/PaperResponse.d.ts +0 -96
- package/dist/esm/models/PaperResponse.js +0 -63
- package/dist/esm/models/ProjectCriterion.d.ts +0 -83
- package/dist/esm/models/ProjectCriterion.js +0 -63
- package/dist/esm/models/ProjectDecisionCount.d.ts +0 -48
- package/dist/esm/models/ProjectDecisionCount.js +0 -52
- package/dist/esm/models/ProjectDecisionStatistics.d.ts +0 -33
- package/dist/esm/models/ProjectDecisionStatistics.js +0 -42
- package/dist/esm/models/ProjectInformation.d.ts +0 -44
- package/dist/esm/models/ProjectInformation.js +0 -45
- package/dist/esm/models/ProjectMember.d.ts +0 -70
- package/dist/esm/models/ProjectMember.js +0 -59
- package/dist/esm/models/ProjectMemberWithUser.d.ts +0 -40
- package/dist/esm/models/ProjectMemberWithUser.js +0 -45
- package/dist/esm/models/ProjectPaperResponse.d.ts +0 -74
- package/dist/esm/models/ProjectPaperResponse.js +0 -62
- package/dist/esm/models/ReviewResponse.d.ts +0 -77
- package/dist/esm/models/ReviewResponse.js +0 -62
- package/dist/esm/models/UpdateCriterionRequest.d.ts +0 -65
- package/dist/esm/models/UpdateCriterionRequest.js +0 -57
- package/dist/esm/models/UpdateMemberRoleRequest.d.ts +0 -40
- package/dist/esm/models/UpdateMemberRoleRequest.js +0 -48
- package/dist/esm/models/UpdatePaperRequest.d.ts +0 -82
- package/dist/esm/models/UpdatePaperRequest.js +0 -59
- package/dist/esm/models/UpdateProjectRequest.d.ts +0 -62
- package/dist/esm/models/UpdateProjectRequest.js +0 -58
- package/dist/esm/models/UpdateProjectSettingRequest.d.ts +0 -70
- package/dist/esm/models/UpdateUserRequest.d.ts +0 -80
- package/dist/esm/models/UpdateUserRequest.js +0 -67
- package/dist/esm/models/User.d.ts +0 -122
- package/dist/esm/models/User.js +0 -82
- package/dist/esm/models/UserCriterion.d.ts +0 -77
- package/dist/esm/models/UserCriterion.js +0 -61
- package/dist/esm/models/UserSettings.d.ts +0 -88
- package/dist/esm/models/UserSettings.js +0 -64
- package/dist/esm/models/UserSettingsWithCriteria.d.ts +0 -40
- package/dist/esm/models/UserSettingsWithCriteria.js +0 -45
- package/dist/models/AddPaperToProjectRequest.d.ts +0 -38
- package/dist/models/AddPaperToProjectRequest.js +0 -50
- package/dist/models/Author.d.ts +0 -38
- package/dist/models/Author.js +0 -50
- package/dist/models/CreateCriterionRequest.d.ts +0 -65
- package/dist/models/CreateCriterionRequest.js +0 -65
- package/dist/models/CreatePaperRequest.d.ts +0 -84
- package/dist/models/CreatePaperRequest.js +0 -66
- package/dist/models/CreateReviewRequest.d.ts +0 -53
- package/dist/models/CreateReviewRequest.js +0 -61
- package/dist/models/Criterion.d.ts +0 -77
- package/dist/models/Criterion.js +0 -69
- package/dist/models/ExternalId.d.ts +0 -53
- package/dist/models/ExternalId.js +0 -65
- package/dist/models/FetcherInformation.d.ts +0 -54
- package/dist/models/FetcherInformation.js +0 -57
- package/dist/models/FetcherInformationWithId.d.ts +0 -39
- package/dist/models/FetcherInformationWithId.js +0 -51
- package/dist/models/FetcherOptionsSchema.d.ts +0 -56
- package/dist/models/FetcherOptionsSchema.js +0 -56
- package/dist/models/FetcherPaperResponse.d.ts +0 -96
- package/dist/models/FetcherPaperResponse.js +0 -70
- package/dist/models/GetCriterionById200Response.d.ts +0 -23
- package/dist/models/GetCriterionById200Response.js +0 -57
- package/dist/models/InvitationResponse.d.ts +0 -80
- package/dist/models/InvitationResponse.js +0 -75
- package/dist/models/InviteUserRequest.d.ts +0 -32
- package/dist/models/InviteUserRequest.js +0 -48
- package/dist/models/Link.d.ts +0 -38
- package/dist/models/Link.js +0 -50
- package/dist/models/PaperResponse.d.ts +0 -96
- package/dist/models/PaperResponse.js +0 -70
- package/dist/models/ProjectCriterion.d.ts +0 -83
- package/dist/models/ProjectCriterion.js +0 -71
- package/dist/models/ProjectDecisionCount.d.ts +0 -48
- package/dist/models/ProjectDecisionCount.js +0 -60
- package/dist/models/ProjectDecisionStatistics.d.ts +0 -33
- package/dist/models/ProjectDecisionStatistics.js +0 -49
- package/dist/models/ProjectInformation.d.ts +0 -44
- package/dist/models/ProjectInformation.js +0 -52
- package/dist/models/ProjectMember.d.ts +0 -70
- package/dist/models/ProjectMember.js +0 -67
- package/dist/models/ProjectMemberWithUser.d.ts +0 -40
- package/dist/models/ProjectMemberWithUser.js +0 -52
- package/dist/models/ProjectPaperResponse.d.ts +0 -74
- package/dist/models/ProjectPaperResponse.js +0 -70
- package/dist/models/ReviewResponse.d.ts +0 -77
- package/dist/models/ReviewResponse.js +0 -70
- package/dist/models/UpdateCriterionRequest.d.ts +0 -65
- package/dist/models/UpdateCriterionRequest.js +0 -65
- package/dist/models/UpdateMemberRoleRequest.d.ts +0 -40
- package/dist/models/UpdateMemberRoleRequest.js +0 -56
- package/dist/models/UpdatePaperRequest.d.ts +0 -82
- package/dist/models/UpdatePaperRequest.js +0 -66
- package/dist/models/UpdateProjectRequest.d.ts +0 -62
- package/dist/models/UpdateProjectRequest.js +0 -66
- package/dist/models/UpdateProjectSettingRequest.d.ts +0 -70
- package/dist/models/UpdateProjectSettingRequest.js +0 -66
- package/dist/models/UpdateUserRequest.d.ts +0 -80
- package/dist/models/UpdateUserRequest.js +0 -75
- package/dist/models/User.d.ts +0 -122
- package/dist/models/User.js +0 -90
- package/dist/models/UserCriterion.d.ts +0 -77
- package/dist/models/UserCriterion.js +0 -69
- package/dist/models/UserSettings.d.ts +0 -88
- package/dist/models/UserSettings.js +0 -72
- package/dist/models/UserSettingsWithCriteria.d.ts +0 -40
- package/dist/models/UserSettingsWithCriteria.js +0 -52
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* SnowballR API
|
|
6
|
-
* REST API for the SnowballR Application
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v1
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfFetcherPaperResponse = instanceOfFetcherPaperResponse;
|
|
17
|
-
exports.FetcherPaperResponseFromJSON = FetcherPaperResponseFromJSON;
|
|
18
|
-
exports.FetcherPaperResponseFromJSONTyped = FetcherPaperResponseFromJSONTyped;
|
|
19
|
-
exports.FetcherPaperResponseToJSON = FetcherPaperResponseToJSON;
|
|
20
|
-
exports.FetcherPaperResponseToJSONTyped = FetcherPaperResponseToJSONTyped;
|
|
21
|
-
const ExternalId_1 = require("./ExternalId");
|
|
22
|
-
const Author_1 = require("./Author");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the FetcherPaperResponse interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfFetcherPaperResponse(value) {
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function FetcherPaperResponseFromJSON(json) {
|
|
30
|
-
return FetcherPaperResponseFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function FetcherPaperResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
38
|
-
'externalIds': json['externalIds'] == null ? undefined : (json['externalIds'].map(ExternalId_1.ExternalIdFromJSON)),
|
|
39
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
40
|
-
'_abstract': json['abstract'] == null ? undefined : json['abstract'],
|
|
41
|
-
'year': json['year'] == null ? undefined : json['year'],
|
|
42
|
-
'publisher': json['publisher'] == null ? undefined : json['publisher'],
|
|
43
|
-
'publicationName': json['publicationName'] == null ? undefined : json['publicationName'],
|
|
44
|
-
'publicationType': json['publicationType'] == null ? undefined : json['publicationType'],
|
|
45
|
-
'authors': json['authors'] == null ? undefined : (json['authors'].map(Author_1.AuthorFromJSON)),
|
|
46
|
-
'fetcherMetadata': json['fetcherMetadata'] == null ? undefined : json['fetcherMetadata'],
|
|
47
|
-
'backwardReferencedIds': json['backwardReferencedIds'] == null ? undefined : json['backwardReferencedIds'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function FetcherPaperResponseToJSON(json) {
|
|
51
|
-
return FetcherPaperResponseToJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
function FetcherPaperResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
-
if (value == null) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
'id': value['id'],
|
|
59
|
-
'externalIds': value['externalIds'] == null ? undefined : (value['externalIds'].map(ExternalId_1.ExternalIdToJSON)),
|
|
60
|
-
'title': value['title'],
|
|
61
|
-
'abstract': value['_abstract'],
|
|
62
|
-
'year': value['year'],
|
|
63
|
-
'publisher': value['publisher'],
|
|
64
|
-
'publicationName': value['publicationName'],
|
|
65
|
-
'publicationType': value['publicationType'],
|
|
66
|
-
'authors': value['authors'] == null ? undefined : (value['authors'].map(Author_1.AuthorToJSON)),
|
|
67
|
-
'fetcherMetadata': value['fetcherMetadata'],
|
|
68
|
-
'backwardReferencedIds': value['backwardReferencedIds'],
|
|
69
|
-
};
|
|
70
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SnowballR API
|
|
3
|
-
* REST API for the SnowballR Application
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { ProjectCriterion } from './ProjectCriterion';
|
|
13
|
-
import type { UserCriterion } from './UserCriterion';
|
|
14
|
-
/**
|
|
15
|
-
* @type GetCriterionById200Response
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export type GetCriterionById200Response = ProjectCriterion | UserCriterion;
|
|
20
|
-
export declare function GetCriterionById200ResponseFromJSON(json: any): GetCriterionById200Response;
|
|
21
|
-
export declare function GetCriterionById200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCriterionById200Response;
|
|
22
|
-
export declare function GetCriterionById200ResponseToJSON(json: any): any;
|
|
23
|
-
export declare function GetCriterionById200ResponseToJSONTyped(value?: GetCriterionById200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* SnowballR API
|
|
6
|
-
* REST API for the SnowballR Application
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v1
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.GetCriterionById200ResponseFromJSON = GetCriterionById200ResponseFromJSON;
|
|
17
|
-
exports.GetCriterionById200ResponseFromJSONTyped = GetCriterionById200ResponseFromJSONTyped;
|
|
18
|
-
exports.GetCriterionById200ResponseToJSON = GetCriterionById200ResponseToJSON;
|
|
19
|
-
exports.GetCriterionById200ResponseToJSONTyped = GetCriterionById200ResponseToJSONTyped;
|
|
20
|
-
const ProjectCriterion_1 = require("./ProjectCriterion");
|
|
21
|
-
const UserCriterion_1 = require("./UserCriterion");
|
|
22
|
-
function GetCriterionById200ResponseFromJSON(json) {
|
|
23
|
-
return GetCriterionById200ResponseFromJSONTyped(json, false);
|
|
24
|
-
}
|
|
25
|
-
function GetCriterionById200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
-
if (json == null) {
|
|
27
|
-
return json;
|
|
28
|
-
}
|
|
29
|
-
if (typeof json !== 'object') {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
if ((0, ProjectCriterion_1.instanceOfProjectCriterion)(json)) {
|
|
33
|
-
return (0, ProjectCriterion_1.ProjectCriterionFromJSONTyped)(json, true);
|
|
34
|
-
}
|
|
35
|
-
if ((0, UserCriterion_1.instanceOfUserCriterion)(json)) {
|
|
36
|
-
return (0, UserCriterion_1.UserCriterionFromJSONTyped)(json, true);
|
|
37
|
-
}
|
|
38
|
-
return {};
|
|
39
|
-
}
|
|
40
|
-
function GetCriterionById200ResponseToJSON(json) {
|
|
41
|
-
return GetCriterionById200ResponseToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function GetCriterionById200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
if (typeof value !== 'object') {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
if ((0, ProjectCriterion_1.instanceOfProjectCriterion)(value)) {
|
|
51
|
-
return (0, ProjectCriterion_1.ProjectCriterionToJSON)(value);
|
|
52
|
-
}
|
|
53
|
-
if ((0, UserCriterion_1.instanceOfUserCriterion)(value)) {
|
|
54
|
-
return (0, UserCriterion_1.UserCriterionToJSON)(value);
|
|
55
|
-
}
|
|
56
|
-
return {};
|
|
57
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SnowballR API
|
|
3
|
-
* REST API for the SnowballR Application
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface InvitationResponse
|
|
16
|
-
*/
|
|
17
|
-
export interface InvitationResponse {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof InvitationResponse
|
|
22
|
-
*/
|
|
23
|
-
userId?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof InvitationResponse
|
|
28
|
-
*/
|
|
29
|
-
email?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof InvitationResponse
|
|
34
|
-
*/
|
|
35
|
-
firstName?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof InvitationResponse
|
|
40
|
-
*/
|
|
41
|
-
lastName?: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof InvitationResponse
|
|
46
|
-
*/
|
|
47
|
-
role?: InvitationResponseRoleEnum;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof InvitationResponse
|
|
52
|
-
*/
|
|
53
|
-
status?: InvitationResponseStatusEnum;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* @export
|
|
57
|
-
*/
|
|
58
|
-
export declare const InvitationResponseRoleEnum: {
|
|
59
|
-
readonly DEFAULT: "DEFAULT";
|
|
60
|
-
readonly ADMIN: "ADMIN";
|
|
61
|
-
};
|
|
62
|
-
export type InvitationResponseRoleEnum = typeof InvitationResponseRoleEnum[keyof typeof InvitationResponseRoleEnum];
|
|
63
|
-
/**
|
|
64
|
-
* @export
|
|
65
|
-
*/
|
|
66
|
-
export declare const InvitationResponseStatusEnum: {
|
|
67
|
-
readonly ACTIVE_UNCONFIRMED: "ACTIVE_UNCONFIRMED";
|
|
68
|
-
readonly ACTIVE: "ACTIVE";
|
|
69
|
-
readonly DELETED: "DELETED";
|
|
70
|
-
readonly CLEARED: "CLEARED";
|
|
71
|
-
};
|
|
72
|
-
export type InvitationResponseStatusEnum = typeof InvitationResponseStatusEnum[keyof typeof InvitationResponseStatusEnum];
|
|
73
|
-
/**
|
|
74
|
-
* Check if a given object implements the InvitationResponse interface.
|
|
75
|
-
*/
|
|
76
|
-
export declare function instanceOfInvitationResponse(value: object): value is InvitationResponse;
|
|
77
|
-
export declare function InvitationResponseFromJSON(json: any): InvitationResponse;
|
|
78
|
-
export declare function InvitationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvitationResponse;
|
|
79
|
-
export declare function InvitationResponseToJSON(json: any): InvitationResponse;
|
|
80
|
-
export declare function InvitationResponseToJSONTyped(value?: InvitationResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* SnowballR API
|
|
6
|
-
* REST API for the SnowballR Application
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v1
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.InvitationResponseStatusEnum = exports.InvitationResponseRoleEnum = void 0;
|
|
17
|
-
exports.instanceOfInvitationResponse = instanceOfInvitationResponse;
|
|
18
|
-
exports.InvitationResponseFromJSON = InvitationResponseFromJSON;
|
|
19
|
-
exports.InvitationResponseFromJSONTyped = InvitationResponseFromJSONTyped;
|
|
20
|
-
exports.InvitationResponseToJSON = InvitationResponseToJSON;
|
|
21
|
-
exports.InvitationResponseToJSONTyped = InvitationResponseToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.InvitationResponseRoleEnum = {
|
|
26
|
-
DEFAULT: 'DEFAULT',
|
|
27
|
-
ADMIN: 'ADMIN'
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @export
|
|
31
|
-
*/
|
|
32
|
-
exports.InvitationResponseStatusEnum = {
|
|
33
|
-
ACTIVE_UNCONFIRMED: 'ACTIVE_UNCONFIRMED',
|
|
34
|
-
ACTIVE: 'ACTIVE',
|
|
35
|
-
DELETED: 'DELETED',
|
|
36
|
-
CLEARED: 'CLEARED'
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the InvitationResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
function instanceOfInvitationResponse(value) {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
function InvitationResponseFromJSON(json) {
|
|
45
|
-
return InvitationResponseFromJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
function InvitationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
-
if (json == null) {
|
|
49
|
-
return json;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
53
|
-
'email': json['email'] == null ? undefined : json['email'],
|
|
54
|
-
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
55
|
-
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
56
|
-
'role': json['role'] == null ? undefined : json['role'],
|
|
57
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function InvitationResponseToJSON(json) {
|
|
61
|
-
return InvitationResponseToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
function InvitationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
'userId': value['userId'],
|
|
69
|
-
'email': value['email'],
|
|
70
|
-
'firstName': value['firstName'],
|
|
71
|
-
'lastName': value['lastName'],
|
|
72
|
-
'role': value['role'],
|
|
73
|
-
'status': value['status'],
|
|
74
|
-
};
|
|
75
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SnowballR API
|
|
3
|
-
* REST API for the SnowballR Application
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface InviteUserRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface InviteUserRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof InviteUserRequest
|
|
22
|
-
*/
|
|
23
|
-
userEmail?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the InviteUserRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfInviteUserRequest(value: object): value is InviteUserRequest;
|
|
29
|
-
export declare function InviteUserRequestFromJSON(json: any): InviteUserRequest;
|
|
30
|
-
export declare function InviteUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteUserRequest;
|
|
31
|
-
export declare function InviteUserRequestToJSON(json: any): InviteUserRequest;
|
|
32
|
-
export declare function InviteUserRequestToJSONTyped(value?: InviteUserRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* SnowballR API
|
|
6
|
-
* REST API for the SnowballR Application
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v1
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfInviteUserRequest = instanceOfInviteUserRequest;
|
|
17
|
-
exports.InviteUserRequestFromJSON = InviteUserRequestFromJSON;
|
|
18
|
-
exports.InviteUserRequestFromJSONTyped = InviteUserRequestFromJSONTyped;
|
|
19
|
-
exports.InviteUserRequestToJSON = InviteUserRequestToJSON;
|
|
20
|
-
exports.InviteUserRequestToJSONTyped = InviteUserRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the InviteUserRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfInviteUserRequest(value) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
function InviteUserRequestFromJSON(json) {
|
|
28
|
-
return InviteUserRequestFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
function InviteUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'userEmail': json['userEmail'] == null ? undefined : json['userEmail'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function InviteUserRequestToJSON(json) {
|
|
39
|
-
return InviteUserRequestToJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
function InviteUserRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
-
if (value == null) {
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
'userEmail': value['userEmail'],
|
|
47
|
-
};
|
|
48
|
-
}
|
package/dist/models/Link.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SnowballR API
|
|
3
|
-
* REST API for the SnowballR Application
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Link
|
|
16
|
-
*/
|
|
17
|
-
export interface Link {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Link
|
|
22
|
-
*/
|
|
23
|
-
label?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Link
|
|
28
|
-
*/
|
|
29
|
-
url?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the Link interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfLink(value: object): value is Link;
|
|
35
|
-
export declare function LinkFromJSON(json: any): Link;
|
|
36
|
-
export declare function LinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Link;
|
|
37
|
-
export declare function LinkToJSON(json: any): Link;
|
|
38
|
-
export declare function LinkToJSONTyped(value?: Link | null, ignoreDiscriminator?: boolean): any;
|
package/dist/models/Link.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* SnowballR API
|
|
6
|
-
* REST API for the SnowballR Application
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v1
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfLink = instanceOfLink;
|
|
17
|
-
exports.LinkFromJSON = LinkFromJSON;
|
|
18
|
-
exports.LinkFromJSONTyped = LinkFromJSONTyped;
|
|
19
|
-
exports.LinkToJSON = LinkToJSON;
|
|
20
|
-
exports.LinkToJSONTyped = LinkToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the Link interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfLink(value) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
function LinkFromJSON(json) {
|
|
28
|
-
return LinkFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
function LinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'label': json['label'] == null ? undefined : json['label'],
|
|
36
|
-
'url': json['url'] == null ? undefined : json['url'],
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function LinkToJSON(json) {
|
|
40
|
-
return LinkToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function LinkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
-
if (value == null) {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'label': value['label'],
|
|
48
|
-
'url': value['url'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SnowballR API
|
|
3
|
-
* REST API for the SnowballR Application
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { ExternalId } from './ExternalId';
|
|
13
|
-
import type { Author } from './Author';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface PaperResponse
|
|
18
|
-
*/
|
|
19
|
-
export interface PaperResponse {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof PaperResponse
|
|
24
|
-
*/
|
|
25
|
-
id?: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {Array<ExternalId>}
|
|
29
|
-
* @memberof PaperResponse
|
|
30
|
-
*/
|
|
31
|
-
externalIds?: Array<ExternalId>;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof PaperResponse
|
|
36
|
-
*/
|
|
37
|
-
title?: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof PaperResponse
|
|
42
|
-
*/
|
|
43
|
-
_abstract?: string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {number}
|
|
47
|
-
* @memberof PaperResponse
|
|
48
|
-
*/
|
|
49
|
-
year?: number;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof PaperResponse
|
|
54
|
-
*/
|
|
55
|
-
publisher?: string;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof PaperResponse
|
|
60
|
-
*/
|
|
61
|
-
publicationName?: string;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof PaperResponse
|
|
66
|
-
*/
|
|
67
|
-
publicationType?: string;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {Array<Author>}
|
|
71
|
-
* @memberof PaperResponse
|
|
72
|
-
*/
|
|
73
|
-
authors?: Array<Author>;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {{ [key: string]: string; }}
|
|
77
|
-
* @memberof PaperResponse
|
|
78
|
-
*/
|
|
79
|
-
fetcherMetadata?: {
|
|
80
|
-
[key: string]: string;
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {Array<string>}
|
|
85
|
-
* @memberof PaperResponse
|
|
86
|
-
*/
|
|
87
|
-
backwardReferencedIds?: Array<string>;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Check if a given object implements the PaperResponse interface.
|
|
91
|
-
*/
|
|
92
|
-
export declare function instanceOfPaperResponse(value: object): value is PaperResponse;
|
|
93
|
-
export declare function PaperResponseFromJSON(json: any): PaperResponse;
|
|
94
|
-
export declare function PaperResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaperResponse;
|
|
95
|
-
export declare function PaperResponseToJSON(json: any): PaperResponse;
|
|
96
|
-
export declare function PaperResponseToJSONTyped(value?: PaperResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* SnowballR API
|
|
6
|
-
* REST API for the SnowballR Application
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v1
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfPaperResponse = instanceOfPaperResponse;
|
|
17
|
-
exports.PaperResponseFromJSON = PaperResponseFromJSON;
|
|
18
|
-
exports.PaperResponseFromJSONTyped = PaperResponseFromJSONTyped;
|
|
19
|
-
exports.PaperResponseToJSON = PaperResponseToJSON;
|
|
20
|
-
exports.PaperResponseToJSONTyped = PaperResponseToJSONTyped;
|
|
21
|
-
const ExternalId_1 = require("./ExternalId");
|
|
22
|
-
const Author_1 = require("./Author");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the PaperResponse interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfPaperResponse(value) {
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function PaperResponseFromJSON(json) {
|
|
30
|
-
return PaperResponseFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function PaperResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
38
|
-
'externalIds': json['externalIds'] == null ? undefined : (json['externalIds'].map(ExternalId_1.ExternalIdFromJSON)),
|
|
39
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
40
|
-
'_abstract': json['abstract'] == null ? undefined : json['abstract'],
|
|
41
|
-
'year': json['year'] == null ? undefined : json['year'],
|
|
42
|
-
'publisher': json['publisher'] == null ? undefined : json['publisher'],
|
|
43
|
-
'publicationName': json['publicationName'] == null ? undefined : json['publicationName'],
|
|
44
|
-
'publicationType': json['publicationType'] == null ? undefined : json['publicationType'],
|
|
45
|
-
'authors': json['authors'] == null ? undefined : (json['authors'].map(Author_1.AuthorFromJSON)),
|
|
46
|
-
'fetcherMetadata': json['fetcherMetadata'] == null ? undefined : json['fetcherMetadata'],
|
|
47
|
-
'backwardReferencedIds': json['backwardReferencedIds'] == null ? undefined : json['backwardReferencedIds'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function PaperResponseToJSON(json) {
|
|
51
|
-
return PaperResponseToJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
function PaperResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
-
if (value == null) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
'id': value['id'],
|
|
59
|
-
'externalIds': value['externalIds'] == null ? undefined : (value['externalIds'].map(ExternalId_1.ExternalIdToJSON)),
|
|
60
|
-
'title': value['title'],
|
|
61
|
-
'abstract': value['_abstract'],
|
|
62
|
-
'year': value['year'],
|
|
63
|
-
'publisher': value['publisher'],
|
|
64
|
-
'publicationName': value['publicationName'],
|
|
65
|
-
'publicationType': value['publicationType'],
|
|
66
|
-
'authors': value['authors'] == null ? undefined : (value['authors'].map(Author_1.AuthorToJSON)),
|
|
67
|
-
'fetcherMetadata': value['fetcherMetadata'],
|
|
68
|
-
'backwardReferencedIds': value['backwardReferencedIds'],
|
|
69
|
-
};
|
|
70
|
-
}
|