-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsupabase.ts
197 lines (192 loc) · 4.84 KB
/
supabase.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
/**
* This file was auto-generated by openapi-typescript.
* Do not make direct changes to the file.
*/
export interface paths {
"/": {
get: {
responses: {
/** OK */
200: unknown;
};
};
};
"/notes": {
get: {
parameters: {
query: {
id?: parameters["rowFilter.notes.id"];
created_at?: parameters["rowFilter.notes.created_at"];
updated_at?: parameters["rowFilter.notes.updated_at"];
title?: parameters["rowFilter.notes.title"];
body?: parameters["rowFilter.notes.body"];
user_id?: parameters["rowFilter.notes.user_id"];
/** Filtering Columns */
select?: parameters["select"];
/** Ordering */
order?: parameters["order"];
/** Limiting and Pagination */
offset?: parameters["offset"];
/** Limiting and Pagination */
limit?: parameters["limit"];
};
header: {
/** Limiting and Pagination */
Range?: parameters["range"];
/** Limiting and Pagination */
"Range-Unit"?: parameters["rangeUnit"];
/** Preference */
Prefer?: parameters["preferCount"];
};
};
responses: {
/** OK */
200: {
schema: definitions["notes"][];
};
/** Partial Content */
206: unknown;
};
};
post: {
parameters: {
body: {
/** notes */
notes?: definitions["notes"];
};
query: {
/** Filtering Columns */
select?: parameters["select"];
};
header: {
/** Preference */
Prefer?: parameters["preferReturn"];
};
};
responses: {
/** Created */
201: unknown;
};
};
delete: {
parameters: {
query: {
id?: parameters["rowFilter.notes.id"];
created_at?: parameters["rowFilter.notes.created_at"];
updated_at?: parameters["rowFilter.notes.updated_at"];
title?: parameters["rowFilter.notes.title"];
body?: parameters["rowFilter.notes.body"];
user_id?: parameters["rowFilter.notes.user_id"];
};
header: {
/** Preference */
Prefer?: parameters["preferReturn"];
};
};
responses: {
/** No Content */
204: never;
};
};
patch: {
parameters: {
query: {
id?: parameters["rowFilter.notes.id"];
created_at?: parameters["rowFilter.notes.created_at"];
updated_at?: parameters["rowFilter.notes.updated_at"];
title?: parameters["rowFilter.notes.title"];
body?: parameters["rowFilter.notes.body"];
user_id?: parameters["rowFilter.notes.user_id"];
};
body: {
/** notes */
notes?: definitions["notes"];
};
header: {
/** Preference */
Prefer?: parameters["preferReturn"];
};
};
responses: {
/** No Content */
204: never;
};
};
};
}
export interface definitions {
notes: {
/**
* Format: uuid
* @description Note:
* This is a Primary Key.<pk/>
*/
id: string;
/**
* Format: timestamp with time zone
* @default now()
*/
created_at?: string;
/**
* Format: timestamp with time zone
* @default now()
*/
updated_at?: string;
/** Format: text */
title?: string;
/** Format: text */
body?: string;
/** Format: uuid */
user_id?: string;
};
}
export interface parameters {
/**
* @description Preference
* @enum {string}
*/
preferParams: "params=single-object";
/**
* @description Preference
* @enum {string}
*/
preferReturn: "return=representation" | "return=minimal" | "return=none";
/**
* @description Preference
* @enum {string}
*/
preferCount: "count=none";
/** @description Filtering Columns */
select: string;
/** @description On Conflict */
on_conflict: string;
/** @description Ordering */
order: string;
/** @description Limiting and Pagination */
range: string;
/**
* @description Limiting and Pagination
* @default items
*/
rangeUnit: string;
/** @description Limiting and Pagination */
offset: string;
/** @description Limiting and Pagination */
limit: string;
/** @description notes */
"body.notes": definitions["notes"];
/** Format: uuid */
"rowFilter.notes.id": string;
/** Format: timestamp with time zone */
"rowFilter.notes.created_at": string;
/** Format: timestamp with time zone */
"rowFilter.notes.updated_at": string;
/** Format: text */
"rowFilter.notes.title": string;
/** Format: text */
"rowFilter.notes.body": string;
/** Format: uuid */
"rowFilter.notes.user_id": string;
}
export interface operations {}
export interface external {}