@beatgig/backend-types
Advanced tools
Comparing version 1.0.1631578834-1631641365 to 1.0.1632427172-1632427234
@@ -19,3 +19,3 @@ /* istanbul ignore file */ | ||
BASE: '', | ||
VERSION: '1.0.1631578834', | ||
VERSION: '1.0.1632427172', | ||
WITH_CREDENTIALS: false, | ||
@@ -28,5 +28,5 @@ TOKEN: undefined, | ||
OpenAPI.BASE = 'https://prod.live.hackgig.com' | ||
if (process.env.NEXT_PUBLIC_BACKEND_ENV === 'sandbox') { OpenAPI.BASE = 'https://prod.sandbox.hackgig.com' } | ||
OpenAPI.BASE = 'http://192.168.1.136:8000' | ||
if (process.env.NEXT_PUBLIC_BACKEND_ENV === 'sandbox') { OpenAPI.BASE = 'http://192.168.1.136:8000' } | ||
@@ -51,2 +51,3 @@ /* istanbul ignore file */ | ||
export type { Body_verify_code_api_v1_auth_verify_code_post } from './models/Body_verify_code_api_v1_auth_verify_code_post'; | ||
export type { Body_verify_code_j_api_v1_auth_verify_code_j_post } from './models/Body_verify_code_j_api_v1_auth_verify_code_j_post'; | ||
export type { Booking } from './models/Booking'; | ||
@@ -164,2 +165,4 @@ export type { BookingBilling } from './models/BookingBilling'; | ||
export type { SendCodeResponse } from './models/SendCodeResponse'; | ||
export type { SendImageToEmailResponse } from './models/SendImageToEmailResponse'; | ||
export type { SendImageToPhoneResponse } from './models/SendImageToPhoneResponse'; | ||
export type { SetAccessTokenResponse } from './models/SetAccessTokenResponse'; | ||
@@ -166,0 +169,0 @@ export type { ShortMessage } from './models/ShortMessage'; |
@@ -1,1 +0,1 @@ | ||
{"name": "@beatgig/backend-types", "version": "1.0.1631578834-1631641365", "description": "TS types for backend-types.", "main": "index.ts", "types": "index.ts", "author": "jerber", "sideEffects": false} | ||
{"name": "@beatgig/backend-types", "version": "1.0.1632427172-1632427234", "description": "TS types for backend-types.", "main": "index.ts", "types": "index.ts", "author": "jerber", "sideEffects": false} |
@@ -6,2 +6,3 @@ /* istanbul ignore file */ | ||
import type { Body_verify_code_api_v1_auth_verify_code_post } from '../models/Body_verify_code_api_v1_auth_verify_code_post'; | ||
import type { Body_verify_code_j_api_v1_auth_verify_code_j_post } from '../models/Body_verify_code_j_api_v1_auth_verify_code_j_post'; | ||
import type { SendCodeResponse } from '../models/SendCodeResponse'; | ||
@@ -56,2 +57,36 @@ import type { VerifyCodeResponse } from '../models/VerifyCodeResponse'; | ||
/** | ||
* Send Code To Phone Number J | ||
* @returns SendCodeResponse Successful Response | ||
* @throws ApiError | ||
*/ | ||
public static async sendCodeToPhoneNumberJ(): Promise<SendCodeResponse> { | ||
const result = await __request({ | ||
method: 'POST', | ||
path: `/api/v1/auth/send_code_to_phone_number_j`, | ||
}); | ||
return result.body; | ||
} | ||
/** | ||
* Verify Code J | ||
* @returns VerifyCodeResponse Successful Response | ||
* @throws ApiError | ||
*/ | ||
public static async verifyCodeJ({ | ||
requestBody, | ||
}: { | ||
requestBody: Body_verify_code_j_api_v1_auth_verify_code_j_post, | ||
}): Promise<VerifyCodeResponse> { | ||
const result = await __request({ | ||
method: 'POST', | ||
path: `/api/v1/auth/verify_code_j`, | ||
body: requestBody, | ||
errors: { | ||
422: `Validation Error`, | ||
}, | ||
}); | ||
return result.body; | ||
} | ||
/** | ||
* Login | ||
@@ -58,0 +93,0 @@ * @returns any Successful Response |
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { SendImageToEmailResponse } from '../models/SendImageToEmailResponse'; | ||
import type { SendImageToPhoneResponse } from '../models/SendImageToPhoneResponse'; | ||
import { request as __request } from '../core/request'; | ||
@@ -10,3 +12,3 @@ | ||
* Send Image To Email | ||
* @returns any Successful Response | ||
* @returns SendImageToEmailResponse Successful Response | ||
* @throws ApiError | ||
@@ -24,3 +26,3 @@ */ | ||
subject: string, | ||
}): Promise<any> { | ||
}): Promise<SendImageToEmailResponse> { | ||
const result = await __request({ | ||
@@ -44,3 +46,3 @@ method: 'POST', | ||
* Send Image To Phone | ||
* @returns any Successful Response | ||
* @returns SendImageToPhoneResponse Successful Response | ||
* @throws ApiError | ||
@@ -56,3 +58,3 @@ */ | ||
redirectUrl: string, | ||
}): Promise<any> { | ||
}): Promise<SendImageToPhoneResponse> { | ||
const result = await __request({ | ||
@@ -59,0 +61,0 @@ method: 'POST', |
291970
256
9648