@bagelink/sdk 1.1.33 → 1.1.35-beta.2

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.cjs CHANGED
@@ -100,7 +100,7 @@ const primitiveTypes = [
100
100
  "null",
101
101
  "void",
102
102
  "any",
103
- "Record<string, any>",
103
+ "{ [key: string]: any }",
104
104
  "undefined",
105
105
  "{ [key: string]: any }"
106
106
  ];
package/dist/index.d.cts CHANGED
@@ -105,7 +105,7 @@ declare class Bagel {
105
105
  post(endpoint: string, payload?: any): Promise<{
106
106
  [key: string]: any;
107
107
  }>;
108
- uploadFile<T = any>(file: File, options?: UploadOptions): Promise<T>;
108
+ uploadFile<T>(file: File, options?: UploadOptions): Promise<T>;
109
109
  }
110
110
 
111
111
  export { Bagel, type TableToTypeMapping, type Tables, type UploadOptions, type User, formatAPIErrorMessage, _default as openAPI };
package/dist/index.d.mts CHANGED
@@ -105,7 +105,7 @@ declare class Bagel {
105
105
  post(endpoint: string, payload?: any): Promise<{
106
106
  [key: string]: any;
107
107
  }>;
108
- uploadFile<T = any>(file: File, options?: UploadOptions): Promise<T>;
108
+ uploadFile<T>(file: File, options?: UploadOptions): Promise<T>;
109
109
  }
110
110
 
111
111
  export { Bagel, type TableToTypeMapping, type Tables, type UploadOptions, type User, formatAPIErrorMessage, _default as openAPI };
package/dist/index.d.ts CHANGED
@@ -105,7 +105,7 @@ declare class Bagel {
105
105
  post(endpoint: string, payload?: any): Promise<{
106
106
  [key: string]: any;
107
107
  }>;
108
- uploadFile<T = any>(file: File, options?: UploadOptions): Promise<T>;
108
+ uploadFile<T>(file: File, options?: UploadOptions): Promise<T>;
109
109
  }
110
110
 
111
111
  export { Bagel, type TableToTypeMapping, type Tables, type UploadOptions, type User, formatAPIErrorMessage, _default as openAPI };
package/dist/index.mjs CHANGED
@@ -94,7 +94,7 @@ const primitiveTypes = [
94
94
  "null",
95
95
  "void",
96
96
  "any",
97
- "Record<string, any>",
97
+ "{ [key: string]: any }",
98
98
  "undefined",
99
99
  "{ [key: string]: any }"
100
100
  ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/sdk",
3
3
  "type": "module",
4
- "version": "1.1.33",
4
+ "version": "1.1.35-beta.2",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
package/src/index.ts CHANGED
@@ -316,7 +316,7 @@ export class Bagel {
316
316
  })
317
317
  }
318
318
 
319
- async uploadFile<T = any>(file: File, options?: UploadOptions): Promise<T> {
319
+ async uploadFile<T>(file: File, options?: UploadOptions): Promise<T> {
320
320
  this._setAuthorization()
321
321
  const formData = new FormData()
322
322
  formData.append('file', file)
@@ -26,7 +26,7 @@ const primitiveTypes = [
26
26
  'null',
27
27
  'void',
28
28
  'any',
29
- 'Record<string, any>',
29
+ '{ [key: string]: any }',
30
30
  'undefined',
31
31
  '{ [key: string]: any }',
32
32
  ]