@xata.io/client 0.26.3 → 0.26.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/dist/index.d.ts CHANGED
@@ -7052,6 +7052,11 @@ interface ImageTransformations {
7052
7052
  * ignored.
7053
7053
  */
7054
7054
  contrast?: number;
7055
+ /**
7056
+ * Download file. Forces browser to download the image.
7057
+ * Value is used for the download file name. Extension is optional.
7058
+ */
7059
+ download?: string;
7055
7060
  /**
7056
7061
  * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
7057
7062
  * easier to specify higher-DPI sizes in <img srcset>.
@@ -7173,19 +7178,23 @@ declare function transformImage(url: string | undefined, ...transformations: Ima
7173
7178
  type XataFileEditableFields = Partial<Pick<XataArrayFile, keyof InputFileEntry>>;
7174
7179
  declare class XataFile {
7175
7180
  /**
7176
- * Name of this file.
7181
+ * Identifier of the file.
7182
+ */
7183
+ id?: string;
7184
+ /**
7185
+ * Name of the file.
7177
7186
  */
7178
7187
  name: string;
7179
7188
  /**
7180
- * Media type of this file.
7189
+ * Media type of the file.
7181
7190
  */
7182
7191
  mediaType: string;
7183
7192
  /**
7184
- * Base64 encoded content of this file.
7193
+ * Base64 encoded content of the file.
7185
7194
  */
7186
7195
  base64Content?: string;
7187
7196
  /**
7188
- * Whether to enable public url for this file.
7197
+ * Whether to enable public url for the file.
7189
7198
  */
7190
7199
  enablePublicUrl: boolean;
7191
7200
  /**
@@ -7193,23 +7202,23 @@ declare class XataFile {
7193
7202
  */
7194
7203
  signedUrlTimeout: number;
7195
7204
  /**
7196
- * Size of this file.
7205
+ * Size of the file.
7197
7206
  */
7198
7207
  size?: number;
7199
7208
  /**
7200
- * Version of this file.
7209
+ * Version of the file.
7201
7210
  */
7202
7211
  version: number;
7203
7212
  /**
7204
- * Url of this file.
7213
+ * Url of the file.
7205
7214
  */
7206
7215
  url: string;
7207
7216
  /**
7208
- * Signed url of this file.
7217
+ * Signed url of the file.
7209
7218
  */
7210
7219
  signedUrl?: string;
7211
7220
  /**
7212
- * Attributes of this file.
7221
+ * Attributes of the file.
7213
7222
  */
7214
7223
  attributes: Record<string, any>;
7215
7224
  constructor(file: Partial<XataFile>);
package/dist/index.mjs CHANGED
@@ -527,7 +527,7 @@ function defaultOnOpen(response) {
527
527
  }
528
528
  }
529
529
 
530
- const VERSION = "0.26.3";
530
+ const VERSION = "0.26.4";
531
531
 
532
532
  var __defProp$7 = Object.defineProperty;
533
533
  var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -2718,19 +2718,23 @@ var __publicField$6 = (obj, key, value) => {
2718
2718
  class XataFile {
2719
2719
  constructor(file) {
2720
2720
  /**
2721
- * Name of this file.
2721
+ * Identifier of the file.
2722
+ */
2723
+ __publicField$6(this, "id");
2724
+ /**
2725
+ * Name of the file.
2722
2726
  */
2723
2727
  __publicField$6(this, "name");
2724
2728
  /**
2725
- * Media type of this file.
2729
+ * Media type of the file.
2726
2730
  */
2727
2731
  __publicField$6(this, "mediaType");
2728
2732
  /**
2729
- * Base64 encoded content of this file.
2733
+ * Base64 encoded content of the file.
2730
2734
  */
2731
2735
  __publicField$6(this, "base64Content");
2732
2736
  /**
2733
- * Whether to enable public url for this file.
2737
+ * Whether to enable public url for the file.
2734
2738
  */
2735
2739
  __publicField$6(this, "enablePublicUrl");
2736
2740
  /**
@@ -2738,25 +2742,26 @@ class XataFile {
2738
2742
  */
2739
2743
  __publicField$6(this, "signedUrlTimeout");
2740
2744
  /**
2741
- * Size of this file.
2745
+ * Size of the file.
2742
2746
  */
2743
2747
  __publicField$6(this, "size");
2744
2748
  /**
2745
- * Version of this file.
2749
+ * Version of the file.
2746
2750
  */
2747
2751
  __publicField$6(this, "version");
2748
2752
  /**
2749
- * Url of this file.
2753
+ * Url of the file.
2750
2754
  */
2751
2755
  __publicField$6(this, "url");
2752
2756
  /**
2753
- * Signed url of this file.
2757
+ * Signed url of the file.
2754
2758
  */
2755
2759
  __publicField$6(this, "signedUrl");
2756
2760
  /**
2757
- * Attributes of this file.
2761
+ * Attributes of the file.
2758
2762
  */
2759
2763
  __publicField$6(this, "attributes");
2764
+ this.id = file.id;
2760
2765
  this.name = file.name || "";
2761
2766
  this.mediaType = file.mediaType || "application/octet-stream";
2762
2767
  this.base64Content = file.base64Content;