@xata.io/client 0.0.0-alpha.vf80d1a5 → 0.0.0-alpha.vf81a0c6

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @xata.io/client@0.23.4 add-version /home/runner/work/client-ts/client-ts/packages/client
2
+ > @xata.io/client@0.23.5 add-version /home/runner/work/client-ts/client-ts/packages/client
3
3
  > node ../../scripts/add-version-file.mjs
4
4
 
@@ -1,13 +1,13 @@
1
1
 
2
- > @xata.io/client@0.23.4 build /home/runner/work/client-ts/client-ts/packages/client
2
+ > @xata.io/client@0.23.5 build /home/runner/work/client-ts/client-ts/packages/client
3
3
  > rimraf dist && rollup -c
4
4
 
5
5
  
6
6
  src/index.ts → dist/index.cjs...
7
- created dist/index.cjs in 2s
7
+ created dist/index.cjs in 1.6s
8
8
  
9
9
  src/index.ts → dist/index.mjs...
10
- created dist/index.mjs in 1.4s
10
+ created dist/index.mjs in 1s
11
11
  
12
12
  src/index.ts → dist/index.d.ts...
13
- created dist/index.d.ts in 8.8s
13
+ created dist/index.d.ts in 7.2s
package/CHANGELOG.md CHANGED
@@ -1,15 +1,25 @@
1
1
  # @xata.io/client
2
2
 
3
- ## 0.0.0-alpha.vf80d1a5
3
+ ## 0.0.0-alpha.vf81a0c6
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - [#970](https://github.com/xataio/client-ts/pull/970) [`20cc8c43`](https://github.com/xataio/client-ts/commit/20cc8c43e1659bf112ae2642948c84bfcf46a6ba) Thanks [@xata-bot](https://github.com/xata-bot)! - Add delete file endpoint
8
-
9
7
  - Force canary build
10
8
 
9
+ - [#994](https://github.com/xataio/client-ts/pull/994) [`e6a3fe9a`](https://github.com/xataio/client-ts/commit/e6a3fe9afa75cf80cfa43322b98f8dba2eaac896) Thanks [@xata-bot](https://github.com/xata-bot)! - Update internal endpoints
10
+
11
+ ## 0.23.5
12
+
13
+ ### Patch Changes
14
+
15
+ - [#970](https://github.com/xataio/client-ts/pull/970) [`20cc8c43`](https://github.com/xataio/client-ts/commit/20cc8c43e1659bf112ae2642948c84bfcf46a6ba) Thanks [@xata-bot](https://github.com/xata-bot)! - Add delete file endpoint
16
+
11
17
  - [#976](https://github.com/xataio/client-ts/pull/976) [`5099cbbd`](https://github.com/xataio/client-ts/commit/5099cbbd3065a60dcee2f1699afa1ee8ed5edb1c) Thanks [@SferaDev](https://github.com/SferaDev)! - Re-export JSONData helper type
12
18
 
19
+ - [#972](https://github.com/xataio/client-ts/pull/972) [`89375e76`](https://github.com/xataio/client-ts/commit/89375e76b790fed7e6a26bf3ac4ea9eaed1aecae) Thanks [@SferaDev](https://github.com/SferaDev)! - Add types to exports
20
+
21
+ - [#979](https://github.com/xataio/client-ts/pull/979) [`5eaee932`](https://github.com/xataio/client-ts/commit/5eaee932b828907ae352d7c0d0584e860845434b) Thanks [@SferaDev](https://github.com/SferaDev)! - Add `size` to pagination meta
22
+
13
23
  - [#974](https://github.com/xataio/client-ts/pull/974) [`109b8790`](https://github.com/xataio/client-ts/commit/109b8790849532d9c442e7c03c67792aeafebd88) Thanks [@xata-bot](https://github.com/xata-bot)! - Make checksum mandatory
14
24
 
15
25
  ## 0.23.4
package/dist/index.cjs CHANGED
@@ -492,7 +492,7 @@ function defaultOnOpen(response) {
492
492
  }
493
493
  }
494
494
 
495
- const VERSION = "0.23.4";
495
+ const VERSION = "0.23.5";
496
496
 
497
497
  class ErrorWithCause extends Error {
498
498
  constructor(message, options) {
@@ -908,6 +908,12 @@ const askTable = (variables, signal) => dataPlaneFetch({
908
908
  });
909
909
  const summarizeTable = (variables, signal) => dataPlaneFetch({ url: "/db/{dbBranchName}/tables/{tableName}/summarize", method: "post", ...variables, signal });
910
910
  const aggregateTable = (variables, signal) => dataPlaneFetch({ url: "/db/{dbBranchName}/tables/{tableName}/aggregate", method: "post", ...variables, signal });
911
+ const fileAccess = (variables, signal) => dataPlaneFetch({
912
+ url: "/file/{fileId}",
913
+ method: "get",
914
+ ...variables,
915
+ signal
916
+ });
911
917
  const operationsByTag$2 = {
912
918
  branch: {
913
919
  getBranchList,
@@ -967,7 +973,7 @@ const operationsByTag$2 = {
967
973
  deleteRecord,
968
974
  bulkInsertTableRecords
969
975
  },
970
- files: { getFileItem, putFileItem, deleteFileItem, getFile, putFile },
976
+ files: { getFileItem, putFileItem, deleteFileItem, getFile, putFile, fileAccess },
971
977
  searchAndFilter: {
972
978
  queryTable,
973
979
  searchBranch,
@@ -1969,6 +1975,22 @@ class FilesApi {
1969
1975
  ...this.extraProps
1970
1976
  });
1971
1977
  }
1978
+ fileAccess({
1979
+ workspace,
1980
+ region,
1981
+ fileId,
1982
+ verify
1983
+ }) {
1984
+ return operationsByTag.files.fileAccess({
1985
+ pathParams: {
1986
+ workspace,
1987
+ region,
1988
+ fileId
1989
+ },
1990
+ queryParams: { verify },
1991
+ ...this.extraProps
1992
+ });
1993
+ }
1972
1994
  }
1973
1995
  class SearchAndFilterApi {
1974
1996
  constructor(extraProps) {
@@ -2583,7 +2605,7 @@ const _Query = class {
2583
2605
  __privateAdd$5(this, _table$1, void 0);
2584
2606
  __privateAdd$5(this, _repository, void 0);
2585
2607
  __privateAdd$5(this, _data, { filter: {} });
2586
- this.meta = { page: { cursor: "start", more: true } };
2608
+ this.meta = { page: { cursor: "start", more: true, size: PAGINATION_DEFAULT_SIZE } };
2587
2609
  this.records = new RecordArray(this, []);
2588
2610
  __privateSet$5(this, _table$1, table);
2589
2611
  if (repository) {
@@ -4073,6 +4095,7 @@ exports.endsWith = endsWith;
4073
4095
  exports.equals = equals;
4074
4096
  exports.executeBranchMigrationPlan = executeBranchMigrationPlan;
4075
4097
  exports.exists = exists;
4098
+ exports.fileAccess = fileAccess;
4076
4099
  exports.ge = ge;
4077
4100
  exports.getAPIKey = getAPIKey;
4078
4101
  exports.getBranch = getBranch;