@pgpmjs/migrate-client 0.6.1 → 0.7.1
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.
|
@@ -33,9 +33,7 @@ export class FetchAdapter {
|
|
|
33
33
|
return {
|
|
34
34
|
ok: false,
|
|
35
35
|
data: null,
|
|
36
|
-
errors: [
|
|
37
|
-
{ message: `HTTP ${response.status}: ${response.statusText}` },
|
|
38
|
-
],
|
|
36
|
+
errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }],
|
|
39
37
|
};
|
|
40
38
|
}
|
|
41
39
|
const json = (await response.json());
|
|
@@ -495,6 +495,8 @@ export interface RequestUploadUrlPayload {
|
|
|
495
495
|
deduplicated: boolean;
|
|
496
496
|
/** Presigned URL expiry time (null if deduplicated) */
|
|
497
497
|
expiresAt?: string | null;
|
|
498
|
+
/** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */
|
|
499
|
+
status: string;
|
|
498
500
|
}
|
|
499
501
|
export type RequestUploadUrlPayloadSelect = {
|
|
500
502
|
uploadUrl?: boolean;
|
|
@@ -502,6 +504,7 @@ export type RequestUploadUrlPayloadSelect = {
|
|
|
502
504
|
key?: boolean;
|
|
503
505
|
deduplicated?: boolean;
|
|
504
506
|
expiresAt?: boolean;
|
|
507
|
+
status?: boolean;
|
|
505
508
|
};
|
|
506
509
|
export interface ConfirmUploadPayload {
|
|
507
510
|
/** The confirmed file ID */
|
package/migrate/orm/client.js
CHANGED
|
@@ -36,9 +36,7 @@ class FetchAdapter {
|
|
|
36
36
|
return {
|
|
37
37
|
ok: false,
|
|
38
38
|
data: null,
|
|
39
|
-
errors: [
|
|
40
|
-
{ message: `HTTP ${response.status}: ${response.statusText}` },
|
|
41
|
-
],
|
|
39
|
+
errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }],
|
|
42
40
|
};
|
|
43
41
|
}
|
|
44
42
|
const json = (await response.json());
|
|
@@ -495,6 +495,8 @@ export interface RequestUploadUrlPayload {
|
|
|
495
495
|
deduplicated: boolean;
|
|
496
496
|
/** Presigned URL expiry time (null if deduplicated) */
|
|
497
497
|
expiresAt?: string | null;
|
|
498
|
+
/** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */
|
|
499
|
+
status: string;
|
|
498
500
|
}
|
|
499
501
|
export type RequestUploadUrlPayloadSelect = {
|
|
500
502
|
uploadUrl?: boolean;
|
|
@@ -502,6 +504,7 @@ export type RequestUploadUrlPayloadSelect = {
|
|
|
502
504
|
key?: boolean;
|
|
503
505
|
deduplicated?: boolean;
|
|
504
506
|
expiresAt?: boolean;
|
|
507
|
+
status?: boolean;
|
|
505
508
|
};
|
|
506
509
|
export interface ConfirmUploadPayload {
|
|
507
510
|
/** The confirmed file ID */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpmjs/migrate-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Typed GraphQL ORM client for the Constructive Migrate API (db_migrate schema)",
|
|
6
6
|
"main": "index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@0no-co/graphql.web": "^1.1.2",
|
|
43
|
-
"@constructive-io/graphql-query": "^3.
|
|
43
|
+
"@constructive-io/graphql-query": "^3.16.0",
|
|
44
44
|
"@constructive-io/graphql-types": "^3.5.1",
|
|
45
45
|
"gql-ast": "^3.5.0",
|
|
46
46
|
"graphql": "16.13.0"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"makage": "^0.3.0",
|
|
51
51
|
"typescript": "^5.9.3"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "39934959226c77d2fb4f32bdbae32bda59b2abd8"
|
|
54
54
|
}
|