@motherbase/client 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/COMPATIBILITY.md +157 -0
  2. package/LICENSE +21 -21
  3. package/README.md +52 -4
  4. package/dist/admin/auth-admin-client.d.ts +43 -0
  5. package/dist/admin/auth-admin-client.d.ts.map +1 -0
  6. package/dist/admin/auth-admin-client.js +62 -0
  7. package/dist/admin/auth-admin-client.js.map +1 -0
  8. package/dist/admin/auth-admin-mfa-client.d.ts +22 -0
  9. package/dist/admin/auth-admin-mfa-client.d.ts.map +1 -0
  10. package/dist/admin/auth-admin-mfa-client.js +17 -0
  11. package/dist/admin/auth-admin-mfa-client.js.map +1 -0
  12. package/dist/admin/types.d.ts +85 -0
  13. package/dist/admin/types.d.ts.map +1 -0
  14. package/dist/admin/types.js +3 -0
  15. package/dist/admin/types.js.map +1 -0
  16. package/dist/auth/constants.d.ts +21 -0
  17. package/dist/auth/constants.d.ts.map +1 -0
  18. package/dist/auth/constants.js +34 -0
  19. package/dist/auth/constants.js.map +1 -0
  20. package/dist/auth/index.d.ts +5 -0
  21. package/dist/auth/index.d.ts.map +1 -0
  22. package/dist/auth/index.js +34 -0
  23. package/dist/auth/index.js.map +1 -0
  24. package/dist/auth/motherbase-plugin.d.ts +6 -0
  25. package/dist/auth/motherbase-plugin.d.ts.map +1 -0
  26. package/dist/auth/motherbase-plugin.js +80 -0
  27. package/dist/auth/motherbase-plugin.js.map +1 -0
  28. package/dist/auth/pkce.d.ts +19 -0
  29. package/dist/auth/pkce.d.ts.map +1 -0
  30. package/dist/auth/pkce.js +89 -0
  31. package/dist/auth/pkce.js.map +1 -0
  32. package/dist/auth/session-utils.d.ts +29 -0
  33. package/dist/auth/session-utils.d.ts.map +1 -0
  34. package/dist/auth/session-utils.js +123 -0
  35. package/dist/auth/session-utils.js.map +1 -0
  36. package/dist/auth/session.d.ts +51 -0
  37. package/dist/auth/session.d.ts.map +1 -0
  38. package/dist/auth/session.js +161 -0
  39. package/dist/auth/session.js.map +1 -0
  40. package/dist/auth/types.d.ts +341 -0
  41. package/dist/auth/types.d.ts.map +1 -0
  42. package/dist/auth/types.js +2 -0
  43. package/dist/auth/types.js.map +1 -0
  44. package/dist/auth/utils.d.ts +28 -0
  45. package/dist/auth/utils.d.ts.map +1 -0
  46. package/dist/auth/utils.js +70 -0
  47. package/dist/auth/utils.js.map +1 -0
  48. package/dist/auth.d.ts +3 -2
  49. package/dist/auth.d.ts.map +1 -1
  50. package/dist/auth.js +27 -11
  51. package/dist/auth.js.map +1 -1
  52. package/dist/channel.d.ts +11 -0
  53. package/dist/channel.d.ts.map +1 -1
  54. package/dist/channel.js +26 -2
  55. package/dist/channel.js.map +1 -1
  56. package/dist/cookies/cookie-storage.d.ts +12 -0
  57. package/dist/cookies/cookie-storage.d.ts.map +1 -0
  58. package/dist/cookies/cookie-storage.js +35 -0
  59. package/dist/cookies/cookie-storage.js.map +1 -0
  60. package/dist/cookies/index.d.ts +5 -0
  61. package/dist/cookies/index.d.ts.map +1 -0
  62. package/dist/cookies/index.js +5 -0
  63. package/dist/cookies/index.js.map +1 -0
  64. package/dist/cookies/server-cookie-storage.d.ts +20 -0
  65. package/dist/cookies/server-cookie-storage.d.ts.map +1 -0
  66. package/dist/cookies/server-cookie-storage.js +60 -0
  67. package/dist/cookies/server-cookie-storage.js.map +1 -0
  68. package/dist/cookies/types.d.ts +33 -0
  69. package/dist/cookies/types.d.ts.map +1 -0
  70. package/dist/cookies/types.js +8 -0
  71. package/dist/cookies/types.js.map +1 -0
  72. package/dist/cookies/utils.d.ts +23 -0
  73. package/dist/cookies/utils.d.ts.map +1 -0
  74. package/dist/cookies/utils.js +67 -0
  75. package/dist/cookies/utils.js.map +1 -0
  76. package/dist/database/database.d.ts +197 -0
  77. package/dist/database/database.d.ts.map +1 -0
  78. package/dist/database/database.js +2 -0
  79. package/dist/database/database.js.map +1 -0
  80. package/dist/database/facade.d.ts +144 -0
  81. package/dist/database/facade.d.ts.map +1 -0
  82. package/dist/database/facade.js +147 -0
  83. package/dist/database/facade.js.map +1 -0
  84. package/dist/database/query.d.ts +97 -0
  85. package/dist/database/query.d.ts.map +1 -0
  86. package/dist/database/query.js +94 -0
  87. package/dist/database/query.js.map +1 -0
  88. package/dist/database/types.d.ts +314 -0
  89. package/dist/database/types.d.ts.map +1 -0
  90. package/dist/database/types.js +2 -0
  91. package/dist/database/types.js.map +1 -0
  92. package/dist/functions/errors.d.ts +28 -0
  93. package/dist/functions/errors.d.ts.map +1 -0
  94. package/dist/functions/errors.js +37 -0
  95. package/dist/functions/errors.js.map +1 -0
  96. package/dist/functions/index.d.ts +9 -0
  97. package/dist/functions/index.d.ts.map +1 -0
  98. package/dist/functions/index.js +40 -0
  99. package/dist/functions/index.js.map +1 -0
  100. package/dist/functions/types.d.ts +25 -0
  101. package/dist/functions/types.d.ts.map +1 -0
  102. package/dist/functions/types.js +2 -0
  103. package/dist/functions/types.js.map +1 -0
  104. package/dist/http/backend-error.d.ts +17 -0
  105. package/dist/http/backend-error.d.ts.map +1 -0
  106. package/dist/http/backend-error.js +11 -0
  107. package/dist/http/backend-error.js.map +1 -0
  108. package/dist/http/index.d.ts +59 -0
  109. package/dist/http/index.d.ts.map +1 -0
  110. package/dist/http/index.js +175 -0
  111. package/dist/http/index.js.map +1 -0
  112. package/dist/http/types.d.ts +45 -0
  113. package/dist/http/types.d.ts.map +1 -0
  114. package/dist/http/types.js +2 -0
  115. package/dist/http/types.js.map +1 -0
  116. package/dist/http/utils.d.ts +14 -0
  117. package/dist/http/utils.d.ts.map +1 -0
  118. package/dist/http/utils.js +37 -0
  119. package/dist/http/utils.js.map +1 -0
  120. package/dist/http.d.ts.map +1 -1
  121. package/dist/http.js +2 -1
  122. package/dist/http.js.map +1 -1
  123. package/dist/index.d.ts +47 -77
  124. package/dist/index.d.ts.map +1 -1
  125. package/dist/index.js +58 -73
  126. package/dist/index.js.map +1 -1
  127. package/dist/pkce.js +4 -4
  128. package/dist/postgrest/index.d.ts +4 -0
  129. package/dist/postgrest/index.d.ts.map +1 -0
  130. package/dist/postgrest/index.js +4 -0
  131. package/dist/postgrest/index.js.map +1 -0
  132. package/dist/postgrest/query-builder.d.ts +224 -0
  133. package/dist/postgrest/query-builder.d.ts.map +1 -0
  134. package/dist/postgrest/query-builder.js +544 -0
  135. package/dist/postgrest/query-builder.js.map +1 -0
  136. package/dist/postgrest/rpc.d.ts +12 -0
  137. package/dist/postgrest/rpc.d.ts.map +1 -0
  138. package/dist/postgrest/rpc.js +42 -0
  139. package/dist/postgrest/rpc.js.map +1 -0
  140. package/dist/postgrest/types.d.ts +88 -0
  141. package/dist/postgrest/types.d.ts.map +1 -0
  142. package/dist/postgrest/types.js +2 -0
  143. package/dist/postgrest/types.js.map +1 -0
  144. package/dist/postgrest/utils.d.ts +23 -0
  145. package/dist/postgrest/utils.d.ts.map +1 -0
  146. package/dist/postgrest/utils.js +87 -0
  147. package/dist/postgrest/utils.js.map +1 -0
  148. package/dist/postgrest.d.ts +5 -1
  149. package/dist/postgrest.d.ts.map +1 -1
  150. package/dist/postgrest.js +17 -10
  151. package/dist/postgrest.js.map +1 -1
  152. package/dist/realtime/channel.d.ts +83 -0
  153. package/dist/realtime/channel.d.ts.map +1 -0
  154. package/dist/realtime/channel.js +240 -0
  155. package/dist/realtime/channel.js.map +1 -0
  156. package/dist/realtime/index.d.ts +94 -0
  157. package/dist/realtime/index.d.ts.map +1 -0
  158. package/dist/realtime/index.js +455 -0
  159. package/dist/realtime/index.js.map +1 -0
  160. package/dist/realtime/types.d.ts +120 -0
  161. package/dist/realtime/types.d.ts.map +1 -0
  162. package/dist/realtime/types.js +2 -0
  163. package/dist/realtime/types.js.map +1 -0
  164. package/dist/realtime.d.ts +1 -0
  165. package/dist/realtime.d.ts.map +1 -1
  166. package/dist/realtime.js +26 -1
  167. package/dist/realtime.js.map +1 -1
  168. package/dist/runtime.d.ts +13 -0
  169. package/dist/runtime.d.ts.map +1 -0
  170. package/dist/runtime.js +15 -0
  171. package/dist/runtime.js.map +1 -0
  172. package/dist/session.d.ts +2 -0
  173. package/dist/session.d.ts.map +1 -1
  174. package/dist/session.js +11 -2
  175. package/dist/session.js.map +1 -1
  176. package/dist/storage/bucket.d.ts +166 -0
  177. package/dist/storage/bucket.d.ts.map +1 -0
  178. package/dist/storage/bucket.js +294 -0
  179. package/dist/storage/bucket.js.map +1 -0
  180. package/dist/storage/index.d.ts +45 -0
  181. package/dist/storage/index.d.ts.map +1 -0
  182. package/dist/storage/index.js +55 -0
  183. package/dist/storage/index.js.map +1 -0
  184. package/dist/storage/types.d.ts +131 -0
  185. package/dist/storage/types.d.ts.map +1 -0
  186. package/dist/storage/types.js +2 -0
  187. package/dist/storage/types.js.map +1 -0
  188. package/dist/storage/utils.d.ts +27 -0
  189. package/dist/storage/utils.d.ts.map +1 -0
  190. package/dist/storage/utils.js +43 -0
  191. package/dist/storage/utils.js.map +1 -0
  192. package/dist/test.d.ts +2 -0
  193. package/dist/test.d.ts.map +1 -0
  194. package/dist/test.js +3 -0
  195. package/dist/test.js.map +1 -0
  196. package/dist/types.d.ts +14 -249
  197. package/dist/types.d.ts.map +1 -1
  198. package/dist/utils/compat.d.ts +40 -0
  199. package/dist/utils/compat.d.ts.map +1 -0
  200. package/dist/utils/compat.js +100 -0
  201. package/dist/utils/compat.js.map +1 -0
  202. package/dist/utils/runtime.d.ts +13 -0
  203. package/dist/utils/runtime.d.ts.map +1 -0
  204. package/dist/utils/runtime.js +15 -0
  205. package/dist/utils/runtime.js.map +1 -0
  206. package/dist/utils/testing.d.ts +38 -0
  207. package/dist/utils/testing.d.ts.map +1 -0
  208. package/dist/utils/testing.js +50 -0
  209. package/dist/utils/testing.js.map +1 -0
  210. package/dist/utils/warn.d.ts +2 -0
  211. package/dist/utils/warn.d.ts.map +1 -0
  212. package/dist/utils/warn.js +23 -0
  213. package/dist/utils/warn.js.map +1 -0
  214. package/package.json +13 -11
  215. package/dist/devices.d.ts +0 -13
  216. package/dist/devices.d.ts.map +0 -1
  217. package/dist/devices.js +0 -13
  218. package/dist/devices.js.map +0 -1
  219. package/dist/profile.d.ts +0 -16
  220. package/dist/profile.d.ts.map +0 -1
  221. package/dist/profile.js +0 -26
  222. package/dist/profile.js.map +0 -1
