@uniformdev/files 19.79.0 → 19.79.1-alpha.13
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.mts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.esm.js +2 -1
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -27,8 +27,9 @@ interface paths {
|
|
|
27
27
|
url?: string;
|
|
28
28
|
name: string;
|
|
29
29
|
mediaType: string;
|
|
30
|
-
metadata?: unknown;
|
|
30
|
+
metadata?: unknown | null;
|
|
31
31
|
size: number;
|
|
32
|
+
sourceId?: string;
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
35
|
};
|
|
@@ -104,7 +105,11 @@ interface paths {
|
|
|
104
105
|
requestBody: {
|
|
105
106
|
content: {
|
|
106
107
|
"application/json": {
|
|
107
|
-
url
|
|
108
|
+
url?: string;
|
|
109
|
+
fileId?: string;
|
|
110
|
+
sourceId?: string;
|
|
111
|
+
/** Format: uuid */
|
|
112
|
+
projectId?: string;
|
|
108
113
|
};
|
|
109
114
|
};
|
|
110
115
|
};
|
|
@@ -199,4 +204,4 @@ declare const FILE_READY_STATE = 64;
|
|
|
199
204
|
declare const FILE_MAX_SIZE: number;
|
|
200
205
|
declare const FILE_TYPES_IMAGE: string[];
|
|
201
206
|
|
|
202
|
-
export { FILE_IN_PROGRESS_STATE, FILE_MAX_SIZE, FILE_READY_STATE, FILE_TYPES_IMAGE, FileClient, FileDeleteRequest, FileDeleteResponse, FileGetByIDRequest, FileGetBySourceIDRequest, FileGetByURLRequest, FileGetRequest, FileGetResponse, FileInsertRequest, FileInsertResponse, UncachedFileClient, getFileNameFromUrl };
|
|
207
|
+
export { FILE_IN_PROGRESS_STATE, FILE_MAX_SIZE, FILE_READY_STATE, FILE_TYPES_IMAGE, FileClient, type FileDeleteRequest, type FileDeleteResponse, type FileGetByIDRequest, type FileGetBySourceIDRequest, type FileGetByURLRequest, type FileGetRequest, type FileGetResponse, type FileInsertRequest, type FileInsertResponse, UncachedFileClient, getFileNameFromUrl };
|
package/dist/index.d.ts
CHANGED
|
@@ -27,8 +27,9 @@ interface paths {
|
|
|
27
27
|
url?: string;
|
|
28
28
|
name: string;
|
|
29
29
|
mediaType: string;
|
|
30
|
-
metadata?: unknown;
|
|
30
|
+
metadata?: unknown | null;
|
|
31
31
|
size: number;
|
|
32
|
+
sourceId?: string;
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
35
|
};
|
|
@@ -104,7 +105,11 @@ interface paths {
|
|
|
104
105
|
requestBody: {
|
|
105
106
|
content: {
|
|
106
107
|
"application/json": {
|
|
107
|
-
url
|
|
108
|
+
url?: string;
|
|
109
|
+
fileId?: string;
|
|
110
|
+
sourceId?: string;
|
|
111
|
+
/** Format: uuid */
|
|
112
|
+
projectId?: string;
|
|
108
113
|
};
|
|
109
114
|
};
|
|
110
115
|
};
|
|
@@ -199,4 +204,4 @@ declare const FILE_READY_STATE = 64;
|
|
|
199
204
|
declare const FILE_MAX_SIZE: number;
|
|
200
205
|
declare const FILE_TYPES_IMAGE: string[];
|
|
201
206
|
|
|
202
|
-
export { FILE_IN_PROGRESS_STATE, FILE_MAX_SIZE, FILE_READY_STATE, FILE_TYPES_IMAGE, FileClient, FileDeleteRequest, FileDeleteResponse, FileGetByIDRequest, FileGetBySourceIDRequest, FileGetByURLRequest, FileGetRequest, FileGetResponse, FileInsertRequest, FileInsertResponse, UncachedFileClient, getFileNameFromUrl };
|
|
207
|
+
export { FILE_IN_PROGRESS_STATE, FILE_MAX_SIZE, FILE_READY_STATE, FILE_TYPES_IMAGE, FileClient, type FileDeleteRequest, type FileDeleteResponse, type FileGetByIDRequest, type FileGetBySourceIDRequest, type FileGetByURLRequest, type FileGetRequest, type FileGetResponse, type FileInsertRequest, type FileInsertResponse, UncachedFileClient, getFileNameFromUrl };
|
package/dist/index.esm.js
CHANGED
|
@@ -22,10 +22,11 @@ var FileClient = class extends ApiClient {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
async delete(options) {
|
|
25
|
+
const { projectId } = this.options;
|
|
25
26
|
const fetchUri = this.createUrl(FILE_BASE_PATH);
|
|
26
27
|
return this.apiClient(fetchUri, {
|
|
27
28
|
method: "DELETE",
|
|
28
|
-
body: JSON.stringify(options)
|
|
29
|
+
body: JSON.stringify({ ...options, projectId })
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
32
|
};
|
package/dist/index.js
CHANGED
|
@@ -54,10 +54,11 @@ var FileClient = class extends import_api.ApiClient {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
async delete(options) {
|
|
57
|
+
const { projectId } = this.options;
|
|
57
58
|
const fetchUri = this.createUrl(FILE_BASE_PATH);
|
|
58
59
|
return this.apiClient(fetchUri, {
|
|
59
60
|
method: "DELETE",
|
|
60
|
-
body: JSON.stringify(options)
|
|
61
|
+
body: JSON.stringify({ ...options, projectId })
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
64
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -22,10 +22,11 @@ var FileClient = class extends ApiClient {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
async delete(options) {
|
|
25
|
+
const { projectId } = this.options;
|
|
25
26
|
const fetchUri = this.createUrl(FILE_BASE_PATH);
|
|
26
27
|
return this.apiClient(fetchUri, {
|
|
27
28
|
method: "DELETE",
|
|
28
|
-
body: JSON.stringify(options)
|
|
29
|
+
body: JSON.stringify({ ...options, projectId })
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
32
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/files",
|
|
3
|
-
"version": "19.79.
|
|
3
|
+
"version": "19.79.1-alpha.13+608a273da",
|
|
4
4
|
"description": "Uniform Files helpers",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@uniformdev/context": "19.79.
|
|
39
|
+
"@uniformdev/context": "19.79.1-alpha.13+608a273da"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "608a273da87aa432f17b2c8ce15d747dadab0cd1"
|
|
42
42
|
}
|