feat: adding openapi spect generation to the frontend client aas well as to fast api. Broke API out into different routes
This commit is contained in:
1
main.py
1
main.py
@@ -4,7 +4,6 @@ import uvicorn
|
|||||||
|
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from fastapi.openapi.utils import get_openapi
|
|
||||||
from starlette.middleware.cors import CORSMiddleware
|
from starlette.middleware.cors import CORSMiddleware
|
||||||
from mta_sign_server.router import router as default_router
|
from mta_sign_server.router import router as default_router
|
||||||
from mta_sign_server.mta.router import router as mta_router
|
from mta_sign_server.mta.router import router as mta_router
|
||||||
|
|||||||
16609
mta-sign-ui/.pnp.cjs
generated
16609
mta-sign-ui/.pnp.cjs
generated
File diff suppressed because one or more lines are too long
2047
mta-sign-ui/.pnp.loader.mjs
generated
2047
mta-sign-ui/.pnp.loader.mjs
generated
File diff suppressed because it is too large
Load Diff
@@ -1 +1,3 @@
|
|||||||
|
nodeLinker: node-modules
|
||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-3.6.1.cjs
|
yarnPath: .yarn/releases/yarn-3.6.1.cjs
|
||||||
|
|||||||
@@ -6,14 +6,16 @@ import {MtaStartTime} from "@/services/mta-api/types";
|
|||||||
import Image from 'next/image';
|
import Image from 'next/image';
|
||||||
|
|
||||||
const Header = () => {
|
const Header = () => {
|
||||||
const [data, setData] = useState<MtaStartTime | null>(null);
|
const [startDate, setStartDate] = useState<MtaStartTime | null>(null);
|
||||||
|
const [lastUpdatedDate, setLastUpdatedDate] = useState<string | null>(null);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchData = async () => {
|
const fetchData = async () => {
|
||||||
try {
|
try {
|
||||||
console.log("CALLING API")
|
console.log("CALLING API")
|
||||||
const mtaData = await fetchStartDate([""])
|
const mtaData = await fetchStartDate([""])
|
||||||
setData(mtaData)
|
setStartDate(mtaData)
|
||||||
|
setLastUpdatedDate(new Date().toLocaleString("en-US"))
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error fetching data:', error);
|
console.error('Error fetching data:', error);
|
||||||
}
|
}
|
||||||
@@ -38,16 +40,16 @@ const Header = () => {
|
|||||||
<div className="lg:flex-grow"></div>
|
<div className="lg:flex-grow"></div>
|
||||||
<div className="lg:text-right text-center lg:p-2">
|
<div className="lg:text-right text-center lg:p-2">
|
||||||
|
|
||||||
{data ? (
|
{startDate ? (
|
||||||
<h2 className="text-lg lg:text-xl font-bold dark:text-white">Started
|
<h2 className="text-lg lg:text-xl font-bold dark:text-white">Started
|
||||||
At: <span>{data.startTime.toLocaleString("en-US")}</span></h2>
|
At: <span>{startDate.startTime.toLocaleString("en-US")}</span></h2>
|
||||||
|
|
||||||
) : (
|
) : (
|
||||||
<p>Loading data...</p>
|
<p>Loading data...</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<h2 className="text-lg lg:text-xl font-bold dark:text-white">Updated
|
<h2 className="text-lg lg:text-xl font-bold dark:text-white">Updated
|
||||||
At: <span>{new Date().toLocaleString("en-US")}</span></h2>
|
At: <span>{lastUpdatedDate}</span></h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
'use client'
|
'use client'
|
||||||
import React, {useEffect, useState} from 'react';
|
import React, {useEffect, useState} from 'react';
|
||||||
import {fetchStationData} from "@/services/mta-api/mta-server";
|
import {AllStationModel} from "@/gen-sources/mta-sign-api";
|
||||||
import {MtaData,} from "@/services/mta-api/types";
|
import {mtaDataClient} from "@/services/mta-api/types";
|
||||||
|
|
||||||
const Station = () => {
|
const Station = () => {
|
||||||
const [data, setData] = useState<MtaData | null>(null);
|
const [data, setData] = useState<AllStationModel | null>(null);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchData = async () => {
|
const fetchData = async () => {
|
||||||
try {
|
try {
|
||||||
console.log("CALLING API")
|
console.log("CALLING API")
|
||||||
const mtaData = await fetchStationData([""])
|
const mtaData = await mtaDataClient.getAllApiMtaPost()
|
||||||
setData(mtaData)
|
const data = mtaData.data
|
||||||
|
setData(data)
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error fetching data:', error);
|
console.error('Error fetching data:', error);
|
||||||
@@ -27,14 +27,12 @@ const Station = () => {
|
|||||||
<div className="lg:text-right text-center lg:p-2">
|
<div className="lg:text-right text-center lg:p-2">
|
||||||
|
|
||||||
{data ? (
|
{data ? (
|
||||||
<h2 className="text-lg lg:text-xl font-bold dark:text-white">Train Line <span>{data.mtaData.toLocaleString()}</span></h2>
|
<h2 className="text-lg lg:text-xl font-bold dark:text-white">Train Line <span>{data.stations.toString()}</span></h2>
|
||||||
|
|
||||||
) : (
|
) : (
|
||||||
<p>Loading data...</p>
|
<p>Loading data...</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<h2 className="text-lg lg:text-xl font-bold dark:text-white">Updated
|
|
||||||
At: <span>{new Date().toLocaleString("en-US")}</span></h2>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
4
mta-sign-ui/gen-sources/mta-sign-api/.gitignore
vendored
Normal file
4
mta-sign-ui/gen-sources/mta-sign-api/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
wwwroot/*.js
|
||||||
|
node_modules
|
||||||
|
typings
|
||||||
|
dist
|
||||||
1
mta-sign-ui/gen-sources/mta-sign-api/.npmignore
Normal file
1
mta-sign-ui/gen-sources/mta-sign-api/.npmignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
|
||||||
@@ -1,13 +1,8 @@
|
|||||||
apis/ConfigApi.ts
|
.gitignore
|
||||||
apis/MtaDataApi.ts
|
.npmignore
|
||||||
apis/StartApi.ts
|
api.ts
|
||||||
apis/index.ts
|
base.ts
|
||||||
|
common.ts
|
||||||
|
configuration.ts
|
||||||
|
git_push.sh
|
||||||
index.ts
|
index.ts
|
||||||
models/AllStationModel.ts
|
|
||||||
models/HTTPValidationError.ts
|
|
||||||
models/Route.ts
|
|
||||||
models/RouteResponse.ts
|
|
||||||
models/StationResponse.ts
|
|
||||||
models/ValidationError.ts
|
|
||||||
models/index.ts
|
|
||||||
runtime.ts
|
|
||||||
|
|||||||
545
mta-sign-ui/gen-sources/mta-sign-api/api.ts
Normal file
545
mta-sign-ui/gen-sources/mta-sign-api/api.ts
Normal file
@@ -0,0 +1,545 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* FastAPI
|
||||||
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 0.1.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
import type { Configuration } from './configuration';
|
||||||
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||||
|
import globalAxios from 'axios';
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
||||||
|
import type { RequestArgs } from './base';
|
||||||
|
// @ts-ignore
|
||||||
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @interface AllStationModel
|
||||||
|
*/
|
||||||
|
export interface AllStationModel {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {{ [key: string]: StationResponse; }}
|
||||||
|
* @memberof AllStationModel
|
||||||
|
*/
|
||||||
|
'stations': { [key: string]: StationResponse; };
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @interface HTTPValidationError
|
||||||
|
*/
|
||||||
|
export interface HTTPValidationError {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {any}
|
||||||
|
* @memberof HTTPValidationError
|
||||||
|
*/
|
||||||
|
'detail'?: any;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* An enumeration.
|
||||||
|
* @export
|
||||||
|
* @interface Route
|
||||||
|
*/
|
||||||
|
export interface Route {
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @interface RouteResponse
|
||||||
|
*/
|
||||||
|
export interface RouteResponse {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {any}
|
||||||
|
* @memberof RouteResponse
|
||||||
|
*/
|
||||||
|
'arrival_times': any;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @interface StationResponse
|
||||||
|
*/
|
||||||
|
export interface StationResponse {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {{ [key: string]: RouteResponse; }}
|
||||||
|
* @memberof StationResponse
|
||||||
|
*/
|
||||||
|
'routes': { [key: string]: RouteResponse; };
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @interface ValidationError
|
||||||
|
*/
|
||||||
|
export interface ValidationError {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {any}
|
||||||
|
* @memberof ValidationError
|
||||||
|
*/
|
||||||
|
'loc': any;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {any}
|
||||||
|
* @memberof ValidationError
|
||||||
|
*/
|
||||||
|
'msg': any;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {any}
|
||||||
|
* @memberof ValidationError
|
||||||
|
*/
|
||||||
|
'type': any;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ConfigApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const ConfigApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get All
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAllApiConfigGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
|
const localVarPath = `/api/config`;
|
||||||
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||||
|
let baseOptions;
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||||
|
const localVarHeaderParameter = {} as any;
|
||||||
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: toPathString(localVarUrlObj),
|
||||||
|
options: localVarRequestOptions,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ConfigApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const ConfigApiFp = function(configuration?: Configuration) {
|
||||||
|
const localVarAxiosParamCreator = ConfigApiAxiosParamCreator(configuration)
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get All
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
async getAllApiConfigGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
||||||
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllApiConfigGet(options);
|
||||||
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ConfigApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const ConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||||
|
const localVarFp = ConfigApiFp(configuration)
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get All
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAllApiConfigGet(options?: any): AxiosPromise<any> {
|
||||||
|
return localVarFp.getAllApiConfigGet(options).then((request) => request(axios, basePath));
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ConfigApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ConfigApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export class ConfigApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get All
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ConfigApi
|
||||||
|
*/
|
||||||
|
public getAllApiConfigGet(options?: AxiosRequestConfig) {
|
||||||
|
return ConfigApiFp(this.configuration).getAllApiConfigGet(options).then((request) => request(this.axios, this.basePath));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MtaDataApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const MtaDataApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get All
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAllApiMtaPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
|
const localVarPath = `/api/mta`;
|
||||||
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||||
|
let baseOptions;
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
||||||
|
const localVarHeaderParameter = {} as any;
|
||||||
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: toPathString(localVarUrlObj),
|
||||||
|
options: localVarRequestOptions,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get Route
|
||||||
|
* @param {any} stopId
|
||||||
|
* @param {Route} route
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getRouteApiMtaStopIdRoutePost: async (stopId: any, route: Route, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
|
// verify required parameter 'stopId' is not null or undefined
|
||||||
|
assertParamExists('getRouteApiMtaStopIdRoutePost', 'stopId', stopId)
|
||||||
|
// verify required parameter 'route' is not null or undefined
|
||||||
|
assertParamExists('getRouteApiMtaStopIdRoutePost', 'route', route)
|
||||||
|
const localVarPath = `/api/mta/{stop_id}/{route}`
|
||||||
|
.replace(`{${"stop_id"}}`, encodeURIComponent(String(stopId)))
|
||||||
|
.replace(`{${"route"}}`, encodeURIComponent(String(route)));
|
||||||
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||||
|
let baseOptions;
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
||||||
|
const localVarHeaderParameter = {} as any;
|
||||||
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: toPathString(localVarUrlObj),
|
||||||
|
options: localVarRequestOptions,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get Station
|
||||||
|
* @param {any} stopId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getStationApiMtaStopIdPost: async (stopId: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
|
// verify required parameter 'stopId' is not null or undefined
|
||||||
|
assertParamExists('getStationApiMtaStopIdPost', 'stopId', stopId)
|
||||||
|
const localVarPath = `/api/mta/{stop_id}`
|
||||||
|
.replace(`{${"stop_id"}}`, encodeURIComponent(String(stopId)));
|
||||||
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||||
|
let baseOptions;
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
||||||
|
const localVarHeaderParameter = {} as any;
|
||||||
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: toPathString(localVarUrlObj),
|
||||||
|
options: localVarRequestOptions,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MtaDataApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const MtaDataApiFp = function(configuration?: Configuration) {
|
||||||
|
const localVarAxiosParamCreator = MtaDataApiAxiosParamCreator(configuration)
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get All
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
async getAllApiMtaPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllStationModel>> {
|
||||||
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllApiMtaPost(options);
|
||||||
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get Route
|
||||||
|
* @param {any} stopId
|
||||||
|
* @param {Route} route
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
async getRouteApiMtaStopIdRoutePost(stopId: any, route: Route, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RouteResponse>> {
|
||||||
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRouteApiMtaStopIdRoutePost(stopId, route, options);
|
||||||
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get Station
|
||||||
|
* @param {any} stopId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
async getStationApiMtaStopIdPost(stopId: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StationResponse>> {
|
||||||
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getStationApiMtaStopIdPost(stopId, options);
|
||||||
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MtaDataApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const MtaDataApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||||
|
const localVarFp = MtaDataApiFp(configuration)
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get All
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAllApiMtaPost(options?: any): AxiosPromise<AllStationModel> {
|
||||||
|
return localVarFp.getAllApiMtaPost(options).then((request) => request(axios, basePath));
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get Route
|
||||||
|
* @param {any} stopId
|
||||||
|
* @param {Route} route
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getRouteApiMtaStopIdRoutePost(stopId: any, route: Route, options?: any): AxiosPromise<RouteResponse> {
|
||||||
|
return localVarFp.getRouteApiMtaStopIdRoutePost(stopId, route, options).then((request) => request(axios, basePath));
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get Station
|
||||||
|
* @param {any} stopId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getStationApiMtaStopIdPost(stopId: any, options?: any): AxiosPromise<StationResponse> {
|
||||||
|
return localVarFp.getStationApiMtaStopIdPost(stopId, options).then((request) => request(axios, basePath));
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MtaDataApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class MtaDataApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export class MtaDataApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get All
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof MtaDataApi
|
||||||
|
*/
|
||||||
|
public getAllApiMtaPost(options?: AxiosRequestConfig) {
|
||||||
|
return MtaDataApiFp(this.configuration).getAllApiMtaPost(options).then((request) => request(this.axios, this.basePath));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get Route
|
||||||
|
* @param {any} stopId
|
||||||
|
* @param {Route} route
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof MtaDataApi
|
||||||
|
*/
|
||||||
|
public getRouteApiMtaStopIdRoutePost(stopId: any, route: Route, options?: AxiosRequestConfig) {
|
||||||
|
return MtaDataApiFp(this.configuration).getRouteApiMtaStopIdRoutePost(stopId, route, options).then((request) => request(this.axios, this.basePath));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get Station
|
||||||
|
* @param {any} stopId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof MtaDataApi
|
||||||
|
*/
|
||||||
|
public getStationApiMtaStopIdPost(stopId: any, options?: AxiosRequestConfig) {
|
||||||
|
return MtaDataApiFp(this.configuration).getStationApiMtaStopIdPost(stopId, options).then((request) => request(this.axios, this.basePath));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StartApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const StartApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get Start Time
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getStartTimeApiStartTimePost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
|
const localVarPath = `/api/start_time`;
|
||||||
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||||
|
let baseOptions;
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
||||||
|
const localVarHeaderParameter = {} as any;
|
||||||
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: toPathString(localVarUrlObj),
|
||||||
|
options: localVarRequestOptions,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StartApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const StartApiFp = function(configuration?: Configuration) {
|
||||||
|
const localVarAxiosParamCreator = StartApiAxiosParamCreator(configuration)
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get Start Time
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
async getStartTimeApiStartTimePost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
||||||
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getStartTimeApiStartTimePost(options);
|
||||||
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StartApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const StartApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||||
|
const localVarFp = StartApiFp(configuration)
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get Start Time
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getStartTimeApiStartTimePost(options?: any): AxiosPromise<any> {
|
||||||
|
return localVarFp.getStartTimeApiStartTimePost(options).then((request) => request(axios, basePath));
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StartApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class StartApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export class StartApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get Start Time
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof StartApi
|
||||||
|
*/
|
||||||
|
public getStartTimeApiStartTimePost(options?: AxiosRequestConfig) {
|
||||||
|
return StartApiFp(this.configuration).getStartTimeApiStartTimePost(options).then((request) => request(this.axios, this.basePath));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* FastAPI
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 0.1.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
import * as runtime from '../runtime';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export class ConfigApi extends runtime.BaseAPI {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get All
|
|
||||||
*/
|
|
||||||
async getAllApiConfigGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/api/config`,
|
|
||||||
method: 'GET',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<any>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get All
|
|
||||||
*/
|
|
||||||
async getAllApiConfigGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any> {
|
|
||||||
const response = await this.getAllApiConfigGetRaw(initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,141 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* FastAPI
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 0.1.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
import * as runtime from '../runtime';
|
|
||||||
import type {
|
|
||||||
AllStationModel,
|
|
||||||
HTTPValidationError,
|
|
||||||
Route,
|
|
||||||
RouteResponse,
|
|
||||||
StationResponse,
|
|
||||||
} from '../models';
|
|
||||||
import {
|
|
||||||
AllStationModelFromJSON,
|
|
||||||
AllStationModelToJSON,
|
|
||||||
HTTPValidationErrorFromJSON,
|
|
||||||
HTTPValidationErrorToJSON,
|
|
||||||
RouteFromJSON,
|
|
||||||
RouteToJSON,
|
|
||||||
RouteResponseFromJSON,
|
|
||||||
RouteResponseToJSON,
|
|
||||||
StationResponseFromJSON,
|
|
||||||
StationResponseToJSON,
|
|
||||||
} from '../models';
|
|
||||||
|
|
||||||
export interface GetRouteApiMtaStopIdRoutePostRequest {
|
|
||||||
stopId: any;
|
|
||||||
route: Route;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface GetStationApiMtaStopIdPostRequest {
|
|
||||||
stopId: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export class MtaDataApi extends runtime.BaseAPI {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get All
|
|
||||||
*/
|
|
||||||
async getAllApiMtaPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AllStationModel>> {
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/api/mta`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => AllStationModelFromJSON(jsonValue));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get All
|
|
||||||
*/
|
|
||||||
async getAllApiMtaPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AllStationModel> {
|
|
||||||
const response = await this.getAllApiMtaPostRaw(initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get Route
|
|
||||||
*/
|
|
||||||
async getRouteApiMtaStopIdRoutePostRaw(requestParameters: GetRouteApiMtaStopIdRoutePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RouteResponse>> {
|
|
||||||
if (requestParameters.stopId === null || requestParameters.stopId === undefined) {
|
|
||||||
throw new runtime.RequiredError('stopId','Required parameter requestParameters.stopId was null or undefined when calling getRouteApiMtaStopIdRoutePost.');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters.route === null || requestParameters.route === undefined) {
|
|
||||||
throw new runtime.RequiredError('route','Required parameter requestParameters.route was null or undefined when calling getRouteApiMtaStopIdRoutePost.');
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/api/mta/{stop_id}/{route}`.replace(`{${"stop_id"}}`, encodeURIComponent(String(requestParameters.stopId))).replace(`{${"route"}}`, encodeURIComponent(String(requestParameters.route))),
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => RouteResponseFromJSON(jsonValue));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get Route
|
|
||||||
*/
|
|
||||||
async getRouteApiMtaStopIdRoutePost(requestParameters: GetRouteApiMtaStopIdRoutePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RouteResponse> {
|
|
||||||
const response = await this.getRouteApiMtaStopIdRoutePostRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get Station
|
|
||||||
*/
|
|
||||||
async getStationApiMtaStopIdPostRaw(requestParameters: GetStationApiMtaStopIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StationResponse>> {
|
|
||||||
if (requestParameters.stopId === null || requestParameters.stopId === undefined) {
|
|
||||||
throw new runtime.RequiredError('stopId','Required parameter requestParameters.stopId was null or undefined when calling getStationApiMtaStopIdPost.');
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/api/mta/{stop_id}`.replace(`{${"stop_id"}}`, encodeURIComponent(String(requestParameters.stopId))),
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => StationResponseFromJSON(jsonValue));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get Station
|
|
||||||
*/
|
|
||||||
async getStationApiMtaStopIdPost(requestParameters: GetStationApiMtaStopIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StationResponse> {
|
|
||||||
const response = await this.getStationApiMtaStopIdPostRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* FastAPI
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 0.1.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
import * as runtime from '../runtime';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export class StartApi extends runtime.BaseAPI {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get Start Time
|
|
||||||
*/
|
|
||||||
async getStartTimeApiStartTimePostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/api/start_time`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<any>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get Start Time
|
|
||||||
*/
|
|
||||||
async getStartTimeApiStartTimePost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any> {
|
|
||||||
const response = await this.getStartTimeApiStartTimePostRaw(initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export * from './ConfigApi';
|
|
||||||
export * from './MtaDataApi';
|
|
||||||
export * from './StartApi';
|
|
||||||
72
mta-sign-ui/gen-sources/mta-sign-api/base.ts
Normal file
72
mta-sign-ui/gen-sources/mta-sign-api/base.ts
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* FastAPI
|
||||||
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 0.1.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
import type { Configuration } from './configuration';
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||||
|
import globalAxios from 'axios';
|
||||||
|
|
||||||
|
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const COLLECTION_FORMATS = {
|
||||||
|
csv: ",",
|
||||||
|
ssv: " ",
|
||||||
|
tsv: "\t",
|
||||||
|
pipes: "|",
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @interface RequestArgs
|
||||||
|
*/
|
||||||
|
export interface RequestArgs {
|
||||||
|
url: string;
|
||||||
|
options: AxiosRequestConfig;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @class BaseAPI
|
||||||
|
*/
|
||||||
|
export class BaseAPI {
|
||||||
|
protected configuration: Configuration | undefined;
|
||||||
|
|
||||||
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
||||||
|
if (configuration) {
|
||||||
|
this.configuration = configuration;
|
||||||
|
this.basePath = configuration.basePath || this.basePath;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @class RequiredError
|
||||||
|
* @extends {Error}
|
||||||
|
*/
|
||||||
|
export class RequiredError extends Error {
|
||||||
|
constructor(public field: string, msg?: string) {
|
||||||
|
super(msg);
|
||||||
|
this.name = "RequiredError"
|
||||||
|
}
|
||||||
|
}
|
||||||
150
mta-sign-ui/gen-sources/mta-sign-api/common.ts
Normal file
150
mta-sign-ui/gen-sources/mta-sign-api/common.ts
Normal file
@@ -0,0 +1,150 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* FastAPI
|
||||||
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 0.1.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
import type { Configuration } from "./configuration";
|
||||||
|
import type { RequestArgs } from "./base";
|
||||||
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
||||||
|
import { RequiredError } from "./base";
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const DUMMY_BASE_URL = 'https://example.com'
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
|
||||||
|
if (paramValue === null || paramValue === undefined) {
|
||||||
|
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
|
||||||
|
if (configuration && configuration.apiKey) {
|
||||||
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
||||||
|
? await configuration.apiKey(keyParamName)
|
||||||
|
: await configuration.apiKey;
|
||||||
|
object[keyParamName] = localVarApiKeyValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
|
||||||
|
if (configuration && (configuration.username || configuration.password)) {
|
||||||
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
||||||
|
if (configuration && configuration.accessToken) {
|
||||||
|
const accessToken = typeof configuration.accessToken === 'function'
|
||||||
|
? await configuration.accessToken()
|
||||||
|
: await configuration.accessToken;
|
||||||
|
object["Authorization"] = "Bearer " + accessToken;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
|
||||||
|
if (configuration && configuration.accessToken) {
|
||||||
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||||
|
? await configuration.accessToken(name, scopes)
|
||||||
|
: await configuration.accessToken;
|
||||||
|
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
||||||
|
if (parameter == null) return;
|
||||||
|
if (typeof parameter === "object") {
|
||||||
|
if (Array.isArray(parameter)) {
|
||||||
|
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Object.keys(parameter).forEach(currentKey =>
|
||||||
|
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (urlSearchParams.has(key)) {
|
||||||
|
urlSearchParams.append(key, parameter);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
urlSearchParams.set(key, parameter);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
||||||
|
const searchParams = new URLSearchParams(url.search);
|
||||||
|
setFlattenedQueryParams(searchParams, objects);
|
||||||
|
url.search = searchParams.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
||||||
|
const nonString = typeof value !== 'string';
|
||||||
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
||||||
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
||||||
|
: nonString;
|
||||||
|
return needsSerialization
|
||||||
|
? JSON.stringify(value !== undefined ? value : {})
|
||||||
|
: (value || "");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const toPathString = function (url: URL) {
|
||||||
|
return url.pathname + url.search + url.hash
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
||||||
|
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||||
|
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
||||||
|
return axios.request<T, R>(axiosRequestArgs);
|
||||||
|
};
|
||||||
|
}
|
||||||
101
mta-sign-ui/gen-sources/mta-sign-api/configuration.ts
Normal file
101
mta-sign-ui/gen-sources/mta-sign-api/configuration.ts
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* FastAPI
|
||||||
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 0.1.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
export interface ConfigurationParameters {
|
||||||
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||||
|
username?: string;
|
||||||
|
password?: string;
|
||||||
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||||
|
basePath?: string;
|
||||||
|
baseOptions?: any;
|
||||||
|
formDataCtor?: new () => any;
|
||||||
|
}
|
||||||
|
|
||||||
|
export class Configuration {
|
||||||
|
/**
|
||||||
|
* parameter for apiKey security
|
||||||
|
* @param name security name
|
||||||
|
* @memberof Configuration
|
||||||
|
*/
|
||||||
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||||
|
/**
|
||||||
|
* parameter for basic security
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Configuration
|
||||||
|
*/
|
||||||
|
username?: string;
|
||||||
|
/**
|
||||||
|
* parameter for basic security
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Configuration
|
||||||
|
*/
|
||||||
|
password?: string;
|
||||||
|
/**
|
||||||
|
* parameter for oauth2 security
|
||||||
|
* @param name security name
|
||||||
|
* @param scopes oauth2 scope
|
||||||
|
* @memberof Configuration
|
||||||
|
*/
|
||||||
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||||
|
/**
|
||||||
|
* override base path
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Configuration
|
||||||
|
*/
|
||||||
|
basePath?: string;
|
||||||
|
/**
|
||||||
|
* base options for axios calls
|
||||||
|
*
|
||||||
|
* @type {any}
|
||||||
|
* @memberof Configuration
|
||||||
|
*/
|
||||||
|
baseOptions?: any;
|
||||||
|
/**
|
||||||
|
* The FormData constructor that will be used to create multipart form data
|
||||||
|
* requests. You can inject this here so that execution environments that
|
||||||
|
* do not support the FormData class can still run the generated client.
|
||||||
|
*
|
||||||
|
* @type {new () => FormData}
|
||||||
|
*/
|
||||||
|
formDataCtor?: new () => any;
|
||||||
|
|
||||||
|
constructor(param: ConfigurationParameters = {}) {
|
||||||
|
this.apiKey = param.apiKey;
|
||||||
|
this.username = param.username;
|
||||||
|
this.password = param.password;
|
||||||
|
this.accessToken = param.accessToken;
|
||||||
|
this.basePath = param.basePath;
|
||||||
|
this.baseOptions = param.baseOptions;
|
||||||
|
this.formDataCtor = param.formDataCtor;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if the given MIME is a JSON MIME.
|
||||||
|
* JSON MIME examples:
|
||||||
|
* application/json
|
||||||
|
* application/json; charset=UTF8
|
||||||
|
* APPLICATION/JSON
|
||||||
|
* application/vnd.company+json
|
||||||
|
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
||||||
|
* @return True if the given MIME is JSON, false otherwise.
|
||||||
|
*/
|
||||||
|
public isJsonMime(mime: string): boolean {
|
||||||
|
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
||||||
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
||||||
|
}
|
||||||
|
}
|
||||||
57
mta-sign-ui/gen-sources/mta-sign-api/git_push.sh
Normal file
57
mta-sign-ui/gen-sources/mta-sign-api/git_push.sh
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||||
|
#
|
||||||
|
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
||||||
|
|
||||||
|
git_user_id=$1
|
||||||
|
git_repo_id=$2
|
||||||
|
release_note=$3
|
||||||
|
git_host=$4
|
||||||
|
|
||||||
|
if [ "$git_host" = "" ]; then
|
||||||
|
git_host="github.com"
|
||||||
|
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$git_user_id" = "" ]; then
|
||||||
|
git_user_id="GIT_USER_ID"
|
||||||
|
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$git_repo_id" = "" ]; then
|
||||||
|
git_repo_id="GIT_REPO_ID"
|
||||||
|
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$release_note" = "" ]; then
|
||||||
|
release_note="Minor update"
|
||||||
|
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Initialize the local directory as a Git repository
|
||||||
|
git init
|
||||||
|
|
||||||
|
# Adds the files in the local repository and stages them for commit.
|
||||||
|
git add .
|
||||||
|
|
||||||
|
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||||
|
git commit -m "$release_note"
|
||||||
|
|
||||||
|
# Sets the new remote
|
||||||
|
git_remote=$(git remote)
|
||||||
|
if [ "$git_remote" = "" ]; then # git remote not defined
|
||||||
|
|
||||||
|
if [ "$GIT_TOKEN" = "" ]; then
|
||||||
|
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
||||||
|
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
||||||
|
else
|
||||||
|
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
git pull origin master
|
||||||
|
|
||||||
|
# Pushes (Forces) the changes in the local repository up to the remote repository
|
||||||
|
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
||||||
|
git push origin master 2>&1 | grep -v 'To https'
|
||||||
@@ -1,5 +1,18 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
export * from './runtime';
|
/**
|
||||||
export * from './apis';
|
* FastAPI
|
||||||
export * from './models';
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 0.1.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
export * from "./api";
|
||||||
|
export * from "./configuration";
|
||||||
|
|
||||||
|
|||||||
@@ -1,73 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* FastAPI
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 0.1.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { StationResponse } from './StationResponse';
|
|
||||||
import {
|
|
||||||
StationResponseFromJSON,
|
|
||||||
StationResponseFromJSONTyped,
|
|
||||||
StationResponseToJSON,
|
|
||||||
} from './StationResponse';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface AllStationModel
|
|
||||||
*/
|
|
||||||
export interface AllStationModel {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {{ [key: string]: StationResponse; }}
|
|
||||||
* @memberof AllStationModel
|
|
||||||
*/
|
|
||||||
stations: { [key: string]: StationResponse; } | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the AllStationModel interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfAllStationModel(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "stations" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AllStationModelFromJSON(json: any): AllStationModel {
|
|
||||||
return AllStationModelFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AllStationModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): AllStationModel {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'stations': { [key: string]: StationResponse; }FromJSON(json['stations']),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AllStationModelToJSON(value?: AllStationModel | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'stations': { [key: string]: StationResponse; }ToJSON(value.stations),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* FastAPI
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 0.1.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface HTTPValidationError
|
|
||||||
*/
|
|
||||||
export interface HTTPValidationError {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {any}
|
|
||||||
* @memberof HTTPValidationError
|
|
||||||
*/
|
|
||||||
detail?: any | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the HTTPValidationError interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfHTTPValidationError(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function HTTPValidationErrorFromJSON(json: any): HTTPValidationError {
|
|
||||||
return HTTPValidationErrorFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): HTTPValidationError {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'detail': !exists(json, 'detail') ? undefined : json['detail'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function HTTPValidationErrorToJSON(value?: HTTPValidationError | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'detail': value.detail,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* FastAPI
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 0.1.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
* An enumeration.
|
|
||||||
* @export
|
|
||||||
* @interface Route
|
|
||||||
*/
|
|
||||||
export interface Route {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Route interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRoute(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RouteFromJSON(json: any): Route {
|
|
||||||
return RouteFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RouteFromJSONTyped(json: any, ignoreDiscriminator: boolean): Route {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RouteToJSON(value?: Route | null): any {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* FastAPI
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 0.1.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface RouteResponse
|
|
||||||
*/
|
|
||||||
export interface RouteResponse {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {any}
|
|
||||||
* @memberof RouteResponse
|
|
||||||
*/
|
|
||||||
arrivalTimes: any | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the RouteResponse interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRouteResponse(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "arrivalTimes" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RouteResponseFromJSON(json: any): RouteResponse {
|
|
||||||
return RouteResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteResponse {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'arrivalTimes': json['arrival_times'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RouteResponseToJSON(value?: RouteResponse | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'arrival_times': value.arrivalTimes,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* FastAPI
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 0.1.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { RouteResponse } from './RouteResponse';
|
|
||||||
import {
|
|
||||||
RouteResponseFromJSON,
|
|
||||||
RouteResponseFromJSONTyped,
|
|
||||||
RouteResponseToJSON,
|
|
||||||
} from './RouteResponse';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface StationResponse
|
|
||||||
*/
|
|
||||||
export interface StationResponse {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {{ [key: string]: RouteResponse; }}
|
|
||||||
* @memberof StationResponse
|
|
||||||
*/
|
|
||||||
routes: { [key: string]: RouteResponse; } | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the StationResponse interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfStationResponse(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "routes" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StationResponseFromJSON(json: any): StationResponse {
|
|
||||||
return StationResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StationResponse {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'routes': { [key: string]: RouteResponse; }FromJSON(json['routes']),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StationResponseToJSON(value?: StationResponse | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'routes': { [key: string]: RouteResponse; }ToJSON(value.routes),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* FastAPI
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 0.1.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ValidationError
|
|
||||||
*/
|
|
||||||
export interface ValidationError {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {any}
|
|
||||||
* @memberof ValidationError
|
|
||||||
*/
|
|
||||||
loc: any | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {any}
|
|
||||||
* @memberof ValidationError
|
|
||||||
*/
|
|
||||||
msg: any | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {any}
|
|
||||||
* @memberof ValidationError
|
|
||||||
*/
|
|
||||||
type: any | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ValidationError interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfValidationError(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "loc" in value;
|
|
||||||
isInstance = isInstance && "msg" in value;
|
|
||||||
isInstance = isInstance && "type" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ValidationErrorFromJSON(json: any): ValidationError {
|
|
||||||
return ValidationErrorFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'loc': json['loc'],
|
|
||||||
'msg': json['msg'],
|
|
||||||
'type': json['type'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ValidationErrorToJSON(value?: ValidationError | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'loc': value.loc,
|
|
||||||
'msg': value.msg,
|
|
||||||
'type': value.type,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export * from './AllStationModel';
|
|
||||||
export * from './HTTPValidationError';
|
|
||||||
export * from './Route';
|
|
||||||
export * from './RouteResponse';
|
|
||||||
export * from './StationResponse';
|
|
||||||
export * from './ValidationError';
|
|
||||||
@@ -1,287 +1 @@
|
|||||||
{
|
{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/api/start_time":{"post":{"tags":["start"],"summary":"Get Start Time","operationId":"get_start_time_api_start_time_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/mta/{stop_id}/{route}":{"post":{"tags":["mta-data"],"summary":"Get Route","operationId":"get_route_api_mta__stop_id___route__post","parameters":[{"required":true,"schema":{"type":"string","title":"Stop Id"},"name":"stop_id","in":"path"},{"required":true,"schema":{"$ref":"#/components/schemas/Route"},"name":"route","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mta/{stop_id}":{"post":{"tags":["mta-data"],"summary":"Get Station","operationId":"get_station_api_mta__stop_id__post","parameters":[{"required":true,"schema":{"type":"string","title":"Stop Id"},"name":"stop_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mta":{"post":{"tags":["mta-data"],"summary":"Get All","operationId":"get_all_api_mta_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllStationModel"}}}}}}},"/api/config":{"get":{"tags":["config"],"summary":"Get All","operationId":"get_all_api_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AllStationModel":{"properties":{"stations":{"additionalProperties":{"$ref":"#/components/schemas/StationResponse"},"type":"object","title":"Stations"}},"type":"object","required":["stations"],"title":"AllStationModel"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Route":{"enum":["A","C","E","B","D","F","M","G","J","Z","N","Q","R","W","1","2","3","4","5","6","7","L","SIR"],"title":"Route","description":"An enumeration."},"RouteResponse":{"properties":{"arrival_times":{"items":{"type":"integer"},"type":"array","title":"Arrival Times"}},"type":"object","required":["arrival_times"],"title":"RouteResponse"},"StationResponse":{"properties":{"routes":{"additionalProperties":{"$ref":"#/components/schemas/RouteResponse"},"type":"object","title":"Routes"}},"type":"object","required":["routes"],"title":"StationResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}
|
||||||
"openapi": "3.1.0",
|
|
||||||
"info": {
|
|
||||||
"title": "FastAPI",
|
|
||||||
"version": "0.1.0"
|
|
||||||
},
|
|
||||||
"paths": {
|
|
||||||
"/api/start_time": {
|
|
||||||
"post": {
|
|
||||||
"tags": [
|
|
||||||
"start"
|
|
||||||
],
|
|
||||||
"summary": "Get Start Time",
|
|
||||||
"operationId": "get_start_time_api_start_time_post",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Successful Response",
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/mta/{stop_id}/{route}": {
|
|
||||||
"post": {
|
|
||||||
"tags": [
|
|
||||||
"mta-data"
|
|
||||||
],
|
|
||||||
"summary": "Get Route",
|
|
||||||
"operationId": "get_route_api_mta__stop_id___route__post",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"required": true,
|
|
||||||
"schema": {
|
|
||||||
"type": "string",
|
|
||||||
"title": "Stop Id"
|
|
||||||
},
|
|
||||||
"name": "stop_id",
|
|
||||||
"in": "path"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"required": true,
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/Route"
|
|
||||||
},
|
|
||||||
"name": "route",
|
|
||||||
"in": "path"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Successful Response",
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/RouteResponse"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"422": {
|
|
||||||
"description": "Validation Error",
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/HTTPValidationError"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/mta/{stop_id}": {
|
|
||||||
"post": {
|
|
||||||
"tags": [
|
|
||||||
"mta-data"
|
|
||||||
],
|
|
||||||
"summary": "Get Station",
|
|
||||||
"operationId": "get_station_api_mta__stop_id__post",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"required": true,
|
|
||||||
"schema": {
|
|
||||||
"type": "string",
|
|
||||||
"title": "Stop Id"
|
|
||||||
},
|
|
||||||
"name": "stop_id",
|
|
||||||
"in": "path"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Successful Response",
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/StationResponse"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"422": {
|
|
||||||
"description": "Validation Error",
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/HTTPValidationError"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/mta": {
|
|
||||||
"post": {
|
|
||||||
"tags": [
|
|
||||||
"mta-data"
|
|
||||||
],
|
|
||||||
"summary": "Get All",
|
|
||||||
"operationId": "get_all_api_mta_post",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Successful Response",
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/AllStationModel"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/config": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"config"
|
|
||||||
],
|
|
||||||
"summary": "Get All",
|
|
||||||
"operationId": "get_all_api_config_get",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Successful Response",
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"schemas": {
|
|
||||||
"AllStationModel": {
|
|
||||||
"properties": {
|
|
||||||
"stations": {
|
|
||||||
"additionalProperties": {
|
|
||||||
"$ref": "#/components/schemas/StationResponse"
|
|
||||||
},
|
|
||||||
"type": "object",
|
|
||||||
"title": "Stations"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
|
||||||
"stations"
|
|
||||||
],
|
|
||||||
"title": "AllStationModel"
|
|
||||||
},
|
|
||||||
"HTTPValidationError": {
|
|
||||||
"properties": {
|
|
||||||
"detail": {
|
|
||||||
"items": {
|
|
||||||
"$ref": "#/components/schemas/ValidationError"
|
|
||||||
},
|
|
||||||
"type": "array",
|
|
||||||
"title": "Detail"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "object",
|
|
||||||
"title": "HTTPValidationError"
|
|
||||||
},
|
|
||||||
"Route": {
|
|
||||||
"enum": [
|
|
||||||
"A",
|
|
||||||
"C",
|
|
||||||
"E",
|
|
||||||
"B",
|
|
||||||
"D",
|
|
||||||
"F",
|
|
||||||
"M",
|
|
||||||
"G",
|
|
||||||
"J",
|
|
||||||
"Z",
|
|
||||||
"N",
|
|
||||||
"Q",
|
|
||||||
"R",
|
|
||||||
"W",
|
|
||||||
"1",
|
|
||||||
"2",
|
|
||||||
"3",
|
|
||||||
"4",
|
|
||||||
"5",
|
|
||||||
"6",
|
|
||||||
"7",
|
|
||||||
"L",
|
|
||||||
"SIR"
|
|
||||||
],
|
|
||||||
"title": "Route",
|
|
||||||
"description": "An enumeration."
|
|
||||||
},
|
|
||||||
"RouteResponse": {
|
|
||||||
"properties": {
|
|
||||||
"arrival_times": {
|
|
||||||
"items": {
|
|
||||||
"type": "integer"
|
|
||||||
},
|
|
||||||
"type": "array",
|
|
||||||
"title": "Arrival Times"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
|
||||||
"arrival_times"
|
|
||||||
],
|
|
||||||
"title": "RouteResponse"
|
|
||||||
},
|
|
||||||
"StationResponse": {
|
|
||||||
"properties": {
|
|
||||||
"routes": {
|
|
||||||
"additionalProperties": {
|
|
||||||
"$ref": "#/components/schemas/RouteResponse"
|
|
||||||
},
|
|
||||||
"type": "object",
|
|
||||||
"title": "Routes"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
|
||||||
"routes"
|
|
||||||
],
|
|
||||||
"title": "StationResponse"
|
|
||||||
},
|
|
||||||
"ValidationError": {
|
|
||||||
"properties": {
|
|
||||||
"loc": {
|
|
||||||
"items": {
|
|
||||||
"anyOf": [
|
|
||||||
{
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "integer"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"type": "array",
|
|
||||||
"title": "Location"
|
|
||||||
},
|
|
||||||
"msg": {
|
|
||||||
"type": "string",
|
|
||||||
"title": "Message"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"title": "Error Type"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
|
||||||
"loc",
|
|
||||||
"msg",
|
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"title": "ValidationError"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,425 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* FastAPI
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 0.1.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
||||||
|
|
||||||
export interface ConfigurationParameters {
|
|
||||||
basePath?: string; // override base path
|
|
||||||
fetchApi?: FetchAPI; // override for fetch implementation
|
|
||||||
middleware?: Middleware[]; // middleware to apply before/after fetch requests
|
|
||||||
queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings
|
|
||||||
username?: string; // parameter for basic security
|
|
||||||
password?: string; // parameter for basic security
|
|
||||||
apiKey?: string | ((name: string) => string); // parameter for apiKey security
|
|
||||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security
|
|
||||||
headers?: HTTPHeaders; //header params we want to use on every request
|
|
||||||
credentials?: RequestCredentials; //value for the credentials param we want to use on each request
|
|
||||||
}
|
|
||||||
|
|
||||||
export class Configuration {
|
|
||||||
constructor(private configuration: ConfigurationParameters = {}) {}
|
|
||||||
|
|
||||||
set config(configuration: Configuration) {
|
|
||||||
this.configuration = configuration;
|
|
||||||
}
|
|
||||||
|
|
||||||
get basePath(): string {
|
|
||||||
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
||||||
}
|
|
||||||
|
|
||||||
get fetchApi(): FetchAPI | undefined {
|
|
||||||
return this.configuration.fetchApi;
|
|
||||||
}
|
|
||||||
|
|
||||||
get middleware(): Middleware[] {
|
|
||||||
return this.configuration.middleware || [];
|
|
||||||
}
|
|
||||||
|
|
||||||
get queryParamsStringify(): (params: HTTPQuery) => string {
|
|
||||||
return this.configuration.queryParamsStringify || querystring;
|
|
||||||
}
|
|
||||||
|
|
||||||
get username(): string | undefined {
|
|
||||||
return this.configuration.username;
|
|
||||||
}
|
|
||||||
|
|
||||||
get password(): string | undefined {
|
|
||||||
return this.configuration.password;
|
|
||||||
}
|
|
||||||
|
|
||||||
get apiKey(): ((name: string) => string) | undefined {
|
|
||||||
const apiKey = this.configuration.apiKey;
|
|
||||||
if (apiKey) {
|
|
||||||
return typeof apiKey === 'function' ? apiKey : () => apiKey;
|
|
||||||
}
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined {
|
|
||||||
const accessToken = this.configuration.accessToken;
|
|
||||||
if (accessToken) {
|
|
||||||
return typeof accessToken === 'function' ? accessToken : async () => accessToken;
|
|
||||||
}
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
get headers(): HTTPHeaders | undefined {
|
|
||||||
return this.configuration.headers;
|
|
||||||
}
|
|
||||||
|
|
||||||
get credentials(): RequestCredentials | undefined {
|
|
||||||
return this.configuration.credentials;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export const DefaultConfig = new Configuration();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is the base class for all generated API classes.
|
|
||||||
*/
|
|
||||||
export class BaseAPI {
|
|
||||||
|
|
||||||
private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
|
||||||
private middleware: Middleware[];
|
|
||||||
|
|
||||||
constructor(protected configuration = DefaultConfig) {
|
|
||||||
this.middleware = configuration.middleware;
|
|
||||||
}
|
|
||||||
|
|
||||||
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {
|
|
||||||
const next = this.clone<T>();
|
|
||||||
next.middleware = next.middleware.concat(...middlewares);
|
|
||||||
return next;
|
|
||||||
}
|
|
||||||
|
|
||||||
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>) {
|
|
||||||
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
||||||
return this.withMiddleware<T>(...middlewares);
|
|
||||||
}
|
|
||||||
|
|
||||||
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>) {
|
|
||||||
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
||||||
return this.withMiddleware<T>(...middlewares);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if the given MIME is a JSON MIME.
|
|
||||||
* JSON MIME examples:
|
|
||||||
* application/json
|
|
||||||
* application/json; charset=UTF8
|
|
||||||
* APPLICATION/JSON
|
|
||||||
* application/vnd.company+json
|
|
||||||
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
||||||
* @return True if the given MIME is JSON, false otherwise.
|
|
||||||
*/
|
|
||||||
protected isJsonMime(mime: string | null | undefined): boolean {
|
|
||||||
if (!mime) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return BaseAPI.jsonRegex.test(mime);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response> {
|
|
||||||
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
||||||
const response = await this.fetchApi(url, init);
|
|
||||||
if (response && (response.status >= 200 && response.status < 300)) {
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
throw new ResponseError(response, 'Response returned an error code');
|
|
||||||
}
|
|
||||||
|
|
||||||
private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) {
|
|
||||||
let url = this.configuration.basePath + context.path;
|
|
||||||
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
||||||
// only add the querystring to the URL if there are query parameters.
|
|
||||||
// this is done to avoid urls ending with a "?" character which buggy webservers
|
|
||||||
// do not handle correctly sometimes.
|
|
||||||
url += '?' + this.configuration.queryParamsStringify(context.query);
|
|
||||||
}
|
|
||||||
|
|
||||||
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
||||||
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
|
|
||||||
|
|
||||||
const initOverrideFn =
|
|
||||||
typeof initOverrides === "function"
|
|
||||||
? initOverrides
|
|
||||||
: async () => initOverrides;
|
|
||||||
|
|
||||||
const initParams = {
|
|
||||||
method: context.method,
|
|
||||||
headers,
|
|
||||||
body: context.body,
|
|
||||||
credentials: this.configuration.credentials,
|
|
||||||
};
|
|
||||||
|
|
||||||
const overriddenInit: RequestInit = {
|
|
||||||
...initParams,
|
|
||||||
...(await initOverrideFn({
|
|
||||||
init: initParams,
|
|
||||||
context,
|
|
||||||
}))
|
|
||||||
};
|
|
||||||
|
|
||||||
const init: RequestInit = {
|
|
||||||
...overriddenInit,
|
|
||||||
body:
|
|
||||||
isFormData(overriddenInit.body) ||
|
|
||||||
overriddenInit.body instanceof URLSearchParams ||
|
|
||||||
isBlob(overriddenInit.body)
|
|
||||||
? overriddenInit.body
|
|
||||||
: JSON.stringify(overriddenInit.body),
|
|
||||||
};
|
|
||||||
|
|
||||||
return { url, init };
|
|
||||||
}
|
|
||||||
|
|
||||||
private fetchApi = async (url: string, init: RequestInit) => {
|
|
||||||
let fetchParams = { url, init };
|
|
||||||
for (const middleware of this.middleware) {
|
|
||||||
if (middleware.pre) {
|
|
||||||
fetchParams = await middleware.pre({
|
|
||||||
fetch: this.fetchApi,
|
|
||||||
...fetchParams,
|
|
||||||
}) || fetchParams;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let response: Response | undefined = undefined;
|
|
||||||
try {
|
|
||||||
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
||||||
} catch (e) {
|
|
||||||
for (const middleware of this.middleware) {
|
|
||||||
if (middleware.onError) {
|
|
||||||
response = await middleware.onError({
|
|
||||||
fetch: this.fetchApi,
|
|
||||||
url: fetchParams.url,
|
|
||||||
init: fetchParams.init,
|
|
||||||
error: e,
|
|
||||||
response: response ? response.clone() : undefined,
|
|
||||||
}) || response;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (response === undefined) {
|
|
||||||
if (e instanceof Error) {
|
|
||||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
|
||||||
} else {
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (const middleware of this.middleware) {
|
|
||||||
if (middleware.post) {
|
|
||||||
response = await middleware.post({
|
|
||||||
fetch: this.fetchApi,
|
|
||||||
url: fetchParams.url,
|
|
||||||
init: fetchParams.init,
|
|
||||||
response: response.clone(),
|
|
||||||
}) || response;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a shallow clone of `this` by constructing a new instance
|
|
||||||
* and then shallow cloning data members.
|
|
||||||
*/
|
|
||||||
private clone<T extends BaseAPI>(this: T): T {
|
|
||||||
const constructor = this.constructor as any;
|
|
||||||
const next = new constructor(this.configuration);
|
|
||||||
next.middleware = this.middleware.slice();
|
|
||||||
return next;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
function isBlob(value: any): value is Blob {
|
|
||||||
return typeof Blob !== 'undefined' && value instanceof Blob;
|
|
||||||
}
|
|
||||||
|
|
||||||
function isFormData(value: any): value is FormData {
|
|
||||||
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ResponseError extends Error {
|
|
||||||
override name: "ResponseError" = "ResponseError";
|
|
||||||
constructor(public response: Response, msg?: string) {
|
|
||||||
super(msg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class FetchError extends Error {
|
|
||||||
override name: "FetchError" = "FetchError";
|
|
||||||
constructor(public cause: Error, msg?: string) {
|
|
||||||
super(msg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class RequiredError extends Error {
|
|
||||||
override name: "RequiredError" = "RequiredError";
|
|
||||||
constructor(public field: string, msg?: string) {
|
|
||||||
super(msg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export const COLLECTION_FORMATS = {
|
|
||||||
csv: ",",
|
|
||||||
ssv: " ",
|
|
||||||
tsv: "\t",
|
|
||||||
pipes: "|",
|
|
||||||
};
|
|
||||||
|
|
||||||
export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
||||||
|
|
||||||
export type Json = any;
|
|
||||||
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
||||||
export type HTTPHeaders = { [key: string]: string };
|
|
||||||
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
|
|
||||||
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
||||||
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
|
|
||||||
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
||||||
|
|
||||||
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
|
|
||||||
|
|
||||||
export interface FetchParams {
|
|
||||||
url: string;
|
|
||||||
init: RequestInit;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface RequestOpts {
|
|
||||||
path: string;
|
|
||||||
method: HTTPMethod;
|
|
||||||
headers: HTTPHeaders;
|
|
||||||
query?: HTTPQuery;
|
|
||||||
body?: HTTPBody;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function exists(json: any, key: string) {
|
|
||||||
const value = json[key];
|
|
||||||
return value !== null && value !== undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function querystring(params: HTTPQuery, prefix: string = ''): string {
|
|
||||||
return Object.keys(params)
|
|
||||||
.map(key => querystringSingleKey(key, params[key], prefix))
|
|
||||||
.filter(part => part.length > 0)
|
|
||||||
.join('&');
|
|
||||||
}
|
|
||||||
|
|
||||||
function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery, keyPrefix: string = ''): string {
|
|
||||||
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
||||||
if (value instanceof Array) {
|
|
||||||
const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
|
|
||||||
.join(`&${encodeURIComponent(fullKey)}=`);
|
|
||||||
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
||||||
}
|
|
||||||
if (value instanceof Set) {
|
|
||||||
const valueAsArray = Array.from(value);
|
|
||||||
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
||||||
}
|
|
||||||
if (value instanceof Date) {
|
|
||||||
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
||||||
}
|
|
||||||
if (value instanceof Object) {
|
|
||||||
return querystring(value as HTTPQuery, fullKey);
|
|
||||||
}
|
|
||||||
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function mapValues(data: any, fn: (item: any) => any) {
|
|
||||||
return Object.keys(data).reduce(
|
|
||||||
(acc, key) => ({ ...acc, [key]: fn(data[key]) }),
|
|
||||||
{}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function canConsumeForm(consumes: Consume[]): boolean {
|
|
||||||
for (const consume of consumes) {
|
|
||||||
if ('multipart/form-data' === consume.contentType) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Consume {
|
|
||||||
contentType: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface RequestContext {
|
|
||||||
fetch: FetchAPI;
|
|
||||||
url: string;
|
|
||||||
init: RequestInit;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ResponseContext {
|
|
||||||
fetch: FetchAPI;
|
|
||||||
url: string;
|
|
||||||
init: RequestInit;
|
|
||||||
response: Response;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ErrorContext {
|
|
||||||
fetch: FetchAPI;
|
|
||||||
url: string;
|
|
||||||
init: RequestInit;
|
|
||||||
error: unknown;
|
|
||||||
response?: Response;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Middleware {
|
|
||||||
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
||||||
post?(context: ResponseContext): Promise<Response | void>;
|
|
||||||
onError?(context: ErrorContext): Promise<Response | void>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ApiResponse<T> {
|
|
||||||
raw: Response;
|
|
||||||
value(): Promise<T>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ResponseTransformer<T> {
|
|
||||||
(json: any): T;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class JSONApiResponse<T> {
|
|
||||||
constructor(public raw: Response, private transformer: ResponseTransformer<T> = (jsonValue: any) => jsonValue) {}
|
|
||||||
|
|
||||||
async value(): Promise<T> {
|
|
||||||
return this.transformer(await this.raw.json());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class VoidApiResponse {
|
|
||||||
constructor(public raw: Response) {}
|
|
||||||
|
|
||||||
async value(): Promise<void> {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class BlobApiResponse {
|
|
||||||
constructor(public raw: Response) {}
|
|
||||||
|
|
||||||
async value(): Promise<Blob> {
|
|
||||||
return await this.raw.blob();
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export class TextApiResponse {
|
|
||||||
constructor(public raw: Response) {}
|
|
||||||
|
|
||||||
async value(): Promise<string> {
|
|
||||||
return await this.raw.text();
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -6,7 +6,7 @@ const nextConfig = {
|
|||||||
source: '/api/:path*',
|
source: '/api/:path*',
|
||||||
destination:
|
destination:
|
||||||
process.env.NODE_ENV === 'development'
|
process.env.NODE_ENV === 'development'
|
||||||
? 'http://127.0.0.1:8000/api/:path*'
|
? 'http://localhost:8000/api/:path*'
|
||||||
: '/api/',
|
: '/api/',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"version": "6.6.0",
|
"version": "6.6.0",
|
||||||
"generators": {
|
"generators": {
|
||||||
"mta-sign-api": {
|
"mta-sign-api": {
|
||||||
"generatorName": "typescript-fetch",
|
"generatorName": "typescript-axios",
|
||||||
"output": "#{cwd}/gen-sources/mta-sign-api/",
|
"output": "#{cwd}/gen-sources/mta-sign-api/",
|
||||||
"glob": "gen-sources/mta-sign-api/openapi.{json,yaml}",
|
"glob": "gen-sources/mta-sign-api/openapi.{json,yaml}",
|
||||||
"additionalProperties": "supportsES6=true,typescriptThreePlus=true"
|
"additionalProperties": "supportsES6=true,typescriptThreePlus=true"
|
||||||
|
|||||||
6924
mta-sign-ui/package-lock.json
generated
6924
mta-sign-ui/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -7,22 +7,23 @@
|
|||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"gen-apis": "curl localhost:8000/openapi.json -O --output-dir ./gen-sources/mta-sign-api && openapi-generator-cli generate"
|
"gen-apis": "rm -rf ./gen-sources/mta-sign-api/* && curl localhost:8000/openapi.json -O --output-dir ./gen-sources/mta-sign-api && openapi-generator-cli generate"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "20.4.1",
|
"@types/node": "^20.4.2",
|
||||||
"@types/react": "18.2.14",
|
"@types/react": "^18.2.15",
|
||||||
"@types/react-dom": "18.2.6",
|
"@types/react-dom": "^18.2.7",
|
||||||
"autoprefixer": "10.4.14",
|
"autoprefixer": "^10.4.14",
|
||||||
"eslint": "8.44.0",
|
"axios": "^1.4.0",
|
||||||
"eslint-config-next": "13.4.9",
|
"eslint": "^8.45.0",
|
||||||
|
"eslint-config-next": "^13.4.10",
|
||||||
"follow-redirects": "^1.15.2",
|
"follow-redirects": "^1.15.2",
|
||||||
"next": "13.4.9",
|
"next": "^13.4.10",
|
||||||
"postcss": "8.4.25",
|
"postcss": "^8.4.26",
|
||||||
"react": "18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"tailwindcss": "3.3.2",
|
"tailwindcss": "^3.3.3",
|
||||||
"typescript": "5.1.6"
|
"typescript": "^5.1.6"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@3.6.1",
|
"packageManager": "yarn@3.6.1",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -1,13 +1,4 @@
|
|||||||
import {MtaData, MtaStartTime} from "@/services/mta-api/types";
|
import { MtaStartTime} from "@/services/mta-api/types";
|
||||||
|
|
||||||
export const fetchStationData = async (stations: [string]): Promise<MtaData> => {
|
|
||||||
const res = await fetch("/api/mta", {method: "POST"})
|
|
||||||
const data = await res.json()
|
|
||||||
return {
|
|
||||||
mtaData: data
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
export const fetchStartDate = async (stations: [string]): Promise<MtaStartTime> => {
|
export const fetchStartDate = async (stations: [string]): Promise<MtaStartTime> => {
|
||||||
const res = await fetch("/api/start_time", {method: "POST"})
|
const res = await fetch("/api/start_time", {method: "POST"})
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
export interface MtaData {
|
import {Configuration, MtaDataApi} from "@/gen-sources/mta-sign-api"
|
||||||
mtaData: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface MtaStartTime {
|
export interface MtaStartTime {
|
||||||
startTime: Date
|
startTime: Date
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const mtaApiConfiguration = new Configuration(
|
||||||
|
{basePath:"http://localhost:8000"}
|
||||||
|
)
|
||||||
|
|
||||||
|
export const mtaDataClient = new MtaDataApi(mtaApiConfiguration);
|
||||||
|
|||||||
@@ -230,81 +230,81 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@next/env@npm:13.4.9":
|
"@next/env@npm:13.4.10":
|
||||||
version: 13.4.9
|
version: 13.4.10
|
||||||
resolution: "@next/env@npm:13.4.9"
|
resolution: "@next/env@npm:13.4.10"
|
||||||
checksum: 625f01571ac5dabbb90567a987fdc16eca86cd9cfd592edabf7d3e3024972cd83564d53202293163851b85fa643f846a5757c8696a3c44315c98dae5b634f122
|
checksum: a3e1ca0fe2e58288a9747a279d168a5d2cdda68bd72174d4c8b6746e5172f261174401d787ec356ac424504f967f0a47bffeffcfdabd6fa73a9e2bd0ff851a73
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@next/eslint-plugin-next@npm:13.4.9":
|
"@next/eslint-plugin-next@npm:13.4.10":
|
||||||
version: 13.4.9
|
version: 13.4.10
|
||||||
resolution: "@next/eslint-plugin-next@npm:13.4.9"
|
resolution: "@next/eslint-plugin-next@npm:13.4.10"
|
||||||
dependencies:
|
dependencies:
|
||||||
glob: 7.1.7
|
glob: 7.1.7
|
||||||
checksum: d57f1246fac54173c47a065404ba7237cfd6618648db4effbcdb30b5578b99edb3a2593df13ca617aa63c40e5e1336551089c506b2168a69a6cf8d5d7d045c0b
|
checksum: f14b99eb5d33b6ede9666ffafb596ee6be52157fc87b59d10d94e44b1e9836099ad450a67558c2aecf09c84b55f65a33c9254ab72df33f55f7cc9f4abee7b38c
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@next/swc-darwin-arm64@npm:13.4.9":
|
"@next/swc-darwin-arm64@npm:13.4.10":
|
||||||
version: 13.4.9
|
version: 13.4.10
|
||||||
resolution: "@next/swc-darwin-arm64@npm:13.4.9"
|
resolution: "@next/swc-darwin-arm64@npm:13.4.10"
|
||||||
conditions: os=darwin & cpu=arm64
|
conditions: os=darwin & cpu=arm64
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@next/swc-darwin-x64@npm:13.4.9":
|
"@next/swc-darwin-x64@npm:13.4.10":
|
||||||
version: 13.4.9
|
version: 13.4.10
|
||||||
resolution: "@next/swc-darwin-x64@npm:13.4.9"
|
resolution: "@next/swc-darwin-x64@npm:13.4.10"
|
||||||
conditions: os=darwin & cpu=x64
|
conditions: os=darwin & cpu=x64
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@next/swc-linux-arm64-gnu@npm:13.4.9":
|
"@next/swc-linux-arm64-gnu@npm:13.4.10":
|
||||||
version: 13.4.9
|
version: 13.4.10
|
||||||
resolution: "@next/swc-linux-arm64-gnu@npm:13.4.9"
|
resolution: "@next/swc-linux-arm64-gnu@npm:13.4.10"
|
||||||
conditions: os=linux & cpu=arm64 & libc=glibc
|
conditions: os=linux & cpu=arm64 & libc=glibc
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@next/swc-linux-arm64-musl@npm:13.4.9":
|
"@next/swc-linux-arm64-musl@npm:13.4.10":
|
||||||
version: 13.4.9
|
version: 13.4.10
|
||||||
resolution: "@next/swc-linux-arm64-musl@npm:13.4.9"
|
resolution: "@next/swc-linux-arm64-musl@npm:13.4.10"
|
||||||
conditions: os=linux & cpu=arm64 & libc=musl
|
conditions: os=linux & cpu=arm64 & libc=musl
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@next/swc-linux-x64-gnu@npm:13.4.9":
|
"@next/swc-linux-x64-gnu@npm:13.4.10":
|
||||||
version: 13.4.9
|
version: 13.4.10
|
||||||
resolution: "@next/swc-linux-x64-gnu@npm:13.4.9"
|
resolution: "@next/swc-linux-x64-gnu@npm:13.4.10"
|
||||||
conditions: os=linux & cpu=x64 & libc=glibc
|
conditions: os=linux & cpu=x64 & libc=glibc
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@next/swc-linux-x64-musl@npm:13.4.9":
|
"@next/swc-linux-x64-musl@npm:13.4.10":
|
||||||
version: 13.4.9
|
version: 13.4.10
|
||||||
resolution: "@next/swc-linux-x64-musl@npm:13.4.9"
|
resolution: "@next/swc-linux-x64-musl@npm:13.4.10"
|
||||||
conditions: os=linux & cpu=x64 & libc=musl
|
conditions: os=linux & cpu=x64 & libc=musl
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@next/swc-win32-arm64-msvc@npm:13.4.9":
|
"@next/swc-win32-arm64-msvc@npm:13.4.10":
|
||||||
version: 13.4.9
|
version: 13.4.10
|
||||||
resolution: "@next/swc-win32-arm64-msvc@npm:13.4.9"
|
resolution: "@next/swc-win32-arm64-msvc@npm:13.4.10"
|
||||||
conditions: os=win32 & cpu=arm64
|
conditions: os=win32 & cpu=arm64
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@next/swc-win32-ia32-msvc@npm:13.4.9":
|
"@next/swc-win32-ia32-msvc@npm:13.4.10":
|
||||||
version: 13.4.9
|
version: 13.4.10
|
||||||
resolution: "@next/swc-win32-ia32-msvc@npm:13.4.9"
|
resolution: "@next/swc-win32-ia32-msvc@npm:13.4.10"
|
||||||
conditions: os=win32 & cpu=ia32
|
conditions: os=win32 & cpu=ia32
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@next/swc-win32-x64-msvc@npm:13.4.9":
|
"@next/swc-win32-x64-msvc@npm:13.4.10":
|
||||||
version: 13.4.9
|
version: 13.4.10
|
||||||
resolution: "@next/swc-win32-x64-msvc@npm:13.4.9"
|
resolution: "@next/swc-win32-x64-msvc@npm:13.4.10"
|
||||||
conditions: os=win32 & cpu=x64
|
conditions: os=win32 & cpu=x64
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
@@ -435,10 +435,10 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/node@npm:20.4.1":
|
"@types/node@npm:^20.4.2":
|
||||||
version: 20.4.1
|
version: 20.4.2
|
||||||
resolution: "@types/node@npm:20.4.1"
|
resolution: "@types/node@npm:20.4.2"
|
||||||
checksum: 22cbcc792f2eb636fe4188778ed0f32658ab872aa7fcb9847b3fa289a42b14b9f5e30c6faec50ef3c7adbc6c2a246926e5858136bb8b10c035a3fcaa6afbeed2
|
checksum: 99e544ea7560d51f01f95627fc40394c24a13da8f041121a0da13e4ef0a2aa332932eaf9a5e8d0e30d1c07106e96a183be392cbba62e8cf0bf6a085d5c0f4149
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -449,23 +449,23 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/react-dom@npm:18.2.6":
|
"@types/react-dom@npm:^18.2.7":
|
||||||
version: 18.2.6
|
version: 18.2.7
|
||||||
resolution: "@types/react-dom@npm:18.2.6"
|
resolution: "@types/react-dom@npm:18.2.7"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/react": "*"
|
"@types/react": "*"
|
||||||
checksum: b56e42efab121a3a8013d2eb8c1688e6028a25ea6d33c4362d2846f0af3760b164b4d7c34846614024cfb8956cca70dd1743487f152e32ff89a00fe6fbd2be54
|
checksum: e02ea908289a7ad26053308248d2b87f6aeafd73d0e2de2a3d435947bcea0422599016ffd1c3e38ff36c42f5e1c87c7417f05b0a157e48649e4a02f21727d54f
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/react@npm:*, @types/react@npm:18.2.14":
|
"@types/react@npm:*, @types/react@npm:^18.2.15":
|
||||||
version: 18.2.14
|
version: 18.2.15
|
||||||
resolution: "@types/react@npm:18.2.14"
|
resolution: "@types/react@npm:18.2.15"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/prop-types": "*"
|
"@types/prop-types": "*"
|
||||||
"@types/scheduler": "*"
|
"@types/scheduler": "*"
|
||||||
csstype: ^3.0.2
|
csstype: ^3.0.2
|
||||||
checksum: a6a5e8cc78f486b9020d1ad009aa6c56943c68c7c6376e0f8399e9cbcd950b7b8f5d73f00200f5379f5e58d31d57d8aed24357f301d8e86108cd438ce6c8b3dd
|
checksum: 36989f638201bfe2f4110b06c119180f6df9c0e13d7060481e82e7a745f81745a01ae543c478a25b61e0767cb52e82da2ad5b0dedacabf99339e523d06176705
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -782,7 +782,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"autoprefixer@npm:10.4.14":
|
"autoprefixer@npm:^10.4.14":
|
||||||
version: 10.4.14
|
version: 10.4.14
|
||||||
resolution: "autoprefixer@npm:10.4.14"
|
resolution: "autoprefixer@npm:10.4.14"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -824,6 +824,17 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"axios@npm:^1.4.0":
|
||||||
|
version: 1.4.0
|
||||||
|
resolution: "axios@npm:1.4.0"
|
||||||
|
dependencies:
|
||||||
|
follow-redirects: ^1.15.0
|
||||||
|
form-data: ^4.0.0
|
||||||
|
proxy-from-env: ^1.1.0
|
||||||
|
checksum: 7fb6a4313bae7f45e89d62c70a800913c303df653f19eafec88e56cea2e3821066b8409bc68be1930ecca80e861c52aa787659df0ffec6ad4d451c7816b9386b
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"axobject-query@npm:^3.1.1":
|
"axobject-query@npm:^3.1.1":
|
||||||
version: 3.2.1
|
version: 3.2.1
|
||||||
resolution: "axobject-query@npm:3.2.1"
|
resolution: "axobject-query@npm:3.2.1"
|
||||||
@@ -1558,11 +1569,11 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"eslint-config-next@npm:13.4.9":
|
"eslint-config-next@npm:^13.4.10":
|
||||||
version: 13.4.9
|
version: 13.4.10
|
||||||
resolution: "eslint-config-next@npm:13.4.9"
|
resolution: "eslint-config-next@npm:13.4.10"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@next/eslint-plugin-next": 13.4.9
|
"@next/eslint-plugin-next": 13.4.10
|
||||||
"@rushstack/eslint-patch": ^1.1.3
|
"@rushstack/eslint-patch": ^1.1.3
|
||||||
"@typescript-eslint/parser": ^5.42.0
|
"@typescript-eslint/parser": ^5.42.0
|
||||||
eslint-import-resolver-node: ^0.3.6
|
eslint-import-resolver-node: ^0.3.6
|
||||||
@@ -1577,7 +1588,7 @@ __metadata:
|
|||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
typescript:
|
typescript:
|
||||||
optional: true
|
optional: true
|
||||||
checksum: 83d990f3529f84dda9e54ce8cef64802490850f47d63b51176695a4f327a6b0e0a0847e1af4f11e00e662db8103af197c37d30b878cfe0593477ebc0b43d2b10
|
checksum: d555e077e5045f045e5bdab58429b2245993a0e28d3030209766558a6d32ae165496030cafbab8e6aaf714947d895ee30d1ecdb49263abdb23b6889a333ea714
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -1725,9 +1736,9 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"eslint@npm:8.44.0":
|
"eslint@npm:^8.45.0":
|
||||||
version: 8.44.0
|
version: 8.45.0
|
||||||
resolution: "eslint@npm:8.44.0"
|
resolution: "eslint@npm:8.45.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@eslint-community/eslint-utils": ^4.2.0
|
"@eslint-community/eslint-utils": ^4.2.0
|
||||||
"@eslint-community/regexpp": ^4.4.0
|
"@eslint-community/regexpp": ^4.4.0
|
||||||
@@ -1754,7 +1765,6 @@ __metadata:
|
|||||||
globals: ^13.19.0
|
globals: ^13.19.0
|
||||||
graphemer: ^1.4.0
|
graphemer: ^1.4.0
|
||||||
ignore: ^5.2.0
|
ignore: ^5.2.0
|
||||||
import-fresh: ^3.0.0
|
|
||||||
imurmurhash: ^0.1.4
|
imurmurhash: ^0.1.4
|
||||||
is-glob: ^4.0.0
|
is-glob: ^4.0.0
|
||||||
is-path-inside: ^3.0.3
|
is-path-inside: ^3.0.3
|
||||||
@@ -1766,11 +1776,10 @@ __metadata:
|
|||||||
natural-compare: ^1.4.0
|
natural-compare: ^1.4.0
|
||||||
optionator: ^0.9.3
|
optionator: ^0.9.3
|
||||||
strip-ansi: ^6.0.1
|
strip-ansi: ^6.0.1
|
||||||
strip-json-comments: ^3.1.0
|
|
||||||
text-table: ^0.2.0
|
text-table: ^0.2.0
|
||||||
bin:
|
bin:
|
||||||
eslint: bin/eslint.js
|
eslint: bin/eslint.js
|
||||||
checksum: d06309ce4aafb9d27d558c8e5e5aa5cba3bbec3ce8ceccbc7d4b7a35f2b67fd40189159155553270e2e6febeb69bd8a3b60d6241c8f5ddc2ef1702ccbd328501
|
checksum: 3e6dcce5cc43c5e301662db88ee26d1d188b22c177b9f104d7eefd1191236980bd953b3670fe2fac287114b26d7c5420ab48407d7ea1c3a446d6313c000009da
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -1973,7 +1982,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"follow-redirects@npm:^1.14.9, follow-redirects@npm:^1.15.2":
|
"follow-redirects@npm:^1.14.9, follow-redirects@npm:^1.15.0, follow-redirects@npm:^1.15.2":
|
||||||
version: 1.15.2
|
version: 1.15.2
|
||||||
resolution: "follow-redirects@npm:1.15.2"
|
resolution: "follow-redirects@npm:1.15.2"
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
@@ -2201,7 +2210,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"glob@npm:7.1.7":
|
"glob@npm:7.1.7, glob@npm:^7.1.3":
|
||||||
version: 7.1.7
|
version: 7.1.7
|
||||||
resolution: "glob@npm:7.1.7"
|
resolution: "glob@npm:7.1.7"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -2230,7 +2239,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"glob@npm:^7.1.3, glob@npm:^7.1.4":
|
"glob@npm:^7.1.4":
|
||||||
version: 7.2.3
|
version: 7.2.3
|
||||||
resolution: "glob@npm:7.2.3"
|
resolution: "glob@npm:7.2.3"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -2457,7 +2466,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"import-fresh@npm:^3.0.0, import-fresh@npm:^3.2.1":
|
"import-fresh@npm:^3.2.1":
|
||||||
version: 3.3.0
|
version: 3.3.0
|
||||||
resolution: "import-fresh@npm:3.3.0"
|
resolution: "import-fresh@npm:3.3.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -2585,7 +2594,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"is-core-module@npm:^2.11.0, is-core-module@npm:^2.12.0, is-core-module@npm:^2.9.0":
|
"is-core-module@npm:^2.11.0, is-core-module@npm:^2.9.0":
|
||||||
version: 2.12.1
|
version: 2.12.1
|
||||||
resolution: "is-core-module@npm:2.12.1"
|
resolution: "is-core-module@npm:2.12.1"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -3169,9 +3178,9 @@ __metadata:
|
|||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"minipass@npm:^5.0.0 || ^6.0.2 || ^7.0.0":
|
"minipass@npm:^5.0.0 || ^6.0.2 || ^7.0.0":
|
||||||
version: 7.0.1
|
version: 7.0.2
|
||||||
resolution: "minipass@npm:7.0.1"
|
resolution: "minipass@npm:7.0.2"
|
||||||
checksum: fedd1293f6a1b4e406c242a1cecfb75d0a81422bb2c365d999e33a88642fb68d70a89d95b550e08c640b3c0d9162829310e0c58b9b846b9218de25779818c709
|
checksum: 46776de732eb7cef2c7404a15fb28c41f5c54a22be50d47b03c605bf21f5c18d61a173c0a20b49a97e7a65f78d887245066410642551e45fffe04e9ac9e325bc
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -3194,14 +3203,14 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"ms@npm:2.1.2":
|
"ms@npm:2.1.2, ms@npm:^2.1.1":
|
||||||
version: 2.1.2
|
version: 2.1.2
|
||||||
resolution: "ms@npm:2.1.2"
|
resolution: "ms@npm:2.1.2"
|
||||||
checksum: 673cdb2c3133eb050c745908d8ce632ed2c02d85640e2edb3ace856a2266a813b30c613569bf3354fdf4ea7d1a1494add3bfa95e2713baa27d0c2c71fc44f58f
|
checksum: 673cdb2c3133eb050c745908d8ce632ed2c02d85640e2edb3ace856a2266a813b30c613569bf3354fdf4ea7d1a1494add3bfa95e2713baa27d0c2c71fc44f58f
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"ms@npm:^2.0.0, ms@npm:^2.1.1":
|
"ms@npm:^2.0.0":
|
||||||
version: 2.1.3
|
version: 2.1.3
|
||||||
resolution: "ms@npm:2.1.3"
|
resolution: "ms@npm:2.1.3"
|
||||||
checksum: aa92de608021b242401676e35cfa5aa42dd70cbdc082b916da7fb925c542173e36bce97ea3e804923fe92c0ad991434e4a38327e15a1b5b5f945d66df615ae6d
|
checksum: aa92de608021b242401676e35cfa5aa42dd70cbdc082b916da7fb925c542173e36bce97ea3e804923fe92c0ad991434e4a38327e15a1b5b5f945d66df615ae6d
|
||||||
@@ -3213,19 +3222,20 @@ __metadata:
|
|||||||
resolution: "mta-sign@workspace:."
|
resolution: "mta-sign@workspace:."
|
||||||
dependencies:
|
dependencies:
|
||||||
"@openapitools/openapi-generator-cli": ^2.6.0
|
"@openapitools/openapi-generator-cli": ^2.6.0
|
||||||
"@types/node": 20.4.1
|
"@types/node": ^20.4.2
|
||||||
"@types/react": 18.2.14
|
"@types/react": ^18.2.15
|
||||||
"@types/react-dom": 18.2.6
|
"@types/react-dom": ^18.2.7
|
||||||
autoprefixer: 10.4.14
|
autoprefixer: ^10.4.14
|
||||||
eslint: 8.44.0
|
axios: ^1.4.0
|
||||||
eslint-config-next: 13.4.9
|
eslint: ^8.45.0
|
||||||
|
eslint-config-next: ^13.4.10
|
||||||
follow-redirects: ^1.15.2
|
follow-redirects: ^1.15.2
|
||||||
next: 13.4.9
|
next: ^13.4.10
|
||||||
postcss: 8.4.25
|
postcss: ^8.4.26
|
||||||
react: 18.2.0
|
react: ^18.2.0
|
||||||
react-dom: 18.2.0
|
react-dom: ^18.2.0
|
||||||
tailwindcss: 3.3.2
|
tailwindcss: ^3.3.3
|
||||||
typescript: 5.1.6
|
typescript: ^5.1.6
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
@@ -3270,20 +3280,20 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"next@npm:13.4.9":
|
"next@npm:^13.4.10":
|
||||||
version: 13.4.9
|
version: 13.4.10
|
||||||
resolution: "next@npm:13.4.9"
|
resolution: "next@npm:13.4.10"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@next/env": 13.4.9
|
"@next/env": 13.4.10
|
||||||
"@next/swc-darwin-arm64": 13.4.9
|
"@next/swc-darwin-arm64": 13.4.10
|
||||||
"@next/swc-darwin-x64": 13.4.9
|
"@next/swc-darwin-x64": 13.4.10
|
||||||
"@next/swc-linux-arm64-gnu": 13.4.9
|
"@next/swc-linux-arm64-gnu": 13.4.10
|
||||||
"@next/swc-linux-arm64-musl": 13.4.9
|
"@next/swc-linux-arm64-musl": 13.4.10
|
||||||
"@next/swc-linux-x64-gnu": 13.4.9
|
"@next/swc-linux-x64-gnu": 13.4.10
|
||||||
"@next/swc-linux-x64-musl": 13.4.9
|
"@next/swc-linux-x64-musl": 13.4.10
|
||||||
"@next/swc-win32-arm64-msvc": 13.4.9
|
"@next/swc-win32-arm64-msvc": 13.4.10
|
||||||
"@next/swc-win32-ia32-msvc": 13.4.9
|
"@next/swc-win32-ia32-msvc": 13.4.10
|
||||||
"@next/swc-win32-x64-msvc": 13.4.9
|
"@next/swc-win32-x64-msvc": 13.4.10
|
||||||
"@swc/helpers": 0.5.1
|
"@swc/helpers": 0.5.1
|
||||||
busboy: 1.6.0
|
busboy: 1.6.0
|
||||||
caniuse-lite: ^1.0.30001406
|
caniuse-lite: ^1.0.30001406
|
||||||
@@ -3325,7 +3335,7 @@ __metadata:
|
|||||||
optional: true
|
optional: true
|
||||||
bin:
|
bin:
|
||||||
next: dist/bin/next
|
next: dist/bin/next
|
||||||
checksum: 7adb9919dc50598e53bf32da2d0f90da325b66a23cb16c291c276d0683f81bade0bb21aeaeede10154ef53eabcb4953bf883f4d752852a62a6bd7be42021aef9
|
checksum: 823ec02325fc6d5cad055a596df8ba84066d9c259abf94755eeda4c8846e5b56fe244d0362d5f5a1182a29d9a62bebf1f428a2f79c338a07086a8cf3620778f7
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -3790,14 +3800,14 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"postcss@npm:8.4.25, postcss@npm:^8.4.23":
|
"postcss@npm:^8.4.23, postcss@npm:^8.4.26":
|
||||||
version: 8.4.25
|
version: 8.4.26
|
||||||
resolution: "postcss@npm:8.4.25"
|
resolution: "postcss@npm:8.4.26"
|
||||||
dependencies:
|
dependencies:
|
||||||
nanoid: ^3.3.6
|
nanoid: ^3.3.6
|
||||||
picocolors: ^1.0.0
|
picocolors: ^1.0.0
|
||||||
source-map-js: ^1.0.2
|
source-map-js: ^1.0.2
|
||||||
checksum: 9ed3ab8af43ad5210c28f56f916fd9b8c9f94fbeaebbf645dcf579bc28bdd8056c2a7ecc934668d399b81fedb6128f0c4b299f931e50454964bc911c25a3a0a2
|
checksum: 1cf08ee10d58cbe98f94bf12ac49a5e5ed1588507d333d2642aacc24369ca987274e1f60ff4cbf0081f70d2ab18a5cd3a4a273f188d835b8e7f3ba381b184e57
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -3829,6 +3839,13 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"proxy-from-env@npm:^1.1.0":
|
||||||
|
version: 1.1.0
|
||||||
|
resolution: "proxy-from-env@npm:1.1.0"
|
||||||
|
checksum: ed7fcc2ba0a33404958e34d95d18638249a68c430e30fcb6c478497d72739ba64ce9810a24f53a7d921d0c065e5b78e3822759800698167256b04659366ca4d4
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"punycode@npm:^2.1.0":
|
"punycode@npm:^2.1.0":
|
||||||
version: 2.3.0
|
version: 2.3.0
|
||||||
resolution: "punycode@npm:2.3.0"
|
resolution: "punycode@npm:2.3.0"
|
||||||
@@ -3843,7 +3860,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"react-dom@npm:18.2.0":
|
"react-dom@npm:^18.2.0":
|
||||||
version: 18.2.0
|
version: 18.2.0
|
||||||
resolution: "react-dom@npm:18.2.0"
|
resolution: "react-dom@npm:18.2.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -3862,7 +3879,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"react@npm:18.2.0":
|
"react@npm:^18.2.0":
|
||||||
version: 18.2.0
|
version: 18.2.0
|
||||||
resolution: "react@npm:18.2.0"
|
resolution: "react@npm:18.2.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -3947,15 +3964,15 @@ __metadata:
|
|||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"resolve@npm:^1.1.7, resolve@npm:^1.22.1, resolve@npm:^1.22.2":
|
"resolve@npm:^1.1.7, resolve@npm:^1.22.1, resolve@npm:^1.22.2":
|
||||||
version: 1.22.3
|
version: 1.22.2
|
||||||
resolution: "resolve@npm:1.22.3"
|
resolution: "resolve@npm:1.22.2"
|
||||||
dependencies:
|
dependencies:
|
||||||
is-core-module: ^2.12.0
|
is-core-module: ^2.11.0
|
||||||
path-parse: ^1.0.7
|
path-parse: ^1.0.7
|
||||||
supports-preserve-symlinks-flag: ^1.0.0
|
supports-preserve-symlinks-flag: ^1.0.0
|
||||||
bin:
|
bin:
|
||||||
resolve: bin/resolve
|
resolve: bin/resolve
|
||||||
checksum: fb834b81348428cb545ff1b828a72ea28feb5a97c026a1cf40aa1008352c72811ff4d4e71f2035273dc536dcfcae20c13604ba6283c612d70fa0b6e44519c374
|
checksum: 7e5df75796ebd429445d102d5824482ee7e567f0070b2b45897b29bb4f613dcbc262e0257b8aeedb3089330ccaea0d6a0464df1a77b2992cf331dcda0f4cb549
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -3973,15 +3990,15 @@ __metadata:
|
|||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"resolve@patch:resolve@^1.1.7#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.2#~builtin<compat/resolve>":
|
"resolve@patch:resolve@^1.1.7#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.2#~builtin<compat/resolve>":
|
||||||
version: 1.22.3
|
version: 1.22.2
|
||||||
resolution: "resolve@patch:resolve@npm%3A1.22.3#~builtin<compat/resolve>::version=1.22.3&hash=c3c19d"
|
resolution: "resolve@patch:resolve@npm%3A1.22.2#~builtin<compat/resolve>::version=1.22.2&hash=c3c19d"
|
||||||
dependencies:
|
dependencies:
|
||||||
is-core-module: ^2.12.0
|
is-core-module: ^2.11.0
|
||||||
path-parse: ^1.0.7
|
path-parse: ^1.0.7
|
||||||
supports-preserve-symlinks-flag: ^1.0.0
|
supports-preserve-symlinks-flag: ^1.0.0
|
||||||
bin:
|
bin:
|
||||||
resolve: bin/resolve
|
resolve: bin/resolve
|
||||||
checksum: ad59734723b596d0891321c951592ed9015a77ce84907f89c9d9307dd0c06e11a67906a3e628c4cae143d3e44898603478af0ddeb2bba3f229a9373efe342665
|
checksum: 66cc788f13b8398de18eb4abb3aed90435c84bb8935953feafcf7231ba4cd191b2c10b4a87b1e9681afc34fb138c705f91f7330ff90bfa36f457e5584076a2b8
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -4058,7 +4075,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"rxjs@npm:7.8.0":
|
"rxjs@npm:7.8.0, rxjs@npm:^7.5.5":
|
||||||
version: 7.8.0
|
version: 7.8.0
|
||||||
resolution: "rxjs@npm:7.8.0"
|
resolution: "rxjs@npm:7.8.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -4076,15 +4093,6 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"rxjs@npm:^7.5.5":
|
|
||||||
version: 7.8.1
|
|
||||||
resolution: "rxjs@npm:7.8.1"
|
|
||||||
dependencies:
|
|
||||||
tslib: ^2.1.0
|
|
||||||
checksum: de4b53db1063e618ec2eca0f7965d9137cabe98cf6be9272efe6c86b47c17b987383df8574861bcced18ebd590764125a901d5506082be84a8b8e364bf05f119
|
|
||||||
languageName: node
|
|
||||||
linkType: hard
|
|
||||||
|
|
||||||
"safe-buffer@npm:~5.2.0":
|
"safe-buffer@npm:~5.2.0":
|
||||||
version: 5.2.1
|
version: 5.2.1
|
||||||
resolution: "safe-buffer@npm:5.2.1"
|
resolution: "safe-buffer@npm:5.2.1"
|
||||||
@@ -4237,9 +4245,9 @@ __metadata:
|
|||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"spawn-command@npm:^0.0.2-1":
|
"spawn-command@npm:^0.0.2-1":
|
||||||
version: 0.0.2
|
version: 0.0.2-1
|
||||||
resolution: "spawn-command@npm:0.0.2"
|
resolution: "spawn-command@npm:0.0.2-1"
|
||||||
checksum: e35c5d28177b4d461d33c88cc11f6f3a5079e2b132c11e1746453bbb7a0c0b8a634f07541a2a234fa4758239d88203b758def509161b651e81958894c0b4b64b
|
checksum: 2cac8519332193d1ed37d57298c4a1f73095e9edd20440fbab4aa47f531da83831734f2b51c44bb42b2747bf3485dec3fa2b0a1003f74c67561f2636622e328b
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -4378,7 +4386,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"strip-json-comments@npm:^3.1.0, strip-json-comments@npm:^3.1.1":
|
"strip-json-comments@npm:^3.1.1":
|
||||||
version: 3.1.1
|
version: 3.1.1
|
||||||
resolution: "strip-json-comments@npm:3.1.1"
|
resolution: "strip-json-comments@npm:3.1.1"
|
||||||
checksum: 492f73e27268f9b1c122733f28ecb0e7e8d8a531a6662efbd08e22cccb3f9475e90a1b82cab06a392f6afae6d2de636f977e231296400d0ec5304ba70f166443
|
checksum: 492f73e27268f9b1c122733f28ecb0e7e8d8a531a6662efbd08e22cccb3f9475e90a1b82cab06a392f6afae6d2de636f977e231296400d0ec5304ba70f166443
|
||||||
@@ -4454,9 +4462,9 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"tailwindcss@npm:3.3.2":
|
"tailwindcss@npm:^3.3.3":
|
||||||
version: 3.3.2
|
version: 3.3.3
|
||||||
resolution: "tailwindcss@npm:3.3.2"
|
resolution: "tailwindcss@npm:3.3.3"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@alloc/quick-lru": ^5.2.0
|
"@alloc/quick-lru": ^5.2.0
|
||||||
arg: ^5.0.2
|
arg: ^5.0.2
|
||||||
@@ -4478,13 +4486,12 @@ __metadata:
|
|||||||
postcss-load-config: ^4.0.1
|
postcss-load-config: ^4.0.1
|
||||||
postcss-nested: ^6.0.1
|
postcss-nested: ^6.0.1
|
||||||
postcss-selector-parser: ^6.0.11
|
postcss-selector-parser: ^6.0.11
|
||||||
postcss-value-parser: ^4.2.0
|
|
||||||
resolve: ^1.22.2
|
resolve: ^1.22.2
|
||||||
sucrase: ^3.32.0
|
sucrase: ^3.32.0
|
||||||
bin:
|
bin:
|
||||||
tailwind: lib/cli.js
|
tailwind: lib/cli.js
|
||||||
tailwindcss: lib/cli.js
|
tailwindcss: lib/cli.js
|
||||||
checksum: 4897c70e671c885e151f57434d87ccb806f468a11900f028245b351ffbca5245ff0c10ca5dbb6eb4c7c4df3de8a15a05fe08c2aea4b152cb07bee9bb1d8a14a8
|
checksum: 0195c7a3ebb0de5e391d2a883d777c78a4749f0c532d204ee8aea9129f2ed8e701d8c0c276aa5f7338d07176a3c2a7682c1d0ab9c8a6c2abe6d9325c2954eb50
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -4674,7 +4681,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"typescript@npm:5.1.6":
|
"typescript@npm:^5.1.6":
|
||||||
version: 5.1.6
|
version: 5.1.6
|
||||||
resolution: "typescript@npm:5.1.6"
|
resolution: "typescript@npm:5.1.6"
|
||||||
bin:
|
bin:
|
||||||
@@ -4684,7 +4691,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"typescript@patch:typescript@5.1.6#~builtin<compat/typescript>":
|
"typescript@patch:typescript@^5.1.6#~builtin<compat/typescript>":
|
||||||
version: 5.1.6
|
version: 5.1.6
|
||||||
resolution: "typescript@patch:typescript@npm%3A5.1.6#~builtin<compat/typescript>::version=5.1.6&hash=5da071"
|
resolution: "typescript@patch:typescript@npm%3A5.1.6#~builtin<compat/typescript>::version=5.1.6&hash=5da071"
|
||||||
bin:
|
bin:
|
||||||
|
|||||||
Reference in New Issue
Block a user