Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
api-client
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
frontend
libraries
api-client
Commits
cc302d88
Commit
cc302d88
authored
2 years ago
by
Benedikt Heinrichs
Browse files
Options
Downloads
Patches
Plain Diff
Update: Types for new Organization API
parent
f85b6984
Branches
Issue/2228-userOrganization
Branches containing commit
Tags
Tags containing commit
2 merge requests
!46
Release: Sprint/2022 21 :robot:
,
!45
Update: Types for new Organization API
Changes
3
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Coscine.Api.Organization/api.ts
+61
-10
61 additions, 10 deletions
src/Coscine.Api.Organization/api.ts
src/Coscine.Api.Organization/base.ts
+1
-1
1 addition, 1 deletion
src/Coscine.Api.Organization/base.ts
yarn.lock-workspace
+517
-497
517 additions, 497 deletions
yarn.lock-workspace
with
579 additions
and
508 deletions
src/Coscine.Api.Organization/api.ts
+
61
−
10
View file @
cc302d88
...
...
@@ -21,6 +21,57 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
// @ts-ignore
import
{
BASE_PATH
,
COLLECTION_FORMATS
,
RequestArgs
,
BaseAPI
,
RequiredError
}
from
'
./base
'
;
/**
* Object for representing the isMember relationship
* @export
* @interface IsMemberObject
*/
export
interface
IsMemberObject
{
/**
* Is Member of requested organization
* @type {boolean}
* @memberof IsMemberObject
*/
isMember
?:
boolean
;
}
/**
* Information about an Organization
* @export
* @interface OrganizationObject
*/
export
interface
OrganizationObject
{
/**
* Name of the Organization
* @type {string}
* @memberof OrganizationObject
*/
displayName
?:
string
|
null
;
/**
* ROR Id of the Organization
* @type {string}
* @memberof OrganizationObject
*/
url
?:
string
|
null
;
/**
* Optional: Contact E-Mail
* @type {string}
* @memberof OrganizationObject
*/
email
?:
string
|
null
;
}
/**
* Wrapping the request (to stay compatible to the old implementation)
* @export
* @interface WrapperObject
*/
export
interface
WrapperObject
{
/**
* Wrapper list to stay compatible to the old implementation
* @type {Array<OrganizationObject>}
* @memberof WrapperObject
*/
data
?:
Array
<
OrganizationObject
>
|
null
;
}
/**
* OrganizationApi - axios parameter creator
...
...
@@ -233,7 +284,7 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async
organizationGetOrganization
(
url
:
string
,
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
any
>>
{
async
organizationGetOrganization
(
url
:
string
,
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
WrapperObject
>>
{
const
localVarAxiosArgs
=
await
localVarAxiosParamCreator
.
organizationGetOrganization
(
url
,
options
);
return
createRequestFunction
(
localVarAxiosArgs
,
globalAxios
,
BASE_PATH
,
configuration
);
},
...
...
@@ -244,7 +295,7 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async
organizationGetROR
(
filter
?:
string
,
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
any
>>
{
async
organizationGetROR
(
filter
?:
string
,
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
WrapperObject
>>
{
const
localVarAxiosArgs
=
await
localVarAxiosParamCreator
.
organizationGetROR
(
filter
,
options
);
return
createRequestFunction
(
localVarAxiosArgs
,
globalAxios
,
BASE_PATH
,
configuration
);
},
...
...
@@ -256,7 +307,7 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async
organizationIndex
(
member
?:
number
,
filter
?:
string
,
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
any
>>
{
async
organizationIndex
(
member
?:
number
,
filter
?:
string
,
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
WrapperObject
>>
{
const
localVarAxiosArgs
=
await
localVarAxiosParamCreator
.
organizationIndex
(
member
,
filter
,
options
);
return
createRequestFunction
(
localVarAxiosArgs
,
globalAxios
,
BASE_PATH
,
configuration
);
},
...
...
@@ -267,7 +318,7 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async
organizationIsMember
(
url
:
string
,
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
any
>>
{
async
organizationIsMember
(
url
:
string
,
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
IsMemberObject
>>
{
const
localVarAxiosArgs
=
await
localVarAxiosParamCreator
.
organizationIsMember
(
url
,
options
);
return
createRequestFunction
(
localVarAxiosArgs
,
globalAxios
,
BASE_PATH
,
configuration
);
},
...
...
@@ -277,7 +328,7 @@ export const OrganizationApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async
organizationIsMember2
(
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
any
>>
{
async
organizationIsMember2
(
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
WrapperObject
>>
{
const
localVarAxiosArgs
=
await
localVarAxiosParamCreator
.
organizationIsMember2
(
options
);
return
createRequestFunction
(
localVarAxiosArgs
,
globalAxios
,
BASE_PATH
,
configuration
);
},
...
...
@@ -298,7 +349,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
organizationGetOrganization
(
url
:
string
,
options
?:
any
):
AxiosPromise
<
any
>
{
organizationGetOrganization
(
url
:
string
,
options
?:
any
):
AxiosPromise
<
WrapperObject
>
{
return
localVarFp
.
organizationGetOrganization
(
url
,
options
).
then
((
request
)
=>
request
(
axios
,
basePath
));
},
/**
...
...
@@ -308,7 +359,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
organizationGetROR
(
filter
?:
string
,
options
?:
any
):
AxiosPromise
<
any
>
{
organizationGetROR
(
filter
?:
string
,
options
?:
any
):
AxiosPromise
<
WrapperObject
>
{
return
localVarFp
.
organizationGetROR
(
filter
,
options
).
then
((
request
)
=>
request
(
axios
,
basePath
));
},
/**
...
...
@@ -319,7 +370,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
organizationIndex
(
member
?:
number
,
filter
?:
string
,
options
?:
any
):
AxiosPromise
<
any
>
{
organizationIndex
(
member
?:
number
,
filter
?:
string
,
options
?:
any
):
AxiosPromise
<
WrapperObject
>
{
return
localVarFp
.
organizationIndex
(
member
,
filter
,
options
).
then
((
request
)
=>
request
(
axios
,
basePath
));
},
/**
...
...
@@ -329,7 +380,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
organizationIsMember
(
url
:
string
,
options
?:
any
):
AxiosPromise
<
any
>
{
organizationIsMember
(
url
:
string
,
options
?:
any
):
AxiosPromise
<
IsMemberObject
>
{
return
localVarFp
.
organizationIsMember
(
url
,
options
).
then
((
request
)
=>
request
(
axios
,
basePath
));
},
/**
...
...
@@ -338,7 +389,7 @@ export const OrganizationApiFactory = function (configuration?: Configuration, b
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
organizationIsMember2
(
options
?:
any
):
AxiosPromise
<
any
>
{
organizationIsMember2
(
options
?:
any
):
AxiosPromise
<
WrapperObject
>
{
return
localVarFp
.
organizationIsMember2
(
options
).
then
((
request
)
=>
request
(
axios
,
basePath
));
},
};
...
...
This diff is collapsed.
Click to expand it.
src/Coscine.Api.Organization/base.ts
+
1
−
1
View file @
cc302d88
...
...
@@ -18,7 +18,7 @@ import { Configuration } from "./configuration";
// @ts-ignore
import
globalAxios
,
{
AxiosPromise
,
AxiosInstance
}
from
'
axios
'
;
export
const
BASE_PATH
=
"
https://d-sp
16
.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Organization
"
.
replace
(
/
\/
+$/
,
""
);
export
const
BASE_PATH
=
"
https://d-sp
23
.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Organization
"
.
replace
(
/
\/
+$/
,
""
);
/**
*
...
...
This diff is collapsed.
Click to expand it.
yarn.lock-workspace
+
517
−
497
View file @
cc302d88
This diff is collapsed.
Click to expand it.
CoscineBot
@CoscineBot
mentioned in commit
865b4fe6
·
2 years ago
mentioned in commit
865b4fe6
mentioned in commit 865b4fe6cd09c5b422331bf9d6e23d716590a5fd
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment