@pgpmjs/migrate-client 1.19.2 → 1.19.3

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.
@@ -461,24 +461,17 @@ export interface ProvisionBucketInput {
461
461
  ownerId?: string;
462
462
  }
463
463
  export interface ProvisionBucketPayload {
464
- /** The access type applied */
465
- accessType: string;
466
- /** The S3 bucket name that was provisioned */
467
- bucketName: string;
468
- /** The S3 endpoint (null for AWS S3 default) */
469
- endpoint?: string | null;
470
- /** Error message if provisioning failed */
471
- error?: string | null;
472
- /** The storage provider used */
473
- provider: string;
474
- /** Whether provisioning succeeded */
475
- success: boolean;
464
+ /** The logical bucket row that was queued for reconciliation. */
465
+ bucketId: string;
466
+ bucketKey: string;
467
+ /** The reconciler job enqueued to provision this bucket. */
468
+ jobId: string;
469
+ /** The physical bucket name already recorded, or null when reconciliation has not completed. */
470
+ physicalName?: string | null;
476
471
  }
477
472
  export type ProvisionBucketPayloadSelect = {
478
- accessType?: boolean;
479
- bucketName?: boolean;
480
- endpoint?: boolean;
481
- error?: boolean;
482
- provider?: boolean;
483
- success?: boolean;
473
+ bucketId?: boolean;
474
+ bucketKey?: boolean;
475
+ jobId?: boolean;
476
+ physicalName?: boolean;
484
477
  };
@@ -9,10 +9,11 @@ import type { InferSelectResult, StrictSelect } from '../select-types';
9
9
  import type { ProvisionBucketInput, ProvisionBucketPayload, ProvisionBucketPayloadSelect } from '../input-types';
10
10
  /**
11
11
  * Variables for provisionBucket
12
- * Provision an S3 bucket for a logical bucket in the database.
13
- Reads the bucket config via RLS, then creates and configures
14
- the S3 bucket with the appropriate privacy policies, CORS rules,
15
- and lifecycle settings.
12
+ * Reconcile an S3 bucket for a logical bucket in the database.
13
+ Reads the bucket config via RLS, then enqueues the same
14
+ storage:provision_bucket job used by the INSERT trigger. This is
15
+ idempotent for an already-reconciled bucket; enqueue failures become
16
+ GraphQL errors.
16
17
  */
17
18
  export interface ProvisionBucketVariables {
18
19
  input: ProvisionBucketInput;
@@ -461,24 +461,17 @@ export interface ProvisionBucketInput {
461
461
  ownerId?: string;
462
462
  }
463
463
  export interface ProvisionBucketPayload {
464
- /** The access type applied */
465
- accessType: string;
466
- /** The S3 bucket name that was provisioned */
467
- bucketName: string;
468
- /** The S3 endpoint (null for AWS S3 default) */
469
- endpoint?: string | null;
470
- /** Error message if provisioning failed */
471
- error?: string | null;
472
- /** The storage provider used */
473
- provider: string;
474
- /** Whether provisioning succeeded */
475
- success: boolean;
464
+ /** The logical bucket row that was queued for reconciliation. */
465
+ bucketId: string;
466
+ bucketKey: string;
467
+ /** The reconciler job enqueued to provision this bucket. */
468
+ jobId: string;
469
+ /** The physical bucket name already recorded, or null when reconciliation has not completed. */
470
+ physicalName?: string | null;
476
471
  }
477
472
  export type ProvisionBucketPayloadSelect = {
478
- accessType?: boolean;
479
- bucketName?: boolean;
480
- endpoint?: boolean;
481
- error?: boolean;
482
- provider?: boolean;
483
- success?: boolean;
473
+ bucketId?: boolean;
474
+ bucketKey?: boolean;
475
+ jobId?: boolean;
476
+ physicalName?: boolean;
484
477
  };
@@ -9,10 +9,11 @@ import type { InferSelectResult, StrictSelect } from '../select-types';
9
9
  import type { ProvisionBucketInput, ProvisionBucketPayload, ProvisionBucketPayloadSelect } from '../input-types';
10
10
  /**
11
11
  * Variables for provisionBucket
12
- * Provision an S3 bucket for a logical bucket in the database.
13
- Reads the bucket config via RLS, then creates and configures
14
- the S3 bucket with the appropriate privacy policies, CORS rules,
15
- and lifecycle settings.
12
+ * Reconcile an S3 bucket for a logical bucket in the database.
13
+ Reads the bucket config via RLS, then enqueues the same
14
+ storage:provision_bucket job used by the INSERT trigger. This is
15
+ idempotent for an already-reconciled bucket; enqueue failures become
16
+ GraphQL errors.
16
17
  */
17
18
  export interface ProvisionBucketVariables {
18
19
  input: ProvisionBucketInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/migrate-client",
3
- "version": "1.19.2",
3
+ "version": "1.19.3",
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,8 +40,8 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@0no-co/graphql.web": "^1.3.3",
43
- "@constructive-io/graphql-query": "^4.20.2",
44
- "@constructive-io/graphql-types": "^3.33.2",
43
+ "@constructive-io/graphql-query": "^4.20.3",
44
+ "@constructive-io/graphql-types": "^3.33.3",
45
45
  "gql-ast": "^3.25.0",
46
46
  "graphql": "16.13.0"
47
47
  },
@@ -50,5 +50,5 @@
50
50
  "makage": "^0.8.0",
51
51
  "typescript": "^6.0.3"
52
52
  },
53
- "gitHead": "e05686fb94c5e22c954436f18c25aa4439b9e83e"
53
+ "gitHead": "4c68f85c7d9b3c72082f8305dffc0b3dfca80941"
54
54
  }