Skip to content

Commit c3b4bb2

Browse files
committed
0.2.0 - Updated
1 parent 8643481 commit c3b4bb2

28 files changed

+855
-53
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cuculus/cuculus-api",
3-
"version": "0.1.2",
3+
"version": "0.2.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"files": [

src/apis/AuthApi.ts

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Cuculus API
55
* The Cuculus API description
66
*
7-
* The version of the OpenAPI document: 1.0
7+
* The version of the OpenAPI document: 0.0.1
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -41,6 +41,10 @@ export interface PostPreSignUpRequest {
4141
preUserRequest: PreUserRequest;
4242
}
4343

44+
export interface PostPreSignUpVerifyCodeRequest {
45+
verifyCodeRequest: VerifyCodeRequest;
46+
}
47+
4448
export interface PostSignInRequest {
4549
loginRequest: LoginRequest;
4650
}
@@ -49,10 +53,6 @@ export interface PostSignUpRequest {
4953
userRequest: UserRequest;
5054
}
5155

52-
export interface PostVerifyCodeRequest {
53-
verifyCodeRequest: VerifyCodeRequest;
54-
}
55-
5656
/**
5757
*
5858
*/
@@ -90,6 +90,38 @@ export class AuthApi extends runtime.BaseAPI {
9090
await this.postPreSignUpRaw(requestParameters, initOverrides);
9191
}
9292

93+
/**
94+
* 認証コードの確認
95+
*/
96+
async postPreSignUpVerifyCodeRaw(requestParameters: PostPreSignUpVerifyCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
97+
if (requestParameters.verifyCodeRequest === null || requestParameters.verifyCodeRequest === undefined) {
98+
throw new runtime.RequiredError('verifyCodeRequest','Required parameter requestParameters.verifyCodeRequest was null or undefined when calling postPreSignUpVerifyCode.');
99+
}
100+
101+
const queryParameters: any = {};
102+
103+
const headerParameters: runtime.HTTPHeaders = {};
104+
105+
headerParameters['Content-Type'] = 'application/json';
106+
107+
const response = await this.request({
108+
path: `/v0/auth/pre-sign-up/verify-code`,
109+
method: 'POST',
110+
headers: headerParameters,
111+
query: queryParameters,
112+
body: VerifyCodeRequestToJSON(requestParameters.verifyCodeRequest),
113+
}, initOverrides);
114+
115+
return new runtime.VoidApiResponse(response);
116+
}
117+
118+
/**
119+
* 認証コードの確認
120+
*/
121+
async postPreSignUpVerifyCode(requestParameters: PostPreSignUpVerifyCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
122+
await this.postPreSignUpVerifyCodeRaw(requestParameters, initOverrides);
123+
}
124+
93125
/**
94126
* ログインAPI
95127
*/
@@ -182,36 +214,4 @@ export class AuthApi extends runtime.BaseAPI {
182214
return await response.value();
183215
}
184216

185-
/**
186-
* 認証コードの確認
187-
*/
188-
async postVerifyCodeRaw(requestParameters: PostVerifyCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
189-
if (requestParameters.verifyCodeRequest === null || requestParameters.verifyCodeRequest === undefined) {
190-
throw new runtime.RequiredError('verifyCodeRequest','Required parameter requestParameters.verifyCodeRequest was null or undefined when calling postVerifyCode.');
191-
}
192-
193-
const queryParameters: any = {};
194-
195-
const headerParameters: runtime.HTTPHeaders = {};
196-
197-
headerParameters['Content-Type'] = 'application/json';
198-
199-
const response = await this.request({
200-
path: `/v0/auth/verify-code`,
201-
method: 'POST',
202-
headers: headerParameters,
203-
query: queryParameters,
204-
body: VerifyCodeRequestToJSON(requestParameters.verifyCodeRequest),
205-
}, initOverrides);
206-
207-
return new runtime.VoidApiResponse(response);
208-
}
209-
210-
/**
211-
* 認証コードの確認
212-
*/
213-
async postVerifyCode(requestParameters: PostVerifyCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
214-
await this.postVerifyCodeRaw(requestParameters, initOverrides);
215-
}
216-
217217
}