@@ -0,0 +1,224 @@
1
+ import { HttpClient } from "../http/index.js";
2
+ import type { ExplainOptions, InsertOptions, MutateOptions, OrderOptions, PaginateOptions, PostgrestArrayOperand, PostgrestExplainBuilder, PostgrestFilterOperator, PostgrestIsValue, PostgrestPrimitive, PostgrestResponse, PostgrestSingleBuilder, PostgrestTextBuilder, ReferencedTableOption, SelectOptions, TextSearchType, UpsertOptions } from "./types.js";
3
+ export declare class PostgrestQueryBuilder<Row extends object = Record<string, unknown>> implements PromiseLike<PostgrestResponse<Row[]>> {
4
+ private readonly http;
5
+ private readonly model;
6
+ /** supabase-js semantic parity, from `createClient(..., { compat: 'supabase' })`. */
7
+ private readonly compat;
8
+ /** Batch builders describe writes; they cannot send individual requests. */
9
+ private readonly transactionOnly;
10
+ private method;
11
+ private columns;
12
+ /**
13
+ * Repeated filters on one column must all survive: `?price=gt.10&price=lt.20`
14
+ * is two conditions ANDed together, which is why every filter is `append`ed
15
+ * and never `set`. Using `set` here (as this builder once did) silently
16
+ * dropped the first of the two.
17
+ */
18
+ private readonly filters;
19
+ /** Reserved params that are replaced rather than repeated (`columns`, `on_conflict`). */
20
+ private readonly extras;
21
+ /** Keyed by referenced table (`''` for the base relation). */
22
+ private readonly orderParts;
23
+ private readonly limits;
24
+ private readonly offsets;
25
+ private readonly prefer;
26
+ private accept?;
27
+ private responseKind;
28
+ private countOption?;
29
+ private headOnly;
30
+ private signal?;
31
+ private readonly extraHeaders;
32
+ private body?;
33
+ private rowMode;
34
+ private shouldThrow;
35
+ /** Set by `select()`, so a write can tell "rows asked for" from "no rows requested". */
36
+ private selectCalled;
37
+ constructor(http: HttpClient, model: string,
38
+ /** supabase-js semantic parity, from `createClient(..., { compat: 'supabase' })`. */
39
+ compat?: boolean,
40
+ /** Batch builders describe writes; they cannot send individual requests. */
41
+ transactionOnly?: boolean);
42
+ /**
43
+ * Choose the columns, and optionally ask for a row count.
44
+ *
45
+ * After a write, `.select()` is the supabase-js way of asking for the rows
46
+ * back, so it also sends `Prefer: return=representation`.
47
+ */
48
+ select(columns?: string, options?: SelectOptions): this;
49
+ insert(values: Partial<Row> | Array<Partial<Row>>, options?: InsertOptions): this;
50
+ /**
51
+ * `INSERT .. ON CONFLICT DO UPDATE`. The conflict target defaults to the
52
+ * primary key server side; `onConflict` names another unique constraint.
53
+ */
54
+ upsert(values: Partial<Row> | Array<Partial<Row>>, options?: UpsertOptions): this;
55
+ update(values: Partial<Row>, options?: MutateOptions): this;
56
+ delete(options?: MutateOptions): this;
57
+ /**
58
+ * A bulk write states its column set explicitly, so a key missing from one
59
+ * row is still written (as NULL, or as the column default under
60
+ * `missing=default`) instead of being inferred from the first row alone.
61
+ */
62
+ private applyColumns;
63
+ eq(column: string, value: PostgrestPrimitive): this;
64
+ neq(column: string, value: PostgrestPrimitive): this;
65
+ gt(column: string, value: PostgrestPrimitive): this;
66
+ gte(column: string, value: PostgrestPrimitive): this;
67
+ lt(column: string, value: PostgrestPrimitive): this;
68
+ lte(column: string, value: PostgrestPrimitive): this;
69
+ /** Case-sensitive LIKE. `*` is PostgREST's URL-friendly `%`. */
70
+ like(column: string, pattern: string): this;
71
+ ilike(column: string, pattern: string): this;
72
+ likeAllOf(column: string, patterns: readonly string[]): this;
73
+ likeAnyOf(column: string, patterns: readonly string[]): this;
74
+ ilikeAllOf(column: string, patterns: readonly string[]): this;
75
+ ilikeAnyOf(column: string, patterns: readonly string[]): this;
76
+ in(column: string, values: readonly PostgrestPrimitive[]): this;
77
+ is(column: string, value: PostgrestIsValue): this;
78
+ /** Every key equal to its value, ANDed together. */
79
+ match(query: Record<string, PostgrestPrimitive>): this;
80
+ /**
81
+ * Negate any operator: `not('status', 'eq', 'live')` emits
82
+ * `status=not.eq.live`. The value is passed through verbatim for a string, so
83
+ * composite operands (`not('id', 'in', '(1,2)')`) reach the server as written.
84
+ */
85
+ not(column: string, operator: PostgrestFilterOperator | (string & {}), value: PostgrestPrimitive | readonly PostgrestPrimitive[]): this;
86
+ /**
87
+ * The escape hatch: any operator, including the ones with no dedicated method
88
+ * (`match`, `imatch`, `isdistinct`) and the modifier forms (`like(any)`).
89
+ */
90
+ filter(column: string, operator: PostgrestFilterOperator | (string & {}), value: PostgrestPrimitive | readonly PostgrestPrimitive[]): this;
91
+ /**
92
+ * A disjunction, written in PostgREST's own syntax and nestable:
93
+ * `or('status.eq.live,and(price.gt.10,price.lt.20)')`.
94
+ */
95
+ or(filters: string, options?: ReferencedTableOption): this;
96
+ /** Full-text search. `type` picks the tsquery parser, `config` the dictionary. */
97
+ textSearch(column: string, query: string, options?: {
98
+ type?: TextSearchType;
99
+ config?: string;
100
+ }): this;
101
+ /** `@>`: the column contains the operand (array, range or jsonb). */
102
+ contains(column: string, value: PostgrestArrayOperand): this;
103
+ /** `<@`: the column is contained by the operand. */
104
+ containedBy(column: string, value: PostgrestArrayOperand): this;
105
+ /** `&&`: the column and the operand have an element (or a point) in common. */
106
+ overlaps(column: string, value: PostgrestArrayOperand): this;
107
+ /** `>>`: strictly right of the range. */
108
+ rangeGt(column: string, range: string): this;
109
+ /** `&>`: does not extend to the left of the range. */
110
+ rangeGte(column: string, range: string): this;
111
+ /** `<<`: strictly left of the range. */
112
+ rangeLt(column: string, range: string): this;
113
+ /** `&<`: does not extend to the right of the range. */
114
+ rangeLte(column: string, range: string): this;
115
+ /** `-|-`: adjacent to the range. */
116
+ rangeAdjacent(column: string, range: string): this;
117
+ private push;
118
+ order(column: string, options?: OrderOptions): this;
119
+ limit(count: number, options?: ReferencedTableOption): this;
120
+ /** Inclusive range -> offset/limit. `range(0, 9)` fetches 10 rows from offset 0. */
121
+ range(from: number, to: number, options?: ReferencedTableOption): this;
122
+ /**
123
+ * Every matching row, one page at a time.
124
+ *
125
+ * An unbounded `select()` stops at the server's `api.rest.maxRows` (1000 by
126
+ * default) and says nothing about it: the caller gets a full-looking array
127
+ * that is missing everything past the cap. This walks the result instead, so
128
+ * "give me all of them" is expressible without knowing the cap exists.
129
+ *
130
+ * ```ts
131
+ * for await (const row of client.from('events').select('*').stream()) { ... }
132
+ * ```
133
+ *
134
+ * The pages are separate requests, so rows inserted while the walk is running
135
+ * may be seen or missed depending on when they land. Order by a stable column
136
+ * if that matters.
137
+ */
138
+ stream(options?: PaginateOptions): AsyncGenerator<Row, void, undefined>;
139
+ /**
140
+ * Like `stream()`, a page at a time rather than a row at a time, with the
141
+ * total from `Content-Range` when the server sent one.
142
+ *
143
+ * An error ends the walk by throwing, unlike awaiting the builder, which
144
+ * resolves `{ data, error }`. A `for await` loop has nowhere to put an error
145
+ * value, and silently ending the iteration early would look exactly like
146
+ * reaching the last page.
147
+ */
148
+ paginate(options?: PaginateOptions): AsyncGenerator<{
149
+ rows: Row[];
150
+ from: number;
151
+ count: number | null;
152
+ }, void, undefined>;
153
+ /** Cancel the in-flight request when the signal aborts. */
154
+ abortSignal(signal: AbortSignal): this;
155
+ /**
156
+ * Send one more header with this request only, as in supabase-js. The usual
157
+ * one is `x-captcha-response`, for a table the project guards with CAPTCHA
158
+ * (Authentication > Attack Protection).
159
+ */
160
+ setHeader(name: string, value: string): this;
161
+ /**
162
+ * Re-type the rows. Purely a compile-time cast, for cases the generated
163
+ * `Database` cannot express (a computed column, an embedded shape).
164
+ */
165
+ returns<T extends object>(): PostgrestQueryBuilder<T>;
166
+ /** supabase-js's newer name for `returns()`. Also a compile-time cast only. */
167
+ overrideTypes<T extends object>(): PostgrestQueryBuilder<T>;
168
+ /**
169
+ * Reject the query instead of resolving `{ data: null, error }`.
170
+ *
171
+ * The `{ data, error }` envelope is the default in both SDKs because it makes
172
+ * a failure impossible to skip by accident. `throwOnError()` is the opt-out
173
+ * for code that would rather use try/catch, and ported Supabase code uses it
174
+ * widely enough that its absence is a `TypeError: … is not a function` on the
175
+ * first query.
176
+ */
177
+ throwOnError(): this;
178
+ /**
179
+ * Fail the write if it would touch more than `count` rows.
180
+ *
181
+ * A guard against the missing-filter class of accident (`update()` with a
182
+ * typo'd `.eq()`), sent as `Prefer: max-affected`. A server that does not
183
+ * implement it ignores the preference, so treat this as a safety net rather
184
+ * than a guarantee, and keep the filter correct.
185
+ */
186
+ maxAffected(count: number): this;
187
+ /**
188
+ * Roll the transaction back after running the query, so nothing is persisted.
189
+ * Useful for validating a write, or previewing what it would return.
190
+ */
191
+ rollback(): this;
192
+ /** Ask for GeoJSON instead of rows. The result resolves to the parsed object. */
193
+ geojson(): PostgrestExplainBuilder;
194
+ /** Ask for `text/csv` instead of JSON. The result resolves to a string. */
195
+ csv(): PostgrestTextBuilder;
196
+ /** Ask the server for the query plan. Admin-only, and off by default. */
197
+ explain(options?: ExplainOptions): PostgrestExplainBuilder;
198
+ single(): PostgrestSingleBuilder<Row>;
199
+ maybeSingle(): PostgrestSingleBuilder<Row>;
200
+ /** The URL path (with query string) this builder targets. Exposed for tests. */
201
+ toPath(): string;
202
+ /**
203
+ * The request this builder would send, as data.
204
+ *
205
+ * `client.transaction()` needs to describe several writes without issuing
206
+ * them, and the method and body are otherwise private. Exposed rather than
207
+ * reached into: a batch built from `(builder as any).method` would break the
208
+ * first time this class was refactored.
209
+ */
210
+ toRequest(): {
211
+ method: string;
212
+ model: string;
213
+ query: Record<string, string[]>;
214
+ body: unknown;
215
+ };
216
+ /** The headers this builder sends. Exposed for tests alongside `toPath()`. */
217
+ toHeaders(): Record<string, string>;
218
+ private execute;
219
+ private isWrite;
220
+ /** Apply `single()` / `maybeSingle()` to a row list. The one place row mode is read. */
221
+ private finish;
222
+ then<TResult1 = PostgrestResponse<Row[]>, TResult2 = never>(onfulfilled?: ((value: PostgrestResponse<Row[]>) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null): PromiseLike<TResult1 | TResult2>;
223
+ }
224
+ //# sourceMappingURL=query-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-builder.d.ts","sourceRoot":"","sources":["../../src/postgrest/query-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,KAAK,EACR,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,EACZ,eAAe,EACf,qBAAqB,EAErB,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EAGrB,aAAa,EACb,cAAc,EACd,aAAa,EAChB,MAAM,YAAY,CAAC;AAepB,qBAAa,qBAAqB,CAAC,GAAG,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAC3E,YAAW,WAAW,CAAC,iBAAiB,CAAC,GAAG,EAAE,CAAC,CAAC;IA8B5C,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,qFAAqF;IACrF,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,4EAA4E;IAC5E,OAAO,CAAC,QAAQ,CAAC,eAAe;IAlCpC,OAAO,CAAC,MAAM,CAAuD;IACrE,OAAO,CAAC,OAAO,CAAO;IACtB;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IACjD,yFAAyF;IACzF,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IACpD,8DAA8D;IAC9D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IACpD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IACvC,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,YAAY,CAAwB;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