@gewis/grooster-backend-ts 1.3.3 → 1.3.4
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/api.d.ts +1551 -0
- package/dist/api.js +2067 -0
- package/dist/api.js.map +1 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +64 -0
- package/dist/base.js.map +1 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +153 -0
- package/dist/common.js.map +1 -0
- package/{src/configuration.ts → dist/configuration.d.ts} +4 -28
- package/dist/configuration.js +51 -0
- package/dist/configuration.js.map +1 -0
- package/{src/index.ts → dist/index.d.ts} +1 -6
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/package.json +4 -1
- package/eslint.config.mjs +0 -10
- package/src/.openapi-generator/FILES +0 -31
- package/src/.openapi-generator/VERSION +0 -1
- package/src/.openapi-generator-ignore +0 -23
- package/src/api.ts +0 -2574
- package/src/base.ts +0 -86
- package/src/common.ts +0 -150
- package/src/docs/AuthApi.md +0 -117
- package/src/docs/GormDeletedAt.md +0 -22
- package/src/docs/Organ.md +0 -31
- package/src/docs/Roster.md +0 -42
- package/src/docs/RosterAnswer.md +0 -34
- package/src/docs/RosterAnswerApi.md +0 -117
- package/src/docs/RosterAnswerCreateRequest.md +0 -26
- package/src/docs/RosterAnswerUpdateRequest.md +0 -20
- package/src/docs/RosterApi.md +0 -545
- package/src/docs/RosterCreateRequest.md +0 -26
- package/src/docs/RosterShift.md +0 -30
- package/src/docs/RosterShiftApi.md +0 -112
- package/src/docs/RosterShiftCreateRequest.md +0 -22
- package/src/docs/RosterTemplate.md +0 -32
- package/src/docs/RosterTemplateCreateRequest.md +0 -24
- package/src/docs/RosterTemplateUpdateParams.md +0 -22
- package/src/docs/RosterUpdateRequest.md +0 -22
- package/src/docs/SavedShift.md +0 -34
- package/src/docs/SavedShiftApi.md +0 -170
- package/src/docs/SavedShiftUpdateRequest.md +0 -20
- package/src/docs/User.md +0 -32
- package/src/docs/UserApi.md +0 -224
- package/src/docs/UserCreateRequest.md +0 -24
- package/src/git_push.sh +0 -57
- package/tsconfig.eslint.json +0 -5
- package/tsconfig.json +0 -23
package/src/base.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* GRooster
|
|
5
|
-
* A GEWIS Rooster maker
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import type { Configuration } from './configuration';
|
|
17
|
-
// Some imports not used depending on template conditions
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
20
|
-
import globalAxios from 'axios';
|
|
21
|
-
|
|
22
|
-
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
export const COLLECTION_FORMATS = {
|
|
29
|
-
csv: ",",
|
|
30
|
-
ssv: " ",
|
|
31
|
-
tsv: "\t",
|
|
32
|
-
pipes: "|",
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @interface RequestArgs
|
|
39
|
-
*/
|
|
40
|
-
export interface RequestArgs {
|
|
41
|
-
url: string;
|
|
42
|
-
options: RawAxiosRequestConfig;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class BaseAPI
|
|
49
|
-
*/
|
|
50
|
-
export class BaseAPI {
|
|
51
|
-
protected configuration: Configuration | undefined;
|
|
52
|
-
|
|
53
|
-
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
54
|
-
if (configuration) {
|
|
55
|
-
this.configuration = configuration;
|
|
56
|
-
this.basePath = configuration.basePath ?? basePath;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
* @class RequiredError
|
|
65
|
-
* @extends {Error}
|
|
66
|
-
*/
|
|
67
|
-
export class RequiredError extends Error {
|
|
68
|
-
constructor(public field: string, msg?: string) {
|
|
69
|
-
super(msg);
|
|
70
|
-
this.name = "RequiredError"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface ServerMap {
|
|
75
|
-
[key: string]: {
|
|
76
|
-
url: string,
|
|
77
|
-
description: string,
|
|
78
|
-
}[];
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @export
|
|
84
|
-
*/
|
|
85
|
-
export const operationServerMap: ServerMap = {
|
|
86
|
-
}
|
package/src/common.ts
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* GRooster
|
|
5
|
-
* A GEWIS Rooster maker
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import type { Configuration } from "./configuration";
|
|
17
|
-
import type { RequestArgs } from "./base";
|
|
18
|
-
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
19
|
-
import { RequiredError } from "./base";
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
export const DUMMY_BASE_URL = 'https://example.com'
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @throws {RequiredError}
|
|
30
|
-
* @export
|
|
31
|
-
*/
|
|
32
|
-
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
|
|
33
|
-
if (paramValue === null || paramValue === undefined) {
|
|
34
|
-
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @export
|
|
41
|
-
*/
|
|
42
|
-
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
|
|
43
|
-
if (configuration && configuration.apiKey) {
|
|
44
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
45
|
-
? await configuration.apiKey(keyParamName)
|
|
46
|
-
: await configuration.apiKey;
|
|
47
|
-
object[keyParamName] = localVarApiKeyValue;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
|
-
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
|
|
56
|
-
if (configuration && (configuration.username || configuration.password)) {
|
|
57
|
-
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
|
-
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
|
66
|
-
if (configuration && configuration.accessToken) {
|
|
67
|
-
const accessToken = typeof configuration.accessToken === 'function'
|
|
68
|
-
? await configuration.accessToken()
|
|
69
|
-
: await configuration.accessToken;
|
|
70
|
-
object["Authorization"] = "Bearer " + accessToken;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @export
|
|
77
|
-
*/
|
|
78
|
-
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
|
|
79
|
-
if (configuration && configuration.accessToken) {
|
|
80
|
-
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
81
|
-
? await configuration.accessToken(name, scopes)
|
|
82
|
-
: await configuration.accessToken;
|
|
83
|
-
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
88
|
-
if (parameter == null) return;
|
|
89
|
-
if (typeof parameter === "object") {
|
|
90
|
-
if (Array.isArray(parameter)) {
|
|
91
|
-
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
Object.keys(parameter).forEach(currentKey =>
|
|
95
|
-
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
if (urlSearchParams.has(key)) {
|
|
101
|
-
urlSearchParams.append(key, parameter);
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
urlSearchParams.set(key, parameter);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
* @export
|
|
112
|
-
*/
|
|
113
|
-
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
114
|
-
const searchParams = new URLSearchParams(url.search);
|
|
115
|
-
setFlattenedQueryParams(searchParams, objects);
|
|
116
|
-
url.search = searchParams.toString();
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
* @export
|
|
122
|
-
*/
|
|
123
|
-
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
|
124
|
-
const nonString = typeof value !== 'string';
|
|
125
|
-
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
126
|
-
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
|
-
: nonString;
|
|
128
|
-
return needsSerialization
|
|
129
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
130
|
-
: (value || "");
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
*
|
|
135
|
-
* @export
|
|
136
|
-
*/
|
|
137
|
-
export const toPathString = function (url: URL) {
|
|
138
|
-
return url.pathname + url.search + url.hash
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @export
|
|
144
|
-
*/
|
|
145
|
-
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
146
|
-
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
147
|
-
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
|
148
|
-
return axios.request<T, R>(axiosRequestArgs);
|
|
149
|
-
};
|
|
150
|
-
}
|
package/src/docs/AuthApi.md
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
# AuthApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**authCallbackGet**](#authcallbackget) | **GET** /auth/callback | Handle OAuth2 Callback|
|
|
8
|
-
|[**authRedirectGet**](#authredirectget) | **GET** /auth/redirect | Redirect to OIDC provider|
|
|
9
|
-
|
|
10
|
-
# **authCallbackGet**
|
|
11
|
-
> { [key: string]: string; } authCallbackGet()
|
|
12
|
-
|
|
13
|
-
Validates state, exchanges code for token, and returns user info
|
|
14
|
-
|
|
15
|
-
### Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import {
|
|
19
|
-
AuthApi,
|
|
20
|
-
Configuration
|
|
21
|
-
} from './api';
|
|
22
|
-
|
|
23
|
-
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new AuthApi(configuration);
|
|
25
|
-
|
|
26
|
-
let state: string; //State returned from provider (default to undefined)
|
|
27
|
-
let code: string; //Authorization code from provider (default to undefined)
|
|
28
|
-
|
|
29
|
-
const { status, data } = await apiInstance.authCallbackGet(
|
|
30
|
-
state,
|
|
31
|
-
code
|
|
32
|
-
);
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Parameters
|
|
36
|
-
|
|
37
|
-
|Name | Type | Description | Notes|
|
|
38
|
-
|------------- | ------------- | ------------- | -------------|
|
|
39
|
-
| **state** | [**string**] | State returned from provider | defaults to undefined|
|
|
40
|
-
| **code** | [**string**] | Authorization code from provider | defaults to undefined|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
### Return type
|
|
44
|
-
|
|
45
|
-
**{ [key: string]: string; }**
|
|
46
|
-
|
|
47
|
-
### Authorization
|
|
48
|
-
|
|
49
|
-
No authorization required
|
|
50
|
-
|
|
51
|
-
### HTTP request headers
|
|
52
|
-
|
|
53
|
-
- **Content-Type**: Not defined
|
|
54
|
-
- **Accept**: */*
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### HTTP response details
|
|
58
|
-
| Status code | Description | Response headers |
|
|
59
|
-
|-------------|-------------|------------------|
|
|
60
|
-
|**200** | User info and token | - |
|
|
61
|
-
|**400** | Bad request: missing or invalid state | - |
|
|
62
|
-
|**500** | Internal server error | - |
|
|
63
|
-
|
|
64
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
|
-
|
|
66
|
-
# **authRedirectGet**
|
|
67
|
-
> string authRedirectGet()
|
|
68
|
-
|
|
69
|
-
Generates state, sets a cookie, and redirects to Google OIDC
|
|
70
|
-
|
|
71
|
-
### Example
|
|
72
|
-
|
|
73
|
-
```typescript
|
|
74
|
-
import {
|
|
75
|
-
AuthApi,
|
|
76
|
-
Configuration
|
|
77
|
-
} from './api';
|
|
78
|
-
|
|
79
|
-
const configuration = new Configuration();
|
|
80
|
-
const apiInstance = new AuthApi(configuration);
|
|
81
|
-
|
|
82
|
-
let state: string; //State returned from provider (default to undefined)
|
|
83
|
-
|
|
84
|
-
const { status, data } = await apiInstance.authRedirectGet(
|
|
85
|
-
state
|
|
86
|
-
);
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### Parameters
|
|
90
|
-
|
|
91
|
-
|Name | Type | Description | Notes|
|
|
92
|
-
|------------- | ------------- | ------------- | -------------|
|
|
93
|
-
| **state** | [**string**] | State returned from provider | defaults to undefined|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### Return type
|
|
97
|
-
|
|
98
|
-
**string**
|
|
99
|
-
|
|
100
|
-
### Authorization
|
|
101
|
-
|
|
102
|
-
No authorization required
|
|
103
|
-
|
|
104
|
-
### HTTP request headers
|
|
105
|
-
|
|
106
|
-
- **Content-Type**: Not defined
|
|
107
|
-
- **Accept**: */*
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
### HTTP response details
|
|
111
|
-
| Status code | Description | Response headers |
|
|
112
|
-
|-------------|-------------|------------------|
|
|
113
|
-
|**200** | redirect | - |
|
|
114
|
-
|**500** | pkg server error | - |
|
|
115
|
-
|
|
116
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
117
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# GormDeletedAt
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**time** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**valid** | **boolean** | Valid is true if Time is not NULL | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { GormDeletedAt } from './api';
|
|
15
|
-
|
|
16
|
-
const instance: GormDeletedAt = {
|
|
17
|
-
time,
|
|
18
|
-
valid,
|
|
19
|
-
};
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/src/docs/Organ.md
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Organ
|
|
2
|
-
|
|
3
|
-
An organ that users can be part of.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**createdAt** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**deletedAt** | [**GormDeletedAt**](GormDeletedAt.md) | | [optional] [default to undefined]
|
|
11
|
-
**id** | **number** | | [optional] [default to undefined]
|
|
12
|
-
**name** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**users** | [**Array<User>**](User.md) | | [optional] [default to undefined]
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import { Organ } from './api';
|
|
20
|
-
|
|
21
|
-
const instance: Organ = {
|
|
22
|
-
createdAt,
|
|
23
|
-
deletedAt,
|
|
24
|
-
id,
|
|
25
|
-
name,
|
|
26
|
-
updatedAt,
|
|
27
|
-
users,
|
|
28
|
-
};
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/src/docs/Roster.md
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# Roster
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**createdAt** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**date** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**deletedAt** | [**GormDeletedAt**](GormDeletedAt.md) | | [optional] [default to undefined]
|
|
11
|
-
**id** | **number** | | [optional] [default to undefined]
|
|
12
|
-
**name** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**organ** | [**Organ**](Organ.md) | | [optional] [default to undefined]
|
|
14
|
-
**organId** | **number** | | [optional] [default to undefined]
|
|
15
|
-
**rosterAnswer** | [**Array<RosterAnswer>**](RosterAnswer.md) | | [optional] [default to undefined]
|
|
16
|
-
**rosterShift** | [**Array<RosterShift>**](RosterShift.md) | | [optional] [default to undefined]
|
|
17
|
-
**saved** | **boolean** | | [optional] [default to undefined]
|
|
18
|
-
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
19
|
-
**values** | **Array<string>** | | [optional] [default to undefined]
|
|
20
|
-
|
|
21
|
-
## Example
|
|
22
|
-
|
|
23
|
-
```typescript
|
|
24
|
-
import { Roster } from './api';
|
|
25
|
-
|
|
26
|
-
const instance: Roster = {
|
|
27
|
-
createdAt,
|
|
28
|
-
date,
|
|
29
|
-
deletedAt,
|
|
30
|
-
id,
|
|
31
|
-
name,
|
|
32
|
-
organ,
|
|
33
|
-
organId,
|
|
34
|
-
rosterAnswer,
|
|
35
|
-
rosterShift,
|
|
36
|
-
saved,
|
|
37
|
-
updatedAt,
|
|
38
|
-
values,
|
|
39
|
-
};
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/src/docs/RosterAnswer.md
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# RosterAnswer
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**createdAt** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**deletedAt** | [**GormDeletedAt**](GormDeletedAt.md) | | [optional] [default to undefined]
|
|
10
|
-
**id** | **number** | | [optional] [default to undefined]
|
|
11
|
-
**rosterId** | **number** | | [optional] [default to undefined]
|
|
12
|
-
**rosterShiftId** | **number** | | [optional] [default to undefined]
|
|
13
|
-
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**userId** | **number** | | [optional] [default to undefined]
|
|
15
|
-
**value** | **string** | | [optional] [default to undefined]
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import { RosterAnswer } from './api';
|
|
21
|
-
|
|
22
|
-
const instance: RosterAnswer = {
|
|
23
|
-
createdAt,
|
|
24
|
-
deletedAt,
|
|
25
|
-
id,
|
|
26
|
-
rosterId,
|
|
27
|
-
rosterShiftId,
|
|
28
|
-
updatedAt,
|
|
29
|
-
userId,
|
|
30
|
-
value,
|
|
31
|
-
};
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
# RosterAnswerApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**createRosterAnswer**](#createrosteranswer) | **POST** /roster/answer | Create a new roster shift answer|
|
|
8
|
-
|[**updateRosterAnswer**](#updaterosteranswer) | **PATCH** /roster/answer/{id} | Updates a roster answer with the new value|
|
|
9
|
-
|
|
10
|
-
# **createRosterAnswer**
|
|
11
|
-
> RosterAnswer createRosterAnswer(createParams)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import {
|
|
18
|
-
RosterAnswerApi,
|
|
19
|
-
Configuration,
|
|
20
|
-
RosterAnswerCreateRequest
|
|
21
|
-
} from './api';
|
|
22
|
-
|
|
23
|
-
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new RosterAnswerApi(configuration);
|
|
25
|
-
|
|
26
|
-
let createParams: RosterAnswerCreateRequest; //Roster answer input
|
|
27
|
-
|
|
28
|
-
const { status, data } = await apiInstance.createRosterAnswer(
|
|
29
|
-
createParams
|
|
30
|
-
);
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Parameters
|
|
34
|
-
|
|
35
|
-
|Name | Type | Description | Notes|
|
|
36
|
-
|------------- | ------------- | ------------- | -------------|
|
|
37
|
-
| **createParams** | **RosterAnswerCreateRequest**| Roster answer input | |
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
### Return type
|
|
41
|
-
|
|
42
|
-
**RosterAnswer**
|
|
43
|
-
|
|
44
|
-
### Authorization
|
|
45
|
-
|
|
46
|
-
[BearerAuth](../README.md#BearerAuth)
|
|
47
|
-
|
|
48
|
-
### HTTP request headers
|
|
49
|
-
|
|
50
|
-
- **Content-Type**: application/json
|
|
51
|
-
- **Accept**: application/json
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
### HTTP response details
|
|
55
|
-
| Status code | Description | Response headers |
|
|
56
|
-
|-------------|-------------|------------------|
|
|
57
|
-
|**200** | OK | - |
|
|
58
|
-
|**400** | Bad Request | - |
|
|
59
|
-
|
|
60
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
61
|
-
|
|
62
|
-
# **updateRosterAnswer**
|
|
63
|
-
> RosterAnswer updateRosterAnswer(updateParams)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
### Example
|
|
67
|
-
|
|
68
|
-
```typescript
|
|
69
|
-
import {
|
|
70
|
-
RosterAnswerApi,
|
|
71
|
-
Configuration,
|
|
72
|
-
RosterAnswerUpdateRequest
|
|
73
|
-
} from './api';
|
|
74
|
-
|
|
75
|
-
const configuration = new Configuration();
|
|
76
|
-
const apiInstance = new RosterAnswerApi(configuration);
|
|
77
|
-
|
|
78
|
-
let id: number; //Roster Answer ID (default to undefined)
|
|
79
|
-
let updateParams: RosterAnswerUpdateRequest; //New answer value
|
|
80
|
-
|
|
81
|
-
const { status, data } = await apiInstance.updateRosterAnswer(
|
|
82
|
-
id,
|
|
83
|
-
updateParams
|
|
84
|
-
);
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### Parameters
|
|
88
|
-
|
|
89
|
-
|Name | Type | Description | Notes|
|
|
90
|
-
|------------- | ------------- | ------------- | -------------|
|
|
91
|
-
| **updateParams** | **RosterAnswerUpdateRequest**| New answer value | |
|
|
92
|
-
| **id** | [**number**] | Roster Answer ID | defaults to undefined|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
### Return type
|
|
96
|
-
|
|
97
|
-
**RosterAnswer**
|
|
98
|
-
|
|
99
|
-
### Authorization
|
|
100
|
-
|
|
101
|
-
[BearerAuth](../README.md#BearerAuth)
|
|
102
|
-
|
|
103
|
-
### HTTP request headers
|
|
104
|
-
|
|
105
|
-
- **Content-Type**: application/json
|
|
106
|
-
- **Accept**: application/json
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
### HTTP response details
|
|
110
|
-
| Status code | Description | Response headers |
|
|
111
|
-
|-------------|-------------|------------------|
|
|
112
|
-
|**200** | OK | - |
|
|
113
|
-
|**400** | Bad Request | - |
|
|
114
|
-
|**404** | Not Found | - |
|
|
115
|
-
|
|
116
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
117
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# RosterAnswerCreateRequest
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**rosterId** | **number** | | [optional] [default to undefined]
|
|
9
|
-
**rosterShiftId** | **number** | | [optional] [default to undefined]
|
|
10
|
-
**userId** | **number** | | [optional] [default to undefined]
|
|
11
|
-
**value** | **string** | | [optional] [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { RosterAnswerCreateRequest } from './api';
|
|
17
|
-
|
|
18
|
-
const instance: RosterAnswerCreateRequest = {
|
|
19
|
-
rosterId,
|
|
20
|
-
rosterShiftId,
|
|
21
|
-
userId,
|
|
22
|
-
value,
|
|
23
|
-
};
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# RosterAnswerUpdateRequest
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**value** | **string** | | [optional] [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { RosterAnswerUpdateRequest } from './api';
|
|
14
|
-
|
|
15
|
-
const instance: RosterAnswerUpdateRequest = {
|
|
16
|
-
value,
|
|
17
|
-
};
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|