src/apis/DefaultApi.ts

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Cuculus API
5+
* The Cuculus API description
6+
*
7+
* The version of the OpenAPI document: 0.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 * as runtime from '../runtime';
17+
import type {
18+
HealthControllerCheck200Response,
19+
HealthControllerCheck503Response,
20+
SystemSettings,
21+
} from '../models/index';
22+
import {
23+
HealthControllerCheck200ResponseFromJSON,
24+
HealthControllerCheck200ResponseToJSON,
25+
HealthControllerCheck503ResponseFromJSON,
26+
HealthControllerCheck503ResponseToJSON,
27+
SystemSettingsFromJSON,
28+
SystemSettingsToJSON,
29+
} from '../models/index';
30+
31+
/**
32+
*
33+
*/
34+
export class DefaultApi extends runtime.BaseAPI {
35+
36+
/**
37+
* システムの設定を返却する
38+
*/
39+
async getSystemSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemSettings>> {
40+
const queryParameters: any = {};
41+
42+
const headerParameters: runtime.HTTPHeaders = {};
43+
44+
const response = await this.request({
45+
path: `/v0/system/settings`,
46+
method: 'GET',
47+
headers: headerParameters,
48+
query: queryParameters,
49+
}, initOverrides);
50+
51+
return new runtime.JSONApiResponse(response, (jsonValue) => SystemSettingsFromJSON(jsonValue));
52+
}
53+
54+
/**
55+
* システムの設定を返却する
56+
*/
57+
async getSystemSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemSettings> {
58+
const response = await this.getSystemSettingsRaw(initOverrides);
59+
return await response.value();
60+
}
61+
62+
/**
63+
*/
64+
async healthControllerCheckRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HealthControllerCheck200Response>> {
65+
const queryParameters: any = {};
66+
67+
const headerParameters: runtime.HTTPHeaders = {};
68+
69+
const response = await this.request({
70+
path: `/health`,
71+
method: 'GET',
72+
headers: headerParameters,
73+
query: queryParameters,
74+
}, initOverrides);
75+
76+
return new runtime.JSONApiResponse(response, (jsonValue) => HealthControllerCheck200ResponseFromJSON(jsonValue));
77+
}
78+
79+
/**
80+
*/
81+
async healthControllerCheck(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HealthControllerCheck200Response> {
82+
const response = await this.healthControllerCheckRaw(initOverrides);
83+
return await response.value();
84+
}
85+
86+
}

src/apis/InvitationsApi.ts

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Cuculus API
5+
* The Cuculus API description
6+
*
7+
* The version of the OpenAPI document: 0.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 * as runtime from '../runtime';
17+
import type {
18+
Invitation,
19+
InvitationCodeRequest,
20+
InvitationsInfo,
21+
} from '../models/index';
22+
import {
23+
InvitationFromJSON,
24+
InvitationToJSON,
25+
InvitationCodeRequestFromJSON,
26+
InvitationCodeRequestToJSON,
27+
InvitationsInfoFromJSON,
28+
InvitationsInfoToJSON,
29+
} from '../models/index';
30+
31+
export interface PostInvitationVerifyCodeRequest {
32+
invitationCodeRequest: InvitationCodeRequest;
33+
}
34+
35+
/**
36+
*
37+
*/
38+
export class InvitationsApi extends runtime.BaseAPI {
39+
40+
/**
41+
* 自分が発行した招待コード一覧
42+
*/
43+
async getInvitationsMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvitationsInfo>> {
44+
const queryParameters: any = {};
45+
46+
const headerParameters: runtime.HTTPHeaders = {};
47+
48+
if (this.configuration && this.configuration.accessToken) {
49+
const token = this.configuration.accessToken;
50+
const tokenString = await token("bearer", []);
51+
52+
if (tokenString) {
53+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
54+
}
55+
}
56+
const response = await this.request({
57+
path: `/v0/invitations/me`,
58+
method: 'GET',
59+
headers: headerParameters,
60+
query: queryParameters,
61+
}, initOverrides);
62+
63+
return new runtime.JSONApiResponse(response, (jsonValue) => InvitationsInfoFromJSON(jsonValue));
64+
}
65+
66+
/**
67+
* 自分が発行した招待コード一覧
68+
*/
69+
async getInvitationsMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvitationsInfo> {
70+
const response = await this.getInvitationsMeRaw(initOverrides);
71+
return await response.value();
72+
}
73+
74+
/**
75+
* 招待コードの確認
76+
*/
77+
async postInvitationVerifyCodeRaw(requestParameters: PostInvitationVerifyCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
78+
if (requestParameters.invitationCodeRequest === null || requestParameters.invitationCodeRequest === undefined) {
79+
throw new runtime.RequiredError('invitationCodeRequest','Required parameter requestParameters.invitationCodeRequest was null or undefined when calling postInvitationVerifyCode.');
80+
}
81+
82+
const queryParameters: any = {};
83+
84+
const headerParameters: runtime.HTTPHeaders = {};
85+
86+
headerParameters['Content-Type'] = 'application/json';
87+
88+
const response = await this.request({
89+
path: `/v0/invitations/verify-code`,
90+
method: 'POST',
91+
headers: headerParameters,
92+
query: queryParameters,
93+
body: InvitationCodeRequestToJSON(requestParameters.invitationCodeRequest),
94+
}, initOverrides);
95+
96+
return new runtime.VoidApiResponse(response);
97+
}
98+
99+
/**
100+
* 招待コードの確認
101+
*/
102+
async postInvitationVerifyCode(requestParameters: PostInvitationVerifyCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
103+
await this.postInvitationVerifyCodeRaw(requestParameters, initOverrides);
104+
}
105+
106+
/**
107+
* 招待コードの発行
108+
*/
109+
async postInvitationsCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Invitation>> {
110+
const queryParameters: any = {};
111+
112+
const headerParameters: runtime.HTTPHeaders = {};
113+
114+
if (this.configuration && this.configuration.accessToken) {
115+
const token = this.configuration.accessToken;
116+
const tokenString = await token("bearer", []);
117+
118+
if (tokenString) {
119+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
120+
}
121+
}
122+
const response = await this.request({
123+
path: `/v0/invitations/create`,
124+
method: 'POST',
125+
headers: headerParameters,
126+
query: queryParameters,
127+
}, initOverrides);
128+
129+
return new runtime.JSONApiResponse(response, (jsonValue) => InvitationFromJSON(jsonValue));
130+
}
131+
132+
/**
133+
* 招待コードの発行
134+
*/
135+
async postInvitationsCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Invitation> {
136+
const response = await this.postInvitationsCreateRaw(initOverrides);
137+
return await response.value();
138+
}
139+
140+
}

src/apis/PostsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Cuculus API
55
* The Cuculus API description
66
*
7-
* The version of the OpenAPI document: 1.0
7+
* The version of the OpenAPI document: 0.0.1
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/apis/TimelinesApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Cuculus API
55
* The Cuculus API description
66
*
7-
* The version of the OpenAPI document: 1.0
7+
* The version of the OpenAPI document: 0.0.1
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/apis/UsersApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Cuculus API
55
* The Cuculus API description
66
*
7-
* The version of the OpenAPI document: 1.0
7+
* The version of the OpenAPI document: 0.0.1
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/apis/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* tslint:disable */
22
/* eslint-disable */
33
export * from './AuthApi';
4+
export * from './DefaultApi';
5+
export * from './InvitationsApi';
46
export * from './PostsApi';
57
export * from './TimelinesApi';
68
export * from './UsersApi';

src/models/AuthResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Cuculus API
55
* The Cuculus API description
66
*
7-
* The version of the OpenAPI document: 1.0
7+
* The version of the OpenAPI document: 0.0.1
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/models/CreatePost.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Cuculus API
55
* The Cuculus API description
66
*
7-
* The version of the OpenAPI document: 1.0
7+
* The version of the OpenAPI document: 0.0.1
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)