@xata.io/client 0.8.1 → 0.8.4
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.
- package/CHANGELOG.md +19 -0
- package/dist/index.cjs +1744 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +3246 -7
- package/dist/index.mjs +1649 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +9 -5
- package/rollup.config.js +29 -0
- package/tsconfig.json +5 -4
- package/dist/api/client.d.ts +0 -95
- package/dist/api/client.js +0 -251
- package/dist/api/components.d.ts +0 -1437
- package/dist/api/components.js +0 -998
- package/dist/api/fetcher.d.ts +0 -40
- package/dist/api/fetcher.js +0 -79
- package/dist/api/index.d.ts +0 -13
- package/dist/api/index.js +0 -40
- package/dist/api/parameters.d.ts +0 -16
- package/dist/api/parameters.js +0 -2
- package/dist/api/providers.d.ts +0 -8
- package/dist/api/providers.js +0 -30
- package/dist/api/responses.d.ts +0 -50
- package/dist/api/responses.js +0 -2
- package/dist/api/schemas.d.ts +0 -311
- package/dist/api/schemas.js +0 -2
- package/dist/client.d.ts +0 -27
- package/dist/client.js +0 -131
- package/dist/index.js +0 -30
- package/dist/plugins.d.ts +0 -7
- package/dist/plugins.js +0 -6
- package/dist/schema/filters.d.ts +0 -96
- package/dist/schema/filters.js +0 -2
- package/dist/schema/filters.spec.d.ts +0 -1
- package/dist/schema/filters.spec.js +0 -177
- package/dist/schema/index.d.ts +0 -23
- package/dist/schema/index.js +0 -50
- package/dist/schema/operators.d.ts +0 -74
- package/dist/schema/operators.js +0 -93
- package/dist/schema/pagination.d.ts +0 -83
- package/dist/schema/pagination.js +0 -93
- package/dist/schema/query.d.ts +0 -118
- package/dist/schema/query.js +0 -242
- package/dist/schema/record.d.ts +0 -66
- package/dist/schema/record.js +0 -13
- package/dist/schema/repository.d.ts +0 -135
- package/dist/schema/repository.js +0 -283
- package/dist/schema/selection.d.ts +0 -25
- package/dist/schema/selection.js +0 -2
- package/dist/schema/selection.spec.d.ts +0 -1
- package/dist/schema/selection.spec.js +0 -204
- package/dist/schema/sorting.d.ts +0 -22
- package/dist/schema/sorting.js +0 -35
- package/dist/schema/sorting.spec.d.ts +0 -1
- package/dist/schema/sorting.spec.js +0 -11
- package/dist/search/index.d.ts +0 -34
- package/dist/search/index.js +0 -55
- package/dist/util/branches.d.ts +0 -5
- package/dist/util/branches.js +0 -7
- package/dist/util/config.d.ts +0 -11
- package/dist/util/config.js +0 -121
- package/dist/util/environment.d.ts +0 -5
- package/dist/util/environment.js +0 -68
- package/dist/util/fetch.d.ts +0 -2
- package/dist/util/fetch.js +0 -13
- package/dist/util/lang.d.ts +0 -5
- package/dist/util/lang.js +0 -22
- package/dist/util/types.d.ts +0 -25
- package/dist/util/types.js +0 -2
package/dist/util/types.d.ts
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
export declare type StringKeys<O> = Extract<keyof O, string>;
|
2
|
-
export declare type NumberKeys<O> = Extract<keyof O, number>;
|
3
|
-
export declare type Values<O> = O[StringKeys<O>];
|
4
|
-
export declare type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never;
|
5
|
-
export declare type If<Condition, Then, Else> = Condition extends true ? Then : Else;
|
6
|
-
export declare type IsObject<T> = T extends Record<string, any> ? true : false;
|
7
|
-
export declare type IsArray<T> = T extends Array<any> ? true : false;
|
8
|
-
export declare type NonEmptyArray<T> = T[] & {
|
9
|
-
0: T;
|
10
|
-
};
|
11
|
-
export declare type RequiredBy<T, K extends keyof T> = T & {
|
12
|
-
[P in K]-?: NonNullable<T[P]>;
|
13
|
-
};
|
14
|
-
export declare type GetArrayInnerType<T extends readonly any[]> = T[number];
|
15
|
-
export declare type AllRequired<T> = {
|
16
|
-
[P in keyof T]-?: T[P];
|
17
|
-
};
|
18
|
-
export declare type KeysOfUnion<T> = T extends T ? keyof T : never;
|
19
|
-
declare type Impossible<K extends keyof any> = {
|
20
|
-
[P in K]: never;
|
21
|
-
};
|
22
|
-
export declare type Exactly<T, U extends T = T> = U & Impossible<Exclude<keyof U, keyof T>>;
|
23
|
-
export declare type SingleOrArray<T> = T | T[];
|
24
|
-
export declare type Dictionary<T> = Record<string, T>;
|
25
|
-
export {};
|
package/dist/util/types.js
DELETED