@coscine/api-client 3.1.0 → 3.2.1
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/dist/index.js +2069 -1997
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +2071 -1999
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api/api.js +1968 -1252
- package/dist/lib/Coscine.Api/api.js.map +1 -1
- package/dist/lib/apis.js +8 -8
- package/dist/lib/apis.js.map +1 -1
- package/dist/lib/index.js +4 -4
- package/dist/lib/index.js.map +1 -1
- package/dist/types/Coscine.Api/api.d.ts +2056 -1023
- package/dist/types/apis.d.ts +23 -23
- package/dist/types/index.d.ts +46 -46
- package/package.json +2 -2
- package/dist/lib/Coscine.Api.Admin/api.js +0 -232
- package/dist/lib/Coscine.Api.Admin/api.js.map +0 -1
- package/dist/lib/Coscine.Api.Admin/base.js +0 -65
- package/dist/lib/Coscine.Api.Admin/base.js.map +0 -1
- package/dist/lib/Coscine.Api.Admin/common.js +0 -153
- package/dist/lib/Coscine.Api.Admin/common.js.map +0 -1
- package/dist/lib/Coscine.Api.Admin/configuration.js +0 -43
- package/dist/lib/Coscine.Api.Admin/configuration.js.map +0 -1
- package/dist/lib/Coscine.Api.Admin/index.js +0 -32
- package/dist/lib/Coscine.Api.Admin/index.js.map +0 -1
- package/dist/lib/Coscine.Api.Search/api.js +0 -224
- package/dist/lib/Coscine.Api.Search/api.js.map +0 -1
- package/dist/lib/Coscine.Api.Search/base.js +0 -65
- package/dist/lib/Coscine.Api.Search/base.js.map +0 -1
- package/dist/lib/Coscine.Api.Search/common.js +0 -153
- package/dist/lib/Coscine.Api.Search/common.js.map +0 -1
- package/dist/lib/Coscine.Api.Search/configuration.js +0 -43
- package/dist/lib/Coscine.Api.Search/configuration.js.map +0 -1
- package/dist/lib/Coscine.Api.Search/index.js +0 -32
- package/dist/lib/Coscine.Api.Search/index.js.map +0 -1
- package/dist/types/Coscine.Api.Admin/api.d.ts +0 -233
- package/dist/types/Coscine.Api.Admin/base.d.ts +0 -55
- package/dist/types/Coscine.Api.Admin/common.d.ts +0 -65
- package/dist/types/Coscine.Api.Admin/configuration.d.ts +0 -83
- package/dist/types/Coscine.Api.Admin/index.d.ts +0 -13
- package/dist/types/Coscine.Api.Search/api.d.ts +0 -160
- package/dist/types/Coscine.Api.Search/base.d.ts +0 -55
- package/dist/types/Coscine.Api.Search/common.d.ts +0 -65
- package/dist/types/Coscine.Api.Search/configuration.d.ts +0 -83
- package/dist/types/Coscine.Api.Search/index.d.ts +0 -13
package/dist/types/apis.d.ts
CHANGED
|
@@ -4,10 +4,6 @@ declare function implementations(axios?: AxiosInstance): {
|
|
|
4
4
|
accountGetLoginUrls(options?: any): import("axios").AxiosPromise<import("./Coscine.Api.STS/api").LoginUrls>;
|
|
5
5
|
accountLogout(options?: any): import("axios").AxiosPromise<any>;
|
|
6
6
|
};
|
|
7
|
-
AdminApi: {
|
|
8
|
-
adminGetProject(projectString: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api.Admin/api").AdminProjectObject>;
|
|
9
|
-
adminUpdateQuota(projectId: string, resourceTypeId: string, updateQuotaParameterObject: import("./Coscine.Api.Admin/api").UpdateQuotaParameterObject, options?: any): import("axios").AxiosPromise<any>;
|
|
10
|
-
};
|
|
11
7
|
BlobApi: {
|
|
12
8
|
apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions(projectId: string, resourceId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
13
9
|
createBlob(projectId: string, resourceId: string, key: string, file?: any, options?: any): import("axios").AxiosPromise<void>;
|
|
@@ -35,7 +31,7 @@ declare function implementations(axios?: AxiosInstance): {
|
|
|
35
31
|
};
|
|
36
32
|
MaintenanceApi: {
|
|
37
33
|
apiV2MaintenancesOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
38
|
-
|
|
34
|
+
getCurrentMaintenances(options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").MaintenanceDtoIEnumerablePagedResponse>;
|
|
39
35
|
};
|
|
40
36
|
MergeApi: {
|
|
41
37
|
mergeCallback(returnUrl?: string, options?: any): import("axios").AxiosPromise<any>;
|
|
@@ -60,12 +56,12 @@ declare function implementations(axios?: AxiosInstance): {
|
|
|
60
56
|
};
|
|
61
57
|
OrganizationApi: {
|
|
62
58
|
apiV2OrganizationsOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
63
|
-
getOrganization(
|
|
59
|
+
getOrganization(organizationRorUri: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").OrganizationDtoResponse>;
|
|
64
60
|
getOrganizations(searchTerm?: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").OrganizationDtoIEnumerablePagedResponse>;
|
|
65
61
|
};
|
|
66
62
|
PidApi: {
|
|
67
63
|
apiV2PidsOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
68
|
-
|
|
64
|
+
sendRequestToOwner(prefix: string, id: string, pidRequestDto?: import("./Coscine.Api/api").PidRequestDto, options?: any): import("axios").AxiosPromise<void>;
|
|
69
65
|
validatePid(prefix: string, id: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").PidValidationDtoResponse>;
|
|
70
66
|
};
|
|
71
67
|
ProjectApi: {
|
|
@@ -89,7 +85,7 @@ declare function implementations(axios?: AxiosInstance): {
|
|
|
89
85
|
getQuotaForResourceForProject(projectId: string, resourceId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").ResourceQuotaDtoResponse>;
|
|
90
86
|
};
|
|
91
87
|
ProjectResourceTypeApi: {
|
|
92
|
-
|
|
88
|
+
apiV2ProjectsProjectIdResourceTypesOptions(projectId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
93
89
|
getAvailableResourceTypesInformationForProject(projectId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").ResourceTypeInformationDtoIEnumerableResponse>;
|
|
94
90
|
};
|
|
95
91
|
ProjectInvitationApi: {
|
|
@@ -98,7 +94,6 @@ declare function implementations(axios?: AxiosInstance): {
|
|
|
98
94
|
deleteProjectInvitation(projectId: string, projectInvitationId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
99
95
|
getProjectInvitation(projectId: string, projectInvitationId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").ProjectInvitationDtoResponse>;
|
|
100
96
|
getProjectInvitations(projectId: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").ProjectInvitationDtoIEnumerablePagedResponse>;
|
|
101
|
-
resolveProjectInvitation(projectId: string, projectInvitationResolveDto?: import("./Coscine.Api/api").ProjectInvitationResolveDto, options?: any): import("axios").AxiosPromise<void>;
|
|
102
97
|
};
|
|
103
98
|
ProjectQuotaApi: {
|
|
104
99
|
apiV2ProjectsProjectIdQuotasOptions(projectId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
@@ -119,7 +114,7 @@ declare function implementations(axios?: AxiosInstance): {
|
|
|
119
114
|
getResource(resourceId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").ResourceDtoResponse>;
|
|
120
115
|
};
|
|
121
116
|
ResourceTypeApi: {
|
|
122
|
-
|
|
117
|
+
apiV2ResourceTypesOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
123
118
|
getAllGitlabBranchesForProject(gitlabProjectId: number, domain: string, accessToken: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").GitlabBranchDtoIEnumerableResponse>;
|
|
124
119
|
getAllGitlabProjects(domain: string, accessToken: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").GitlabProjectDtoIEnumerableResponse>;
|
|
125
120
|
getAllResourceTypesInformation(options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").ResourceTypeInformationDtoIEnumerableResponse>;
|
|
@@ -132,7 +127,8 @@ declare function implementations(axios?: AxiosInstance): {
|
|
|
132
127
|
getRoles(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").RoleDtoIEnumerablePagedResponse>;
|
|
133
128
|
};
|
|
134
129
|
SearchApi: {
|
|
135
|
-
|
|
130
|
+
apiV2SearchOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
131
|
+
getSearchResults(query?: string, useAdvancedSyntax?: boolean, languages?: string[], category?: import("./Coscine.Api/api").SearchCategoryType, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").SearchResultDtoIEnumerablePagedResponse>;
|
|
136
132
|
};
|
|
137
133
|
ShibbolethApi: {
|
|
138
134
|
shibbolethCallback(returnUrl?: string, remoteError?: string, options?: any): import("axios").AxiosPromise<any>;
|
|
@@ -143,32 +139,36 @@ declare function implementations(axios?: AxiosInstance): {
|
|
|
143
139
|
getTitle(titleId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").TitleDtoResponse>;
|
|
144
140
|
getTitles(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").TitleDtoIEnumerablePagedResponse>;
|
|
145
141
|
};
|
|
146
|
-
|
|
147
|
-
|
|
142
|
+
SelfApiTokenApi: {
|
|
143
|
+
apiV2SelfApiTokensOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
148
144
|
createApiToken(apiTokenForCreationDto?: import("./Coscine.Api/api").ApiTokenForCreationDto, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").ApiTokenDtoResponse>;
|
|
149
145
|
getAllApiTokens(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").ApiTokenDtoIEnumerablePagedResponse>;
|
|
150
146
|
getApiToken(apiTokenId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").ApiTokenDtoResponse>;
|
|
151
147
|
revokeToken(apiTokenId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
152
148
|
};
|
|
153
|
-
|
|
149
|
+
SelfApi: {
|
|
150
|
+
acceptCurrentTos(userTermsOfServiceAcceptDto?: import("./Coscine.Api/api").UserTermsOfServiceAcceptDto, options?: any): import("axios").AxiosPromise<void>;
|
|
151
|
+
apiV2SelfOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
152
|
+
confirmUserEmail(confirmationToken: string, options?: any): import("axios").AxiosPromise<void>;
|
|
153
|
+
getCurrentUser(options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").UserDtoResponse>;
|
|
154
|
+
initiateUserMerge(identityProvider: import("./Coscine.Api/api").IdentityProviders, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").UserMergeDtoResponse>;
|
|
155
|
+
resolveProjectInvitation(projectInvitationResolveDto?: import("./Coscine.Api/api").ProjectInvitationResolveDto, options?: any): import("axios").AxiosPromise<void>;
|
|
156
|
+
updateCurrentUser(userForUpdateDto?: import("./Coscine.Api/api").UserForUpdateDto, options?: any): import("axios").AxiosPromise<void>;
|
|
157
|
+
};
|
|
158
|
+
TosApi: {
|
|
154
159
|
apiV2TosOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
155
|
-
|
|
160
|
+
getTos(options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").TermsOfServiceDtoResponse>;
|
|
156
161
|
};
|
|
157
162
|
TreeApi: {
|
|
158
163
|
apiV2ProjectsProjectIdResourcesResourceIdTreesOptions(projectId: string, resourceId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
159
|
-
createMetadataTree(projectId: string, resourceId: string, metadataTreeForCreationDto?: import("./Coscine.Api/api").MetadataTreeForCreationDto, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").
|
|
160
|
-
getFileTree(projectId: string, resourceId: string, path?: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").
|
|
161
|
-
getMetadataTree(projectId: string, resourceId: string, path?: string, format?: import("./Coscine.Api/api").RdfFormat, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").
|
|
164
|
+
createMetadataTree(projectId: string, resourceId: string, metadataTreeForCreationDto?: import("./Coscine.Api/api").MetadataTreeForCreationDto, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").MetadataTreeDtoResponse>;
|
|
165
|
+
getFileTree(projectId: string, resourceId: string, path?: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").FileTreeDtoIEnumerablePagedResponse>;
|
|
166
|
+
getMetadataTree(projectId: string, resourceId: string, path?: string, format?: import("./Coscine.Api/api").RdfFormat, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").MetadataTreeDtoIEnumerablePagedResponse>;
|
|
162
167
|
updateMetadataTree(projectId: string, resourceId: string, metadataTreeForUpdateDto?: import("./Coscine.Api/api").MetadataTreeForUpdateDto, options?: any): import("axios").AxiosPromise<void>;
|
|
163
168
|
};
|
|
164
169
|
UserApi: {
|
|
165
|
-
acceptCurrentToS(options?: any): import("axios").AxiosPromise<void>;
|
|
166
170
|
apiV2UsersOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
167
|
-
confirmUserEmail(confirmationToken: string, options?: any): import("axios").AxiosPromise<void>;
|
|
168
|
-
getCurrentUser(options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").UserDtoResponse>;
|
|
169
171
|
getUsers(searchTerm: string, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").PublicUserDtoIEnumerableResponse>;
|
|
170
|
-
initiateUserMerge(externalAuthenticator: import("./Coscine.Api/api").ExternalAuthenticators, options?: any): import("axios").AxiosPromise<import("./Coscine.Api/api").UserMergeDtoResponse>;
|
|
171
|
-
updateCurrentUser(userForUpdateDto?: import("./Coscine.Api/api").UserForUpdateDto, options?: any): import("axios").AxiosPromise<void>;
|
|
172
172
|
};
|
|
173
173
|
VisibilityApi: {
|
|
174
174
|
apiV2VisibilitiesOptions(options?: any): import("axios").AxiosPromise<void>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,10 +3,6 @@ declare const apis: {
|
|
|
3
3
|
accountGetLoginUrls(options?: any): import("axios").AxiosPromise<import("./Coscine.Api.STS").LoginUrls>;
|
|
4
4
|
accountLogout(options?: any): import("axios").AxiosPromise<any>;
|
|
5
5
|
};
|
|
6
|
-
AdminApi: {
|
|
7
|
-
adminGetProject(projectString: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api.Admin").AdminProjectObject>;
|
|
8
|
-
adminUpdateQuota(projectId: string, resourceTypeId: string, updateQuotaParameterObject: import("./Coscine.Api.Admin").UpdateQuotaParameterObject, options?: any): import("axios").AxiosPromise<any>;
|
|
9
|
-
};
|
|
10
6
|
BlobApi: {
|
|
11
7
|
apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions(projectId: string, resourceId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
12
8
|
createBlob(projectId: string, resourceId: string, key: string, file?: any, options?: any): import("axios").AxiosPromise<void>;
|
|
@@ -34,7 +30,7 @@ declare const apis: {
|
|
|
34
30
|
};
|
|
35
31
|
MaintenanceApi: {
|
|
36
32
|
apiV2MaintenancesOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
37
|
-
|
|
33
|
+
getCurrentMaintenances(options?: any): import("axios").AxiosPromise<import("./Coscine.Api").MaintenanceDtoIEnumerablePagedResponse>;
|
|
38
34
|
};
|
|
39
35
|
MergeApi: {
|
|
40
36
|
mergeCallback(returnUrl?: string, options?: any): import("axios").AxiosPromise<any>;
|
|
@@ -59,12 +55,12 @@ declare const apis: {
|
|
|
59
55
|
};
|
|
60
56
|
OrganizationApi: {
|
|
61
57
|
apiV2OrganizationsOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
62
|
-
getOrganization(
|
|
58
|
+
getOrganization(organizationRorUri: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").OrganizationDtoResponse>;
|
|
63
59
|
getOrganizations(searchTerm?: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").OrganizationDtoIEnumerablePagedResponse>;
|
|
64
60
|
};
|
|
65
61
|
PidApi: {
|
|
66
62
|
apiV2PidsOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
67
|
-
|
|
63
|
+
sendRequestToOwner(prefix: string, id: string, pidRequestDto?: import("./Coscine.Api").PidRequestDto, options?: any): import("axios").AxiosPromise<void>;
|
|
68
64
|
validatePid(prefix: string, id: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").PidValidationDtoResponse>;
|
|
69
65
|
};
|
|
70
66
|
ProjectApi: {
|
|
@@ -88,7 +84,7 @@ declare const apis: {
|
|
|
88
84
|
getQuotaForResourceForProject(projectId: string, resourceId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ResourceQuotaDtoResponse>;
|
|
89
85
|
};
|
|
90
86
|
ProjectResourceTypeApi: {
|
|
91
|
-
|
|
87
|
+
apiV2ProjectsProjectIdResourceTypesOptions(projectId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
92
88
|
getAvailableResourceTypesInformationForProject(projectId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ResourceTypeInformationDtoIEnumerableResponse>;
|
|
93
89
|
};
|
|
94
90
|
ProjectInvitationApi: {
|
|
@@ -97,7 +93,6 @@ declare const apis: {
|
|
|
97
93
|
deleteProjectInvitation(projectId: string, projectInvitationId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
98
94
|
getProjectInvitation(projectId: string, projectInvitationId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ProjectInvitationDtoResponse>;
|
|
99
95
|
getProjectInvitations(projectId: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ProjectInvitationDtoIEnumerablePagedResponse>;
|
|
100
|
-
resolveProjectInvitation(projectId: string, projectInvitationResolveDto?: import("./Coscine.Api").ProjectInvitationResolveDto, options?: any): import("axios").AxiosPromise<void>;
|
|
101
96
|
};
|
|
102
97
|
ProjectQuotaApi: {
|
|
103
98
|
apiV2ProjectsProjectIdQuotasOptions(projectId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
@@ -118,7 +113,7 @@ declare const apis: {
|
|
|
118
113
|
getResource(resourceId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ResourceDtoResponse>;
|
|
119
114
|
};
|
|
120
115
|
ResourceTypeApi: {
|
|
121
|
-
|
|
116
|
+
apiV2ResourceTypesOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
122
117
|
getAllGitlabBranchesForProject(gitlabProjectId: number, domain: string, accessToken: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").GitlabBranchDtoIEnumerableResponse>;
|
|
123
118
|
getAllGitlabProjects(domain: string, accessToken: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").GitlabProjectDtoIEnumerableResponse>;
|
|
124
119
|
getAllResourceTypesInformation(options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ResourceTypeInformationDtoIEnumerableResponse>;
|
|
@@ -131,7 +126,8 @@ declare const apis: {
|
|
|
131
126
|
getRoles(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").RoleDtoIEnumerablePagedResponse>;
|
|
132
127
|
};
|
|
133
128
|
SearchApi: {
|
|
134
|
-
|
|
129
|
+
apiV2SearchOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
130
|
+
getSearchResults(query?: string, useAdvancedSyntax?: boolean, languages?: string[], category?: import("./Coscine.Api").SearchCategoryType, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").SearchResultDtoIEnumerablePagedResponse>;
|
|
135
131
|
};
|
|
136
132
|
ShibbolethApi: {
|
|
137
133
|
shibbolethCallback(returnUrl?: string, remoteError?: string, options?: any): import("axios").AxiosPromise<any>;
|
|
@@ -142,32 +138,36 @@ declare const apis: {
|
|
|
142
138
|
getTitle(titleId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").TitleDtoResponse>;
|
|
143
139
|
getTitles(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").TitleDtoIEnumerablePagedResponse>;
|
|
144
140
|
};
|
|
145
|
-
|
|
146
|
-
|
|
141
|
+
SelfApiTokenApi: {
|
|
142
|
+
apiV2SelfApiTokensOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
147
143
|
createApiToken(apiTokenForCreationDto?: import("./Coscine.Api").ApiTokenForCreationDto, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ApiTokenDtoResponse>;
|
|
148
144
|
getAllApiTokens(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ApiTokenDtoIEnumerablePagedResponse>;
|
|
149
145
|
getApiToken(apiTokenId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ApiTokenDtoResponse>;
|
|
150
146
|
revokeToken(apiTokenId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
151
147
|
};
|
|
152
|
-
|
|
148
|
+
SelfApi: {
|
|
149
|
+
acceptCurrentTos(userTermsOfServiceAcceptDto?: import("./Coscine.Api").UserTermsOfServiceAcceptDto, options?: any): import("axios").AxiosPromise<void>;
|
|
150
|
+
apiV2SelfOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
151
|
+
confirmUserEmail(confirmationToken: string, options?: any): import("axios").AxiosPromise<void>;
|
|
152
|
+
getCurrentUser(options?: any): import("axios").AxiosPromise<import("./Coscine.Api").UserDtoResponse>;
|
|
153
|
+
initiateUserMerge(identityProvider: import("./Coscine.Api").IdentityProviders, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").UserMergeDtoResponse>;
|
|
154
|
+
resolveProjectInvitation(projectInvitationResolveDto?: import("./Coscine.Api").ProjectInvitationResolveDto, options?: any): import("axios").AxiosPromise<void>;
|
|
155
|
+
updateCurrentUser(userForUpdateDto?: import("./Coscine.Api").UserForUpdateDto, options?: any): import("axios").AxiosPromise<void>;
|
|
156
|
+
};
|
|
157
|
+
TosApi: {
|
|
153
158
|
apiV2TosOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
154
|
-
|
|
159
|
+
getTos(options?: any): import("axios").AxiosPromise<import("./Coscine.Api").TermsOfServiceDtoResponse>;
|
|
155
160
|
};
|
|
156
161
|
TreeApi: {
|
|
157
162
|
apiV2ProjectsProjectIdResourcesResourceIdTreesOptions(projectId: string, resourceId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
158
|
-
createMetadataTree(projectId: string, resourceId: string, metadataTreeForCreationDto?: import("./Coscine.Api").MetadataTreeForCreationDto, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").
|
|
159
|
-
getFileTree(projectId: string, resourceId: string, path?: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").
|
|
160
|
-
getMetadataTree(projectId: string, resourceId: string, path?: string, format?: import("./Coscine.Api").RdfFormat, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").
|
|
163
|
+
createMetadataTree(projectId: string, resourceId: string, metadataTreeForCreationDto?: import("./Coscine.Api").MetadataTreeForCreationDto, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").MetadataTreeDtoResponse>;
|
|
164
|
+
getFileTree(projectId: string, resourceId: string, path?: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").FileTreeDtoIEnumerablePagedResponse>;
|
|
165
|
+
getMetadataTree(projectId: string, resourceId: string, path?: string, format?: import("./Coscine.Api").RdfFormat, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").MetadataTreeDtoIEnumerablePagedResponse>;
|
|
161
166
|
updateMetadataTree(projectId: string, resourceId: string, metadataTreeForUpdateDto?: import("./Coscine.Api").MetadataTreeForUpdateDto, options?: any): import("axios").AxiosPromise<void>;
|
|
162
167
|
};
|
|
163
168
|
UserApi: {
|
|
164
|
-
acceptCurrentToS(options?: any): import("axios").AxiosPromise<void>;
|
|
165
169
|
apiV2UsersOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
166
|
-
confirmUserEmail(confirmationToken: string, options?: any): import("axios").AxiosPromise<void>;
|
|
167
|
-
getCurrentUser(options?: any): import("axios").AxiosPromise<import("./Coscine.Api").UserDtoResponse>;
|
|
168
170
|
getUsers(searchTerm: string, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").PublicUserDtoIEnumerableResponse>;
|
|
169
|
-
initiateUserMerge(externalAuthenticator: import("./Coscine.Api").ExternalAuthenticators, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").UserMergeDtoResponse>;
|
|
170
|
-
updateCurrentUser(userForUpdateDto?: import("./Coscine.Api").UserForUpdateDto, options?: any): import("axios").AxiosPromise<void>;
|
|
171
171
|
};
|
|
172
172
|
VisibilityApi: {
|
|
173
173
|
apiV2VisibilitiesOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
@@ -179,10 +179,6 @@ export declare const AccountApi: {
|
|
|
179
179
|
accountGetLoginUrls(options?: any): import("axios").AxiosPromise<import("./Coscine.Api.STS").LoginUrls>;
|
|
180
180
|
accountLogout(options?: any): import("axios").AxiosPromise<any>;
|
|
181
181
|
};
|
|
182
|
-
export declare const AdminApi: {
|
|
183
|
-
adminGetProject(projectString: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api.Admin").AdminProjectObject>;
|
|
184
|
-
adminUpdateQuota(projectId: string, resourceTypeId: string, updateQuotaParameterObject: import("./Coscine.Api.Admin").UpdateQuotaParameterObject, options?: any): import("axios").AxiosPromise<any>;
|
|
185
|
-
};
|
|
186
182
|
export declare const ApplicationProfileApi: {
|
|
187
183
|
apiV2ApplicationProfilesOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
188
184
|
createApplicationProfileRequest(applicationProfileForCreationDto?: import("./Coscine.Api").ApplicationProfileForCreationDto, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ApplicationProfileForCreationDtoResponse>;
|
|
@@ -217,7 +213,7 @@ export declare const LicenseApi: {
|
|
|
217
213
|
};
|
|
218
214
|
export declare const MaintenanceApi: {
|
|
219
215
|
apiV2MaintenancesOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
220
|
-
|
|
216
|
+
getCurrentMaintenances(options?: any): import("axios").AxiosPromise<import("./Coscine.Api").MaintenanceDtoIEnumerablePagedResponse>;
|
|
221
217
|
};
|
|
222
218
|
export declare const MergeApi: {
|
|
223
219
|
mergeCallback(returnUrl?: string, options?: any): import("axios").AxiosPromise<any>;
|
|
@@ -229,12 +225,12 @@ export declare const ORCiDApi: {
|
|
|
229
225
|
};
|
|
230
226
|
export declare const OrganizationApi: {
|
|
231
227
|
apiV2OrganizationsOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
232
|
-
getOrganization(
|
|
228
|
+
getOrganization(organizationRorUri: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").OrganizationDtoResponse>;
|
|
233
229
|
getOrganizations(searchTerm?: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").OrganizationDtoIEnumerablePagedResponse>;
|
|
234
230
|
};
|
|
235
231
|
export declare const PidApi: {
|
|
236
232
|
apiV2PidsOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
237
|
-
|
|
233
|
+
sendRequestToOwner(prefix: string, id: string, pidRequestDto?: import("./Coscine.Api").PidRequestDto, options?: any): import("axios").AxiosPromise<void>;
|
|
238
234
|
validatePid(prefix: string, id: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").PidValidationDtoResponse>;
|
|
239
235
|
};
|
|
240
236
|
export declare const ProjectApi: {
|
|
@@ -264,7 +260,7 @@ export declare const ProjectResourceQuotaApi: {
|
|
|
264
260
|
getQuotaForResourceForProject(projectId: string, resourceId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ResourceQuotaDtoResponse>;
|
|
265
261
|
};
|
|
266
262
|
export declare const ProjectResourceTypeApi: {
|
|
267
|
-
|
|
263
|
+
apiV2ProjectsProjectIdResourceTypesOptions(projectId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
268
264
|
getAvailableResourceTypesInformationForProject(projectId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ResourceTypeInformationDtoIEnumerableResponse>;
|
|
269
265
|
};
|
|
270
266
|
export declare const ProjectInvitationApi: {
|
|
@@ -273,7 +269,6 @@ export declare const ProjectInvitationApi: {
|
|
|
273
269
|
deleteProjectInvitation(projectId: string, projectInvitationId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
274
270
|
getProjectInvitation(projectId: string, projectInvitationId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ProjectInvitationDtoResponse>;
|
|
275
271
|
getProjectInvitations(projectId: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ProjectInvitationDtoIEnumerablePagedResponse>;
|
|
276
|
-
resolveProjectInvitation(projectId: string, projectInvitationResolveDto?: import("./Coscine.Api").ProjectInvitationResolveDto, options?: any): import("axios").AxiosPromise<void>;
|
|
277
272
|
};
|
|
278
273
|
export declare const ProjectMemberApi: {
|
|
279
274
|
addMembership(projectId: string, projectRoleForProjectCreationDto?: import("./Coscine.Api").ProjectRoleForProjectCreationDto, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ProjectRoleDtoResponse>;
|
|
@@ -288,7 +283,7 @@ export declare const ResourceApi: {
|
|
|
288
283
|
getResource(resourceId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ResourceDtoResponse>;
|
|
289
284
|
};
|
|
290
285
|
export declare const ResourceTypeApi: {
|
|
291
|
-
|
|
286
|
+
apiV2ResourceTypesOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
292
287
|
getAllGitlabBranchesForProject(gitlabProjectId: number, domain: string, accessToken: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").GitlabBranchDtoIEnumerableResponse>;
|
|
293
288
|
getAllGitlabProjects(domain: string, accessToken: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").GitlabProjectDtoIEnumerableResponse>;
|
|
294
289
|
getAllResourceTypesInformation(options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ResourceTypeInformationDtoIEnumerableResponse>;
|
|
@@ -301,7 +296,8 @@ export declare const RoleApi: {
|
|
|
301
296
|
getRoles(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").RoleDtoIEnumerablePagedResponse>;
|
|
302
297
|
};
|
|
303
298
|
export declare const SearchApi: {
|
|
304
|
-
|
|
299
|
+
apiV2SearchOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
300
|
+
getSearchResults(query?: string, useAdvancedSyntax?: boolean, languages?: string[], category?: import("./Coscine.Api").SearchCategoryType, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").SearchResultDtoIEnumerablePagedResponse>;
|
|
305
301
|
};
|
|
306
302
|
export declare const ShibbolethApi: {
|
|
307
303
|
shibbolethCallback(returnUrl?: string, remoteError?: string, options?: any): import("axios").AxiosPromise<any>;
|
|
@@ -312,32 +308,36 @@ export declare const TitleApi: {
|
|
|
312
308
|
getTitle(titleId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").TitleDtoResponse>;
|
|
313
309
|
getTitles(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").TitleDtoIEnumerablePagedResponse>;
|
|
314
310
|
};
|
|
315
|
-
export declare const
|
|
316
|
-
|
|
311
|
+
export declare const SelfApi: {
|
|
312
|
+
acceptCurrentTos(userTermsOfServiceAcceptDto?: import("./Coscine.Api").UserTermsOfServiceAcceptDto, options?: any): import("axios").AxiosPromise<void>;
|
|
313
|
+
apiV2SelfOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
314
|
+
confirmUserEmail(confirmationToken: string, options?: any): import("axios").AxiosPromise<void>;
|
|
315
|
+
getCurrentUser(options?: any): import("axios").AxiosPromise<import("./Coscine.Api").UserDtoResponse>;
|
|
316
|
+
initiateUserMerge(identityProvider: import("./Coscine.Api").IdentityProviders, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").UserMergeDtoResponse>;
|
|
317
|
+
resolveProjectInvitation(projectInvitationResolveDto?: import("./Coscine.Api").ProjectInvitationResolveDto, options?: any): import("axios").AxiosPromise<void>;
|
|
318
|
+
updateCurrentUser(userForUpdateDto?: import("./Coscine.Api").UserForUpdateDto, options?: any): import("axios").AxiosPromise<void>;
|
|
319
|
+
};
|
|
320
|
+
export declare const SelfApiTokenApi: {
|
|
321
|
+
apiV2SelfApiTokensOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
317
322
|
createApiToken(apiTokenForCreationDto?: import("./Coscine.Api").ApiTokenForCreationDto, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ApiTokenDtoResponse>;
|
|
318
323
|
getAllApiTokens(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ApiTokenDtoIEnumerablePagedResponse>;
|
|
319
324
|
getApiToken(apiTokenId: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").ApiTokenDtoResponse>;
|
|
320
325
|
revokeToken(apiTokenId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
321
326
|
};
|
|
322
|
-
export declare const
|
|
327
|
+
export declare const TosApi: {
|
|
323
328
|
apiV2TosOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
324
|
-
|
|
329
|
+
getTos(options?: any): import("axios").AxiosPromise<import("./Coscine.Api").TermsOfServiceDtoResponse>;
|
|
325
330
|
};
|
|
326
331
|
export declare const TreeApi: {
|
|
327
332
|
apiV2ProjectsProjectIdResourcesResourceIdTreesOptions(projectId: string, resourceId: string, options?: any): import("axios").AxiosPromise<void>;
|
|
328
|
-
createMetadataTree(projectId: string, resourceId: string, metadataTreeForCreationDto?: import("./Coscine.Api").MetadataTreeForCreationDto, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").
|
|
329
|
-
getFileTree(projectId: string, resourceId: string, path?: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").
|
|
330
|
-
getMetadataTree(projectId: string, resourceId: string, path?: string, format?: import("./Coscine.Api").RdfFormat, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").
|
|
333
|
+
createMetadataTree(projectId: string, resourceId: string, metadataTreeForCreationDto?: import("./Coscine.Api").MetadataTreeForCreationDto, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").MetadataTreeDtoResponse>;
|
|
334
|
+
getFileTree(projectId: string, resourceId: string, path?: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").FileTreeDtoIEnumerablePagedResponse>;
|
|
335
|
+
getMetadataTree(projectId: string, resourceId: string, path?: string, format?: import("./Coscine.Api").RdfFormat, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").MetadataTreeDtoIEnumerablePagedResponse>;
|
|
331
336
|
updateMetadataTree(projectId: string, resourceId: string, metadataTreeForUpdateDto?: import("./Coscine.Api").MetadataTreeForUpdateDto, options?: any): import("axios").AxiosPromise<void>;
|
|
332
337
|
};
|
|
333
338
|
export declare const UserApi: {
|
|
334
|
-
acceptCurrentToS(options?: any): import("axios").AxiosPromise<void>;
|
|
335
339
|
apiV2UsersOptions(options?: any): import("axios").AxiosPromise<void>;
|
|
336
|
-
confirmUserEmail(confirmationToken: string, options?: any): import("axios").AxiosPromise<void>;
|
|
337
|
-
getCurrentUser(options?: any): import("axios").AxiosPromise<import("./Coscine.Api").UserDtoResponse>;
|
|
338
340
|
getUsers(searchTerm: string, orderBy?: string, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").PublicUserDtoIEnumerableResponse>;
|
|
339
|
-
initiateUserMerge(externalAuthenticator: import("./Coscine.Api").ExternalAuthenticators, options?: any): import("axios").AxiosPromise<import("./Coscine.Api").UserMergeDtoResponse>;
|
|
340
|
-
updateCurrentUser(userForUpdateDto?: import("./Coscine.Api").UserForUpdateDto, options?: any): import("axios").AxiosPromise<void>;
|
|
341
341
|
};
|
|
342
342
|
export declare const VisibilityApi: {
|
|
343
343
|
apiV2VisibilitiesOptions(options?: any): import("axios").AxiosPromise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coscine/api-client",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "This project contains the generated api connection classes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"coscine",
|
|
@@ -122,5 +122,5 @@
|
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"axios": "^0.21.1"
|
|
124
124
|
},
|
|
125
|
-
"packageManager": "yarn@3.6.
|
|
125
|
+
"packageManager": "yarn@3.6.4"
|
|
126
126
|
}
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Coscine.Api.Admin
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 3.0.5
|
|
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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.AdminApi = exports.AdminApiFactory = exports.AdminApiFp = exports.AdminApiAxiosParamCreator = exports.QuotaUnit = void 0;
|
|
29
|
-
const axios_1 = __importDefault(require("axios"));
|
|
30
|
-
// Some imports not used depending on template conditions
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
const common_1 = require("./common");
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
const base_1 = require("./base");
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @enum {string}
|
|
39
|
-
*/
|
|
40
|
-
var QuotaUnit;
|
|
41
|
-
(function (QuotaUnit) {
|
|
42
|
-
QuotaUnit["Byte"] = "https://qudt.org/vocab/unit/BYTE";
|
|
43
|
-
QuotaUnit["KibiByte"] = "https://qudt.org/vocab/unit/KibiBYTE";
|
|
44
|
-
QuotaUnit["MebiByte"] = "https://qudt.org/vocab/unit/MebiBYTE";
|
|
45
|
-
QuotaUnit["GibiByte"] = "https://qudt.org/vocab/unit/GibiBYTE";
|
|
46
|
-
QuotaUnit["TebiByte"] = "https://qudt.org/vocab/unit/TebiBYTE";
|
|
47
|
-
QuotaUnit["PebiByte"] = "https://qudt.org/vocab/unit/PebiBYTE";
|
|
48
|
-
})(QuotaUnit = exports.QuotaUnit || (exports.QuotaUnit = {}));
|
|
49
|
-
/**
|
|
50
|
-
* AdminApi - axios parameter creator
|
|
51
|
-
* @export
|
|
52
|
-
*/
|
|
53
|
-
const AdminApiAxiosParamCreator = function (configuration) {
|
|
54
|
-
return {
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @summary Find the project related to the projectString(GUID or slug)
|
|
58
|
-
* @param {string} projectString The project id (GUID) or slug (from URL).
|
|
59
|
-
* @param {*} [options] Override http request option.
|
|
60
|
-
* @throws {RequiredError}
|
|
61
|
-
*/
|
|
62
|
-
adminGetProject: (projectString, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
// verify required parameter 'projectString' is not null or undefined
|
|
64
|
-
(0, common_1.assertParamExists)('adminGetProject', 'projectString', projectString);
|
|
65
|
-
const localVarPath = `/Admin/{projectString}`
|
|
66
|
-
.replace(`{${"projectString"}}`, encodeURIComponent(String(projectString)));
|
|
67
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
68
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
69
|
-
let baseOptions;
|
|
70
|
-
if (configuration) {
|
|
71
|
-
baseOptions = configuration.baseOptions;
|
|
72
|
-
}
|
|
73
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
74
|
-
const localVarHeaderParameter = {};
|
|
75
|
-
const localVarQueryParameter = {};
|
|
76
|
-
// authentication JWT token required
|
|
77
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
78
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
79
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
81
|
-
return {
|
|
82
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
83
|
-
options: localVarRequestOptions,
|
|
84
|
-
};
|
|
85
|
-
}),
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @summary Update a project maximum and allocated quota
|
|
89
|
-
* @param {string} projectId Id of the project
|
|
90
|
-
* @param {string} resourceTypeId Id of the resource type
|
|
91
|
-
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
|
|
92
|
-
* @param {*} [options] Override http request option.
|
|
93
|
-
* @throws {RequiredError}
|
|
94
|
-
*/
|
|
95
|
-
adminUpdateQuota: (projectId, resourceTypeId, updateQuotaParameterObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
97
|
-
(0, common_1.assertParamExists)('adminUpdateQuota', 'projectId', projectId);
|
|
98
|
-
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
99
|
-
(0, common_1.assertParamExists)('adminUpdateQuota', 'resourceTypeId', resourceTypeId);
|
|
100
|
-
// verify required parameter 'updateQuotaParameterObject' is not null or undefined
|
|
101
|
-
(0, common_1.assertParamExists)('adminUpdateQuota', 'updateQuotaParameterObject', updateQuotaParameterObject);
|
|
102
|
-
const localVarPath = `/Admin/{projectId}/{resourceTypeId}`
|
|
103
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
104
|
-
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
105
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
107
|
-
let baseOptions;
|
|
108
|
-
if (configuration) {
|
|
109
|
-
baseOptions = configuration.baseOptions;
|
|
110
|
-
}
|
|
111
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
112
|
-
const localVarHeaderParameter = {};
|
|
113
|
-
const localVarQueryParameter = {};
|
|
114
|
-
// authentication JWT token required
|
|
115
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
116
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
117
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
118
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
120
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateQuotaParameterObject, localVarRequestOptions, configuration);
|
|
121
|
-
return {
|
|
122
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
123
|
-
options: localVarRequestOptions,
|
|
124
|
-
};
|
|
125
|
-
}),
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
exports.AdminApiAxiosParamCreator = AdminApiAxiosParamCreator;
|
|
129
|
-
/**
|
|
130
|
-
* AdminApi - functional programming interface
|
|
131
|
-
* @export
|
|
132
|
-
*/
|
|
133
|
-
const AdminApiFp = function (configuration) {
|
|
134
|
-
const localVarAxiosParamCreator = (0, exports.AdminApiAxiosParamCreator)(configuration);
|
|
135
|
-
return {
|
|
136
|
-
/**
|
|
137
|
-
*
|
|
138
|
-
* @summary Find the project related to the projectString(GUID or slug)
|
|
139
|
-
* @param {string} projectString The project id (GUID) or slug (from URL).
|
|
140
|
-
* @param {*} [options] Override http request option.
|
|
141
|
-
* @throws {RequiredError}
|
|
142
|
-
*/
|
|
143
|
-
adminGetProject(projectString, options) {
|
|
144
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminGetProject(projectString, options);
|
|
146
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
147
|
-
});
|
|
148
|
-
},
|
|
149
|
-
/**
|
|
150
|
-
*
|
|
151
|
-
* @summary Update a project maximum and allocated quota
|
|
152
|
-
* @param {string} projectId Id of the project
|
|
153
|
-
* @param {string} resourceTypeId Id of the resource type
|
|
154
|
-
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
|
|
155
|
-
* @param {*} [options] Override http request option.
|
|
156
|
-
* @throws {RequiredError}
|
|
157
|
-
*/
|
|
158
|
-
adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options) {
|
|
159
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options);
|
|
161
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
162
|
-
});
|
|
163
|
-
},
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
exports.AdminApiFp = AdminApiFp;
|
|
167
|
-
/**
|
|
168
|
-
* AdminApi - factory interface
|
|
169
|
-
* @export
|
|
170
|
-
*/
|
|
171
|
-
const AdminApiFactory = function (configuration, basePath, axios) {
|
|
172
|
-
const localVarFp = (0, exports.AdminApiFp)(configuration);
|
|
173
|
-
return {
|
|
174
|
-
/**
|
|
175
|
-
*
|
|
176
|
-
* @summary Find the project related to the projectString(GUID or slug)
|
|
177
|
-
* @param {string} projectString The project id (GUID) or slug (from URL).
|
|
178
|
-
* @param {*} [options] Override http request option.
|
|
179
|
-
* @throws {RequiredError}
|
|
180
|
-
*/
|
|
181
|
-
adminGetProject(projectString, options) {
|
|
182
|
-
return localVarFp.adminGetProject(projectString, options).then((request) => request(axios, basePath));
|
|
183
|
-
},
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
* @summary Update a project maximum and allocated quota
|
|
187
|
-
* @param {string} projectId Id of the project
|
|
188
|
-
* @param {string} resourceTypeId Id of the resource type
|
|
189
|
-
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
|
|
190
|
-
* @param {*} [options] Override http request option.
|
|
191
|
-
* @throws {RequiredError}
|
|
192
|
-
*/
|
|
193
|
-
adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options) {
|
|
194
|
-
return localVarFp.adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options).then((request) => request(axios, basePath));
|
|
195
|
-
},
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
exports.AdminApiFactory = AdminApiFactory;
|
|
199
|
-
/**
|
|
200
|
-
* AdminApi - object-oriented interface
|
|
201
|
-
* @export
|
|
202
|
-
* @class AdminApi
|
|
203
|
-
* @extends {BaseAPI}
|
|
204
|
-
*/
|
|
205
|
-
class AdminApi extends base_1.BaseAPI {
|
|
206
|
-
/**
|
|
207
|
-
*
|
|
208
|
-
* @summary Find the project related to the projectString(GUID or slug)
|
|
209
|
-
* @param {string} projectString The project id (GUID) or slug (from URL).
|
|
210
|
-
* @param {*} [options] Override http request option.
|
|
211
|
-
* @throws {RequiredError}
|
|
212
|
-
* @memberof AdminApi
|
|
213
|
-
*/
|
|
214
|
-
adminGetProject(projectString, options) {
|
|
215
|
-
return (0, exports.AdminApiFp)(this.configuration).adminGetProject(projectString, options).then((request) => request(this.axios, this.basePath));
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
*
|
|
219
|
-
* @summary Update a project maximum and allocated quota
|
|
220
|
-
* @param {string} projectId Id of the project
|
|
221
|
-
* @param {string} resourceTypeId Id of the resource type
|
|
222
|
-
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
|
|
223
|
-
* @param {*} [options] Override http request option.
|
|
224
|
-
* @throws {RequiredError}
|
|
225
|
-
* @memberof AdminApi
|
|
226
|
-
*/
|
|
227
|
-
adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options) {
|
|
228
|
-
return (0, exports.AdminApiFp)(this.configuration).adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options).then((request) => request(this.axios, this.basePath));
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
exports.AdminApi = AdminApi;
|
|
232
|
-
//# sourceMappingURL=api.js.map
|