PromucFlow_constructor/app/client/src/constants/providerConstants.ts
Hetu Nandu c658769b1b
Style polish (#371)
* Rotate Fork app icon
* Change Explorer divider color
* Fix favicon not accessible
* Rename `appsmith.url` to `appsmith.URL`
* AppView page tab overflow ellipsis
* Rename `Back to editor` button to `Edit App`
* Update App card colors
2020-08-20 20:47:20 +05:30

99 lines
1.9 KiB
TypeScript

import { ApiResponse } from "api/ApiResponses";
export type ProvidersDataArray = ApiResponse & {
id: string;
name: string;
description: string;
url: string;
imageUrl: string;
};
export type ProvidersCategoriesResponse = ApiResponse & {
data: string[];
};
export type FetchProviderDetailsResponse = ApiResponse & {
data: ProvidersDataArray;
};
export type Providers = ApiResponse & {
providers: ProvidersDataArray[];
total: number;
};
export type ProviderTemplates = ApiResponse & {
data: Array<ProviderTemplateArray>;
length: number;
templateId: string;
};
export type ApiTemplates = {
id: string;
deleted: boolean;
name: string;
providerId: string;
publisher: string;
packageName: string;
versionId: string;
apiTemplateConfiguration: {
documentation: string;
sampleResponse: {
body: string;
};
};
actionConfiguration: {
timeoutInMillisecond: number;
paginationType: string;
path: string;
httpMethod: string;
headers: [];
routeParameters: [];
};
datasourceConfiguration: {
url: string;
};
};
export type ProviderTemplateArray = ApiResponse & {
templateData: {
id: string;
deleted: boolean;
name: string;
providerId: string;
publisher: string;
packageName: string;
versionId: string;
apiTemplateConfiguration: {
documentation: string;
sampleResponse: {
body: string;
};
};
actionConfiguration: {
timeoutInMillisecond: number;
paginationType: string;
path: string;
httpMethod: string;
headers: [];
routeParameters: [];
};
datasourceConfiguration: {
url: string;
};
};
isOpen: boolean;
addToPageStatus: boolean;
addToPageLoading: boolean;
};
export type SearchResultsProviders = {
id: string;
name: string;
description: string;
imageUrl: string;
url: string;
documentationUrl: string;
};
export const DEFAULT_TEMPLATE_TYPE = "TEMPLATE";