|
|
@ -2063,14 +2063,36 @@ export interface ViewListType { |
|
|
|
* Model for View Request |
|
|
|
* Model for View Request |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export interface ViewReqType { |
|
|
|
export interface ViewReqType { |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* View Title |
|
|
|
|
|
|
|
* @example Grid View 1 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
title?: string; |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* View UUID. Used in Shared View. |
|
|
|
|
|
|
|
* @example e2457bbf-e29c-4fec-866e-fe3b01dba57f |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
uuid?: string; |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* View Password. Used in Shared View. |
|
|
|
|
|
|
|
* @example password123 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
password?: string; |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Lock type of View. |
|
|
|
|
|
|
|
* @example collaborative |
|
|
|
|
|
|
|
*/ |
|
|
|
lock_type?: 'collaborative' | 'locked' | 'personal'; |
|
|
|
lock_type?: 'collaborative' | 'locked' | 'personal'; |
|
|
|
/** Model for Meta */ |
|
|
|
/** Meta info used in View. */ |
|
|
|
meta?: MetaType; |
|
|
|
meta?: MetaType; |
|
|
|
/** @min 0 */ |
|
|
|
/** |
|
|
|
|
|
|
|
* The order of the list of views. |
|
|
|
|
|
|
|
* @min 0 |
|
|
|
|
|
|
|
* @example 1 |
|
|
|
|
|
|
|
*/ |
|
|
|
order?: number; |
|
|
|
order?: number; |
|
|
|
/** Model for Bool */ |
|
|
|
/** Should this view show system fields? */ |
|
|
|
show_system_fields?: BoolType; |
|
|
|
show_system_fields?: BoolType; |
|
|
|
title?: string; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -2093,16 +2115,6 @@ export type VisibilityRuleReqType = { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}[]; |
|
|
|
}[]; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Model for Webhook |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
export interface WebhookType { |
|
|
|
|
|
|
|
/** Unique ID */ |
|
|
|
|
|
|
|
id?: IdType; |
|
|
|
|
|
|
|
title?: string; |
|
|
|
|
|
|
|
type?: string; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import axios, { AxiosInstance, AxiosRequestConfig, ResponseType } from 'axios'; |
|
|
|
import axios, { AxiosInstance, AxiosRequestConfig, ResponseType } from 'axios'; |
|
|
|
|
|
|
|
|
|
|
|
export type QueryParamsType = Record<string | number, any>; |
|
|
|
export type QueryParamsType = Record<string | number, any>; |
|
|
|